Soki
Banned
- Messages
- 857
- Reaction score
- 1
- Points
- 0
Alright. So, Installed this ad manager that manages my ads (obviously) and it said everything was install correctly. It does not use MySQL, just pure PHP. Well, I added an ad to test it out and it didn't shwo up. So, I check my PHP links and one gave me an error.
I checked the file and I don't know much about PHP. So, here it is:
Line 16:
Anyone who helps me out will end up with a reward (if your solution works).
Fatal error: Class 'bannerAds' not found in /home/***/public_html/ads/js.php on line 16
I checked the file and I don't know much about PHP. So, here it is:
Code:
<?php
$bannerAdsPath = '/home/***/public_html/ads/ads.dat';
require '/home/***/public_html/ads/ads.inc.php';
///////////////////////////////////////
// Don't Edit Anything Below This Line!
///////////////////////////////////////
if (!isset($_GET['id']) || !ereg('^[0-9]+$', $_GET['id'])) {
$_GET['id'] = null;
}
if (!isset($_GET['width']) || !ereg('^[0-9]+$', $_GET['width'])) {
$_GET['width'] = 0;
}
if (!isset($_GET['width']) || !isset($_GET['height']) || !ereg('^[0-9]+$', $_GET['height'])) {
$_GET['height'] = 0;
}
$buttons = new bannerAds($_GET['id'], 1, $_GET['width'], $_GET['height']);
header('Content-type: application/x-javascript');
echo "<!--\n";
echo "document.write(\"" .addslashes($buttons->ad[0]). "\");\n";
echo "//-->";
?>
Line 16:
Code:
$buttons = new bannerAds($_GET['id'], 1, $_GET['width'], $_GET['height']);
Anyone who helps me out will end up with a reward (if your solution works).
Last edited: