//-----------------------------------------------------------------------------------------------------------// // Execute a new search about uncorrect movies with change of user //---------------------------------------------------------------- //-----------------------------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------------------------// // Execute a new search about uncorrect movies with change of user //---------------------------------------------------------------- case 'searchCorrectedMovie': print_r(SearchCorrectedMoviesInMovieDB()); break; //-----------------------------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------------------------// // Get all genre for search field //------------------------------- //-----------------------------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------------------------// // Get all genre for search field //------------------------------- case 'getallgenres': // Call function //-------------- print GetAllGenres(); break; case 'verifConnect': // Call function print CheckConnection(); break; }
$GLOBALS["VERBOSE"] = true; } if ($argv[1] == "--detect") { detectCards(); die; } if ($argv[1] == "--iwlist") { iwlist(); die; } if ($argv[1] == "--ap") { ConnectToAccessPoint(); die; } if ($argv[1] == "--checkap") { CheckConnection(); die; } function detectCards() { $unix = new unix(); $detect = false; $sock = new sockets(); $lspci = $unix->find_program("lspci"); $iwlist = $unix->find_program("iwlist"); if ($iwlist == null) { if ($GLOBALS["VERBOSE"]) { echo "Unable to stat iwlist\n"; } $sock->SET_INFO("WifiCardOk", 0); exit;
function SignUp($fields, $values, $pass) { $fields = strip_tags($fields); $values = strip_tags($values); $pass = strip_tags($pass); if (CheckConnection() == "Connection Established!") { $table = $GLOBALS['user_table']; $userfield = $GLOBALS['username_field']; $passfield = $GLOBALS['password_field']; $columns = $fields . "," . $passfield; $columns = SQLInjectionProtection($columns); $totalvalues = $values . ",'" . HashIt($pass) . "'"; $sql = mysql_query("INSERT INTO {$table} ({$fields},{$passfield}) VALUES ({$totalvalues})") or die(mysql_error()); } else { echo "Failed database connection"; } }