* Please read the credits file for more information on who has made this project possible.
 */
/** initialize vars, and include all necessary files **/
set_time_limit(0);
define('ADODB_DIR', '../includes/adodb');
require_once '../includes/adodb/adodb.inc.php';
require_once '../includes/classes/owp_text_tool.php';
include_once 'modify_config.php';
include_once 'newinstall.php';
include_once 'gui.php';
include_once 'db.php';
include_once 'check.php';
include_once 'language.php';
if (isset($_POST)) {
    foreach ($_POST as $k => $v) {
        ${$k} = owp_prepare_input($v);
    }
}
if (isset($alanguage)) {
    $currentlang = $alanguage;
}
if (!isset($prefix)) {
    include_once '../includes/config.php';
    $prefix = OWP_DB_PREFIX;
    $dbtype = OWP_DB_TYPE;
    $dbhost = OWP_DB_SERVER;
    $dbuname = OWP_DB_USERNAME;
    $dbpass = OWP_DB_PASSWORD;
    $dbname = OWP_DB_DATABASE;
    $system = OWP_SYSTEM;
    $encoded = OWP_ENCODED;
Example #2
0
function owp_change_info()
{
    global $_POST;
    $dbhost = owp_prepare_input($_POST['dbhost']);
    $dbuname = owp_prepare_input($_POST['dbuname']);
    $dbpass = owp_prepare_input($_POST['dbpass']);
    $dbname = owp_prepare_input($_POST['dbname']);
    $prefix = owp_prepare_input($_POST['prefix']);
    $changeInfo = '<font class="owp-title">' . CHANGE_INFO_1 . ':&nbsp;</font>' . '&nbsp;<font class="owp-normal">' . CHANGE_INFO_2 . '<br /><br />' . "\n" . '<form action="index.php" method="post"><center>' . "\n" . '<table border="0">' . "\n" . ' <tr>' . "\n" . '   <td align="left"><font class="owp-normal">' . DBHOST . '</font></td>' . "\n" . '   <td><input type="text" name="dbhost" SIZE=30 maxlength=80 value="' . $dbhost . '"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . '   <td align="left"><font class="owp-normal">' . DBUNAME . '</font></td>' . "\n" . '   <td><input type="text" name="dbuname" SIZE=30 maxlength=80 value="' . $dbuname . '"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . '  <td align="left"><font class="owp-normal">' . DBPASS . '</font></td>' . "\n" . '  <td><input type="text" name="dbpass" SIZE=30 maxlength=80 value="' . $dbpass . '"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . '   <td align="left"><font class="owp-normal">' . DBNAME . '</font></td>' . "\n" . '   <td><input type="text" name="dbname" SIZE=30 maxlength=80 value="' . $dbname . '"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . '   <td align="left"><font class="owp-normal">' . DBPREFIX . '</font></td>' . "\n" . '   <td><input type="text" name="prefix" SIZE=30 maxlength=80 value="' . $prefix . '"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . '   <td align="left"><font class="owp-normal">' . DBTYPE . '</font></td>' . "\n" . '   <td><select name="dbtype"><option value="mysql" selected>&nbsp;MySQL&nbsp;</option></select></td>' . "\n" . ' </tr>' . "\n" . '</table>' . "\n" . '<br /><br />' . "\n" . '<input type="hidden" name="currentlang" value="' . $_POST['currentlang'] . '">' . "\n" . '<input type="hidden" name="op" value="Submit">' . "\n" . '<input type="submit" value="' . BTN_SUBMIT . '">' . "\n" . '</center></form></font>' . "\n";
    return $changeInfo;
}