GIF89a;
Direktori : /home/serb/www/chat/install_files/ |
Current File : /home/serb/www/chat/install_files/step_1.8.html |
<?php require_once './inc/config.srv.php'; $errmsg = ''; if( $_POST['submit'] ) { if( ! $_POST['cms'] ) $errmsg = "Please select your system"; else $errmsg = updateConfig(); if( $errmsg == '' ) { redirect_inst("install.php?step=2&forcms={$_POST['cms']}"); } } function updateConfig() { //--- change common.php //$old_val = array("require_once(INC_DIR . 'cmses/statelessCMS.php');" , "//require_once(INC_DIR . 'cmses/{$_POST['cms']}.php');"); //$new_val = array("//require_once(INC_DIR . 'cmses/statelessCMS.php');" , "require_once(INC_DIR . 'cmses/{$_POST['cms']}.php');"); //$fname = './inc/common.php'; $repl['CMSsystem'] = "'{$_POST['cms']}'"; $conf = getConfigData(); $conf = changeConfigVariables($conf,$repl); $res = writeConfig($conf); if(!$res) return "<b>Could not write to '/inc/config.php' file</b>"; //--- return ''; } include INST_DIR . 'header.php'; ?> <TR> <TD colspan="2"> </TD> </TR> <TR> <TD colspan="2" class="subtitle"> FlashChat Caching </TD> </TR> <tr><td colspan=2 class="error_border"><font color="red"><?php echo @$errmsg; ?></font></td></tr> <FORM method="post" align="center" name="installInfo"> <TR> <TD colspan="2"> <TABLE width="100%" class="body_table" cellspacing="10"> <TR> <TD> <INPUT type=\"radio\" name=\"cms\" value=\"$k\"> </TD> <td> <p class="subtitle">Enable limited caching (recommended).</p> </td> </TR> <TR> <td colspan="2"> <p class="subtitle">This option will use some file reading and writing to improve performance and reduce your SQL overhead. All chats are stored in MySQL, but frequently accessed data is also stored in files on the server. A MySQL connection is only established when needed ("on demand" connections), further reducing the system overhead.</p> </td> </TR> </TABLE> </TD> </TR> <TR> <TD> </TD> <TD align="right"> <INPUT type="submit" name="submit" value="Continue >>" > </TD> </TR> </FORM> <?php include INST_DIR . 'footer.php'; ?>