Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8
Author Message
gamerevolt
New Member
New Member



Joined: Apr 25, 2006
Posts: 19

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

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
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

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

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: 6799
Location: Ha Noi, Viet Nam

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

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
gregexp
The Mouse Is Extension Of Arm



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

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

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)

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Guardian2003







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

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! ]
 
gregexp







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

this is true Laughing
 
hitwalker







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

but theres also an already created module for this....lol
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©