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 Releases
CMS Releases
[REL] RevCMS Edit [Habulous Theme]
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="Logic" data-source="post: 173875" data-attributes="member: 12691"><p>Thanks to my friend, he helped me secure the delnews2.php. Replace your hk/delnews2.html with the below code:</p><p> </p><p>[CODE]</p><p><!doctype html></p><p><html lang="en"></p><p> </p><p><head></p><p> <meta charset="utf-8"></p><p> <title>Adminity - Delete News</title></p><p> <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/hk/favicon.gif"></p><p> <!---CSS Files--></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/hk/css/master.css"></p><p> <!---jQuery Files--></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/jquery-1.7.1.min.js"></script></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/jquery-ui-1.8.17.min.js"></script></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/styler.js"></script></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/jquery.tipTip.js"></script></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/colorpicker.js"></script></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/sticky.full.js"></script></p><p> <script src="{url}/app/tpl/skins/{skin}/hk/js/global.js"></script></p><p> <!---Fonts--></p><p> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'></p><p> <!--[if lt IE 9]></p><p> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script></p><p> <![endif]--></p><p></head></p><p><body></p><p> </p><p> <!--- HEADER --></p><p> </p><p> <?php include_once('inc/header.html'); ?></p><p> </p><p> <!--- CONTENT AREA --></p><p> </p><p> <center></p><p> <div id="content_container"></p><p> </p><p> <div id="content"></p><p> <!-- insert the page content here --></p><p> <br /> <?php</p><p> </p><p> include_once 'databaseconfig.php';</p><p> </p><p> if ( isset( $_POST['id'] ) )</p><p> {</p><p> </p><p> // clean your input</p><p> $news_id = mysql_real_escape_string($_POST['id']);</p><p> $query = mysql_query("SELECT `id` FROM `cms_news` WHERE `id` = '" . $news_id . "'");</p><p> </p><p> // check if the news id even exists</p><p> if ( mysql_num_rows( $query ) > 0 )</p><p> {</p><p> </p><p> mysql_query("DELETE FROM `cms_news` WHERE `id` = '" . $news_id . "'");</p><p> echo "News article deleted";</p><p> </p><p> }</p><p> else</p><p> {</p><p> </p><p> echo "News article doesn't exist.";</p><p> </p><p> }</p><p> </p><p> }</p><p> else</p><p> {</p><p> </p><p> echo "Missing news article ID.";</p><p> </p><p> }</p><p>?></p><p> </p><p></center></p><p><?php include_once('inc/footer.html'); ?></p><p>[/CODE]</p><p> </p><p>UPDATE: Here's the entire HK I secured all the "delete" pages.</p><p> </p><p>Download: <a href="https://mega.co.nz/#!2Zww2Lja!G0L8YhyWvRraz_VePRQnmA5UfbRvOBvt_jogrwCHln0" target="_blank">https://mega.co.nz/#!2Zww2Lja!G0L8YhyWvRraz_VePRQnmA5UfbRvOBvt_jogrwCHln0</a></p><p> </p><p>Code snippet above.</p></blockquote><p></p>
[QUOTE="Logic, post: 173875, member: 12691"] Thanks to my friend, he helped me secure the delnews2.php. Replace your hk/delnews2.html with the below code: [CODE] <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Adminity - Delete News</title> <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/hk/favicon.gif"> <!---CSS Files--> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/hk/css/master.css"> <!---jQuery Files--> <script src="{url}/app/tpl/skins/{skin}/hk/js/jquery-1.7.1.min.js"></script> <script src="{url}/app/tpl/skins/{skin}/hk/js/jquery-ui-1.8.17.min.js"></script> <script src="{url}/app/tpl/skins/{skin}/hk/js/styler.js"></script> <script src="{url}/app/tpl/skins/{skin}/hk/js/jquery.tipTip.js"></script> <script src="{url}/app/tpl/skins/{skin}/hk/js/colorpicker.js"></script> <script src="{url}/app/tpl/skins/{skin}/hk/js/sticky.full.js"></script> <script src="{url}/app/tpl/skins/{skin}/hk/js/global.js"></script> <!---Fonts--> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <!--- HEADER --> <?php include_once('inc/header.html'); ?> <!--- CONTENT AREA --> <center> <div id="content_container"> <div id="content"> <!-- insert the page content here --> <br /> <?php include_once 'databaseconfig.php'; if ( isset( $_POST['id'] ) ) { // clean your input $news_id = mysql_real_escape_string($_POST['id']); $query = mysql_query("SELECT `id` FROM `cms_news` WHERE `id` = '" . $news_id . "'"); // check if the news id even exists if ( mysql_num_rows( $query ) > 0 ) { mysql_query("DELETE FROM `cms_news` WHERE `id` = '" . $news_id . "'"); echo "News article deleted"; } else { echo "News article doesn't exist."; } } else { echo "Missing news article ID."; } ?> </center> <?php include_once('inc/footer.html'); ?> [/CODE] UPDATE: Here's the entire HK I secured all the "delete" pages. Download: [url]https://mega.co.nz/#!2Zww2Lja!G0L8YhyWvRraz_VePRQnmA5UfbRvOBvt_jogrwCHln0[/url] Code snippet above. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[REL] RevCMS Edit [Habulous Theme]
Top