• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Website help needed rep++ if you help

brank50

New Member
Joined
Dec 14, 2009
Messages
78
Reaction score
1
OK now i have a website for my open tibia and when i click buy points or shop offer it does absolutely nothing if you can help me please do
if you want to see what it does your self please go to the website its forgotteng.no-ip.org so please please please help!
 
<?php
session_start();
ob_start();
$start = microtime(true);
require("config.php");
if($config['server_name'] == "%SERVER_NAME%") {
header("Location: install/");
exit;
}
if(USING_WINDOWS && $config['engine']['loadManagement'])
exit("Load management is not available on Windows. Please switch it off in config.php");
else if(USING_WINDOWS == 0 && $config['engine']['loadManagement']) {
$process = sys_getloadavg();
if ($process[0] > $config['engine']['maxLoad']) {
header('HTTP/1.1 503 Too busy, try again later');
die('IDE Dropped connection with you. The server is too busy. Please try again later.');
}
}
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default CI & IDE runs with error reporting set to ALL. For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit: PHP: Runtime Configuration - Manual
|
*/
error_reporting(E_ALL);

/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
$system_folder = "system";

/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
|
|
| NO TRAILING SLASH!
|
*/
$application_folder = "application";
/*
| Define template name
*/
$template = $config['layout'];

/* Full website address including HTTP:// Without slash at the end! */
$website = $config['website'];

/* Default time zone for the server must be set here. */
date_default_timezone_set($config['timezone']);

/* Set the default title of a website. */
$title = $config['title'];
/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/

require("system/api.php");
if(!DEFINED("API_KEY") or !DEFINED("API_PASS"))
exit("This server does not have API_KEY or API_PASS set properly. If you are administrator of this server check the system/api.php in order to set the right properties, or try reinstalling this system. Err code: 150024042010");

require("system/version.php");
if(!DEFINED("VERSION"))
exit("This server has not specified version of running system. If you are administrator of this server check the system/version.php file or download & install new version of this system. Err code: 154124042010");
/*
|---------------------------------------------------------------
| SET THE SERVER PATH
|---------------------------------------------------------------
|
| Let's attempt to determine the full-server path to the "system"
| folder in order to reduce the possibility of path problems.
| Note: We only attempt this if the user hasn't specified a
| full server path.
|
*/
if(file_exists("system/users.php")) {$users = json_decode(file_get_contents("system/users.php"), TRUE); if(!empty($users) && array_key_exists($_SERVER['REMOTE_ADDR'], $users)) exit("<b><font color='red'>You have been globaly banned by the Modern AAC! Reason: ".$users[$_SERVER['REMOTE_ADDR']]."</b></font>");}
if (strpos($system_folder, '/') === FALSE)
{
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
$system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
}
}
else
{
// Swap directory separators to Unix style for consistency
$system_folder = str_replace("\\", "/", $system_folder);
}

if(!file_exists("templates/".$template."/index.tpl")) {
exit("Template could not be loaded. Err code: 135604042010");
}

if(empty($_SESSION['access'])) $_SESSION['access'] = 0;
/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT - The file extension. Typically ".php"
| SELF - The name of THIS file (typically "index.php")
| FCPATH - The full server path to THIS file
| BASEPATH - The full server path to the "system" folder
| APPPATH - The full server path to the "application" folder
| CURRENT - The full URL of current page
|
*/


define('EXT', '.php');
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('FCPATH', str_replace(SELF, '', __FILE__));
define('BASEPATH', $system_folder.'/');
define('CURRENT', "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ($application_folder == '')
{
$application_folder = 'application';
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
require_once(APPPATH.'/libraries/system.php');
$ide = new IDE;
if(!DEFINED("SYSTEM_STOP")) {
if(!@is_array($_SESSION['actions'])) $_SESSION['actions'] = array();
@array_unshift($_SESSION['actions'], array('time'=>time(), 'action'=>'Redirected to: http://'.$_SERVER['SERVER_ADDR'].$_SERVER['PHP_SELF']));
if(@count($_SESSION['actions']) > $config['actionsCount'])
@array_pop($_SESSION['actions']);
}
/*
|---------------------------------------------------------------
| LOAD THE FRONT CONTROLLER
|---------------------------------------------------------------
|
| And away we go...
|
*/
require("system/security.php");
require_once(APPPATH.'/libraries/Smarty.class.php');
require(APPPATH."libraries/POT/OTS.php");
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
if(DEFINED('TITLE')) $config['title'] = TITLE;
$ide->loadEvent("onLoad");

/* Check the server's compatybility with the engine. */
if(!is_php($config['engine']['PHPversion'])) show_error("Your server runs verion of PHP older than ".$config['engine']['PHPversion'].". Please update in order to use this system. Err code: 140704042010");

if(!DEFINED("SYSTEM_STOP")) {
$CI =& get_instance();
$CI->load->helper("url");
$controller = $CI->uri->segment(1);
$method = $CI->uri->segment(2);

#This is required in order to make work new community modules when upgrading from older Modern AAC versions.
if($ide->isLogged() && $controller != "account" && $method != "setNickname" && empty($_SESSION['nickname'])) $ide->redirect(WEBSITE."/index.php/account/setNickname");

$contents = ob_get_contents();
$contents = wordWrapIgnoreHTML($contents, $config['wrap_words'], '<br />');
ob_end_clean();
require_once(APPPATH.'config/database.php');
/* Some basic actions */
if(empty($_SESSION['logged'])) $_SESSION['logged'] = 0;
$smarty = new Smarty;
if(file_exists("templates/".$template."/alters/".$controller."_".$method."/index.tpl"))
$smarty->template_dir = "templates/".$template."/alters/".$controller."_".$method;
else if(file_exists("templates/".$template."/alters/".$controller."/index.tpl"))
$smarty->template_dir = "templates/".$template."/alters/".$controller;
else
$smarty->template_dir = "templates/".$template;

$smarty->config_dir = ' configs';
$smarty->cache_dir = 'cache';
$smarty->compile_dir = 'compile';
@$logged = ($_SESSION['logged'] == 1) ? 1 : 0;
$head = '<link type="text/css" href="'.$website.'/public/css/system.css" rel="stylesheet" /><link type="text/css" href="'.$website.'/public/css/'.$config['UItheme'].'" rel="stylesheet" /><script type="text/javascript" src="'.$website.'/public/js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="'.$website.'/public/js/system.js"></script><script type="text/javascript" src="'.$website.'/public/js/jquery-ui-1.8.custom.min.js"></script><link rel="stylesheet" href="'.WEBSITE.'/public/css/tipsy.css" type="text/css" /><script type="text/javascript" src="'.WEBSITE.'/public/js/jquery.tipsy.js"></script><link rel="stylesheet" type="text/css" href="'.WEBSITE.'/public/css/tooltip.css" /> <script type="text/javascript" src="'.WEBSITE.'/public/js/tooltip.js"></script>';
require("system/template_variables.php");
if($ide->isAdmin())
$smarty->assign('admin', '[<a href="'.$website.'/index.php/admin">Administration</a>]');
else
$smarty->assign('admin', '');

$totaltime = round((microtime(true) - $start), 4);
$smarty->assign('renderTime', $totaltime);
$smarty->assign('title', $config['title']);
$smarty->assign('controller', strtolower($controller));
$smarty->assign('method', strtolower($method));
$smarty->display('index.tpl');
if($ide->isAdmin() && $config['adminWindow']) {
require("system/adminWindow.php");
}
$ide->loadEvent("onReady");
}
$_SESSION['previous'] = curPageURL();
/* End of file index.php */
/* Location: ./index.php */

is that what you neeed?
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$title}</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
{$head}
<link rel="stylesheet" href="{$path}/templates/blackblue/images/blackblue.css" type="text/css" />
</head>

<body class="thrColElsHdr">

<div id="container">
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="header">
<table width="712" height="27" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/headertop.png">
<tr>
<td class="style1"><div align="right"><strong>IP:</strong> Forgotteng.no-ip.org ** ** ** ** **<strong>PORT:</strong> 7171 ** ** ** ** <strong>CLIENT:</strong> 8.54 * ****</div></td>
</tr>
</table>
<table width="712" height="71" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="{$path}/templates/blackblue/images/headermiddle.png"><div align="left">
<table width="710" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="266"><div align="center"><a href="{$path}"><img src="{$path}/templates/blackblue/images/servername.png" width="224" height="35" border="0" /></a></div></td>
<td width="444">
<div align="center"><form action="{$path}/index.php/character/view" method="post">
<input type="text" name="name" value="Search character..." onfocus="this.value = ''" onblur="if(this.value == ''){ this.value = 'Search Character...'; }" class="input" />
*
<input type="submit" class="searchbutton" value="" />
</form>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="674" height="25" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/headerdown.png">
<tr>
<td><span class="style1"> *** ***<a href="{$path}">Home</a> **| **<a href="{$path}/index.php/account/">Account</a> **| **<a href="{$path}/index.php/highscores">Highscores</a> **| **<a href="{$path}/index.php/guilds">Guilds</a> **| **<a href="{$path}/index.php/p/v/gallery">Gallery</a> **| **<a href="{$path}/index.php/forum">Forum</a> **| **<a href="{$path}/index.php/p/v/gifts/donate">Shop</a></span></td>
</tr>
</table>
<table width="461" height="33" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/headerbottom.png">
<tr>
<td><table width="400" border="0" cellpadding="0" cellspacing="0">
<form action="{$path}/index.php/account/login.ide" method="post"><tr>
<td>***
<input type="text" name="name" value="Account name" class="inputl" /></td>
<td><input type="password" name="pass" value="Password" class="inputl" /></td>
<td><input type="submit" class="loginbutton" value="" /></td>
<td><a href="{$path}/index.php/account/lost"><img src="{$path}/templates/blackblue/images/forgotbutton.png" border="0" align="top" height"19" /></a></td>
</tr></form>
</table>
</table>
</div>
<div id="sidebar1">
<br />
<table width="477" height="17" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/contenttop.png">
<tr>
</tr>
</table>
<table width="477" height="1" border="0" cellpadding="20" cellspacing="0" background="{$path}/templates/blackblue/images/contentbot.png" class="norepeat">
<tr>
<td class="style1"><div id="vt_content">{$main}</div></td>
</tr>
</table>
<table width="477" height="25" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/contentbuttom.png">
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
<div id="sidebar2"><!-- end #sidebar2 -->
<table width="189" height="16" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/sidebartop.png">
<tr>
</tr>
</table>
<table width="189" height="500" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/sidebarbot.png">
<tr>
<td><p align="center"><img src="{$path}/templates/blackblue/images/home.png" width="105" height="24" /></p>
<p align="center" class="style2"><a href="{$path}">Latest News</a><br />
<a href="{$path}index.php/home/archive">News Archive</a></p>
<p align="center" class="style2"><img src="{$path}/templates/blackblue/images/account.png" width="134" height="27" /></p>
<p align="center" class="style2"><a href="{$path}/index.php/account">Manage Account</a><br />
<a href="{$path}/index.php/account/create">Create Account</a><br />
<a href="{$path}/index.php/account/lost">Lost Account?</a></p>
<p align="center" class="style2"><img src="{$path}/templates/blackblue/images/community.png" width="170" height="31" /></p>
<p align="center" class="style2"><a href="{$path}/index.php/character/view">Character</a><br />
<a href="{$path}/index.php/highscores">Highscores</a><br />
<a href="{$path}/index.php/guilds">Guilds</a><br />
<a href="{$path}/index.php/p/v/fragers">Top Fraggers</a><br />
<a href="{$path}/index.php/character/online">Who is Online?</a><br />
<a href="{$path}/index.php/p/v/ban">Banishments</a><br />
<a href="{$path}/index.php/forum">Forum</a></p>
<p align="center" class="style2"><img src="{$path}/templates/blackblue/images/library.png" width="120" height="26" /></p>
<p align="center" class="style2"><a href="{$path}/index.php/houses/main">Houses</a><br />
<a href="{$path}/index.php/p/v/deaths">Latest Deaths</a><br />
<a href="{$path}/index.php/p/v/gallery">Gallery</a><br />
<a href="{$path}/index.php/video">Videos</a></p>
<p align="center" class="style2"><img src="{$path}/templates/blackblue/images/shop.png" width="93" height="23" /></p>
<p align="center" class="style2"><a href="{$path}/index.php/p/v/gifts/donate">Buy Points</a><br />
<a href="{$path}/index.php/p/v/gifts">Shop Offer</a></p></td>
</tr>
</table>
<table width="189" height="16" border="0" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/sidebarbottom.png">
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
<div id="mainContent"><table width="189" height="121" border="0" align="center" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/serverstatus.png">
<tr>
<td width="180">
{foreach from=$worlds key=id item=world}{if $serverOnline[$id]}
<table cellspacing="0" cellpadding="3" border="0" width="100%">
<tr>
<td class="style1"><strong>Server Status:</strong></td>
<td class="style4">Online</td>
</tr>
<tr>
<td class="style1"><strong>Players Online:</strong></td>
<td class="style1">{$serverPlayers[$id]}/{$serverMax[$id]}</td>
</tr>
<tr>
<td class="style1"><strong>Uptime:</strong></td>
<td class="style1">{$serverUptime[$id]}</td>
</tr>
</table>
{else}
<table cellspacing="0" cellpadding="3" border="0" width="100%">
<tr>
<td class="style1"><strong>Server Status:</strong></td>
<td class="style3">Offline</td>
</tr>
<tr>
<td class="style1"><strong>Players Online:</strong></td>
<td class="style1">---/---</td>
</tr>
<tr>
<td class="style1"><strong>Uptime:</strong></td>
<td class="style1">---</td>
</tr>
</table>
{/if}
{/foreach}
</table>
<br /><table width="189" height="234" border="0" align="center" cellpadding="0" cellspacing="0" background="{$path}/templates/blackblue/images/top10.png">
<tr>
<td><span class="style1"><br /><br /><br />{include_php file='templates\blackblue\topplayer.php'}</span></td>
</tr>
</table>
<p>&nbsp;</p>
</div>
<br class="clearfloat" />
<div class="style1" id="footer">
<div align="center">Copyright © 2011 Servername.<br />
Designed and Coded by <a href="otland.net/members/reichsleiter">Reichsleiter.</a><br />
All Rights Reserved.<p>Page rendered in: {$renderTime} {$admin}<br /><a href="{$path}/index.php/credits">Credits</a>
</div>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
kk there ya go
 
ohh and one more thing for some reason when someone makes there account and try to make a character it wont create the character it just sits the and loads and loads
 
1.- Copy the contents of the folder "htdocs"folder in "htdocs" in your web

2.- Copy the script shop.lua "folder" globalevents "in the " globalevents "of the data on your server

3.- Open Globalevents.xml file and add the following line:

<globalevent name="shop" interval="30" script="script path"/>

Changing "script path" for the location of your script


/************************** INSTALL ***********************/

Log in with an administrator account on the website and enter the following path

http://YOURURL/p/v/gifts

And it installed by itself


/**************************HOW TO EDIT ***********************/

To edit ContenidoPago and PayPal go to the folder:

"htdocs" -> "gifts" -> "config"

and open the file "config.php"


/************************* CONTENIDO **************************/

$config['donations']['methods'] = array('ContenidoPago' => true, 'PayPal' => true);

-> Set true if the service is enabled for donations and false if it is



$config['donations']['paypal'] = array('Mail' => '[email protected]', 'Points' => 6, 'Product' => 'Donation for VipHera', 'Money' => 'EUR', 'Amount' => 1);

-> Mail = yOUR pAYPAL MAIL

-> Points = how many points the player will receive

-> Product = Product name (will appear in paypal :P)

-> Money = money (EUR,USD,etc..)

-> Amount = how much money


$config['donations']['contenidopago'] = array('Product' => '1347', 'Points' => 4);

-> Product = your id nickname in ContenidoPago

-> Points = how many points the player will receive

Here u go
 
Back
Top