vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images (https://vborg.vbsupport.ru/showthread.php?t=59820)

I-Web 03-20-2004 06:19 AM

Went without any hitch nice work

Enforcerman 03-30-2004 03:21 PM

the download zip is corrupted.

josh929 04-09-2004 12:33 AM

i don't know anything about security, so i was just wondering:

is there any sort of security risk to chmod-ing everything to 777? i never really understood the chmod thing.

or does this hack pose any other sort of risk?

RyoShin 04-09-2004 04:38 AM

For those getting the header errors:

Go into your ftp.php file and add a double slash (//) to lines 128-132 (they start with header), 149, 150, 154, 155 (these start with cookie), and 157 (starts with header.)

Here's a better view of what to change, if you've changed how the lines are:
PHP Code:

//header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");                // Headers
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache"); 

And
PHP Code:

if ($cookie_username == $username && md5($cookie_password) == md5($password))    // Create cookie on login
{
 if (
$auto_login)
 {
  
setcookie("cookie_username"$usernametime()+31536000);
  
setcookie("cookie_password"md5($cookie_password), time()+31536000);
 }
 else
 {
  
setcookie("cookie_username"$username);
  
setcookie("cookie_password"md5($cookie_password));
 }
 
header("Location: $PHP_SELF");


That entire thing should change to the following (same thing, but with the double-slash (comment code)):
PHP Code:

//header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");                // Headers
//header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
//header("Cache-Control: no-store, no-cache, must-revalidate");
//header("Cache-Control: post-check=0, pre-check=0", false);
//header("Pragma: no-cache"); 

And
PHP Code:

if ($cookie_username == $username && md5($cookie_password) == md5($password))    // Create cookie on login
{
 if (
$auto_login)
 {
  
//setcookie("cookie_username", $username, time()+31536000);
  //setcookie("cookie_password", md5($cookie_password), time()+31536000);
 
}
 else
 {
  
//setcookie("cookie_username", $username);
  //setcookie("cookie_password", md5($cookie_password));
 
}
 
//header("Location: $PHP_SELF");


respectively.

In fact, you might be able to comment out that entire if statement, but I'm just removing lines as they're called.

I'm no guru in PHP (working on that), but after doing that the error messages went away, and the hack still worked fine for me. I wouldn't mind seeing a fix by someone who really know it, or Erwin himself.

Oh, and I'm also having problems with making a login name work, but no clue how to fix that.

ajk 04-12-2004 05:53 AM

Hi Dr. really nice hack!

Does any body know or installed it on vB 3.0 gold?
I'd like to check before I install it on mine.

THANKS!

Gio Takahashi 04-12-2004 07:53 PM

I have this installed on my forums, and it is vb3 gold. it works fine.

Charlie Argueta 04-13-2004 12:29 AM

Quote:

Originally Posted by Gio Takahashi
I have this installed on my forums, and it is vb3 gold. it works fine.

Really, excelente Mr. Burns

RyoShin 04-13-2004 12:41 AM

I'm using Gold, but I'm getting the login problems and header errors stated above.

Of course, I haven't CHMODed everything 755/777 yet. Could that be part of the problem?

ajk 04-13-2004 06:00 AM

Quote:

Originally Posted by Gio Takahashi
I have this installed on my forums, and it is vb3 gold. it works fine.

Thank you Gio, I'll try it out.

Sometimes I'm at a computer without FTP.
It would come in handy doing remote maint.

I'll click install.

vau7 04-21-2004 04:53 PM

Unbelieavable cool hack!


All times are GMT. The time now is 05:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete