Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Mon Jun 13, 2005 7:49 pm Reply with quote

I don't know how to tell which version I have. The install that I did was called nuke 7.4 patched. Should I update and if so, what to?
 
View user's profile Send private message Send e-mail
chatserv
Member Emeritus


Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Wed Jun 15, 2005 1:19 am Reply with quote

Check the readme file that came with the patch, it will list the release dates of versions, obviously your's will be the newest listed. If it's 3.0 but the date is shown as last year then you are missing 3.0b
 
View user's profile Send private message Visit poster's website
brentnhunter
Client


Joined: Sep 10, 2004
Posts: 166

PostPosted: Fri Jun 17, 2005 8:36 pm Reply with quote

Where can I find the readme file?
 
View user's profile Send private message
chatserv
PostPosted: Fri Jun 17, 2005 8:53 pm Reply with quote

It comes with the patch's zip, check where you unzipped it on your pc or ftp to the site and check if it's there, if it is it will be in the same location of mainfile.php
 
brentnhunter
PostPosted: Fri Jun 17, 2005 9:29 pm Reply with quote

I don't see any files named "readme" or anything like it in the directory where my mainfile.php resides. Is there something else I can look for?
 
chatserv
PostPosted: Fri Jun 17, 2005 9:48 pm Reply with quote

When you downloaded the patch you most likely unziped it on your pc before uploading the files, look there
 
brentnhunter
PostPosted: Fri Jun 17, 2005 10:20 pm Reply with quote

That was along time ago, I have no idea where that would have been and I already looked. Sad That is why I asked if you had any other suggestions?
 
chatserv
PostPosted: Fri Jun 17, 2005 10:57 pm Reply with quote

In that case open any file like mainfile.php and scroll all the way down, i recently removed all CVS keywords from the files because they were getting too cluttered but yours might still have them, in there you will find a few lines describing changes, post here the newest date found in those lines.
 
brentnhunter
PostPosted: Fri Jun 17, 2005 11:48 pm Reply with quote

Thanks... I run a heavily modified site so there is code in my mainfile.php at the bottom that is not relevant. I don't see any lines at the bottom that refer to hcanges. I'm not sure what to look for but here are the last two functions:

function stripos_clone($haystack, $needle, $offset=0) {
return strpos(strtoupper($haystack), strtoupper($needle), $offset);
}
if ($forum_admin == 1) {
include("../../../includes/nsnml_func.php");
} elseif ($inside_mod == 1) {
include("../../includes/nsnml_func.php");
} else {
include("includes/nsnml_func.php");
}


//function get_userid($uname){
function get_user_id($uname){

global $db,$user_prefix;
$sql="select user_id from ".$user_prefix."_users where username='$uname'";
//echo $sql;/* remove // to debug */
$result=$db->sql_query($sql);

$userid=$db->sql_fetchrow($result);

return $userid[user_id];

}


At the very TOP of the file it has some comments:

<?php
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
include_once("nrmainfile.php");
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* Only registered users can see links on this board! Get registered or login! */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security checking code 2003 by chatserv */
/* Only registered users can see links on this board! Get registered or login! -- Only registered users can see links on this board! Get registered or login! */
/************************************************************************/



Does this help?

Brent
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Jun 18, 2005 12:02 am Reply with quote

You can make some assumptions (back into your answer). Look at your version of nuke, what date the site was installed, and then Chat can probably tell you what patch level was in place at that time. As I said, I almost always applied the patch level of the day. But, some clients do their own updates too.
 
View user's profile Send private message
brentnhunter
PostPosted: Sat Jun 18, 2005 7:16 am Reply with quote

Thanks Raven, although it sure seems like one ought to be able to look in a file or files and see exactly what the patch level is without having to guess, even if it's an educated guess. Maybe that can be done in the future, a simple comment in one of the files or maybe even a new field in the database.

chatserv, my system was installed in September of 2004 and as I mention above, it is php-nuke 7.5
 
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1159
Location: Sanbornton, NH USA

PostPosted: Sat Jun 18, 2005 10:15 am Reply with quote

A few times in the past year, I have wondered about an idea regarding this issue.

I realize that you can't alter the version number because a lot of scripts rely on a situation where IF $version >= 7.6 etc.... and I realize that phpBB does the same thing in checking for updates, etc... but would it be possible to slip a new table into the DB or a file somewhere to actually reflect the "Patched" revision?

Something that said, "This is Patched 3.0b for Nuke 7.4 - Last Files Revision Dated June 5, 2005 - Patched Installed on June 17, 2005" or something like that?

I realize it is a little work, but I think it goes a long way in addressing where you are (as well as identifying when poeple have installed the wrong version of patched for their particular platform... for example when someone accidentally installs patched files for 7.4 when they are actually running 7.0)

Just a thought!

Steph

_________________
Steph Benoit Only registered users can see links on this board! Get registered or login!
1CMS, 100% Section 508 and W3C XHTML/CSS Compliant (Truly) 
View user's profile Send private message Visit poster's website
Donovan
Client


Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Mon Jun 20, 2005 9:22 am Reply with quote

The very bottom of my mainfile tells me the following:

Quote:
# $Log: mainfile.php,v $
# Revision 1.8 2005/02/18 22:17:26 chatserv
# Version 2.9 Release
#
# Revision 1.7 2005/02/01 05:46:18 chatserv
# Only registered users can see links on this board! Get registered or login!
#
# Revision 1.6 2005/01/31 02:51:29 chatserv
# Only registered users can see links on this board! Get registered or login!
#
# Revision 1.5 2004/12/30 22:29:54 chatserv
# Only registered users can see links on this board! Get registered or login!
#
# Revision 1.4 2004/12/12 00:20:50 chatserv
# Only registered users can see links on this board! Get registered or login!
#
# Revision 1.3 2004/11/02 21:11:17 chatserv
# Only registered users can see links on this board! Get registered or login!
#
# Revision 1.2 2004/10/11 16:00:50 chatserv
# Only registered users can see links on this board! Get registered or login!
#
# Revision 1.1 2004/10/04 19:15:28 chatserv
# Initial CVS Addition
#


So I must be running 2.9 patched.
 
View user's profile Send private message Visit poster's website ICQ Number
Donovan
PostPosted: Mon Jun 20, 2005 10:02 am Reply with quote

My other site where I am running 7.6 does not have anything at the bottom of mainfile. So am I to assume that I have v3.0 patched?

I should have kept my install .zip files separate from all my other crap, but didn't think I would need it.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©