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
Avatar / clothing not showing / tried fix
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="NotoriousJameson" data-source="post: 364137" data-attributes="member: 65480"><p>[CODE]if(!isset($_SESSION["longstory"]))</p><p>{</p><p> header("Location: ".$_CONFIG['hotel']['url']."/ase/news");</p><p> exit;</p><p>}</p><p></p><p>if(isset($_POST["proceed"]))</p><p>{</p><p> $author = mysql_result(mysql_query("SELECT username FROM users WHERE id = '".$_SESSION['user']['id']."' LIMIT 1"), 0);</p><p> mysql_query("INSERT INTO cms_news (title,shortstory,longstory,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());</p><p> unset($_SESSION["title"], $_SESSION["shortstory"], $_SESSION["longstory"]);</p><p> header("Location: ".$_CONFIG['hotel']['url']."/ase/");</p><p> exit;</p><p>}</p><p> echo '<center><b>It\'s time to choose the image for your story. Choose one from the drop down list and click "Check Image"';</p><p> echo '<form method="post">';</p><p> echo '<br />';</p><p> echo '<select name="topstory" id="topstory" style="font-size: 14px;"';</p><p> </p><p> if ($handle = opendir('ts/'))</p><p> { </p><p> while (false !== ($file = readdir($handle)))</p><p> {</p><p> if ($file == '.' || $file == '..')</p><p> {</p><p> continue;</p><p> } </p><p> </p><p> echo '<option value="' . $file . '"';</p><p> </p><p> if (isset($_POST['topstory']) && $_POST['topstory'] == $file)</p><p> {</p><p> echo ' selected';</p><p> }</p><p> </p><p> echo '>' . $file . '</option>';</p><p> }</p><p> }</p><p></p><p> echo '</select>';</p><p> </p><p> if(isset($_POST["check"]))</p><p> {</p><p> echo '<br /> <br /> <input type="submit" value=" Check image " name="check" /> <br /><br />';</p><p> echo '<font size="3">Topstory image<br /></font><img src="ts/' . $_POST["topstory"] . '" align="right />';</p><p> echo '</center> <align="right"> <br /> <br /> <input type="submit" value=" Proceed (use image) " name="proceed" /> <br />';</p><p> echo '</form>';</p><p> }</p><p> else</p><p> {</p><p> echo '<br /> <br /> <input type="submit" value=" Check image " name="check" /> <br />';</p><p> echo "</form>";</p><p> }</p><p></p><p>?>[/CODE]</p></blockquote><p></p>
[QUOTE="NotoriousJameson, post: 364137, member: 65480"] [CODE]if(!isset($_SESSION["longstory"])) { header("Location: ".$_CONFIG['hotel']['url']."/ase/news"); exit; } if(isset($_POST["proceed"])) { $author = mysql_result(mysql_query("SELECT username FROM users WHERE id = '".$_SESSION['user']['id']."' LIMIT 1"), 0); mysql_query("INSERT INTO cms_news (title,shortstory,longstory,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error()); unset($_SESSION["title"], $_SESSION["shortstory"], $_SESSION["longstory"]); header("Location: ".$_CONFIG['hotel']['url']."/ase/"); exit; } echo '<center><b>It\'s time to choose the image for your story. Choose one from the drop down list and click "Check Image"'; echo '<form method="post">'; echo '<br />'; echo '<select name="topstory" id="topstory" style="font-size: 14px;"'; if ($handle = opendir('ts/')) { while (false !== ($file = readdir($handle))) { if ($file == '.' || $file == '..') { continue; } echo '<option value="' . $file . '"'; if (isset($_POST['topstory']) && $_POST['topstory'] == $file) { echo ' selected'; } echo '>' . $file . '</option>'; } } echo '</select>'; if(isset($_POST["check"])) { echo '<br /> <br /> <input type="submit" value=" Check image " name="check" /> <br /><br />'; echo '<font size="3">Topstory image<br /></font><img src="ts/' . $_POST["topstory"] . '" align="right />'; echo '</center> <align="right"> <br /> <br /> <input type="submit" value=" Proceed (use image) " name="proceed" /> <br />'; echo '</form>'; } else { echo '<br /> <br /> <input type="submit" value=" Check image " name="check" /> <br />'; echo "</form>"; } ?>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Avatar / clothing not showing / tried fix
Top