Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $host="***";
- $username="***";
- $password="***";
- $db_name="***";
- $tbl_name="***";
- mysql_connect("$host", "$username", "$password")or die("cannot connect");
- mysql_select_db("$db_name")or die("cannot select DB");
- //header("location:***.php");
- if($_SESSION['***'] == '***'){
- $fp = fopen("***.html", 'w');
- fwrite($fp, "");
- fwrite($fp, '<p class="green">*** is online</p>');
- $result = mysql_query("select count(1) FROM ***");
- $row = mysql_fetch_array($result);
- $rows = $row[0]+1000;
- echo "Rows: ".$rows."\n";
- for ($id = 1000; $id < $rows; $id++) {
- echo "ID: ".$id."\n";
- function genereerLiveCodeP () {
- $lengthCode = 6;
- $characters = '1234567890abcdefghijklmnopqrstuvwxyz';
- $liveCodeFunction = '';
- for ($p = 0; $p < $lengthCode; $p++) {
- $liveCodeFunction .= $characters[mt_rand(0, strlen($characters))];
- }
- return $liveCodeFunction;
- }
- $livecode = genereerLiveCodeP ();
- echo "Livecode: ".$livecode."\n";
- $*** = mysql_query("UPDATE *** SET livecode='".$livecode."' WHERE *** = '".$***."'");
- echo "***: ".$***."\n";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement