| Author |
Message |
gamerevolt New Member


Joined: Apr 25, 2006 Posts: 19
|
Posted:
Thu Jun 22, 2006 2:46 pm |
|
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! |
|
|
|
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Thu Jun 22, 2006 3:49 pm |
|
huh....
index.php of what?
im missing something in this story... |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 4868
|
Posted:
Thu Jun 22, 2006 4:51 pm |
|
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? |
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Thu Jun 22, 2006 6:26 pm |
|
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) |
|
|
 |
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 4868
|
Posted:
Thu Jun 22, 2006 9:37 pm |
|
You can find all this and more in the Nuke Manual here |
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Thu Jun 22, 2006 10:26 pm |
|
this is true  |
|
|
 |
 |
persona_non_grata

Joined: Posts: 0
|
Posted:
Fri Jun 23, 2006 1:06 pm |
|
but theres also an already created module for this....lol |
|
|
|
 |
|
|
|
|