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] Set up a R63 Hotel using Phoenix
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="james2012" data-source="post: 76455" data-attributes="member: 12733"><p>[PHP]<?php</p><p>////////////////////////////////////////////////////////</p><p>// # TheHabbos Topsites API Script - Release 1.0.3 //</p><p>// # © Copyright TheHabbos 2011. All rights reserved. //</p><p>////////////////////////////////////////////////////////</p><p> </p><p>if(!defined('IN_THEHABBOS_API')) {</p><p> die('Sorry, but you can not access this file directly. :(');</p><p>}</p><p> </p><p>class API_Template {</p><p> </p><p> function buildTemplate() {</p><p> echo $this->replaceContent($this->getTemplateItem('template'));</p><p> }</p><p> </p><p> function getTemplateItem($Item) {</p><p> global $CONFIG;</p><p> $getTemplateItem = fopen('thehabbos_api/styles/'.$CONFIG['Style'].'/'.$Item.'.html', 'r');</p><p> $templateItem = fread($getTemplateItem, filesize('thehabbos_api/styles/'.$CONFIG['Style'].'/'.$Item.'.html'));</p><p> fclose($getTemplateItem);</p><p> return $templateItem;</p><p> }</p><p> </p><p> function replaceContent($Template) {</p><p> global $CONFIG;</p><p> $lookingFor = Array('{$Title}', '{$CSS}', '{$Header}', '{$Content}');</p><p> $contentReplacements = Array($this->buildContent('title').' - TheHabbos.ORG Voting Script', $this->getTemplateItem('css'), $this->buildContent('title'), $this->buildContent('content'));</p><p> $string = str_replace($lookingFor, $contentReplacements, $Template);</p><p> return $string;</p><p> }</p><p> </p><p> function buildContent($ContentType) {</p><p> global $CONFIG; global $LANG;</p><p> $validationID = $CONFIG['Status'];</p><p> if($ContentType == 'title') {</p><p> return $LANG['title'][$validationID];</p><p> }</p><p> if($ContentType == 'content') {</p><p> return $this->getPageType();</p><p> }</p><p> }</p><p> </p><p> function getPageType() {</p><p> global $CONFIG; global $LANG;</p><p> ob_start();</p><p> $lookingFor = $CONFIG['Status'];</p><p> include('thehabbos_api/types/'.$CONFIG['Type'].'.php');</p><p> $string = ob_get_contents();</p><p> ob_end_clean();</p><p> return $string;</p><p> }</p><p> </p><p>}[/PHP]</p><p> </p><p> </p><p>Do i need to change anything in this file?? coz my client got error</p><p> </p><p style="text-align: center"><strong><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">Warning</span></span></span></strong></p><p></p><p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">: include(thehabbos_api/types/.php) [</span></span></span></p> <p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'">function.include</span></span></p><p></p><p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">]: failed to open stream: No such file or directory in</span></span></span></p> <p style="text-align: center"><strong><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">C:\xampp\htdocs\thehabbos_api\class.template.php</span></span></span></strong></p><p></p><p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000"> on line </span></span></span></p> <p style="text-align: center"><strong><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">48</span></span></span></strong></p><p></p><p style="text-align: center"><strong><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">Warning</span></span></span></strong></p><p></p><p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">: include() [</span></span></span></p> <p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'">function.include</span></span></p><p></p><p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">]: Failed opening 'thehabbos_api/types/.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in </span></span></span></p> <p style="text-align: center"><strong><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">C:\xampp\htdocs\thehabbos_api\class.template.php</span></span></span></strong></p><p></p><p style="text-align: center"><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000"> on line </span></span></span></p> <p style="text-align: center"><strong><span style="font-size: 10px"><span style="font-family: 'Verdana'"><span style="color: #000000">48</span></span></span></strong></p><p></p><p> </p><p style="text-align: center"></p><p></p><p> </p><p style="text-align: center"></p><p></p><p> </p><p>so do i need to change anything??</p><p> include('thehabbos_api/types/'.$CONFIG['Type'].'.php');</p><p>please respond if someone know</p></blockquote><p></p>
[QUOTE="james2012, post: 76455, member: 12733"] [PHP]<?php //////////////////////////////////////////////////////// // # TheHabbos Topsites API Script - Release 1.0.3 // // # © Copyright TheHabbos 2011. All rights reserved. // //////////////////////////////////////////////////////// if(!defined('IN_THEHABBOS_API')) { die('Sorry, but you can not access this file directly. :('); } class API_Template { function buildTemplate() { echo $this->replaceContent($this->getTemplateItem('template')); } function getTemplateItem($Item) { global $CONFIG; $getTemplateItem = fopen('thehabbos_api/styles/'.$CONFIG['Style'].'/'.$Item.'.html', 'r'); $templateItem = fread($getTemplateItem, filesize('thehabbos_api/styles/'.$CONFIG['Style'].'/'.$Item.'.html')); fclose($getTemplateItem); return $templateItem; } function replaceContent($Template) { global $CONFIG; $lookingFor = Array('{$Title}', '{$CSS}', '{$Header}', '{$Content}'); $contentReplacements = Array($this->buildContent('title').' - TheHabbos.ORG Voting Script', $this->getTemplateItem('css'), $this->buildContent('title'), $this->buildContent('content')); $string = str_replace($lookingFor, $contentReplacements, $Template); return $string; } function buildContent($ContentType) { global $CONFIG; global $LANG; $validationID = $CONFIG['Status']; if($ContentType == 'title') { return $LANG['title'][$validationID]; } if($ContentType == 'content') { return $this->getPageType(); } } function getPageType() { global $CONFIG; global $LANG; ob_start(); $lookingFor = $CONFIG['Status']; include('thehabbos_api/types/'.$CONFIG['Type'].'.php'); $string = ob_get_contents(); ob_end_clean(); return $string; } }[/PHP] Do i need to change anything in this file?? coz my client got error [CENTER][B][SIZE=10px][FONT=Verdana][COLOR=#000000]Warning[/COLOR][/FONT][/SIZE][/B][/CENTER] [CENTER][SIZE=10px][FONT=Verdana][COLOR=#000000]: include(thehabbos_api/types/.php) [[/COLOR][/FONT][/SIZE][/CENTER] [CENTER][SIZE=10px][FONT=Verdana]function.include[/FONT][/SIZE][/CENTER] [CENTER][SIZE=10px][FONT=Verdana][COLOR=#000000]]: failed to open stream: No such file or directory in[/COLOR][/FONT][/SIZE][/CENTER] [CENTER][B][SIZE=10px][FONT=Verdana][COLOR=#000000]C:\xampp\htdocs\thehabbos_api\class.template.php[/COLOR][/FONT][/SIZE][/B][/CENTER] [CENTER][SIZE=10px][FONT=Verdana][COLOR=#000000] on line [/COLOR][/FONT][/SIZE][/CENTER] [CENTER][B][SIZE=10px][FONT=Verdana][COLOR=#000000]48[/COLOR][/FONT][/SIZE][/B][/CENTER] [CENTER][B][SIZE=10px][FONT=Verdana][COLOR=#000000]Warning[/COLOR][/FONT][/SIZE][/B][/CENTER] [CENTER][SIZE=10px][FONT=Verdana][COLOR=#000000]: include() [[/COLOR][/FONT][/SIZE][/CENTER] [CENTER][SIZE=10px][FONT=Verdana]function.include[/FONT][/SIZE][/CENTER] [CENTER][SIZE=10px][FONT=Verdana][COLOR=#000000]]: Failed opening 'thehabbos_api/types/.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in [/COLOR][/FONT][/SIZE][/CENTER] [CENTER][B][SIZE=10px][FONT=Verdana][COLOR=#000000]C:\xampp\htdocs\thehabbos_api\class.template.php[/COLOR][/FONT][/SIZE][/B][/CENTER] [CENTER][SIZE=10px][FONT=Verdana][COLOR=#000000] on line [/COLOR][/FONT][/SIZE][/CENTER] [CENTER][B][SIZE=10px][FONT=Verdana][COLOR=#000000]48[/COLOR][/FONT][/SIZE][/B][/CENTER] [CENTER] [/CENTER] [CENTER][SIZE=1][FONT=Verdana][COLOR=#000000][B][/B][/COLOR][/FONT][/SIZE][/CENTER] so do i need to change anything?? include('thehabbos_api/types/'.$CONFIG['Type'].'.php'); please respond if someone know [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT] Set up a R63 Hotel using Phoenix
Top