Пример #1
0
         $b_back = array('start', _INSTALL_L103);
     } else {
         $content .= "<p>" . _INSTALL_L115 . "</p>\n";
         $b_next = array('siteInit', _INSTALL_L112);
     }
     include 'install_tpl.php';
     break;
 case 'updateTables':
     include_once "../mainfile.php";
     include_once './class/dbmanager.php';
     $db = new db_manager();
     $sql = 'SELECT * FROM ' . $db->prefix('groups');
     $result = $db->query($sql);
     $content = '<h5>' . _INSTALL_L157 . '</h5>';
     $content .= '<table align="center" cellspacing="0" border="1"><tr><td>' . _INSTALL_L158 . '</td><td>' . _INSTALL_L159 . '</td><td>' . _INSTALL_L160 . '</td><td>' . _INSTALL_L161 . '</td></tr>';
     while ($myrow = $db->fetchArray($result)) {
         if ($myrow['type'] == 'Admin') {
             $content .= '<tr><td>' . $myrow['name'] . '</td><td><input type="radio" name="g_webmasters" value="' . $myrow['groupid'] . '" /></td><td>&nbsp;</td><td>&nbsp;</td></tr>';
         } elseif ($myrow['type'] == 'User') {
             $content .= '<tr><td>' . $myrow['name'] . '</td><td>&nbsp;</td><td><input type="radio" name="g_users" value="' . $myrow['groupid'] . '" /></td><td>&nbsp;</td></tr>';
         } else {
             $content .= '<tr><td>' . $myrow['name'] . '</td><td>&nbsp;</td><td>&nbsp;</td><td><input type="radio" name="g_anonymous" value="' . $myrow['groupid'] . '" /></td></tr>';
         }
     }
     $content .= '</table>';
     $b_back = array();
     $b_next = array('updateTables_go', _INSTALL_L132);
     include 'install_tpl.php';
     break;
 case 'updateTables_go':
     include_once "../mainfile.php";