Author |
Message |
sqzdog
Involved


Joined: Sep 22, 2003
Posts: 252
|
Posted:
Mon Jun 13, 2005 7:49 pm |
|
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? |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Wed Jun 15, 2005 1:19 am |
|
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 |
|
|
|
 |
brentnhunter
Client

Joined: Sep 10, 2004
Posts: 166
|
Posted:
Fri Jun 17, 2005 8:36 pm |
|
Where can I find the readme file? |
|
|
|
 |
chatserv

|
Posted:
Fri Jun 17, 2005 8:53 pm |
|
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

|
Posted:
Fri Jun 17, 2005 9:29 pm |
|
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

|
Posted:
Fri Jun 17, 2005 9:48 pm |
|
When you downloaded the patch you most likely unziped it on your pc before uploading the files, look there |
|
|
|
 |
brentnhunter

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

|
Posted:
Fri Jun 17, 2005 10:57 pm |
|
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

|
Posted:
Fri Jun 17, 2005 11:48 pm |
|
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 */
/* http://phpnuke.org */
/* */
/* 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 */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
Does this help?
Brent |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Jun 18, 2005 12:02 am |
|
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. |
|
|
|
 |
brentnhunter

|
Posted:
Sat Jun 18, 2005 7:16 am |
|
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: 1164
|
Posted:
Sat Jun 18, 2005 10:15 am |
|
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
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
 |
Donovan
Client

Joined: Oct 07, 2003
Posts: 735
Location: Ohio
|
Posted:
Mon Jun 20, 2005 9:22 am |
|
The very bottom of my mainfile tells me the following:
So I must be running 2.9 patched. |
|
|
 |
 |
Donovan

|
Posted:
Mon Jun 20, 2005 10:02 am |
|
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. |
|
|
|
 |
|