} if ($_POST["calendar_ids"] == "") { $calendar_ids = $_GET["calendar_ids"]; } else { $calendar_ids = $_POST["calendar_ids"]; } if ($_POST["project_ids"] == "") { $project_ids = $_GET["project_ids"]; } else { $project_ids = $_POST["project_ids"]; } if ($action == "saveoptions") { SaveOptions($username, $email, $calendar_ids, $project_ids); DisplayOptions($username); } elseif ($action == "" || $action == "menu") { DisplayOptions($username); } /* ----------------------------------------------- */ /* --------- SaveOptions ------------------------- */ /* ----------------------------------------------- */ function SaveOptions($username, $email, $calendar_ids, $project_ids) { $email = mysql_real_escape_string($email); /* get the range of years that studies have occured */ $sqlstring = "select * from users where username = '******'"; //echo $sqlstring; $result = mysql_query($sqlstring) or die("Query failed: " . mysql_error() . "<br><i>{$sqlstring}</i><br>"); if (mysql_num_rows($result) > 0) { /* update */ $sqlstring = "update users set user_email = '{$email}' where username = '******'"; $result = mysql_query($sqlstring) or die("Query failed: " . mysql_error() . "<br><i>{$sqlstring}</i><br>");
// font) added to the character map. Thanks to MadMalkav for mapping // the extended character set. // // Updates to 1.5 // Accepts symbols in the input files to process for the game. Accepted // symbols are: // <> - End text window <clsr> - Clear text window // <str1> - String variable <str2> - String variable // It also passes the script through an English equivalency table when // building new output. // echo ("\nlangpcbuild v2.0 (c) D 2003\n"); set_time_limit(6000000); if ($argc < 2) { DisplayOptions(); die; } else { $path = $argv[1]; } // Simple routine to read in a directory listing and split it to an array $mydir=""; $orgfile = "$path"; if ($handle = opendir($orgfile)) { while (false !== ($file = readdir($handle))) { $mydir .= $orgfile . "/$file\n"; } closedir($handle); } $filelist = split("\n", $mydir); $i=0; // Allocate space for the header. Each file entry takes 24 bytes and there's // a 4 byte file count. We subtract 3 from the count to account for . .. and