Author |
Message |
|
can someone please delete my earlier post?
|
 |
|
Just read your last post as i was switching off the light....
When i installed months ago i did edit the templates or customize a few of them if you like but it was minor really. Just cosmetic stuff nothing spectacular.
Everything seemed to be working fine since last year, then recently that happened so im not sure why or how it would do that all of a sudden. Strange.
How do i go about preserving the layout in the index.php page from changing when i upload the original templates?
I think i may have a backup copy on CD from a couple of months ago.
I usually make backups for when this happens.
Maybe i could backup everything first and then rollback to 2004's backup?
Ok im really going to sleep now.. no encore. lol
|
 |
|
Thanks for help but i have to get some sleep.
Back later in 6 hours.
|
 |
|
I just downloaded the script again and had a look at the index pages in those directorys and theres nothing in them anyhow? They are empty.
Im running phpbb2 on a second mysql DB.
Same as on this site.
But they are not connected in any way.
Also there is nothing wrong with phpbb2.
I emailed the hosting admin and they say no outages at there end.
(But they probably would say that anyhow even if there was, until proven guilty!).
I notice in the file manager that all files and folders on the entire website were 'last changed' at midnight on the 31st of December 2004.
Thats impossible because i was drunk at the beach making out with what seemed like at the time, a hot girl, on new years. LOL
|
 |
|
Yes, your right. The index.html page is empty in /templates.
The index.html page is also empty in /lib.
What can i do to restore it/them without screwing up the rest of the guestbook?
Or rather, how do i backup the guestbook to make modifications or will it not affect it if i overwrite the /templates/index.html page with the original?
|
 |
|
Are you talking about a template in the /guestbook/lib or a template in the /templates directory?
Both of those directorys mentioned above have an 'index.html' page which is empty/blank.
The actual path to the guestbook on the website (URL) is /guestbook/index.php
Im not sure why all of a sudden it has just started doing that.
Its been working fine since install.
What can i do?
|
 |
|
Thats interesting because i did a search first before posting and found nothing?
What words did you use or where are the posts?
How does a template become empty or deleted when i havent touched the guestbook for about 6 months?, or the website for that matter.
Regards
|
 |
|
Guestbook 2.3.1
Has been working fine for at least 6 months with entries ok.
Then all of a sudden this warning appears on the top of the index page. Also the same message in the 'sign guestbook' and 'admin' page's.
Warning: fread(): Length parameter must be greater than 0. in /home/www/mysiteaddress.com/guestbook/lib/template.class.php on line 53
Any ideas and help appreciated.
Id rather ask for help then try and fix it and end up making things worse then they are.
Heres a copy of the actual template.class.php page
Permission is 644
==================================
<?php
/**
* ----------------------------------------------
* Advanced Guestbook 2.3.1 (PHP/MySQL)
* Copyright (c)2001 Chi Kien Uong
* URL: http://www.proxy2.de
* ----------------------------------------------
*/
class gb_template {
var $template = array();
var $root_dir;
var $LANG;
var $plain_html = array();
function gb_template($path='') {
$this->root_dir = $path;
}
function set_rootdir($tpl_dir) {
if (!is_dir($tpl_dir)) {
return false;
}
$this->root_dir = $tpl_dir;
return true;
}
function set_lang($language='') {
if (!empty($language) && file_exists("$this->root_dir/lang/$language.php")) {
$this->language = $language;
} else {
$this->language = "english";
}
return $this->language;
}
function get_content() {
if (!isset($this->LANG)) {
include "$this->root_dir/lang/".$this->language.".php";
$this->LANG =& $LANG;
$this->WEEKDAY =& $weekday;
$this->MONTHS =& $months;
}
return $this->LANG;
}
function get_template($tpl) {
if (!isset($this->template[$tpl])) {
$filename = "$this->root_dir/templates/$tpl";
if (file_exists("$filename")) {
$fd = fopen ($filename, "r");
$this->template[$tpl] = fread ($fd, filesize ($filename));
fclose ($fd);
$this->template[$tpl] = ereg_replace("\"", "\\\"", $this->template[$tpl]);
}
}
return $this->template[$tpl];
}
}
?>
==================================
Thanks in advance
|
 |
|
Can't anyone help me.
|
 |
|
Never mind.. got it.. THANKS!!!
|
 |
|
Thanks.. sort of back to normal.lol
just need the file I need to reupload to get rid of the arabic setting?
|
 |
|
thanks amber.. still confused..lol.. do you mean this?
if (!get_magic_quotes_gpc()) {
$username = addslashes($username);
$password = addslashes($password);
I cant get to the admin page to change the lanquage back.. can I do that from an actual file in the file manager... sorry, dumb when it comes to php
Thanks!
|
 |
|
Hi, I have had the simple html hacks before in my clients books but this one is stumping me.. any idea on a fix?
http://www.kimsprimitives.com/guestbook/index.php
I found a few bad posts and deleted those through the php my admin but seems they got to something else and I am not sure what file I need to restore or redo to fix the prob?
Thanks!
Kims Prims
|
 |
|
I've known Amber for a while now, and calling her "wise ass" is completely offensive and ridiculous. I created & run a large reptile website (blue tongue skinks.net), and had several problems with guestbook hacking. She offered to re-design the hacked section, and even spent several hours on the phone with me free of charge. She of course never asked for a cent, that's just the kind of person she is, so naturally when a bone head comes along and calls her names like a sissy safe behind his keyboard, it tends to anger me a little. I'm in debt to her, and will always offer my web design services free of charge to her; Simply because of her willingness to help and not expecting anything in return.
On a lighter note (and other than this thread) I'm enjoying learning all the info on the forum! Thanks!
|
 |
|
yes I have the same problem: even though AGcodes are enabled, the urls dont turn into links automatically. I f I try to edit the posts and use html i often get an error message saying I've used improper words
my guestbook is here:
http:rocketrabbit.com/guestbook/
|
 |
|