echo "<BR>Username: {$admin_mail}"; echo "<BR>Password: {$password}<BR></B></center>"; $stamp = date("Y-m-d H:i:s"); $db->Execute("INSERT INTO {$dbtables['players']} VALUES('','WebMaster','N','WebMaster','{$password}','{$admin_mail}',0,0,0,0,0,0,0,0,0,0,{$start_armour},0,{$start_credits},0,0,0,0,{$start_energy},0,{$start_fighters},{$start_turns},'','N',0,1,0,0,'N','N',0,0, '{$stamp}',0,0,0,0,'N','1.1.1.1',0,0,0,0,'Y','N','N','Y',' ','{$default_lang}', 'Y','N','Y','')"); $db->Execute("INSERT INTO {$dbtables['zones']} VALUES('','WebMaster\\'s Territory', 1, 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 0)"); PrintFlush("<BR><BR><center><BR><B>Congratulations! Universe created successfully.<BR>"); echo "Next we'll copy back the player data but without furangee and no admin<br>"; echo "<form action=new_game.php method=post>"; echo "<input type=hidden name=step value=9>"; echo "<input type=hidden name=engage value=2>"; echo "<input type=hidden name=swordfish value={$swordfish}>"; echo "<input type=submit value=Next>"; echo "</form>"; break; case "9": transferData(2); echo "Copied players, accounts and zones.<br>Click next to restart game!"; echo "<form action=new_game.php method=post>"; echo "<input type=hidden name=step value=10>"; echo "<input type=hidden name=engage value=2>"; echo "<input type=hidden name=swordfish value={$swordfish}>"; echo "<input type=submit value=Next>"; echo "</form>"; break; case "10": startGame(); echo "Game restarted!<BR>"; break; default: echo "<form action=new_game.php method=post>"; echo "Password: <input type=password name=swordfish size=20 maxlength=20> ";
$associateFields = array('pw_announce' => array('aid' => 'aid', 'vieworder' => 'vieworder', 'author' => 'created_userid', '1' => 'typeid', 'url' => 'url', 'subject' => 'subject', 'content' => 'content', 'startdate' => 'start_date', 'enddate' => 'end_date')); $callbacks = array('pw_announce' => '_callbackAnnounce'); $nextId = transferDataByPk('pw_announce', $associateFields, 'aid', $lastId, $limit, $callbacks); calculatePercent('SELECT COUNT(*) FROM pw_announce', "SELECT COUNT(*) FROM pw_announce WHERE aid <= {$nextId}"); refreshTo('link'); } elseif ('link' == $action) { //[友情链接] $fieldMap = array('pw_link' => array('sid' => 'lid', 'threadorder' => 'vieworder', 'name' => 'name', 'url' => 'url', 'descrip' => 'descrip', 'logo' => 'logo', 'ifcheck' => 'ifcheck', 'username' => 'contact')); $callbacks = array('pw_link' => '_callbackLink'); $nextId = transferDataByPk('pw_sharelinks', $fieldMap, 'sid', $lastId, $limit, $callbacks); calculatePercent('SELECT COUNT(*) FROM pw_sharelinks', "SELECT COUNT(*) FROM pw_sharelinks WHERE sid <= {$nextId}"); refreshTo('linkRelations'); } elseif ('linkRelations' == $action) { //[友情链接与类别的关联表] $fieldMap = array('pw_link_relations' => array('sid' => 'lid', 'stid' => 'typeid')); $nextId = transferData('pw_sharelinksrelation', $fieldMap, $lastId, $limit); calculatePercent('SELECT COUNT(*) FROM pw_sharelinksrelation', $nextId); refreshTo('linkType'); } elseif ('linkType' == $action) { //[友情链接类别] $fieldMap = array('pw_link_type' => array('stid' => 'typeid', 'name' => 'typename', 'vieworder' => 'vieworder')); $nextId = transferDataByPk('pw_sharelinkstype', $fieldMap, 'stid', $lastId, $limit); calculatePercent('SELECT COUNT(*) FROM pw_sharelinkstype', "SELECT COUNT(*) FROM pw_sharelinkstype WHERE stid <= {$nextId}"); refreshTo('emotion'); } elseif ('emotion' == $action) { //[表情转移] $nextId = $lastId; $_query = $srcDb->query(sprintf("SELECT * FROM pw_smiles WHERE id > %d ORDER BY id LIMIT %d", $lastId, $limit)); $_emotions = $_categorys = $_search = array(); while ($row = $srcDb->fetch_array($_query)) { $nextId = $row['id'];
function generateEmptyGallery($arrayOfImages, $arrayOfFiles, $jsonImageDimensions, $luxGalleryTitle) { $numberOfImages = count($arrayOfImages); echo '<div class="lux-gallery">'; echo '<div class="lux-gallery-title-div">'; echo '<h1 class="lux-gallery-title">', $luxGalleryTitle, '</h1>'; echo '</div>'; echo '<div class="lux-subcontainer">'; for ($i = 0; $i < $numberOfImages; $i++) { echo '<div class="lux-div">'; echo '<div class="lux-subdiv">'; echo '<a class="lux-link" href="', LUXGALLERYFOLDER, '/', $arrayOfFiles[$i], '">'; echo '<img id="lux-count_', $i, '" class="lux-thumb" src="', LUXROOT, '/assets/', LUXLOADING, '">'; echo '</a>'; echo '<p class="lux-title">', $arrayOfImages[$i], '</p>'; echo '</div>'; echo '</div>'; } //end foreach echo '</div>'; transferData($arrayOfImages, $arrayOfFiles, $jsonImageDimensions); //Call transferData ( step 3 ) echo '</div>'; }