PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

PostPosted: Thu Jun 22, 2006 2:46 pm Reply with quote Back to top

in my links.php file I have edited this

Code:
adminmenu("".$admin_file.".php?op=awstats", ""._AWSTATS."", "AWStats.gif");
and the image shows up and and the link works but then I get a blank page when it trys to load the index.php file.

Index.php code

Code:
echo"<p><b><font face=\"Tahoma\">"
  . "<a target=\"_blank\" href=\"http://xxxxx.com/cgi-bin/awstats/awstats.pl\">"
  . "<font color=\"#FFFFFF\">View Webstats</font></a></font></b></p>";
}
?>


Thanks for any help in Advance!
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Thu Jun 22, 2006 3:49 pm Reply with quote Back to top

huh....
index.php of what?
im missing something in this story...
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Thu Jun 22, 2006 4:51 pm Reply with quote Back to top

The use of ?op= tells nuke to run a function and there is no function named awstats in your index.php file.

If you just need a link to that awstats.pl why not just add it in block/block-module.php which is the left hand menu block?
View user's profile Send private message Send e-mail Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Thu Jun 22, 2006 6:26 pm Reply with quote Back to top

ok im lost but ill try to sort this out with some knowledge...ok do u have a case.something.php that defines awstats as a function like this:


<?php
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
switch($op) {
case "Run_Mysql_Query":
include("admin/modules/something.php");
break;
}
?>

this is part of an admin module i dont want to release to the public but its designed to allow a GOD admin to run a sql query on a database so i dont need to give him php my admin access...but thats besides the point

then u must make somethin.php in the admin/modules directory...now i always make the function i call on in the admin panel the DEFAULT function of the script like so:


switch ($op) {

default:
awstats();
break;
}

now u must make the function as well in order for it to work...it is not necessary to actually call a REAL function within the links file as once its defined in case.something.php...nuke drops it and just accesses the file...so if u have no function called on..ur still ok...just case.something.php must define which file to look at when a function is called (real or not)
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Thu Jun 22, 2006 9:37 pm Reply with quote Back to top

You can find all this and more in the Nuke Manual here
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Thu Jun 22, 2006 10:26 pm Reply with quote Back to top

this is true Laughing
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
persona_non_grata



Joined:
Posts: 0

PostPosted: Fri Jun 23, 2006 1:06 pm Reply with quote Back to top

but theres also an already created module for this....lol
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum