Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Can anyone help me with my cms quick??
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TropicalSkittles" data-source="post: 69186" data-attributes="member: 10011"><p>[PHP]<?php</p><p> </p><p>// error_reporting(0);</p><p>session_start();</p><p> </p><p>####################################</p><p># FoloCMS WAS CREATED BY X1M! #</p><p>####################################</p><p># I DONT DEMAND THAT YOU KEEP THE #</p><p># COPYRIGHT IN THE FOOTER, BUT I #</p><p># DO DEMAND THAT THIS NOTE IS KEPT #</p><p># IN THE SOURCE CODE. YOU CAN EDIT #</p><p># HOWEVER THE FUCK YOU WANT, JUST #</p><p># KEEP THIS NOTE. YOU MAY NOT RELE #</p><p># ASE AS YOUR OWN, THIS IS STILL #</p><p># MADE BY ME. -X1M! #</p><p>####################################</p><p> </p><p>/* This is the only thing you NEED to edit. */</p><p>$hotelOwner = "ShayF"; // Hotel Owner</p><p>$pageTitle = "Crane Hotel"; // Hotel Name</p><p>/* This is the weekly rare system. Edit every week. */</p><p>$weeklyRare = "Golden Nelly"; // The name of the weekly rare.</p><p>$weeklyRareId = "gold_elephant"; // The ID of the weekly rare, as written in buy_furni.</p><p>$weeklyRarePrice = "2500"; // The price of the weekly rare.</p><p>$useWeeklyRareSystem = 1; // If this is 1, the weekly rare system will be used.</p><p>/* You don't need to edit this. */</p><p>$refillCredits = 3000; // How many credits a user can receive when refilling.</p><p>$refillCreditsBelow = 1500; // If the user has less than this amount, *he can refill them.</p><p>/* DO NOT EDIT THIS. */</p><p>$StartingCredits = file_get_contents("Server/database/new_habbo/credits.txt"); // Attracts visitors into registering.</p><p> </p><p>/* Setting and Getting user settings. */</p><p>function setValue($username, $setting, $value) {</p><p>$fh = fopen("Server/database/habbos/".$username."/" . $setting . ".txt", "w") or die("ERROR WHEN EDITING ".$setting." SETTING FOR USER ".$username.".");</p><p>fwrite($fh, $value);</p><p>fclose($fh);</p><p>}</p><p> </p><p>/* Updating the values. */</p><p>function updateValues($username) {</p><p>$_SESSION['user_username'] = file_get_contents("Server/database/habbos/".$username."/name.txt");</p><p>$_SESSION['user_password'] = file_get_contents("Server/database/habbos/".$username."/pass.txt");</p><p>$_SESSION['user_credits'] = file_get_contents("Server/database/habbos/".$username."/credits.txt");</p><p>$_SESSION['user_hcdays'] = file_get_contents("Server/database/habbos/".$username."/hcdays.txt");</p><p>$_SESSION['user_email'] = file_get_contents("Server/database/habbos/".$username."/email.txt");</p><p>$_SESSION['user_motto'] = file_get_contents("Server/database/habbos/".$username."/mission.txt");</p><p>$_SESSION['user_consolemotto'] = file_get_contents("Server/database/habbos/".$username."/consolemission.txt");</p><p>$_SESSION['user_sex'] = file_get_contents("Server/database/habbos/".$username."/sex.txt");</p><p>$_SESSION['user_hand'] = file_get_contents("Server/database/habbos/".$username."/hand.txt");</p><p>$_SESSION['user_tickets'] = file_get_contents("Server/database/habbos/".$username."/tickets.txt");</p><p>$_SESSION['user_film'] = file_get_contents("Server/database/habbos/".$username."/film.txt");</p><p>$_SESSION['user_badges'] = file_get_contents("Server/database/habbos/".$username."/badges.txt");</p><p>$_SESSION['user_badgeonoff'] = file_get_contents("Server/database/habbos/".$username."/badgeonoff.txt");</p><p>$_SESSION['user_rank'] = file_get_contents("Server/database/habbos/".$username."/rank.txt");</p><p>$_SESSION['user_curbadge'] = file_get_contents("Server/database/habbos/".$username."/curbadge.txt");</p><p>$_SESSION['user_friendlist'] = file_get_contents("Server/database/habbos/".$username."/friendlist.txt");</p><p>}</p><p> </p><p>/* Logging out the user by deleteing the session. */</p><p>function logout() {</p><p>unset($_SESSION['isLoggedIn']);</p><p>}</p><p> </p><p>/* Login script */</p><p>If(isset($_GET['login']) && isset($_POST['login_name']) && isset($_POST['login_pass'])) {</p><p>if (file_exists("Server/database/habbos/".$_POST['login_name'])) {</p><p>if($_POST['login_pass'] == file_get_contents("Server/database/habbos/".$_POST['login_name']."/pass.txt")) {</p><p>$_SESSION['isLoggedIn'] = 1;</p><p>updateValues($_POST['login_name']);</p><p>echo "<script>alert('Welcome back, ".$_POST['login_name']."!');</script>";</p><p>}else{</p><p>echo "<script>alert('Invalid password or username specified.');</script>";</p><p>}</p><p>}else{</p><p>echo "<script>alert('Invalid password or username specified.');</script>";</p><p>}</p><p>}</p><p> </p><p>/* Logout script. */</p><p>If(isset($_GET['logout']) && $_SESSION['isLoggedIn'] == 1) {</p><p>logout();</p><p>}</p><p> </p><p>/* Update motto script. */</p><p>if(isset($_GET['motto']) && isset($_POST['usr_motto']) && $_SESSION['isLoggedIn'] == 1) {</p><p>setValue($_SESSION['user_username'], "mission", $_POST['usr_motto']);</p><p>// setValue($_SESSION['user_username'], "consolemission", $_POST['cnsl_motto']);</p><p>echo "<script>alert('Motto updated!');</script>";</p><p>updateValues($_SESSION['user_username']);</p><p>}</p><p> </p><p>/* Refill credits to a specified amount when below a specified amount. */</p><p>if(isset($_GET['refill']) && $_SESSION['isLoggedIn'] == 1) {</p><p>if($_SESSION['credits'] < $refillCreditsBelow) {</p><p>$giveCredits = $refillCredits - $_SESSION['credits'];</p><p>setValue($_SESSION['user_username'], "credits", $giveCredits);</p><p>updateValues($_SESSION['user_username']);</p><p>echo "<script>alert('Your credits have been refilled, you we're given ".$giveCredits." credits!');</script>";</p><p>}else{</p><p>echo "<script>alert('You can only refill your credits when you have an amount below ".$refillCredits."!');</script>";</p><p>}</p><p>}</p><p> </p><p>/* News system script. Edits the file with the feed. */</p><p>if(isset($_GET['editnews']) && $_SESSION['isLoggedIn'] == 1 && isset($_POST['news_content']) && $_SESSION['user_rank'] == "admin") {</p><p>$fh = fopen("Server/database/news_feed.txt", "w") or die("ERROR WHEN EDITING NEWS FEED.");</p><p>fwrite($fh, $_POST['news_content']);</p><p>fclose($fh);</p><p>}</p><p> </p><p>/* Page Visits Counter */</p><p>$newNumber = file_get_contents("Server/database/visits.txt") + 1;</p><p>$fh = fopen("Server/database/visits.txt", "w") or die("COULNDT OPEN VISITOR COUNTER.");</p><p>fwrite($fh, $newNumber);</p><p>fclose($fh);</p><p> </p><p>/* Check for banned people and hold them banned. */</p><p>if($_SESSION['isLoggedIn'] == 1) {</p><p>if(file_exists('server/database/user_bans/'.$_SESSION['user_username'].'.txt')) {</p><p>setCookie("isBanned", "true", "Never");</p><p>}</p><p>}</p><p>if($_COOKIE['isBanned'] == "true") {</p><p>echo "<script>alert('You have been banned!');</script>";</p><p>exit();</p><p>}</p><p> </p><p>/* HC, Tickets and Films can be bought on Homepage. */</p><p>if(isset($_GET['buyhc']) && $_SESSION['isLoggedIn'] == 1) {</p><p>if($_SESSION['user_credits'] >= 50) {</p><p>$newHC = $_SESSION['user_hcdays'] + 100;</p><p>$newCredits = $_SESSION['user_credits'] - 50;</p><p>setValue($_SESSION['user_username'], "hcdays", $newHC);</p><p>setValue($_SESSION['user_username'], "credits", $newCredits);</p><p>echo "<script>alert('You have bought 100 days of HC membership!');</script>";</p><p>}else{</p><p>echo "<script>alert('You dont have enough credits to buy HC membership.');</script>";</p><p>}</p><p>}</p><p>if(isset($_GET['buyfilm']) && $_SESSION['isLoggedIn'] == 1) {</p><p>if($_SESSION['user_credits'] >= 20) {</p><p>$newFilm = $_SESSION['user_film'] + 15;</p><p>$newCredits = $_SESSION['user_credits'] - 20;</p><p>setValue($_SESSION['user_username'], "film", $newFilm);</p><p>setValue($_SESSION['user_username'], "credits", $newCredits);</p><p>echo "<script>alert('You have bought 15 films!');</script>";</p><p>}else{</p><p>echo "<script>alert('You dont have enough credits to buy films.');</script>";</p><p>}</p><p>}</p><p>if(isset($_GET['buytickets']) && $_SESSION['isLoggedIn'] == 1) {</p><p>if($_SESSION['user_credits'] >= 35) {</p><p>$newTickets = $_SESSION['user_tickets'] + 20;</p><p>$newCredits = $_SESSION['user_credits'] - 35;</p><p>setValue($_SESSION['user_username'], "tickets", $newTickets);</p><p>setValue($_SESSION['user_username'], "credits", $newCredits);</p><p>echo "<script>alert('You have bought 20 tickets!');</script>";</p><p>}else{</p><p>echo "<script>alert('You dont have enough credits to buy tickets.');</script>";</p><p>}</p><p>}</p><p> </p><p>/* Buying the weekly rare. */</p><p>if(isset($_GET['buyrare']) && $_SESSION['isLoggedIn'] == 1 && $useWeeklyRareSystem == 1) {</p><p>if($_SESSION['user_credits'] >= $weeklyRarePrice) {</p><p>$newHand = $_SESSION['user_hand'] . $weeklyRareId . ";";</p><p>$newCredits = $_SESSION['user_credits'] - $weeklyRarePrice;</p><p>setValue($_SESSION['user_username'], "hand", $newHand);</p><p>setValue($_SESSION['user_username'], "credits", $newCredits);</p><p>echo "<script>alert('You have bought a ".$weeklyRare." for ".$weeklyRarePrice."!');</script>";</p><p>}else{</p><p>echo "<script>alert('You dont have enough credits to buy the weekly rare..');</script>";</p><p>}</p><p>}</p><p>##############################################################################################</p><p>?></p><p><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></p><p> </p><p> <title><?php print $pageTitle; ?> - Powered by goodCMS</title></p><p> </p><p> </p><p> <link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon"></p><p> <style></p><p> <?php include "Style.css"; ?></p><p> </style></p><p> <script></p><p> function openClient() {</p><p> window.location = "client.php";</p><p> }</p><p> </p><p>function Hide(id) {</p><p>document.getElementById(id).setAttribute("class", "hide");</p><p>}</p><p>function Show(id) {</p><p>document.getElementById(id).setAttribute("class", "show");</p><p>}</p><p> </script></p><p></head></p><p><body></p><p> <center></p><p> <table id="navigation_overlay"></p><p> <tbody><tr></p><p> <td id="navigation_banner"></td></p><p> <td></p><p> <!-- MENU --><a href="client.php"><input type="button" value="Client"></a>&nbsp;<?php if($_SESSION['isLoggedIn']): updateValues($_SESSION['user_username']); ?><a href="?logout"><input type="button" value="Logout"></a><?php endif; ?></p><p> <div id="navigation_right"></p><p> <center></p><p> <strong><!-- USERS ONLINE -->0 </strong> users online </center></p><p> </div></p><p> </td></p><p> </tr></p><p> </tbody></table><br> <table id="overview_overlay"></p><p> <tbody><tr id="overview_verticaltop"></p><p> <td></p><p> <div id="overview_overlay_1"></p><p> <!-- BOX 3: USER INFORMATION --></p><p> <?php if($_SESSION['isLoggedIn'] == 1): ?></p><p> <b id="general_upper"><!-- USERNAME --><?php print $_SESSION['user_username']; ?></b> <span style="color: gray; font-size: 12px;">(<?php print $_SESSION['user_rank']; ?>)</span><br></p><p> <br><b>Mission: </b><div style="height:3px;"></div></p><p> <form method="post" action="?motto"></p><p> <input type="text" name="usr_motto" value="<?php print $_SESSION['user_motto']; ?>" style="margin-right: 5px; width: 175px;"></p><p> <!-- <input type="text" name="cnsl_motto" value="<?php print $_SESSION['user_motto']; ?>" style="margin-right: 5px; width: 175px;"> --></p><p> <input type="submit" value="Update" name="hidden_motto" style="width: 65px;"></p><p> </form></p><p> <br></p><p> <input onClick="openClient();" type="submit" value="Check in!" style="margin-right: 5px; width: 249px;"></p><p> <br></p><p> <br><div id="overview_credits"></div><b></p><p> <!-- CREDITS --><?php print $_SESSION['user_credits']; ?></b> <?php if($_SESSION['user_credits'] < $refillCreditsBelow): ?><a href="?refill">refill</a> <?php endif; ?>credits&nbsp;-&nbsp;<b></p><p> <!-- HC --><?php print $_SESSION['user_hcdays']; ?></b> HC days&nbsp;-&nbsp;<b></p><p> <!-- FILMS --><?php print $_SESSION['user_film']; ?></b> films&nbsp;-&nbsp;<b></p><p> <!-- TICKETS --><?php print $_SESSION['user_tickets']; ?></b> tickets</p><p> <?php else: ?></p><p> You are not logged in, please do so. --------------------></p><p> <?php endif; ?></p><p> </div></p><p> </p><p> <div id="overview_overlay_1" style="margin-top: 20px;"></p><p> Registered Users: <?PHP PRINT file_get_contents("Server/Database/habbos/count.txt"); ?><br /></p><p> Created rooms: <?PHP PRINT file_get_contents("Server/Database/privaterooms/count.txt"); ?><br /></p><p> Furniture bought: <?PHP PRINT file_get_contents("Server/Database/furni/count.txt"); ?><br /></p><p> Total Page Visits: <?PHP PRINT file_get_contents("Server/database/visits.txt"); ?><br /></p><p> <?php if($_SESSION['isLoggedIn'] == 1): ?></p><p> <div id="purchases" class="hide"></p><p> <!-- HC PURCHASE --></p><p> <a href="?buyhc"><input type="button" value="Buy 100 days HC for 50 credits."></a><br /><br /></p><p> <!-- TICKETS PURCHASE --></p><p> <a href="?buytickets"><input type="button" value="Buy 20 tickets for 35 credits."></a><br /><br /></p><p> <!-- FILM PURCHASE --></p><p> <a href="?buyfilm"><input type="button" value="Buy 15 films for 20 credits."></a><br /><br /></p><p> <!-- WEEKLY RARE PURCHASE --></p><p> <a href="?buyrare"><input type="button" value="Buy the weekly rare, a <?php print $weeklyRare; ?> for <?php print $weeklyRarePrice; ?> credits."></a><br /></p><p> </div></p><p> <a href="#" onClick="Hide('purchases');">Hide</a>/<a href="#" onClick="Show('purchases');">Show</a> Purchases.</p><p> <?php endif; ?></p><p> </div> </p><p> </td></p><p> </p><p> <td></p><p> <div id="overview_overlay_2"></p><p> <!-- BOX 2: LOGIN --></p><p> <?php if($_SESSION['isLoggedIn'] != 1): ?></p><p> <form method="post" action="?login"></p><p> <B id="general_upper">Username:</b> <input type="text" onClick="this.value=''" name="login_name" value="..."><br ><br ></p><p> <b id="general_upper">Password:</b> <input type="password" onClick="this.value=''" name="login_pass" value="..."><br ><br ></p><p> <input type="submit" value="Login!" name="hidden_motto" style="width: 65px;"></p><p> </form></p><p> <b id="general_upper">Register now, and get <u><?php print $StartingCredits; ?></u> credits on the <a href="client.php">go</a>!</p><p> <?php else: ?></p><p> <b> News and Information </b><br /></p><p> <?php if($_SESSION['user_rank'] == "admin"): ?></p><p> <form method="post" action="?editnews"></p><p> <?php endif; ?></p><p> <textarea style="height: <?php if($_SESSION['user_rank'] == "admin"): ?>175px<?php else: ?>209px<?php endif; ?>;" onClick="document.getElementById('focusME').focus();" name="news_content"<?php if($_SESSION['user_rank'] != "admin"): ?> readonly="true"<?php endif; ?>></p><p><?php echo str_replace("</textarea>", "&lt;/textarea&gt;", file_get_contents("Server/database/news_feed.txt")); ?></p><p> </textarea><br /><br /></p><p> <?php if($_SESSION['user_rank'] == "admin"): ?></p><p> <input type="submit" value="Update feed!" style="width: 260;"></p><p> </form></p><p> <?php endif; ?></p><p> <?php endif; ?></p><p> </div></p><p> </td></p><p> </tr></p><p> </tbody></table><br></p><p> </p><p> <br><div id="general_footer" style="border: 1px solid #CCC; background-color: white; padding 3px 3px 3px 3px;"></p><p> Copyright &copy; 2010 - 2011 <?php print $CraneHotel all rights reserved; ?> [Powerd By FoloCmsCMS]</p><p> </div></p><p></body></html>[/PHP]</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p>That is the script! (PHP)</p></blockquote><p></p>
[QUOTE="TropicalSkittles, post: 69186, member: 10011"] [PHP]<?php // error_reporting(0); session_start(); #################################### # FoloCMS WAS CREATED BY X1M! # #################################### # I DONT DEMAND THAT YOU KEEP THE # # COPYRIGHT IN THE FOOTER, BUT I # # DO DEMAND THAT THIS NOTE IS KEPT # # IN THE SOURCE CODE. YOU CAN EDIT # # HOWEVER THE FUCK YOU WANT, JUST # # KEEP THIS NOTE. YOU MAY NOT RELE # # ASE AS YOUR OWN, THIS IS STILL # # MADE BY ME. -X1M! # #################################### /* This is the only thing you NEED to edit. */ $hotelOwner = "ShayF"; // Hotel Owner $pageTitle = "Crane Hotel"; // Hotel Name /* This is the weekly rare system. Edit every week. */ $weeklyRare = "Golden Nelly"; // The name of the weekly rare. $weeklyRareId = "gold_elephant"; // The ID of the weekly rare, as written in buy_furni. $weeklyRarePrice = "2500"; // The price of the weekly rare. $useWeeklyRareSystem = 1; // If this is 1, the weekly rare system will be used. /* You don't need to edit this. */ $refillCredits = 3000; // How many credits a user can receive when refilling. $refillCreditsBelow = 1500; // If the user has less than this amount, *he can refill them. /* DO NOT EDIT THIS. */ $StartingCredits = file_get_contents("Server/database/new_habbo/credits.txt"); // Attracts visitors into registering. /* Setting and Getting user settings. */ function setValue($username, $setting, $value) { $fh = fopen("Server/database/habbos/".$username."/" . $setting . ".txt", "w") or die("ERROR WHEN EDITING ".$setting." SETTING FOR USER ".$username."."); fwrite($fh, $value); fclose($fh); } /* Updating the values. */ function updateValues($username) { $_SESSION['user_username'] = file_get_contents("Server/database/habbos/".$username."/name.txt"); $_SESSION['user_password'] = file_get_contents("Server/database/habbos/".$username."/pass.txt"); $_SESSION['user_credits'] = file_get_contents("Server/database/habbos/".$username."/credits.txt"); $_SESSION['user_hcdays'] = file_get_contents("Server/database/habbos/".$username."/hcdays.txt"); $_SESSION['user_email'] = file_get_contents("Server/database/habbos/".$username."/email.txt"); $_SESSION['user_motto'] = file_get_contents("Server/database/habbos/".$username."/mission.txt"); $_SESSION['user_consolemotto'] = file_get_contents("Server/database/habbos/".$username."/consolemission.txt"); $_SESSION['user_sex'] = file_get_contents("Server/database/habbos/".$username."/sex.txt"); $_SESSION['user_hand'] = file_get_contents("Server/database/habbos/".$username."/hand.txt"); $_SESSION['user_tickets'] = file_get_contents("Server/database/habbos/".$username."/tickets.txt"); $_SESSION['user_film'] = file_get_contents("Server/database/habbos/".$username."/film.txt"); $_SESSION['user_badges'] = file_get_contents("Server/database/habbos/".$username."/badges.txt"); $_SESSION['user_badgeonoff'] = file_get_contents("Server/database/habbos/".$username."/badgeonoff.txt"); $_SESSION['user_rank'] = file_get_contents("Server/database/habbos/".$username."/rank.txt"); $_SESSION['user_curbadge'] = file_get_contents("Server/database/habbos/".$username."/curbadge.txt"); $_SESSION['user_friendlist'] = file_get_contents("Server/database/habbos/".$username."/friendlist.txt"); } /* Logging out the user by deleteing the session. */ function logout() { unset($_SESSION['isLoggedIn']); } /* Login script */ If(isset($_GET['login']) && isset($_POST['login_name']) && isset($_POST['login_pass'])) { if (file_exists("Server/database/habbos/".$_POST['login_name'])) { if($_POST['login_pass'] == file_get_contents("Server/database/habbos/".$_POST['login_name']."/pass.txt")) { $_SESSION['isLoggedIn'] = 1; updateValues($_POST['login_name']); echo "<script>alert('Welcome back, ".$_POST['login_name']."!');</script>"; }else{ echo "<script>alert('Invalid password or username specified.');</script>"; } }else{ echo "<script>alert('Invalid password or username specified.');</script>"; } } /* Logout script. */ If(isset($_GET['logout']) && $_SESSION['isLoggedIn'] == 1) { logout(); } /* Update motto script. */ if(isset($_GET['motto']) && isset($_POST['usr_motto']) && $_SESSION['isLoggedIn'] == 1) { setValue($_SESSION['user_username'], "mission", $_POST['usr_motto']); // setValue($_SESSION['user_username'], "consolemission", $_POST['cnsl_motto']); echo "<script>alert('Motto updated!');</script>"; updateValues($_SESSION['user_username']); } /* Refill credits to a specified amount when below a specified amount. */ if(isset($_GET['refill']) && $_SESSION['isLoggedIn'] == 1) { if($_SESSION['credits'] < $refillCreditsBelow) { $giveCredits = $refillCredits - $_SESSION['credits']; setValue($_SESSION['user_username'], "credits", $giveCredits); updateValues($_SESSION['user_username']); echo "<script>alert('Your credits have been refilled, you we're given ".$giveCredits." credits!');</script>"; }else{ echo "<script>alert('You can only refill your credits when you have an amount below ".$refillCredits."!');</script>"; } } /* News system script. Edits the file with the feed. */ if(isset($_GET['editnews']) && $_SESSION['isLoggedIn'] == 1 && isset($_POST['news_content']) && $_SESSION['user_rank'] == "admin") { $fh = fopen("Server/database/news_feed.txt", "w") or die("ERROR WHEN EDITING NEWS FEED."); fwrite($fh, $_POST['news_content']); fclose($fh); } /* Page Visits Counter */ $newNumber = file_get_contents("Server/database/visits.txt") + 1; $fh = fopen("Server/database/visits.txt", "w") or die("COULNDT OPEN VISITOR COUNTER."); fwrite($fh, $newNumber); fclose($fh); /* Check for banned people and hold them banned. */ if($_SESSION['isLoggedIn'] == 1) { if(file_exists('server/database/user_bans/'.$_SESSION['user_username'].'.txt')) { setCookie("isBanned", "true", "Never"); } } if($_COOKIE['isBanned'] == "true") { echo "<script>alert('You have been banned!');</script>"; exit(); } /* HC, Tickets and Films can be bought on Homepage. */ if(isset($_GET['buyhc']) && $_SESSION['isLoggedIn'] == 1) { if($_SESSION['user_credits'] >= 50) { $newHC = $_SESSION['user_hcdays'] + 100; $newCredits = $_SESSION['user_credits'] - 50; setValue($_SESSION['user_username'], "hcdays", $newHC); setValue($_SESSION['user_username'], "credits", $newCredits); echo "<script>alert('You have bought 100 days of HC membership!');</script>"; }else{ echo "<script>alert('You dont have enough credits to buy HC membership.');</script>"; } } if(isset($_GET['buyfilm']) && $_SESSION['isLoggedIn'] == 1) { if($_SESSION['user_credits'] >= 20) { $newFilm = $_SESSION['user_film'] + 15; $newCredits = $_SESSION['user_credits'] - 20; setValue($_SESSION['user_username'], "film", $newFilm); setValue($_SESSION['user_username'], "credits", $newCredits); echo "<script>alert('You have bought 15 films!');</script>"; }else{ echo "<script>alert('You dont have enough credits to buy films.');</script>"; } } if(isset($_GET['buytickets']) && $_SESSION['isLoggedIn'] == 1) { if($_SESSION['user_credits'] >= 35) { $newTickets = $_SESSION['user_tickets'] + 20; $newCredits = $_SESSION['user_credits'] - 35; setValue($_SESSION['user_username'], "tickets", $newTickets); setValue($_SESSION['user_username'], "credits", $newCredits); echo "<script>alert('You have bought 20 tickets!');</script>"; }else{ echo "<script>alert('You dont have enough credits to buy tickets.');</script>"; } } /* Buying the weekly rare. */ if(isset($_GET['buyrare']) && $_SESSION['isLoggedIn'] == 1 && $useWeeklyRareSystem == 1) { if($_SESSION['user_credits'] >= $weeklyRarePrice) { $newHand = $_SESSION['user_hand'] . $weeklyRareId . ";"; $newCredits = $_SESSION['user_credits'] - $weeklyRarePrice; setValue($_SESSION['user_username'], "hand", $newHand); setValue($_SESSION['user_username'], "credits", $newCredits); echo "<script>alert('You have bought a ".$weeklyRare." for ".$weeklyRarePrice."!');</script>"; }else{ echo "<script>alert('You dont have enough credits to buy the weekly rare..');</script>"; } } ############################################################################################## ?> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><?php print $pageTitle; ?> - Powered by goodCMS</title> <link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon"> <style> <?php include "Style.css"; ?> </style> <script> function openClient() { window.location = "client.php"; } function Hide(id) { document.getElementById(id).setAttribute("class", "hide"); } function Show(id) { document.getElementById(id).setAttribute("class", "show"); } </script> </head> <body> <center> <table id="navigation_overlay"> <tbody><tr> <td id="navigation_banner"></td> <td> <!-- MENU --><a href="client.php"><input type="button" value="Client"></a> <?php if($_SESSION['isLoggedIn']): updateValues($_SESSION['user_username']); ?><a href="?logout"><input type="button" value="Logout"></a><?php endif; ?> <div id="navigation_right"> <center> <strong><!-- USERS ONLINE -->0 </strong> users online </center> </div> </td> </tr> </tbody></table><br> <table id="overview_overlay"> <tbody><tr id="overview_verticaltop"> <td> <div id="overview_overlay_1"> <!-- BOX 3: USER INFORMATION --> <?php if($_SESSION['isLoggedIn'] == 1): ?> <b id="general_upper"><!-- USERNAME --><?php print $_SESSION['user_username']; ?></b> <span style="color: gray; font-size: 12px;">(<?php print $_SESSION['user_rank']; ?>)</span><br> <br><b>Mission: </b><div style="height:3px;"></div> <form method="post" action="?motto"> <input type="text" name="usr_motto" value="<?php print $_SESSION['user_motto']; ?>" style="margin-right: 5px; width: 175px;"> <!-- <input type="text" name="cnsl_motto" value="<?php print $_SESSION['user_motto']; ?>" style="margin-right: 5px; width: 175px;"> --> <input type="submit" value="Update" name="hidden_motto" style="width: 65px;"> </form> <br> <input onClick="openClient();" type="submit" value="Check in!" style="margin-right: 5px; width: 249px;"> <br> <br><div id="overview_credits"></div><b> <!-- CREDITS --><?php print $_SESSION['user_credits']; ?></b> <?php if($_SESSION['user_credits'] < $refillCreditsBelow): ?><a href="?refill">refill</a> <?php endif; ?>credits - <b> <!-- HC --><?php print $_SESSION['user_hcdays']; ?></b> HC days - <b> <!-- FILMS --><?php print $_SESSION['user_film']; ?></b> films - <b> <!-- TICKETS --><?php print $_SESSION['user_tickets']; ?></b> tickets <?php else: ?> You are not logged in, please do so. --------------------> <?php endif; ?> </div> <div id="overview_overlay_1" style="margin-top: 20px;"> Registered Users: <?PHP PRINT file_get_contents("Server/Database/habbos/count.txt"); ?><br /> Created rooms: <?PHP PRINT file_get_contents("Server/Database/privaterooms/count.txt"); ?><br /> Furniture bought: <?PHP PRINT file_get_contents("Server/Database/furni/count.txt"); ?><br /> Total Page Visits: <?PHP PRINT file_get_contents("Server/database/visits.txt"); ?><br /> <?php if($_SESSION['isLoggedIn'] == 1): ?> <div id="purchases" class="hide"> <!-- HC PURCHASE --> <a href="?buyhc"><input type="button" value="Buy 100 days HC for 50 credits."></a><br /><br /> <!-- TICKETS PURCHASE --> <a href="?buytickets"><input type="button" value="Buy 20 tickets for 35 credits."></a><br /><br /> <!-- FILM PURCHASE --> <a href="?buyfilm"><input type="button" value="Buy 15 films for 20 credits."></a><br /><br /> <!-- WEEKLY RARE PURCHASE --> <a href="?buyrare"><input type="button" value="Buy the weekly rare, a <?php print $weeklyRare; ?> for <?php print $weeklyRarePrice; ?> credits."></a><br /> </div> <a href="#" onClick="Hide('purchases');">Hide</a>/<a href="#" onClick="Show('purchases');">Show</a> Purchases. <?php endif; ?> </div> </td> <td> <div id="overview_overlay_2"> <!-- BOX 2: LOGIN --> <?php if($_SESSION['isLoggedIn'] != 1): ?> <form method="post" action="?login"> <B id="general_upper">Username:</b> <input type="text" onClick="this.value=''" name="login_name" value="..."><br ><br > <b id="general_upper">Password:</b> <input type="password" onClick="this.value=''" name="login_pass" value="..."><br ><br > <input type="submit" value="Login!" name="hidden_motto" style="width: 65px;"> </form> <b id="general_upper">Register now, and get <u><?php print $StartingCredits; ?></u> credits on the <a href="client.php">go</a>! <?php else: ?> <b> News and Information </b><br /> <?php if($_SESSION['user_rank'] == "admin"): ?> <form method="post" action="?editnews"> <?php endif; ?> <textarea style="height: <?php if($_SESSION['user_rank'] == "admin"): ?>175px<?php else: ?>209px<?php endif; ?>;" onClick="document.getElementById('focusME').focus();" name="news_content"<?php if($_SESSION['user_rank'] != "admin"): ?> readonly="true"<?php endif; ?>> <?php echo str_replace("</textarea>", "</textarea>", file_get_contents("Server/database/news_feed.txt")); ?> </textarea><br /><br /> <?php if($_SESSION['user_rank'] == "admin"): ?> <input type="submit" value="Update feed!" style="width: 260;"> </form> <?php endif; ?> <?php endif; ?> </div> </td> </tr> </tbody></table><br> <br><div id="general_footer" style="border: 1px solid #CCC; background-color: white; padding 3px 3px 3px 3px;"> Copyright © 2010 - 2011 <?php print $CraneHotel all rights reserved; ?> [Powerd By FoloCmsCMS] </div> </body></html>[/PHP] That is the script! (PHP) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Can anyone help me with my cms quick??
Top