Well hope you guys can help me with this..
Fatal error: Class 'POT' not found in C:\xampp\htdocs\shop\shop.php on line 38
rep++
Fatal error: Class 'POT' not found in C:\xampp\htdocs\shop\shop.php on line 38
PHP:
<?php
///////////////////////////////////////
// Item and Premium Account System
// Version 1.1
// Script by Cameron Hutchison
///////////////////////////////////////
// Tested to work with:
// ModernAAC v2.0 Release
// TFS 0.3.6pl1
///////////////////////////////////////
// Created for ModernAAC
// Loosely based on Geisor's Shop
// Give credit to me if used, thanks!
///////////////////////////////////////
// SCRIPT CONFIGURATION
///////////////////////////////////////
// General
$serverName = "OT Server";
$extraDescription = "Here you can spend your purchased premium points on anything your heart desires!";
$buyPointsURL = "/index.php/p/v/buypoints"; //URL to wherever you have it setup to buy points.
// Special Services, not everyone wants this I'm sure, so set to false to disable it from being shown.
$showSpecialServices = true;
// Script's Table Styling (colors)
$offerTypeTextColor = "#88ac0b";
$offerTypeBackgroundColor = "#FFFFFF";
$offerTableTitlesTextColor = "#FFFFFF";
$offerTableTitlesBackgroundColor = "#4F82CB";
$offerMainBackgroundColor = "white";
$offerMainTextColor = "black";
$finalTransBackgroundColor = "#4F82CB";
$finalTransTextColor = "black";
$finalTransForColor = "green";
$finalTransFromColor = "green";
///////////////////////////////////////
// Connection stuff (don't edit unless you know what you're doing!)
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
// And some other things...
$ide = new IDE;
$logged = FALSE;
// Load some variables... will be used later in the script.
if($ide->isLogged()){
$logged = TRUE;
$accountName = $_SESSION['name'];
foreach($SQL->query('SELECT * FROM accounts WHERE name="'.$accountName.'"') as $data)
{
$premiumPoints=$data['premium_points'];
if (!$premiumPoints) {$premiumPoints = 0;}
$loggedAccId=$data['id'];
}
$iii = 0;
foreach($SQL->query('SELECT * FROM players WHERE account_id="'.$data['id'].'"') as $chars)
{
$iii++;
$charName[$iii]=$chars['name'];
}
$totalChars=$iii;
}
else {
$logged = FALSE;
}
$admin = false;
echo '<a href="/index.php/p/v/shop">Shop Home</a>';
if ($logged == true){
echo ' | <a href="/index.php/p/v/shop/history">Purchase History</a>';
}
if($ide->isAdmin()){
$admin = true;
echo ' | <a href="/index.php/p/v/shop/admin">Shop Administration</a>';
echo '<hr width="100%"></hr>';
}
require("sources/functions.php"); // Some string-cleaning functions. (Geisor)
$shopVersion = "1.1"; // Used for update checking...
///////////////////////////////////////
// Here's the main part...
///////////////////////////////////////
$this->load->helper("url");
$action = $this->uri->segment(4);
$adminAction = $this->uri->segment(5);
if ($action=="" || $action=="shop"){
$_SESSION['viewed_confirmation_page'] = 'no';
require("sources/offers.php");
}
if ($action=="character_select"){
$_SESSION['viewed_confirmation_page'] = 'no';
require("sources/chooseplayer.php");
}
if ($action=="confirm_transaction"){
require("sources/confirmtransaction.php");
}
if ($action=="history"){
$_SESSION['viewed_confirmation_page'] = 'no';
require("sources/history.php");
}
if ($action=="admin"){
$_SESSION['viewed_confirmation_page'] = 'no';
require("sources/administration.php");
}
echo '<center><font size="1">iPACC - v'.$shopVersion.'</font></center>';
?>
rep++