bozkurt69
Yeni Üye


Kayıt: 09 2008
Mesajlar: 30 Başlıklar: 10 Cinsiyet: 
Tuttugu Takim
 Madalyalar: 0
Rep Gücü : 47
|
Reklamlarımız Destekcilerimiz
bu 1.
32 require_once("mainfile.php");
33 $checkurl = $_SERVER['REQUEST_URI'];
34 if((stripos_clone($checkurl,'AddAuthor')) OR (stripos_clone($checkurl,'VXBkYXRlQXV0aG9y')) OR (stripos_clone($checkurl,'QWRkQXV0aG9y')) OR (stripos_clone($checkurl,'UpdateAuthor')) OR (stripos_clone($checkurl, "?ad min")) OR (stripos_clone($checkurl, "&ad min"))) {
35 die("Illegal Operation");
36 }
37 get_lang("ad min");
38
39 function create_first($name, $url, $email, $pwd, $user_new) {
40 global $prefix, $db, $user_prefix;
41 $first = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
42 if ($first == 0) {
43 $pwd = md5($pwd);
44 $the_adm = "God";
45 $e mail = validate_ mail($e mail);
46 $db->sql_query("INSERT INTO ".$prefix."_authors VALUES ('$name', '$the_adm', '$url', '$e mail', '$pwd', '0', '1', '')");
47 if ($user_new == 1) {
48 $user_reg date = date("M d, Y");
49 $user_avatar = "gallery/blank.gif";
50 $commentlimit = 4096;
51 if ($url == "http://") { $url = ""; }
52 $db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_website, user_avatar, user_regdate, user_password, theme, commentmax, user_level, user_lang, user_dateformat) VALUES (NULL,'$name','$e mail','$url','$user_avatar','$user_reg date','$pwd','$Default_Theme','$commentlimit', '2', 'english','D M d, Y g:i a')");
53 }
54 login();
55 }
56 }
2. bu
526 function create_first($name, $url, $email, $pwd, $user_new) {
527 global $prefix, $db, $user_prefix;
528 $first = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
529 if ($first == 0) {
530 $pwd = md5($pwd);
531 $the_adm = "God";
532 $sql = "INSERT INTO ".$prefix."_authors VALUES ('$name', '$the_adm', '$url', '$e mail', '$pwd', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '')";
533 $db->sql_query($sql);
534 if ($user_new == 1) {
535 $user_reg date = date("M d, Y");
536 $user_avatar = "blank.gif";
537 $commentlimit = 4096;
538 if ($url == "http://") { $url = ""; }
539 $sql = "INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_website, user_avatar, user_regdate, user_password, theme, commentmax, user_lang, user_dateformat) VALUES (NULL,'$name','$e mail','$url','$user_avatar','$user_reg date','$pwd','$Default_Theme','$commentlimit','english','D M d, Y g:i a')";
540 $db->sql_query($sql);
541 }
542 login();
543 }
544 }
545
546 $the_first = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
|
|