Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Defcon
Regular
Regular



Joined: Mar 10, 2005
Posts: 90

PostPosted: Thu Mar 10, 2005 6:32 pm Reply with quote

Hello everyone here,

I have a problem to create my own modules. Actually i wanna build

up an extra info page on my PHPNUKE web site base on modules. I

mean just wanna build up a static page info with right/left

block,header and footer view. Just like a normal page of PHPNUKE.

Ok, and now i already create a folder for my own modules and put

into modules directory in my web directory.

Image

Then i activated that my own modules name Lecturer. I

wanna create page for a list of lecturer on my college. After i

activated my modules everything is working on my lecture list

like image below:

Image

When someone clik a name of lecturer then it should go to another

page contain profile for my lecturer like a pic below:

Image

Ok..the problem is after i uploading on my hosting i clik to

profile pages and get this error:

Code:


Sorry, such file doesn't exist...


Before this on localhost everything is working.

Now i show up my link coding inside my modules>index.php file.

Code:


<?php
if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo"
<center><b>List of FIST Lecturer</b></center>
<center><b><a

href=modules.php?name=lecture&file=dean>dead</a></b></center>
<br><br>
<center>
<table width=50% border=0>
  <tr>
    <td bgcolor=#FFFF99><div

align=center><strong>Position</strong></div></td>
    <td bgcolor=#FFFF99><div align=center><strong>Staff

ID</strong></div></td>
    <td bgcolor=#FFFF99><div

align=center><strong>Name</strong></div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1> <div align=center><strong>Dean

</strong></div></td>
    <td bgcolor=#B4D6F1><div align=center>1991006331</div></td>
    <td bgcolor=#B4D6F1><div align=center><a

href=modules.php?name=lecture&file=profil_dean>Dr. David Ngo Chek

Ling</a></div></td>
  </tr>
  <tr>
    <td><div align=center><strong>Associate

Dean</strong></div></td>
    <td><div align=center>1001029232 </div></td>
    <td><div align=center><a

href=modules.php?name=lecture&file=profil_asso_dean>Dr. Andrew

Teoh Beng Jin</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001017390 </div></td>
    <td bgcolor=#B4D6F1><div align=center><a

href=modules.php?name=lecture&file=profil_asso_dean_2>Halawati

Abdul Jalil Safuan</div></td>
  </tr>
  <tr>
    <td><div align=center><strong>Senior

Lecturer</strong></div></td>
    <td><div align=center>1001023112 </div></td>
    <td><div align=center><a

href=modules.php?name=lecture&file=senior_lecturer>Krishna

Prasad</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center><strong>Lecturer

</strong></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001021489 </div></td>
    <td bgcolor=#B4D6F1><div align=center><a

href=modules.php?name=lecture&file=tariq>Muhammad Tariq

Siddique</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001037875</div></td>
    <td><div align=center>Wong Pee Shoong</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001023145 </div></td>
    <td bgcolor=#B4D6F1><div align=center>S. Andrews</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001033626</div></td>
    <td><div align=center>Vimala Balakrishnan</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1010032769</div></td>
    <td bgcolor=#B4D6F1><div align=center>Asrul Hadi B.

Yaacob</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1991012243 </div></td>
    <td><div align=center>Wong Li Pei</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001029210 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Kamatchi V. Ramasamy

Ravi</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001038448 </div></td>
    <td><div align=center>Muhammad Nabeel Tahir</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001035643 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Sia Sie Tung</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001035632 </div></td>
    <td><div align=center>Emaliana Kasmuri</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001024250 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Hasnain

Zafar</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001022958 </div></td>
    <td><div align=center>L. Chockalingam</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001022244 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Akram G.

Abdalla</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001029618 </div></td>
    <td><div align=center>Jaya Kumar Krishnan</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001021933 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Lau Siong

Hoe</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001017313 </div></td>
    <td><div align=center>Rizwan Javaid</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001020282 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Hussein M. Aziz

Basi</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1991008100 </div></td>
    <td><div align=center>Teoh Kung Keat</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1991007651 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Dr. Vijanth Sagayan a/l

Asirvadam</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1991003107 </div></td>
    <td><div align=center>Cheah Wooi Ping</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1991001371 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Nor Azman

Abu</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1991013971</div></td>
    <td><div align=center>Subarmaniam Kannan</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001033229</div></td>
    <td bgcolor=#B4D6F1><div align=center>Tan Shing

Chiang</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001040406 </div></td>
    <td><div align=center>Azizzeanna Hassan</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001039520 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Fathin Fakhriah Binti

Abdul Aziz</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001039622 </div></td>
    <td><div align=center>Wong Kok Seng</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001038641 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Suresh A/L

Gnasegarah</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001036351 </div></td>
    <td><div align=center>Albert Yong Tien Fui</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001033182 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Ng Hock Soon</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001034072 </div></td>
    <td><div align=center>Ghulam Muhammad</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001020395 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Nor`ain Mohd

Yusoff</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001034844 </div></td>
    <td><div align=center>Arash Mousavi</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001034618 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Chong Tze

Yuang</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001024181 </div></td>
    <td><div align=center>Md Shohel Sayeed</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1991000776 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Nor Hafeizah

Hassan</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001022798 </div></td>
    <td><div align=center>Dr. Radhakrishnan

Palanikumar</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001033488 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Liang

Shiuan-Ni</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001032882 </div></td>
    <td><div align=center>Hakim Mellah</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001030490 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Liew Tze Hui</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001030570 </div></td>
    <td><div align=center>Aarthi Chandramohan</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001029243 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Ong Thian

Song</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001026904 </div></td>
    <td><div align=center>Sek Yong Wee</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001026427</div></td>
    <td bgcolor=#B4D6F1><div align=center>Jehad Q. O. Al

Nihoud</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001023236 </div></td>
    <td><div align=center>Muhammad Suryanata</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1001024035</div></td>
    <td bgcolor=#B4D6F1><div align=center>Lew Sook

Ling</div></td>
  </tr>
  <tr>
    <td><div align=center></div></td>
    <td><div align=center>1001039542</div></td>
    <td><div align=center>Ibrahim Yusof</div></td>
  </tr>
  <tr>
    <td bgcolor=#B4D6F1><div align=center></div></td>
    <td bgcolor=#B4D6F1><div align=center>1991008235 </div></td>
    <td bgcolor=#B4D6F1><div align=center>Kau Guan

Kiat</div></td>
  </tr>
</table>
</center>

";
CloseTable();
include("footer.php");

?>


I think my problem on this code:

Code:


<a href=modules.php?name=lecture&file=profil_dean>Dr. David Ngo

Chek Ling</a>


I read from internet about how to create a modules says in

modules link should with that code to link at another page inside

a same folder of my modules. Where

modules.php?name=lecture is my modules folder name and

&file=profile_dean is a code for my file name inside that

modules folder like pic below:

Image

Can someone here show me a correct step to create a modules n

link it to another page/web in same modules folder?

That modules file can be download by clik

::here::



*Sorry about my poor english to make all of u understand about my

problem.


Last edited by Defcon on Thu Mar 10, 2005 11:06 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Mar 10, 2005 9:12 pm Reply with quote

So you're saying that you can see your module in the module's block but when you click on it, it error's out?
 
View user's profile Send private message
Defcon







PostPosted: Thu Mar 10, 2005 10:53 pm Reply with quote

Raven wrote:
So you're saying that you can see your module in the module's block but when you click on it, it error's out?


Nop... that modules is appear on block... it view normally file index.php from that modules folder ( name is lecture like pic below:

Image

but then link from Dr. David Ngo Chek Ling where supposed link to page name profil_dean.php at code:

Code:


http://domain/modules.php?name=lecture&file=profil_dean


on localhost its working to appear like pic below:

Image

But on my hosting it's appear this msg:

Code:


Sorry, such file doesn't exist...


Every file on that modules folder is already upload at a correct place.

You can download n try this modules at [ Only registered users can see links on this board! Get registered or login! ]

Wish you/someone here can fix my coding error. Thanxs.

*p/s file name profil_dean.php it is at a same place modules folder like pic below:

Image


Last edited by Defcon on Thu Mar 10, 2005 11:05 pm; edited 1 time in total 
Raven







PostPosted: Thu Mar 10, 2005 10:56 pm Reply with quote

That link is not a valid link
 
Defcon







PostPosted: Thu Mar 10, 2005 10:59 pm Reply with quote

Raven wrote:
That link is not a valid link


Can u fix it? erm...what a error that i done? did u already try my download modules files? so what 's solutions?
 
Raven







PostPosted: Thu Mar 10, 2005 11:00 pm Reply with quote

The download link you gave me is not valid.
 
Defcon







PostPosted: Thu Mar 10, 2005 11:04 pm Reply with quote

Raven wrote:
The download link you gave me is not valid.


try here
[ Only registered users can see links on this board! Get registered or login! ] (temporary)

sorry for that...

i was give a wrong url at :
[ Only registered users can see links on this board! Get registered or login! ]

a true url is :

www.geocities.com/xxdefconxx/Lecture.zip

Sorry
 
Raven







PostPosted: Thu Mar 10, 2005 11:14 pm Reply with quote

*nix is case sensitive with filenames whereas windoze is not. Your module's name is "Lecture" and your code in index.php is calling "lecture". Either modify your module's name to "lecture" or change your references to "Lecture".
 
Defcon







PostPosted: Fri Mar 11, 2005 12:01 am Reply with quote

Raven wrote:
*nix is case sensitive with filenames whereas windoze is not. Your module's name is "Lecture" and your code in index.php is calling "lecture". Either modify your module's name to "lecture" or change your references to "Lecture".


It's working.Thanxs a lot. just a case sensitive.lol. after this i will not think that case sensitive is a small matter anymore. Thanxs Raven.


Last edited by Defcon on Fri Mar 11, 2005 12:02 pm; edited 1 time in total 
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Fri Mar 11, 2005 6:51 am Reply with quote

I noticed that you are using the my_egallery module. You really should strongly consider getting rid of that module. It is very insecure and can allow people to invade your cpanel and cause you a great deal of trouble. The menalto gallery is much safer Razz

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Defcon







PostPosted: Fri Mar 11, 2005 12:12 pm Reply with quote

jaded wrote:
I noticed that you are using the my_egallery module. You really should strongly consider getting rid of that module. It is very insecure and can allow people to invade your cpanel and cause you a great deal of trouble. The menalto gallery is much safer Razz


Yes right. I'm still using My eGallery 2.7.8 running on PHPNUKE 7.0 with Nuke Sentinel + Protector as security system. Although have a security system is that percentage someone to xploit from that gallery is same without use any security system?

I'm really like to use My eGallery than Coppermine (sorry, i never use a menalto gallery) coz it look simple and smart than Coppermine have "a lot of funtion & menu". However i already have My eGallery 2.8.0 that can be download from [ Only registered users can see links on this board! Get registered or login! ] I read from My eGallery 2.8.0 README file it say that version is more secure than 2.7.8 and already fix any black holes before this.

However, can u/someone here make a survey/reviews about this My eGallery 2.8.0 version. I dont know how to xploit on My eGallery so can someone here test it for me?
 
jaded







PostPosted: Fri Mar 11, 2005 8:32 pm Reply with quote

It can still be exploited. The hacker can actually insert an eggdropper into your cpanel. This is a very serious issue. Many hosts, including myself have banned this gallery and coppermine from use on our server for this vary reason. I have gallery installed on my site and it is beautiful as well as very functional on the admin side. I wish you luck with this Razz
 
Defcon







PostPosted: Fri Mar 11, 2005 8:54 pm Reply with quote

jaded wrote:
The menalto gallery is much safer Razz


Thanxs a lot for ur advice. So how about menalto gallery? Can u tell it about that gallery program.Where i can download n read reviews??
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Mar 11, 2005 10:22 pm Reply with quote

Defcon,

Here is the link to the NukedGallery site (specific to Gallery used with Nuke) and it has links back to the official Menalto Gallery site (where the download is). I don't know about a review site, but a "second" jaded when it comes to Gallery being an excellent tool and much more secure than the others.

http://www.nukedgallery.net/

Regards,
montego

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
jaded







PostPosted: Sat Mar 12, 2005 8:39 am Reply with quote

[ Only registered users can see links on this board! Get registered or login! ]


here you go a direct link too!
 
Defcon







PostPosted: Sun Mar 13, 2005 11:14 pm Reply with quote

hohoho.... that's gallery really cool...that's one that i like to have it...looks simple like my e gallery.. user can post comment... really with a simple menu... i already try do download it... hohoho.... have a lot of file...look different from others PHPNUKE modules.. is that have a guide step by step installation for PHPNUke? huhuhu...*newbies*

However...i like to know/discuss bout this

jaded wrote:

..It can still be exploited. The hacker can actually insert an eggdropper into your cpanel...


eggdroper into cpanel? into admin cpanel? erm..what kind of destruction will ruin my web? is that that hacker will take over my web? mean have an xcess as admin?? can someone here tell me bout that real senario situation? how they can get into? using what? with what script/code?

Normally i just hear some kiddie script/code just copy n paste to url to hijack PHPNUKE ...is that it is a same method to do with mye Gallery?

Image
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©