Ravens PHP Scripts: Forums
 

 

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.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
TheShniz
Regular
Regular



Joined: Jan 27, 2004
Posts: 65

PostPosted: Thu Mar 03, 2005 12:24 am Reply with quote

I'm not really sure if the subject is acurate, or even how 2 describe it...

I've been running Nuke 7.6 Patched w/ Sentinel 2.1.1 since it came out not 2 long ago... all was well & everything worked just as it should. Having checking around on another module that I'm currently working on (for streaming audio), I was having a problem w/ the 'nuke_modules' table didn't update itself for my newly created & uploaded module. Six briefly said that it means something's not working as it should and that my number of fields may have increased.

After poking & proding around C'ing if it was the module, I noticed that Sentinel has also stopped writing 2 the database w/ its last entry dating Feb 23rd which also happens 2 B the day I started the module. That thread is also in this forum.

I don't mean 2 split the thread from my module as I know it has 2 B related, but am really hoping I can correct whatever is wrong.

HELP!
- J

:: edited ::

I updated Sentinel to the newest 2.1.3 2 C if it would correct itself, but 2 no avail Sad


Last edited by TheShniz on Thu Mar 03, 2005 12:38 am; edited 1 time in total 
View user's profile Send private message
TheShniz







PostPosted: Thu Mar 03, 2005 12:35 am Reply with quote

I just don't C how screwing around w/ the Downloads module could do anything... it doesn't even C'm 2 B integrated w/ phpNuke, just another module. I didn't screw around w/ the database until 2x days afterwards either, so can't B that. Am thinking now mayB it's just a coincidence? but is kinds hard 2 swallow.

Feb 23 - Started modifying standard Downloads module for MMS:// (modifications ONLY to modules/downloads/index.php)
Feb 23 - Last time Sentinel wrote 2 database
Feb 24 - Only modifications to index.php, but Sentinel had already stopped writing before these
Feb 25 - Copied my modifications to create a 2nd module called 'Media_Library', also created duplicate media_library_downloads tables (plural)

The only thing changed on Feb 23rd (in index.php) is this:

Code:


function getit($lid) {
    global $prefix, $db;
    $lid = intval($lid);
    $db->sql_query("update ".$prefix."_downloads_downloads set hits=hits+1 WHERE lid='$lid'");
    update_points(17);
    $result = $db->sql_query("SELECT url FROM ".$prefix."_downloads_downloads WHERE lid='$lid'");
    list($url) = $db->sql_fetchrow($result);
// in_array won't work on older php versions this way
// Add media extensions to this array lower case only!
    $allowed_ext  = array(
                       "wav",
                       "mp3",
                       "avi");
$ext = substr(strrchr(strtolower($url), "."), 1);         
if(in_array($ext, $allowed_ext, true)){
    $url = ereg_replace("http://","mms://",$url);}
    Header("Refresh: 0; url=$url");
}


Hoping some1 can gimme some direction on Y Sentinel wouldn't B tracking IP's and Y phpNuke isn't updating its own tables.

I'll B your best friend!?!
- J
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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 ©