cant access this file directly

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   cant access this file directly
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
Hello,

i made a module with dispals nuke tools,

the module is setup like this:
modules/Pg_Tutorial/
index.php
tutorial.php

here is what is wrong, the index file works, onle when i press the link tot go to the tutorial file it says "cabt access this file directly.

here is the code from the tutorial file
<?php
#### Generated by Module Creator - By Disipal site (www.disipal.net) ####
if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$index = 0;
OpenTable();
echo"First Download the newest version of PG’s AA"
  . "<br><br>"
  . "You can do that here on this site or go to the download section from PG<br>"
  . "The settings you find further on the images are the settings i use, try these first and<br> after that try the ones you think are best :)"
  . "<br>"
  . "<br>"
  . "Oke here we Go,"
  . "<br><br>"
  . "Open PG<br>"
  . "<img src=http://web-solution.nl/PG/openpg.JPG>"
  . "<br><br>"
  . "Then log in,<br>"
  . "<img src=http://web-solution.nl/PG/login.JPG>"
  . "<br><br>"
  . "Go to The settings,<br>"
  . "<img src=http://web-solution.nl/PG/setting.JPG>"
  . "<br><br>"
  . "Go to Attack settings,<br>"
  . "<img src=http://web-solution.nl/PG/settingattack.JPG>"
  . "<br><br>"
  . "Go to Advanced,<br>"
  . "<img src=http://web-solution.nl/PG/advanced.JPG>"
  . "<br><br>"
  . "After you did all these settings click on ad from Hitlist to get the names!<br>"
  . "<img src=http://web-solution.nl/PG/Hitlist.JPG>"
  . "<br>"
  . "<br>"
  . "So you are finished! press the <b>ATTACK</b> button and enjoy!!!!"
  . ";
CloseTable()";
include("footer.php");
?>


can someone help me please

**edit**
wel i found some other stuff that was helpfull on the forum, i changed the refera link from the index file to
"<a href=modules.php?name=Pg_Tutorial&file=tutorial.php><u>START</u></a></center>";

but now i get the error Sorry, such file doesn't exist... icon_eek.gif

anny ideas?

THNX


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Should be:

"<a href=modules.php?name=Pg_Tutorial&file=tutorial><u>START</u></a></center>";




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: cant access this file directly
wolf
CZ Active Member
usa.gif indiana.gif
Occupation: Student; Flash, HTML, PHP developer
Age: 34
Gender: Male
Status: Offline
Joined: Jul 25, 2003
0.02 posts per day
Posts: 168
Points: 10,417
AIM Address Yahoo Messenger MSN Messenger 
I might be wrong, but what about the quotations on the HREF? Does it matter if they are there or not?




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   re: cant access this file directly
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
i changed the link, but now i am getting a parse error on line 42 of the tutorial.php
Parse error: parse error, expecting `','' or `';'' in /usr/local/psa/home/vhosts/web-solution.nl/httpdocs/modules/Pg_Tutorial/tutorial.php on line 42


that line is

include("footer.php");




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: cant access this file directly
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
include('footer.php');



Back to top Reply with quote
#6   re: cant access this file directly
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
i changed the line, but now i get this,

Parse error: parse error in /usr/local/psa/home/vhosts/web-solution.nl/httpdocs/modules/Pg_Tutorial/tutorial.php on line 44


but line 44 is a empy line icon_eek.gif



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   re: cant access this file directly
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
Oke i solved it icon_mrgreen.gif
i just rebuild the whole module and it works!
Thnx for all your help icon_biggrin.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum