11
luckylin
Re: Add Real Name to new register?
  • 2005/3/8 17:43

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


do a search!!

ALFA-FOXTROT has a great hack, modify two files you are set.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=31752&forum=20&post_id=138710#forumpost138710


plz do search next time!



12
luckylin
Re: Admin - Who is Online - IP Trace hack
  • 2004/10/4 18:12

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


Surely, I made them optional just in case anyone who need to back trace the server or easily locate their ISPs without clicks (this would be the case). Thanks for the update!

BTW, I am thinking if we could trim and mask the IPs (c and d class) so everyone can atually open Whois Online (not only the Admin, of course Admin see all IPs, no mask) and see masked IPs for references. Like "IP: 207.123.xxx.xxx" do you have ideas?



13
luckylin
Re: Admin - Who is Online - IP Trace hack
  • 2004/10/4 17:10

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


Quote:

tl wrote:
luckylin, thanks for a great TIP. I have added it to the collection of Xoops-Tips.com.

To make it complete, I also added LACNIC lookup. Anyone who is interested in luckylin's hack can download the hacked version of misc.php from xoops-tips.


You are welcome tl; I've visited your site, nice works there!

I made an additional RDNS function on the WhoIs Online too.

look at the line (#194)
$onlineUsers[$i]['ip'] = $onlines[$i]['online_ip'];


and ADD the line just below it.

$onlineUsers[$i]['dns'] =gethostbyaddr($onlines[$i]['online_ip']);



Then, jump to the line #211 (Original #210)
modify the code at the beginning from -

echo '<br />IP: '.$onlineUsers[$i]['ip'].' <br />
PS: just the beginning on line #211 shown above.

to - (simple RDNS)

echo '<br />IP: '.$onlineUsers[$i]['ip'].' <br />RDNS: '.$onlineUsers[$i]['dns'].' <br />


OR (with link of RDNS)

echo '<br />IP: '.$onlineUsers[$i]['ip'].' <br />RDNS: <a href=http://'.$onlineUsers[$i]['dns'].' target=rdns>'.$onlineUsers[$i]['dns'].'</a> <br />


Please note since not all IPs can do RDNS, the RDNS link hack may not work properly.

keep the rest the same, and feel free to add tl's LACNIC to the end.

Now, you will have the IP, RDNS (if avalable, with link or not) and 4 nic areas lookup! (thanks to tl)

tl, feel free to make an updated download on your site!



14
luckylin
Admin - Who is Online - IP Trace hack
  • 2004/9/30 16:29

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


I made this simple and direct hack on Who Is Online to trace users, not only for anonymous but all. I noticed there is a hack "Spy on anonymous users " but since the concept is a bit different, I made a new topic.

This idea is to add IP Traceing function so you can trace back on every visitor, for Admin only. I currently made 3 NIC areas for tracking but you can add more if you want. The three are ARIN, APNIC and RIPE.


1. search this line in misc.php, if I am right it's line #210.
echo '<br />('.$onlineUsers[$i]['ip'].')';



2. replace with -
echo '<br />IP: '.$onlineUsers[$i]['ip'].' <br />
<a href=http://ws.arin.net/cgi-bin/whois.pl?queryinput='
.$onlineUsers[$i]['ip'].' target=ip1 />ARIN</a> 
&nbsp; <a href=http://www.apnic.net/apnic-bin/whois.pl?searchtext='
.$onlineUsers[$i]['ip'].' target=ip2 />APNIC</a>
&nbsp; <a href=http://www.ripe.net/perl/whois/?form_type=simple&searchtext='
.$onlineUsers[$i]['ip'].' target=ip3 />RIPE</a>';




This is simple hack you don't need to create new folder or files. You can trace the user to his/her ISP almost directly.



15
luckylin
Re: net2ftp module - how to get a notification by email when a file uploading finished?
  • 2004/9/1 16:22

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


The author's forum site is back online and the author did reply me the about the hack for email notification, see

http://www.net2ftp.org/forums/index.php?showtopic=989




16
luckylin
Re: Help - Narga's Guestbook module - can't jump to next page(s)!
  • 2004/8/18 19:42

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


OK, I solved it by moving it to the next couple lines -


Quote:

include XOOPS_ROOT_PATH."/header.php";
$part = new MyGuestbookSystem();

$start=$_GET['start'];

if (! isset($start)){
$start=0;
}


Ha! It works now! No error message if you go from the menu.
(if you put the fix into the first line, and go from the main menu, you will see the error I mentioned because the URL did not generate a "start" yet.)

Thanks for your nice works! I'll let the author know ASAP! Like a charm now!

The only improvements I want to have on the guestbook are - if a register user login, should their name and other info auto-fill in the form? That make the "register user" special, right?



17
luckylin
Re: Help - Narga's Guestbook module - can't jump to next page(s)!
  • 2004/8/18 19:28

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


I added the line in the guestbook index.php but I got an error now on the top of the page -

Notice: Undefined index: start in c:\.....\modules\myguestbook\index.php on line 25

that's the place we added the "start".... um...



18
luckylin
net2ftp module - how to get a notification by email when a file uploading finished?
  • 2004/8/17 20:10

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


Hi me agian,

Their forum was down for awhile - www.net2ftp.com but I need a help! I want to receive a email notifaction about WHO/WHAT had upload files, I modify the file "manage.inc.php" in the section of Upload Result - under line 1240,

Quote:


- CODE -

if (sizeof($uploadedFilesArray) > 0) {
$resultArray = acceptFiles($uploadedFilesArray, $application_tempdir);
$acceptedFilesArray = getResult($resultArray);
$body = "Files have been uploaded to the FTP Server through Net2FTP by " .$net2ftp_username . " File - " .$resultArray . ".";
$from = "FTP Server <ftp_admin@doamin.com>";
$subject = "Notification: File(s) Uplaoded to FTP Server";
mail('to_email@domain.com', $subject, $body, "From: $from");





I did get a email, however I am not a PHP person that I don't know how to get the "WHO" and "WHAT" output from the lines.

The email I got is :
Quote:

Files have been uploaded to the FTP Server through Net2FTP by File - Array.



So, any idea how to hack it?


Thanks in advanced!





19
luckylin
Re: Help - Narga's Guestbook module - can't jump to next page(s)!
  • 2004/8/17 19:48

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


Thanks! I will test this shortly - since no one can solve it I already uninstall this module, duh!!!

-- I will reinstall it and let you know the result!
Quote:


1) Open index.php in your guestbook folder;
2) Before "include "./header.php";" (at the very beginning!), add that :

$start=$_GET['start'];


..



20
luckylin
Re: net2ftp module needs beta testers
  • 2004/8/17 19:36

  • luckylin

  • Just popping in

  • Posts: 35

  • Since: 2004/3/5 2


Hi there!

Thanks for this module, I like it and already have tested it. It works just fine, but I found you CANNOT upload large file - anything bigger than 25mb could hang, and anything bigger than 30mb will die, gives you a blank screen that you don't know where you are.

I dig into the size/time-out issue, I did modify the settings.inc file(s), system php.ini for the max_size, memory, timeout value......, and also enlarge the IIS time-out settings from the server, including IIS - FTP time-out. No good lucky about large file uploading.

I checked the FTP session - there is NO ftp session when you logged into your FTP server throuhg Net2FTP, this means, it's using http method instead of FTP protocol, even the module is using FTP commands in lines, it just did not login to the server via FTP.

So, I do a research on the net, found out a lot people using PHP to upload large file (>20mb) got the same problems, ends up it is a "browser nature" that can't handle huge file through http and php/server combination.

See "Possible Limitations" on a commercial php Web FTP -
http://www.mywebftp.com/mwftp_hoster.php
and the so called "testimonial" on the following page -
http://www.somethingjava.com/index.cfm?content=products


This is to give everybody heads up if you are planning to use this module, basically it can do FTP without a FTP client so it's a "portable FTP" for smaller files (suggested : less than 25MB per), and surely it works great! However, if you have large file to upload/download, this then isn't your choice. I got BOTH time-out messages from the server (Win2000, EventLogs) for huge file uploading AND downloading. (I used other FTP client to upload a huge file, 40mb, for downloading test) If you need to upload/download a large file, you'd better use Java Applets (seehttp://www.jscape.com/ftpapplet/docs.html - have a free edition) which is doing a REAL FTP session so has no "the http limits" at all.

That's my 2 cents.







TopTop
« 1 (2) 3 4 »



Login

Who's Online

208 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits