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
bit of help much appreceiated
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="davidcollins2k8" data-source="post: 128415" data-attributes="member: 7045"><p>on this cms there isnt one :s there to files called vars.php but no where to put ip</p><p> </p><p><?php</p><p> </p><p>if (!defined('IN_HK') || !IN_HK)</p><p>{</p><p>exit;</p><p>}</p><p> </p><p>if (!HK_LOGGED_IN || !$users->hasFuse(USER_ID, 'fuse_admin'))</p><p>{</p><p>exit;</p><p>}</p><p> </p><p>if (isset($_POST['edit-no']))</p><p>{</p><p>dbquery("UPDATE external_variables SET skey = '" . filter($_POST['key']) . "', sval = '" . filter($_POST['value']). "' WHERE skey = '" . filter($_POST['edit-no']) . "' LIMIT 1");</p><p>}</p><p> </p><p>if (isset($_POST['newkey']))</p><p>{</p><p>dbquery("INSERT INTO external_variables (skey,sval) VALUES ('" . filter($_POST['newkey']) . "','" . filter($_POST['newval']) . "')");</p><p>}</p><p> </p><p>if (isset($_GET['doDel']))</p><p>{</p><p>dbquery("DELETE FROM external_variables WHERE skey = '" . filter($_GET['doDel']) . "' LIMIT 1");</p><p>fMessage('ok', 'Key removed.');</p><p>header("Location: index.php?_cmd=vars");</p><p>exit;</p><p>}</p><p> </p><p>require_once "top.php";</p><p> </p><p>echo '<h1>External variables (overrides)</h1>';</p><p>echo '<p>This tool can be used to override external variables keys.</p><br />';</p><p> </p><p>echo '<a href="<a href="http://hotel-uk.habbo.com/gamedata/external?id=external_variables" target="_blank">http://hotel-uk.habbo.com/gamedata/external?id=external_variables</a>" id="">Show Habbo\'s external variables</a>';</p><p> </p><p>echo '<table border="1" width="100%">';</p><p>echo '<thead>';</p><p>echo '<tr>';</p><p>echo '<td>Key</td>';</p><p>echo '<td>Value</td>';</p><p>echo '<td>Controls</td>';</p><p>echo '</tr>';</p><p> </p><p>$get = dbquery("SELECT * FROM external_variables");</p><p> </p><p>while ($text = mysql_fetch_assoc($get))</p><p>{</p><p>echo '<tr><form method="post">';</p><p>echo '<input type="hidden" name="edit-no" value="' . clean($text['skey']) . '">';</p><p>echo '<td><input type="text" style="width: 100%; padding: 10px; font-size: 115%;" name="key" value="' . clean($text['skey']) . '"></td>';</p><p>echo '<td><textarea style="width: 100%; height: 100%;" name="value">' . clean($text['sval']) . '</textarea></td>';</p><p>echo '<td><center><input type="submit" value="Update">&nbsp;<input type="button" value="Delete" onclick="window.location = \'index.php?_cmd=vars&doDel=' . $text['skey'] . '\';"></center></td>';</p><p>echo '</form></tr>';</p><p>}</p><p> </p><p>echo '<tr><form method="post">';</p><p>echo '<td><input type="text" style="width: 100%; padding: 10px; font-size: 115%;" name="newkey"></td>';</p><p>echo '<td><textarea name="newval" style="width: 100%; height: 100%;"></textarea>';</p><p>echo '<td><center><input type="submit" value="Add">';</p><p>echo '</form></tr>';</p><p> </p><p>echo '</thead>';</p><p>echo '</table>';</p><p> </p><p>require_once "bottom.php";</p><p> </p><p>?></p></blockquote><p></p>
[QUOTE="davidcollins2k8, post: 128415, member: 7045"] on this cms there isnt one :s there to files called vars.php but no where to put ip <?php if (!defined('IN_HK') || !IN_HK) { exit; } if (!HK_LOGGED_IN || !$users->hasFuse(USER_ID, 'fuse_admin')) { exit; } if (isset($_POST['edit-no'])) { dbquery("UPDATE external_variables SET skey = '" . filter($_POST['key']) . "', sval = '" . filter($_POST['value']). "' WHERE skey = '" . filter($_POST['edit-no']) . "' LIMIT 1"); } if (isset($_POST['newkey'])) { dbquery("INSERT INTO external_variables (skey,sval) VALUES ('" . filter($_POST['newkey']) . "','" . filter($_POST['newval']) . "')"); } if (isset($_GET['doDel'])) { dbquery("DELETE FROM external_variables WHERE skey = '" . filter($_GET['doDel']) . "' LIMIT 1"); fMessage('ok', 'Key removed.'); header("Location: index.php?_cmd=vars"); exit; } require_once "top.php"; echo '<h1>External variables (overrides)</h1>'; echo '<p>This tool can be used to override external variables keys.</p><br />'; echo '<a href="[url]http://hotel-uk.habbo.com/gamedata/external?id=external_variables[/url]" id="">Show Habbo\'s external variables</a>'; echo '<table border="1" width="100%">'; echo '<thead>'; echo '<tr>'; echo '<td>Key</td>'; echo '<td>Value</td>'; echo '<td>Controls</td>'; echo '</tr>'; $get = dbquery("SELECT * FROM external_variables"); while ($text = mysql_fetch_assoc($get)) { echo '<tr><form method="post">'; echo '<input type="hidden" name="edit-no" value="' . clean($text['skey']) . '">'; echo '<td><input type="text" style="width: 100%; padding: 10px; font-size: 115%;" name="key" value="' . clean($text['skey']) . '"></td>'; echo '<td><textarea style="width: 100%; height: 100%;" name="value">' . clean($text['sval']) . '</textarea></td>'; echo '<td><center><input type="submit" value="Update"> <input type="button" value="Delete" onclick="window.location = \'index.php?_cmd=vars&doDel=' . $text['skey'] . '\';"></center></td>'; echo '</form></tr>'; } echo '<tr><form method="post">'; echo '<td><input type="text" style="width: 100%; padding: 10px; font-size: 115%;" name="newkey"></td>'; echo '<td><textarea name="newval" style="width: 100%; height: 100%;"></textarea>'; echo '<td><center><input type="submit" value="Add">'; echo '</form></tr>'; echo '</thead>'; echo '</table>'; require_once "bottom.php"; ?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
bit of help much appreceiated
Top