Location: PHPKode > projects > PHD Help Desk > phd_2_00/setup/eng/index.php
<?PHP
/*
    Nombre: index.php
    Autor: Julio Tuozzo - hide@address.com
    FunciĆ³n: Main form of configuration of PHD
    Ver: 2.00
*/

if (strlen($_POST[lang])>1)
    { session_start();
      $_SESSION['LANG']=10;
      header("Location: set_lang.php?lang=$_POST[lang]");
    }

if (strlen($_POST[base_dato])>1)
    { session_start();
      $_SESSION['BASE']=10;
      header("Location: set_base.php");
    }

if (strlen($_POST[tables])>1)
    { session_start();
      $_SESSION['TABLES']=10;
      header("Location: set_tables.php");
    }

if (strlen($_POST[mail])>1)
    { session_start();
      $_SESSION['MAIL']=10;
      header("Location: set_mail.php");
    }


if (strlen($_POST[admin])>1)
    { session_start();
      $_SESSION['ADMIN']=10;
      header("Location: set_admin.php");
    }

if (strlen($_POST[atrib])>1)
    { session_start();
      $_SESSION['ATRIB']=10;
      header("Location: set_atrib.php");
    }

if (strlen($_POST[param])>1)
    { session_start();
      $_SESSION['PARAM']=10;
      header("Location: set_param.php");
    }

require('setup_head.inc');
require('make_checks.inc');


if ($c_param=="ok")
     {require('instalado.inc');
      exit();
     }

echo "
<form method='post' name='setup' action='$_SERVER[PHP_SELF]' >

<p class='$c_lang'> Screens language. &nbsp; &nbsp;";

     if($c_lang=="now")
        {echo"
         <SELECT name='lang'>
            <OPTION selected value=''> [Select language] </OPTION> \n
            <OPTION value='ESP'> Spanish </OPTION> \n
            <OPTION value='ENG'> English </OPTION> \n
        </SELECT> &nbsp; &nbsp;
        <input class='boton_bold' type='submit' value='Configure'>
        ";
        }
    elseif ($c_lang=="ok")
        {echo "<b>OK.</b>";

        }

echo   "</p>

      <p class='$c_base_dato'>
      Data base access parameters. &nbsp; &nbsp;";

     if($c_base_dato=="now")
        {echo"<input class='boton_bold' type='submit' value='Configure' name='base_dato'>
        ";
        }
    elseif ($c_base_dato=="ok")
        {echo "<b>OK.</b>";

        }

echo      "</p>


      <p class='$c_create'>
      Create tables in the data base. &nbsp; &nbsp;";

      if ($c_create=="now")
         {echo "<input class='boton_bold' type='submit' value='Create tables' name='tables'>";
         }
      elseif ($c_create=="ok")
         {echo "<b>OK.</b>";
         }

echo "  </p>


      <P class='$c_mail'>
      E mail parameters. &nbsp; &nbsp;";

 if ($c_mail=="now")
         {echo "<input class='boton_bold' type='submit' value='Configure' name='mail'>";
         }
      elseif ($c_mail=="ok")
         {echo "<b>OK.</b>";
         }


echo "  </p>


      <P class='$c_admin'>
      Input of operator with administrator level. &nbsp; &nbsp;";

 if ($c_admin=="now")
         {echo "<input class='boton_bold' type='submit' value='Create administrator' name='admin'>";
         }
      elseif ($c_admin=="ok")
         {echo "<b>OK.</b>";
         }


echo " </p>

      <P class='$c_atrib'>
      Ticket attributes. &nbsp; &nbsp;";

if ($c_atrib=="now")
         {echo "<input class='boton_bold' type='submit' value='Create atributes' name='atrib'>";
         }

      elseif ($c_atrib=="ok")
         {echo "<b>OK.</b>";
         }

echo   "</p>

      <p class='$c_param'>
      General parameters. &nbsp; &nbsp;";
      if ($c_param=="now")
         {echo "<input class='boton_bold' type='submit' value='Configure' name='param'>";
         }

echo "</p>

   </form>
  </body>
</html>";

?>

Return current item: PHD Help Desk