Google

NukeCoder


View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Gunner
Guest






PostPosted: Fri Dec 31, 2004 11:20 am Reply with quote

First opff thanks for releasing what sounds like a great mod. I'm having a problem installing.

I get to the password protect stage and then get the following error once I submit:

Quote:
Warning: fopen(backup/.htpasswd): failed to open stream: Permission denied in /home/boozebro/public_html/anbinstall.php on line 171

Warning: fwrite(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 172

Warning: fclose(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 173

Warning: fopen(backup/.htaccess): failed to open stream: Permission denied in /home/boozebro/public_html/anbinstall.php on line 184

Warning: fwrite(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 185

Warning: fclose(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 186


Is this an issue with directory permissions? Thanks
Gunner
Guest






PostPosted: Fri Dec 31, 2004 11:52 am Reply with quote

OK here is what I did. I chmod my backup directoy to 777 before running the install script. I guess the directory needed write permission to work.

Question: Does the autobackup setting apply to the database or the files?
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Fri Dec 31, 2004 12:59 pm Reply with quote

just the database
View user's profile Send private message Visit poster's website
Guest







PostPosted: Fri Dec 31, 2004 11:22 pm Reply with quote

Thanks... I'm a little uncertain of the email settings...what goes into the send mail from setting. I have everything working except the send mail aspect. Great Mod!
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Sat Jan 01, 2005 3:55 am Reply with quote

put whatever email address you want in the from box. its there in case your mail server catches it as spam and you can add the from address as a "safe sender" so it goes to your inbox.
View user's profile Send private message Visit poster's website
xGSTQ
Repeat Offender



Joined: Dec 13, 2005
Posts: 90

PostPosted: Fri Jan 12, 2007 10:25 pm Reply with quote

Thanks this thread fixed my issue, i was getting a blank white screen whan asking to insert a protected name and password for the named dir ...

I chmodded to 777 and ran it again and it worked fine Very Happy
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Sat Jan 13, 2007 4:41 am Reply with quote

I have a new version in the works right now. It will have alot more features but the main attraction will be incremental backups. So even if you have a huge database or massive amounts of files, this script will still back the whole thing up without timing out.... It can also do multiple databases and much more.
View user's profile Send private message Visit poster's website
xGSTQ
Repeat Offender



Joined: Dec 13, 2005
Posts: 90

PostPosted: Sat Jan 13, 2007 4:48 am Reply with quote

Also for some weird reason in your install.txt when adding the code to footer.php it suggests

Code:
foot();

?>
-------------------

Above add:
-------------------

//start auto backup code
   $result1 = $db->sql_query("SELECT autostate, autolast, autoinc FROM ".$prefix."_advbackup where id='1'");
   $row = $db->sql_fetchrow($result1);
   $autostate = $row['autostate'];
   $last_back = $row['autolast'];
   $autoinc = $row['autoinc'];
      if ($autostate == "on"){
         $rawtime = time();
            if (($rawtime - $last_back) > ($autoinc * 3600) ) {
               include("includes/dump.php");
            }
      }
//end auto backup code


I noticed that i lost my downloads footer ! lol

So i had to add it in between the foot(); and ?>
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Sat Jan 13, 2007 5:12 am Reply with quote

The problem with that is that foot function contains a die(); at the end so that code will never get executed.

You should probably put that code right above the die(); in the foot function.

the bottom my footer.php looks like this

 if (file_exists("includes/custom_files/custom_footer.php")) {
      include_once(
"includes/custom_files/custom_footer.php");
    }
    echo 
"</body>\n</html>";
    
ob_end_flush();
    die();
}

foot(); 


so i would do this

 if (file_exists("includes/custom_files/custom_footer.php")) {
      include_once(
"includes/custom_files/custom_footer.php");
    }
    echo 
"</body>\n</html>";
    
ob_end_flush();
    
//start auto backup code
   
$result1 $db->sql_query("SELECT autostate, autolast, autoinc FROM ".$prefix."_advbackup where id='1'");
   
$row $db->sql_fetchrow($result1);
   
$autostate $row['autostate'];
   
$last_back $row['autolast'];
   
$autoinc $row['autoinc'];
      if (
$autostate == "on"){
         
$rawtime time();
            if ((
$rawtime $last_back) > ($autoinc 3600) ) {
               include(
"includes/dump.php");
            }
      }
    
//end auto backup code 
    
die();
}

foot(); 
View user's profile Send private message Visit poster's website
xGSTQ
Repeat Offender



Joined: Dec 13, 2005
Posts: 90

PostPosted: Sat Jan 13, 2007 5:32 pm Reply with quote

Yup that worked great !

Thank you Wink
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT + 10 Hours
Forums ©