Menu

#12 Unable to update -> PHP-Nuke -> CVS Changes

open
nobody
None
5
2005-01-27
2005-01-27
Jason Lee
No

Your not able to use the update.php because of the
wow.php file from this revision in the CVS (i also got
the update.php coresponding changes)

http://cvs.sourceforge.net/viewcvs.py/wowprofiler/web/lib/wow.php?rev=1.4&sortby=date&view=auto

The reason is

if( $is_php_nuke ) {
if( ! eregi( "modules.php", $_SERVER['PHP_SELF'] ) ) {
die( "You can't access this file directly..." );
} else {
require_once( "mainfile.php" );
$module_name = basename($wowdir);

That part of the code.

Soo by having the wow.php along with the update.php
asking for

include_once "lib/wow.php";

the WoWLauncher is unable to update, nor are you able
to update manually because it will deny you access.

I believe because of this, restriction must be redone
on the update.php if using php nuke for both the WoW
Launcher or manual update to work.

Discussion

  • Jason Lee

    Jason Lee - 2005-01-27

    Logged In: YES
    user_id=1038448

    UPDATE

    I decided to set $is_php_nuke = 0;

    You can view this here
    http://www.bigballer.org/modules/Toons/

    If you notice, it doesnt show any sort of header and it uses
    $guild_desc as the website's title, it also does not display
    $guild_name anywhere however it does check to see if that
    character is in my guild, which is named "Fury". Soo the the
    index.php is checking to see if characters are in guild.

    Just soo you know this is part of my conf.php

    $stylesheet= "default.css";

    $data_dir = "data";
    $log_dir = $data_dir . "/logs";
    $upload_dir = $data_dir . "/uploads";

    $show_inventory = 1;

    $guild_name = "Fury";
    $guild_desc = "Doug has lame face :)";

    # For Thottbot
    #$img_url="http://i.thottbot.com/";
    #$img_suffix="jpg";
    $img_url="img/";
    $img_suffix="png";

    $installed_code_version = "0.0.0";

    ?>

    Other then that everything pretty much works and I would say
    ready for a release.

    If you would like, I will zip the files that I pulled from
    the CVS (I used all your latest versions, ones before
    Celandro's imports (which I notice are completely different
    from yours)

     
  • Jason Lee

    Jason Lee - 2005-01-27

    Logged In: YES
    user_id=1038448

    ANOTHER UPDATE

    index.php

    Change
    wow_header( $guild_desc . " WoW Roster" );

    To
    wow_header( $guild_name . " WoW Roster" );

    In order to fix website title.

    The formatting and all that deal looks great in FireFox, no
    problems here. Internet Explorer is a different story =\

     

Log in to post a comment.