Onbekend |
|
<?php
/* ------------------------------------------------------------------------------- */
/* W E B C O N T R O L P A N E L V E R S I O N 2.0 */
/* ------------------------------------------------------------------------------- */
/* File: | "functies.php" */
/* Version: | 1.0 */
/* Last updated: | 3 / 07 / 2005 */
/* Writers: | Bjorn Roesbeke, cracker@ddbs.net */
/* included: | included by all - ONLY this file may be included */
/* ------------------------------------------------------------------------------- */
/* -------------------- Functies -------------------- */
function mysql_logon(){
global $data;
global $username;
global $password;
$db = mysql_connect("localhost","","");
mysql_select_db("ddbs2_server", $db);
$query = "SELECT * FROM clients WHERE username = '" . $username . "' AND password = '" . $password . "'";
$result = mysql_query($query);
$data = mysql_num_rows($result);
unset($query);
mysql_close();
}
?>
<?php /* ------------------------------------------------------------------------------- */ /* W E B C O N T R O L P A N E L V E R S I O N 2.0 */ /* ------------------------------------------------------------------------------- */ /* File: | "functies.php" */ /* Version: | 1.0 */ /* Last updated: | 3 / 07 / 2005 */ /* Writers: | Bjorn Roesbeke, cracker@ddbs.net */ /* included: | included by all - ONLY this file may be included */ /* ------------------------------------------------------------------------------- */ /* -------------------- Functies -------------------- */ function mysql_logon(){ $query = "SELECT * FROM clients WHERE username = '" . $username . "' AND password = '" . $password . "'"; } ?>
n.b. andere functies heb ik uit deze post verwijderd, samen met alle gebruikersnamen en wachtwoorden |