"; $i++; } $additionalPrimo = ""; $i = 0; while ($i <= 500) { // DETERMINE SIZE, ROTATION PATTERN, DRIFT PATTERN, SPIN SPEED // GENERATE EASTER EGG IF SPECIAL TIME WINDOW // echo "
  • while $i
  • "; $rgRandom = generateRG("Berlin",25,"Panke Bummel"); $x = rand(500,1000); $y = rand(500,1000); $z = rand(500,1000); $mx = rand(-500,-1000); $my = rand(-500,-1000); $mz = rand(-500,-1000); $rx = rand(0,360); $ry = rand(0,360); $rz = rand(0,360); $scaleA = rand(5,10); $scaleB = rand(5,10); $durationA = rand(15000,20000); $durationB = rand(15000,20000); $durationC = rand(50000,100000); $durationD = rand(50000,100000); $ax = rand(0,360); $ay = rand(0,360); $az = rand(0,360); $additionalPrimo .=" "; $i++; } // ONE SPECIAL EVENT FOR THE SISTER SHOWS $specialEvent = ""; $rgRandom = generateRG("Berlin","25","Panke Bummel"); $x = rand(-20,23); $y = rand(-2,18); $z = rand(-3,20); $rx = rand(0,360); $ry = rand(0,360); $rz = rand(0,360); $scale = rand(2,3); $duration1 = rand(230218,230320); $duration2 = rand(230218,230320); $specialEvent .=" "; // SAVE SPECIAL EVENT DATA $mysqli = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); // assign all states based on session $thisTarget = $key_table; $thisType = $key_type; $thisCreateAuthor = "WebAR App"; // process all record inputs that cannot be null $appID = "31337"; // no app id means the content is universal $thisStatus = 1000; // assume status 1000, not open to all $thisIP = getVisitorIP(); // escape certain incoming variables registered above // name should be figured out based on the incoming key variable. but we will hard code it for now $thisName = "Panke Bummel WebAR App Usage - $thisIP"; $insert = mysqli_query($mysqli," INSERT INTO $thisTarget VALUES ( null, '$appID', '$thisStatus', '$thisType', '$thisName', now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); // get the id that was just created $thisID = $mysqli->insert_id; // echo "

    Added $thisName as $thisID.

    "; // now register the attributes // we have url, headline, source, and author, all optional. so we check if it exists, and if it does, then write it as an artifact content $thisTarget_content = $thisTarget . "_content"; $thisTarget_attribute = $thisTarget . "_attribute"; // $mysqli = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); if ($thisID != null) { /* $rgRandom = generateRG(230218,230320,"LosAngelesAlbania"); $x = rand(-20,23); $y = rand(-2,18); $z = rand(-3,20); $rx = rand(0,360); $ry = rand(0,360); $rz = rand(0,360); $scale = rand(2,3); $duration1 = rand(230218,230320); $duration2 = rand(230218,230320); */ $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'RG', '', '', '$rgRandom', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'X', '', '', '$x', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'Y', '', '', '$y', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'Z', '', '', '$z', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'RX', '', '', '$rx', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'RY', '', '', '$ry', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'RZ', '', '', '$rz', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'Scale', '', '', '$scale', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'Duration 1', '', '', '$duration1', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'Duration 2', '', '', '$duration2', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); $insert = mysqli_query($mysqli," INSERT INTO $thisTarget_attribute VALUES ( $thisID, '$appID', '$thisStatus', 'IP Address', '', '', '$thisIP', null, null, null, now(), '$thisCreateAuthor', now(), '$thisCreateAuthor' ) "); } ?> Panke Bummel | Revolutions Generator Evolutions