Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: [-1] 1 - 2

Bottom
.750 and Web_Links module doesn't work
  • Posted: 13.05.2004, 21:02
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    OK, change the code on lines 30-33 from this:

    Code

    if (eregi('banners.php', $_SERVER['PHP_SELF'])) {
        die ("You can't access this file directly...");
    }


    to this:

    Code

    if (eregi('blocks/banners.php', $_SERVER['PHP_SELF'])) {
        die ("You can't access this file directly...");
    }


    Then it will work.

    -Chris
  • Posted: 13.05.2004, 21:06
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    Or this if there is a problem with using the forward slash:

    Code

    if (eregi('banners.php', $_SERVER['PHP_SELF']) && eregi('blocks', $_SERVER['PHP_SELF'])) {
        die ("You can't access this file directly...");
    }


    -Chris
  • Posted: 24.05.2004, 23:50
     
    stretchr
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    24.08.07
    Posts:
    60
    Fixed my problem with banners. Thank you!!!

    Cheers,
    Stretchr :D

    --
    "It's a small world...
    But I wouldn't want to paint it!"
    Stephen Wright
  • Posted: 25.05.2004, 01:34
     
    stretchr
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    24.08.07
    Posts:
    60

    r3ap3r

    Banners are fixed....

    -Chris


    First, thanks for your fixes, Chris. They solved one of my banner problems. My only remaining problem is that I cannot seem to be able to modify any of my existing banners. In Banner Management I can edit the individual clients but there's nowhere to edit the actual banners any more. Have you, or anyone else, solved this? Thanks!
    Stretchr

    --
    "It's a small world...
    But I wouldn't want to paint it!"
    Stephen Wright
  • Posted: 25.05.2004, 07:00
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    Somehow I must have missed that one. I'll look at it later today if someone hasn't already fixed it.
    -Chris
  • Posted: 25.05.2004, 13:28
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    Ok, the whole modules/NS-Banners/admin.php file was a total mess. I've fixed the bugs and cleaned up the SQL portions of the files. I've also gone back and cleaned up the banners.php file. Rather than post 1100+ lines of code in this message I'll post the link to where you can download the fixed version.

    Get the fixed version here.

    This link is to the NOC bug tracker, so it will eventually become a dead link. But at that time the fix will be incorporated into the normal download.

    -Chris
  • Posted: 25.05.2004, 13:33
     
    larsneo
    rank:
    Software Foundation Software Foundation
    registered:
     December 1969
    Status:
    offline
    last visit:
    15.11.08
    Posts:
    4481
    chris,
    did you check against the latest sources from the CVS? can you provide a diff with your changes?

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • Posted: 25.05.2004, 14:01
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    I haven't checked CVS. Probably should have done that. I'll need to figure out how to get the .750 code from CVS, all I've ever gotten out of CVS is the . 8 code. As far as a diff goes I assume you want a diff comparing the version in CVS to my version. I can do that after I get the CVS code.

    The file I uploaded has the whole module in it. I did it that way so people who wanted to fix the module on their site without dealing with cvs or diff files could just download the files and go.

    The only files that have been modified though are the:
    banners.php
    includes/blocks/banners.php
    modules/NS-Banners/admin.php

    I'll work on getting a diff file.
    It probably won't be for a few hours though.

    -Chris
  • Posted: 25.05.2004, 14:06
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Chris,

    I'd fixed a couple of banners bugs in cvs but maybe not all of them since I don't actually use this module myself....

    BTW. As we discussed recently i've just asked Drak to contact you regarding joining the dev team so you should hear from him later today.

    -Mark
  • Posted: 25.05.2004, 16:01
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    I don't really use it all that much myself either, but I figured somebody had to fix it :)

    Thanks for the update.

    -Chris
  • Posted: 25.05.2004, 16:44
     
    larsneo
    rank:
    Software Foundation Software Foundation
    registered:
     December 1969
    Status:
    offline
    last visit:
    15.11.08
    Posts:
    4481
    it's just that i've added a couple of fixes for the SQL-statements, too (especially typecasting and removal of the deprecated queryutil.php stuff) - and the current (CVS) banner module is working on my site icon_wink

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • Posted: 25.05.2004, 17:14
     
    r3ap3r
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.02.08
    Posts:
    381
    Ok the diffs and the modified version that add Larsneo's type casting have been uploaded to the same location listed above. The changes that I made are almost identical to the changes that Mark and Larsneo made, with the exception that I changed all the SQL lines to be easier to read and debug. I really think you'll prefer my version when it comes to changing or debugging the code later.

    Marks include/blocks/banners.php file still won't work though. I have modified that as well. If you try going to http://www.example.com/banners.php and there is a banner block active you will get a page that says "You can't access this file directly" with Marks current code since the file that you are accessing happens to be named identical to the name of the block file (banners.php).

    -Chris
  • Posted: 25.05.2004, 23:53
     
    stretchr
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    24.08.07
    Posts:
    60

    r3ap3r

    Ok, the whole modules/NS-Banners/admin.php file was a total mess. I've fixed the bugs and cleaned up the SQL portions of the files. ...-Chris


    I used the latest banners2.tar.gz file and it appears to have fixed all the problems I encountered. Thank you for looking into this and fixing it!

    Cheers,
    Stretchr

    --
    "It's a small world...
    But I wouldn't want to paint it!"
    Stephen Wright
  • Posted: 12.06.2004, 00:48
     
    mikegat
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    10.06.04
    Posts:
    8
    BTW - Adding this

    Code

    list($req,$lid,$cid) = pnVarCleanFromInput('req','lid','cid');

    seemed to fix the downloads module problem.

Goto page: [-1] 1 - 2

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula