}
    list($admin) = mysql_fetch_row($sth);
    if ($admin > 0) {
        return true;
    } else {
        return false;
    }
}
if (is_admin()) {
    switch ($act) {
        case "execute_battle":
            execute_battle($_POST["rounds"], $_POST["fraction"], $_POST["digino"], $_POST["diginp"], $_POST["diginob"], $_POST["diginpb"], $_POST["boost"], $_POST["verbosity"]);
            overview();
            break;
        case "suggest":
            suggest($_GET["prod_id"], $_GET["side"]);
            overview();
            break;
        case "proc_change_values":
            proc_change_values($_POST["battle"]);
            overview();
            break;
        case "proc_add_ships":
            proc_add_ships($_POST["prod_id"], $_POST["side"], $_POST["count"]);
            overview();
            break;
        default:
            overview();
    }
}
include "../spaceregentsinc/footer.inc.php";
Example #2
0
 //Maintenance Mode
 case 'maintenance':
     include_once $globals['adminfiles'] . '/maintenance.php';
     maintenance();
     break;
     // Installations
 // Installations
 case 'installations':
     include_once $globals['adminfiles'] . '/installations.php';
     installations();
     break;
     // Suggest
 // Suggest
 case 'suggest':
     include_once $globals['adminfiles'] . '/suggest.php';
     suggest();
     break;
     // Import
 // Import
 case 'import':
     include_once $globals['adminfiles'] . '/import.php';
     import();
     break;
     // Custom Scripts
 // Custom Scripts
 case 'customscripts':
     include_once $globals['adminfiles'] . '/customscripts.php';
     customscripts();
     break;
     // updatewenuzocinfigs
 // updatewenuzocinfigs
Example #3
0
 for ($i = 0; $i < mb_strlen($book->title); $i++) {
     $c = text_getCharAt($book->title, $i);
     if (text_isUnicodeLetter($c)) {
         $word .= $c;
         $inWord = true;
     } else {
         if ($inWord) {
             $newTitle = appendWord($newTitle, matchCase(suggest($word), $word));
         }
         $word = '';
         $inWord = false;
         $newTitle .= $c;
     }
 }
 if ($inWord) {
     $newTitle = appendWord($newTitle, matchCase(suggest($word), $word));
 }
 $book->title = $newTitle;
 print "Final:  {$book->id} [{$book->title}]\n";
 if ($book->title != $origTitle) {
     do {
         $response = kbdInput("Save? [Y]es/[n]o/[e]dit ", array('y', 'n', 'e', ''));
         if ($response == 'e') {
             $book->title = kbdInput("Enter new title: ", null);
             print "Final:  {$book->id} [{$book->title}]\n";
         }
     } while ($response == 'e');
     if ($response != 'n') {
         $book->save();
     }
 }
Example #4
0
    while ($stmt->fetch()) {
        $code = explode(" ", $CName);
        echo '<tr>
		<td style="border-bottom:1px solid #cfcfcf;">' . $TypeName . '</td>
		<td style="padding:10px;border-bottom:1px solid #cfcfcf;"><a href=core/coursetimes.php?coursecode=' . $code[0] . '&coursenum=' . $code[1] . '&termid=' . $termid . '&termname=' . $termname . ' id="pop" target="upsched" style="color:#0715b2;">' . $CName . '</td>
		<td style="border-bottom:1px solid #cfcfcf;">' . $Credit . '</td>
		</tr>';
    }
}
include 'includes/body.php';
?>
<div id="overlay_form" style="display:none">
	<iframe src="about:blank" name="upsched" width="600" height="380" frameborder="0"></iframe>
	<br>
	<a href="about:blank" target="upsched" id="close"><b>CLOSE</b></a>
</div>
<div align="center" style="padding:0; font-weight: bold; color:black; font-size:20px;">
	Suggested courses for <?php 
echo $termname;
?>
 <br>based on your completed requirements and chosen track:<br><br>
</div>
<table border="0" style="background:#f1f1f1;font-size:16px; color:black; width:800px;*border-collapse: collapse; border-spacing: 0px;">
	<tr style="background:#0facb5;"><td width="300" style="padding:10px;">Fulfills</td><td>Course Name</td><td>Credit</td></tr>
	<?php 
suggest($termid, $id, $termname);
?>
</table>
<br><br>
<?php 
include 'includes/footer.php';