aboutsummaryrefslogtreecommitdiffstats
path: root/template/default
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-02-20 19:07:43 +0000
committergweltas <gweltas@piwigo.org>2004-02-20 19:07:43 +0000
commit3bf770a16a15400eb2bde63782e07ba55dde2ed4 (patch)
tree4821622bfff136c6f7fb98e89ba1ba9f7b3a56e6 /template/default
parentc6a91a26c4f9e5a3294a708988d6f6234a3f4a38 (diff)
Migration of installation procedure
git-svn-id: http://piwigo.org/svn/trunk@367 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/default/htmlfunctions.inc.php4
-rw-r--r--template/default/install.tpl150
-rw-r--r--template/default/install.vtp254
3 files changed, 151 insertions, 257 deletions
diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php
index 170defc46..81c123ead 100644
--- a/template/default/htmlfunctions.inc.php
+++ b/template/default/htmlfunctions.inc.php
@@ -25,9 +25,6 @@
// | USA. |
// +-----------------------------------------------------------------------+
-$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif';
-$user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
-
function get_icon( $date_comparaison )
{
global $user, $conf;
@@ -263,3 +260,4 @@ function make_radio($name, $value, $selected, $usekeys=false)
return $boxstring;
}
?>
+
diff --git a/template/default/install.tpl b/template/default/install.tpl
new file mode 100644
index 000000000..89ac5f949
--- /dev/null
+++ b/template/default/install.tpl
@@ -0,0 +1,150 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset={T_CONTENT_ENCODING}" />
+<meta http-equiv="Content-script-type" content="text/javascript" />
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<title>PhpWebGallery {RELEASE}</title>
+<link rel="stylesheet" href="{T_STYLE}" type="text/css" />
+</head>
+<body>
+ <table style="width:100%;height:100%">
+ <tr align="center" valign="middle">
+ <td>
+ <div class="grostitre">PhpWebGallery {RELEASE}</div>
+ <table class="table1">
+ <!-- BEGIN errors -->
+ <tr>
+ <td class="contenucellule" colspan="3">
+ <div class="errors">
+ <ul>
+ <!-- BEGIN error -->
+ <li>{errors.error.ERROR}</li>
+ <!-- END error -->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!-- END errors -->
+ <!-- BEGIN infos -->
+ <tr>
+ <td class="contenucellule" colspan="3">
+ <div class="infos">
+ <ul>
+ <!-- BEGIN info -->
+ <li>{infos.info.INFO}</li>
+ <!-- END info -->
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <!-- END infos -->
+ <tr>
+ <td class="contenucellule">
+
+<!-- BEGIN error_copy -->
+{L_ERR_COPY} :
+<br />-----------------------------------------------------<br />
+<div style="color:blue;">{error_copy.FILE_CONTENT}</div>
+-----------------------------------------------------<br />
+<!-- END error_copy -->
+<!-- BEGIN install -->
+<form method="POST" action="{F_ACTION}" name="install_form">
+ <table width="100%">
+ <tr>
+ <th colspan="3">{L_BASE_TITLE}</th>
+ </tr>
+ <tr>
+ <td width="30%">{L_LANG_TITLE}</td>
+ <td colspan="2" align="left">
+ <select name="language" onchange="this.form.submit()">
+ {F_LANG_SELECT}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <th colspan="3">{L_DB_TITLE}</th>
+ </tr>
+ <tr>
+ <td colspan="3">&nbsp;</td>
+ </tr>
+ <tr>
+ <td>{L_DB_HOST}</td>
+ <td align=center><input type="text" name="dbhost" value="{F_DB_HOST}" /></td>
+ <td class="row2">{L_DB_HOST_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_DB_USER}</td>
+ <td align=center><input type="text" name="dbuser" value="{F_DB_USER}" /></td>
+ <td class="row2">{L_DB_USER_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_DB_PASS}</td>
+ <td align=center><input type="password" name="dbpasswd" value="" /></td>
+ <td class="row2">{L_DB_PASS_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_DB_NAME}</td>
+ <td align=center><input type="text" name="dbname" value="{F_DB_NAME}" /></td>
+ <td class="row2">{L_DB_NAME_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_DB_PREFIX}</td>
+ <td align=center><input type="text" name="prefixeTable" value="{F_DB_PREFIX}" /></td>
+ <td class="row2">{L_DB_PREFIX_INFO}</td>
+ </tr>
+ <tr>
+ <td colspan="3">&nbsp;</td>
+ </tr>
+ <tr>
+ <th colspan="3">{L_ADMIN_TITLE}</th>
+ </tr>
+ <tr>
+ <td colspan="3">&nbsp;</td>
+ </tr>
+ <tr>
+ <td>{L_ADMIN}</td>
+ <td align="center"><input type="text" name="admin_name" value="{F_ADMIN}" /></td>
+ <td class="row2">{L_ADMIN_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_ADMIN_PASSWORD}</td>
+ <td align="center"><input type="password" name="admin_pass1" value="" /></td>
+ <td class="row2">{L_ADMIN_PASSWORD_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_ADMIN_CONFIRM_PASSWORD}</td>
+ <td align="center"><input type="password" name="admin_pass2" value="" /></td>
+ <td class="row2">{L_ADMIN_CONFIRM_PASSWORD_INFO}</td>
+ </tr>
+ <tr>
+ <td>{L_ADMIN_EMAIL}</td>
+ <td align="center"><input type="text" name="admin_mail" value="{F_ADMIN_EMAIL}" /></td>
+ <td class="row2">{L_ADMIN_EMAIL_INFO}</td>
+ </tr>
+ <tr>
+ <td colspan="3">&nbsp;</th>
+ </tr>
+ <tr>
+ <td colspan="3" align="center">
+ <input type="submit" name="install" value="{L_SUBMIT}" />
+ </td>
+ </tr>
+ </table>
+</form>
+<!-- END install -->
+
+<!-- BEGIN install_end -->
+<div class="infos_title">{L_END_TITLE}</div>
+<div style="padding:5px;">{L_END_MESSAGE}</div>
+<!-- END install_end -->
+
+ </td>
+ </tr>
+ </table>
+ <div style="text-align:center;margin:20px;">{L_INSTALL_HELP}</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/template/default/install.vtp b/template/default/install.vtp
deleted file mode 100644
index 36c66bcac..000000000
--- a/template/default/install.vtp
+++ /dev/null
@@ -1,254 +0,0 @@
-<html>
- <head>
- <title>PhpWebGallery {#release}</title>
- <style>
- a {
- text-decoration : none;
- color : #006699;
- }
- a:hover {
- text-decoration : underline;
- }
- body,table,input,form,select,textarea {
- font-family : Arial, Verdana, Sans-Serif;
- font-size : 12px;
- }
- .miniature {
- border : solid 1px black;
- }
- body {
- background-color : #E5E5E5;
- }
- .titretable1 {
- color : black;
- background-color : #D3DCE3;
- text-align : center;
- border : 2px solid #006699;
- }
- .grostitre {
- text-align : center;
- font-size : 20px;
- margin-bottom : 20px;
- }
- .plan {
- margin : 10px 10px 10px 2px;
- white-space : nowrap;
- }
- .table1 {
- border-collapse:collapse;
- background-color:#FFFFFF;
- width:700px;
- margin:auto;
- }
- .contenucellule {
- background-color : #EEEEEE;
- border : 2px solid #006699;
- }
- .style1 {
- margin-top : 20px;
- }
- th {
- font-weight : bold;
- background-color : #D3DCE3;
- }
- td.row1 {
- background-color : #DDDDDD;
- }
- td.row2 {
- background-color : #E8E8E8;
- }
- .cat_plan {
- font-weight : bold;
- }
- .retrait {
- margin : 10px;
- margin-left : 30px;
- margin-top : 2px;
- }
- input,textarea {
- border-width : 1;
- border-color : #000000;
- background : #ffffff;
- color: #000000;
- }
- .errors,.infos {
- margin:10px;
- }
- .errors {
- border:1px solid red;
- background-color:#ffe1e1;
- }
- .infos {
- background-color:#eff4fa;
- border:1px solid #9cb4ce;
- }
- .errors_title,.infos_title {
- margin:5px;
- font-weight:bold;
- font-size:120%;
- text-align:center;
- }
- .errors_title {
- color:red;
- }
- .infos_title {
- color:#9cb4ce;
- }
- </style>
- </head>
- <body>
- <table style="width:100%;height:100%">
- <tr align="center" valign="middle">
- <td>
- <div class="grostitre">PhpWebGallery {#release}</div>
- <table class="table1">
- <tr>
- <td class="contenucellule">
-<!--VTP_errors-->
-<div class="errors">
- <div class="errors_title">{#errors_title}</div>
- <ul>
- <!--VTP_error-->
- <li>{#content}</li>
- <!--/VTP_error-->
- </ul>
-</div>
-<!--/VTP_errors-->
-
-<!--VTP_infos-->
-<div class="infos">
- <div class="infos_title">{#infos_title}</div>
- <ul>
- <!--VTP_info-->
- <li>{#content}</li>
- <!--/VTP_info-->
- </ul>
-</div>
-<!--/VTP_infos-->
-
-<!--VTP_error_copy-->
-{#step1_err_copy} :
-<br />-----------------------------------------------------<br />
-<div style="color:blue;">{#file_content}</div>
------------------------------------------------------<br />
-<div style="text-align:center;">{#step1_err_copy_2}<br />
-<a href="./install.php?step=2&amp;language={#language}">{#step1_err_copy_next}</a></div>
-<!--/VTP_error_copy-->
-
-<!--VTP_step0-->
-<form method="get" action="install.php">
- <input type="hidden" name="step" value="1" />
- <table width="100%">
- <tr>
- <td align="center">
- <select name="language">
- <!--VTP_language-->
- <option>{#name}</option>
- <!--/VTP_language-->
- </select>
- <input name="submit" type="submit" value="Submit" />
- </td>
- </tr>
- </table>
-</form>
-<!--/VTP_step0-->
-
-<!--VTP_step1-->
-<form method="post" action="install.php?step=1&amp;language={#language}">
- <table width="100%">
- <tr>
- <th colspan="3">{#step1_title}</th>
- </tr>
- <tr>
- <td colspan="3">&nbsp;</td>
- </tr>
- <tr>
- <td>{#step1_host}</td>
- <td align=center><input type="text" name="cfgHote" value="{#f_host}" /></td>
- <td class="row2">{#step1_host_info}</td>
- </tr>
- <tr>
- <td>{#step1_user}</td>
- <td align=center><input type="text" name="cfgUser" value="{#f_user}" /></td>
- <td class="row2">{#step1_user_info}</td>
- </tr>
- <tr>
- <td>{#step1_pass}</td>
- <td align=center><input type="password" name="cfgPassword" value="" /></td>
- <td class="row2">{#step1_pass_info}</td>
- </tr>
- <tr>
- <td>{#step1_database}</td>
- <td align=center><input type="text" name="cfgBase" value="{#f_base}" /></td>
- <td class="row2">{#step1_database_info}</td>
- </tr>
- <tr>
- <td>{#step1_prefix}</td>
- <td align=center><input type="text" name="prefixeTable" value="{#f_prefixeTable}" /></td>
- <td class="row2">{#step1_prefix_info}</td>
- </tr>
- <tr>
- <td colspan="3">&nbsp;</td>
- </tr>
- <tr>
- <td colspan="3" align="center"><input type="submit" name="submit" value="{#submit}" /></td>
- </tr>
- </table>
-</form>
-<!--/VTP_step1-->
-
-<!--VTP_step2-->
-<form method="post" action="install.php?step=2&amp;language={#language}">
- <table width=100%>
- <tr>
- <th colspan="3">{#step2_title}</th>
- </tr>
- <tr>
- <td colspan="3">&nbsp;</td>
- </tr>
- <tr>
- <td>{#conf_general_webmaster}</td>
- <td align="center"><input type="text" name="webmaster" value="{#f_webmaster}" /></td>
- <td class="row2">{#conf_general_webmaster_info}</td>
- </tr>
- <tr>
- <td>{#step2_pwd}</td>
- <td align="center"><input type="password" name="pwdWebmaster" value="" /></td>
- <td class="row2">{#step2_pwd_info}</td>
- </tr>
- <tr>
- <td>{#step2_pwd_conf}</td>
- <td align="center"><input type="password" name="pwdWebmasterConf" value="" /></td>
- <td class="row2">{#step2_pwd_conf_info}</td>
- </tr>
- <tr>
- <td>{#conf_general_mail}</td>
- <td align="center"><input type="text" name="mail_webmaster" value="{#f_mail_webmaster}" /></td>
- <td class="row2">{#conf_general_mail_info}</td>
- </tr>
- <tr>
- <td colspan="3">&nbsp;</th>
- </tr>
- <tr>
- <td colspan="3" align="center">
- <input type="submit" name="submit" value="{#submit}" />
- </td>
- </tr>
- </table>
-</form>
-<!--/VTP_step2-->
-
-<!--VTP_install_end-->
-<div class="infos_title">{#install_end_title}</div>
-<div style="padding:5px;">{#install_end_message}</div>
-<!--/VTP_install_end-->
-
- </td>
- </tr>
- </table>
- <div style="text-align:center;margin:20px;">{#install_help}</div>
- </td>
- </tr>
- </table>
- </body>
-</html> \ No newline at end of file