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 Tutorials
[TUT]Professional Styled Externals[/TUT]
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="TesoMayn" data-source="post: 51225" data-attributes="member: 8605"><p>I have no idea if this is posted or not, but I thought I'd share.</p><p>_____</p><p></p><p>This does not protect your externals or DCRs, it just makes it look cleaner and more professional in the source, and I use it because it is faster to write up than to type out the complete URL.</p><p>_____</p><p></p><p><u><strong>Requirements:</strong></u></p><ul> <li data-xf-list-type="ul">Must host own DCRs/Externals</li> <li data-xf-list-type="ul">PHP Support (If you have a hotel you have this, unless you use flat file)</li> </ul><p>_____</p><p></p><p>Create a file and name it whatever you want, I am calling it "Externals.php" for this example.</p><p></p><p>Inside the file paste the following:</p><p></p><p>[PHP]</p><p>if (file_exists($_GET['id'] . '.txt'))</p><p>{</p><p> header('Content-type: text/plain; charset=utf-8;');</p><p> include $_GET['id'] . '.txt';</p><p>}</p><p>else</p><p>{</p><p> header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");</p><p>}</p><p></p><p>if (empty($_GET['id']))</p><p>{</p><p> header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");</p><p>}</p><p>[/PHP]</p><p></p><p>From here, edit your external variables and text, change them to the following:</p><p>(Do not add extension at end; normally .txt, sometimes .cfm)</p><p></p><p><strong>External Text:</strong></p><p>[CODE]<PATH-TO-YOUR-HOTEL>/<PATH-TO-FILE/<FILE>.php?id=<EXTERNAL-TEXT-NAME>[/CODE]</p><p></p><p><strong>External Variables:</strong></p><p>[CODE]<PATH-TO-YOUR-HOTEL>/<PATH-TO-FILE/<FILE>.php?id=<EXTERNAL-VARIABLES-NAME>[/CODE]</p><p></p><p>_____</p><p></p><p>Soon I will give a tutorial on how to protect your externals and DCRs.</p><p></p><p>Thanks for reading, please like if you found this helpful, again, this is mainly a "for looks" thing, many of you might have known this, a lot of you will comment and say you did, but really didn't.</p><p></p><p>So please, no negative feedback as it is just an excuse to flame, and increase post count (Nub Move)</p></blockquote><p></p>
[QUOTE="TesoMayn, post: 51225, member: 8605"] I have no idea if this is posted or not, but I thought I'd share. _____ This does not protect your externals or DCRs, it just makes it look cleaner and more professional in the source, and I use it because it is faster to write up than to type out the complete URL. _____ [U][B]Requirements:[/B][/U] [LIST] [*]Must host own DCRs/Externals [*]PHP Support (If you have a hotel you have this, unless you use flat file) [/LIST] _____ Create a file and name it whatever you want, I am calling it "Externals.php" for this example. Inside the file paste the following: [PHP] if (file_exists($_GET['id'] . '.txt')) { header('Content-type: text/plain; charset=utf-8;'); include $_GET['id'] . '.txt'; } else { header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); } if (empty($_GET['id'])) { header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); } [/PHP] From here, edit your external variables and text, change them to the following: (Do not add extension at end; normally .txt, sometimes .cfm) [B]External Text:[/B] [CODE]<PATH-TO-YOUR-HOTEL>/<PATH-TO-FILE/<FILE>.php?id=<EXTERNAL-TEXT-NAME>[/CODE] [B]External Variables:[/B] [CODE]<PATH-TO-YOUR-HOTEL>/<PATH-TO-FILE/<FILE>.php?id=<EXTERNAL-VARIABLES-NAME>[/CODE] _____ Soon I will give a tutorial on how to protect your externals and DCRs. Thanks for reading, please like if you found this helpful, again, this is mainly a "for looks" thing, many of you might have known this, a lot of you will comment and say you did, but really didn't. So please, no negative feedback as it is just an excuse to flame, and increase post count (Nub Move) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT]Professional Styled Externals[/TUT]
Top