<?

$script_name = "INDEXU 5.3.0";

$req_php_version = '4.3.10';

$req_php_module = array(
  'MySQL' => 'mysql_connect',
  'ZLib' => 'gzopen',
  'Curl' => 'curl_init',
  'GD' => 'imagesx',
  'XML' => 'xml_parser_create'
);

$req_chmod_777 = array(
  '.htaccess',
  'application.php',
  'page_caching.txt',
  'backup',
  'cache',
  'lang/english.php',
  'payment/paypal.inc.php',
  'payment/2co.inc.php',
  'payment/egold.inc.php',
  'payment/authorizenet.inc.php',
  'templates_c',
  'themes',
  'upload_files'
);

$sql_option = array(
  'Fresh Installation' => '_530.sql',
  'Upgrade from 5.2.x' => '_52xto530.sql',
  'Upgrade from 5.1.x' => '_51xto530.sql',
  'Upgrade from 5.0.x' => '_50xto530.sql',
  'Upgrade from 3.2' => '_32to530.sql',
  'Reinstall (no need to create/upgrade database)' => ''
);

$next_bt = "<input type=submit value='Next Step'>";

$module_ok = "<font color=green>Installed</font>";
$module_failed = "<font color=red>Not Installed</font>";

$writeable_ok = "<font color=green>writeable</font>";
$writeable_failed = "<font color=red>not writeable</font>";




$message_step1 = "
<p>Welcome to the Indexu installation!</p>
<p>Please follow the steps carefully. If you have any troubles,
do not hesitate to contact our support department.</p>
";


$message_step5 = "
    <input type=hidden name=pf value=1>
    <center><font color=red><p><b><%\$error_message%></b></p></font><center>
    <table cellpadding='4' cellspacing='0' border='0' width='100%'>
      <tr>
        <td>
          <b>Database Configuration</b>
        </td>
      </tr>
      <tr>
        <td>Username
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=dbUsername value=<%\$dbUsername%>></td>
      </tr>
      <tr>
        <td>Password
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=dbPassword value=<%\$dbPassword%>></td>
      </tr>
      <tr>
        <td>Host
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=dbHostname value=<%\$dbHostname%>></td>
      </tr>
      <tr>
        <td>Database Name
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=dbName value=<%\$dbName%>></td>
      </tr>

      <tr>
        <td class=tbl_caption colspan=2>
          <b>URL and Path</b>
        </td>
      </tr>
      <tr>
        <td>Website URL (ends without /)
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=site_url value=\"<%\$site_url%>\"></td>
      </tr>
      <tr>
        <td>Base Path (ends with /)
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=base_path value=\"<%\$base_path%>\"></td>
      </tr>

      <tr>
        <td class=tbl_caption colspan=2>
          <b>Website</b>
        </td>
      </tr>
      <tr>
        <td>Website Name
        </td>
        <td width=180 valign=\"top\"><input type=text size=40 name=site_name value=\"<%\$site_name%>\"></td>
      </tr>
    </table>
";



$message_step6 = "
  SQL query executed successfully.
";

$message_step7 = "
<p>You have successfully installed Indexu!
Please delete this <b>/instal</b> folder to secure
to your web site. Thank you and enjoy our product.</p>
<p><a href=../admin>Go to admin panel</a></p>
";

?>
