[TUT] Set up a R63 Hotel using Phoenix

Do you want more tutorials on how to set stuff up?

  • Yes

    Votes: 108 93.1%
  • No

    Votes: 8 6.9%

  • Total voters
    116

Dzemal

Member
Mar 1, 2012
50
1
When i click Enter the client an error comes up: Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\thehabbos_api\class.validate.php on line 29

How can i fix this?
 

james2012

Member
Feb 10, 2012
29
0
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;
  }
 
}


Do i need to change anything in this file?? coz my client got error

Warning

: include(thehabbos_api/types/.php) [
function.include

]: failed to open stream: No such file or directory in
C:\xampp\htdocs\thehabbos_api\class.template.php

on line
48

Warning

: include() [
function.include

]: Failed opening 'thehabbos_api/types/.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in
C:\xampp\htdocs\thehabbos_api\class.template.php

on line
48






so do i need to change anything??
include('thehabbos_api/types/'.$CONFIG['Type'].'.php');
please respond if someone know
 

Users who are viewing this thread

Top