• » webSPELL.org - Free Content Management System
  • Language switch: English German
  • login



    » lost password?   » register now
  • About webSPELL

    webSPELL is a free Content Management System which was especially developed for the needs of esport related communities. Since a short while we are also offering an optimized and enhanced webSPELL version for the special requirements of non-profit organisations. The purpose of both systems is to offer a professional and free opportunity to create and administrate your own website in an easy and optimized way.

    » Learn more about webSPELL     » Download webSPELL now!
  • Advertisement

    Follow us

  • Sort:     printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
    Author
    Message
    webSPELL newbie
    39 Posts
    20.09.2011, 22:13 offline quote 

    Ok das stimmt natürlich lächeln aber korrigieren könnte man es ja mal der Richtigkeit wegen zunge raus
    webSPELL user
    270 Posts
    20.09.2011, 21:27 email offline quote 

    ja daher auch das Kommentar 'doppelt gemoppelt, aber egal' ^^

    Ist dennoch kein Fehler ;-)

    This signature is under construction...
    webSPELL newbie
    39 Posts
    20.09.2011, 20:31 offline quote 

    Hm ne soweit ich das sehe ist es doch nicht in Ordnung, weil wenn du keinen $_GET['site'] Wert übergibst wird $site = '' gesetzt und dann ergibt isset() im cotent doch keinen Sinn mehr ?!
    webSPELL user
    270 Posts
    20.09.2011, 20:15 email offline quote 

    hm, ist doch in Ordnung. Wenn $_GET['site'] nicht gesetzt ist dass wird die Variable auf '' also leer gesetzt.

    danach wird dann eben nochmal gekuckt ob $site gesetzt ist (doppelt gemoppelt, aber egal...)

    Code:
    1.
    if (empty($site)) $site = 'news;


    wäre da sinnvoller.

    Probleme hat man hier nur, wenn die Datei news.php nicht vorhanden ist.

    Code:
    1.
    if($site == null) $site="news";


    würde hier im übrigen nichts bringen, da $site nie null ist (außer sie wäre nicht gesetzt, was aber der Fall ist wenn man _functions.php richtig einbindet). Daher würde deine Abfrage nichts bringen, wenn dann wie oben schon erwähnt empty($site) verwenden.
    Nur so als Anmerkung, sinnvoll wäre hier sowas ähnliches wie:

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    if (!file_exists($site.".php")) $site = 'news';
    if (!file_exists('news.php')){
         echo ("News-Page not found.");
         exit();
    }
    else include ($site.".php");

    This signature is under construction...
    webSPELL newbie
    39 Posts
    20.09.2011, 20:00 offline quote 

    Ich habe in webSPELL einen kleinen Fehler gefunden:

    _functions.php:

    Code:
    1.
    2.
    if(isset($_GET['site'])) $site = $_GET['site'];
    else $site = '';


    index.php:

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    <?php
    if(!isset($site)) $site="news";
    $invalide = array('\\','/','/\/',':','.');
    $site = str_replace($invalide,' ',$site);
    if(!file_exists($site.".php")) $site = "news";
    include($site.".php");
    ?>


    Ich denke jeder sieht hier den Fehler, dass die isset Abfrage beim Einbinden Schwachsinn ist und zu einem file_exists = false führt. Sowas in dierser Richtung sollte klappen:

    Code:
    1.
    if($site == null) $site="news";
    Sort:     printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
  • » Support

    » Topics
    19.06.2013 - 02:59 - 10 Replies
    » [SELL] Gaming Website - E...
    [SELL] Gaming Website - EXCLUSIVE WEBSITE
    Last post: hornyst
    Board: EN - Offers
    19.06.2013 - 02:59
    18.06.2013 - 23:10 - 1 Replies
    » [S] Aufträge Web- und Pri...
    [S] Aufträge Web- und Printdesign
    Last post: neiD-
    Board: DE - Suche
    18.06.2013 - 23:10
    18.06.2013 - 12:30 - 9 Replies
    » Querry Failed Error no 10...
    Querry Failed Error no 1054
    Last post: LoRd
    Board: EN - Technical support
    18.06.2013 - 12:30
    18.06.2013 - 09:43 - 13 Replies
    » webSPELL Bootstrap (respo...
    webSPELL Bootstrap (responsible)
    Last post: sKy-e.belst
    Board: EN - General
    18.06.2013 - 09:43
    18.06.2013 - 01:11 - 1 Replies
    » how can i transform back ...
    how can i transform back to old my website ?
    Last post: Schalla
    Board: EN - Technical support
    18.06.2013 - 01:11
    17.06.2013 - 20:50 - 3 Replies
    » Suche Coder !
    Suche Coder !
    Last post: naki
    Board: DE - Suche
    17.06.2013 - 20:50
    17.06.2013 - 12:48 - 0 Replies
    » [4SALE] Custom team websi...
    [4SALE] Custom team website
    Last post: element-
    Board: EN - Offers
    17.06.2013 - 12:48
    16.06.2013 - 21:21 - 3 Replies
    » update webspell problem
    update webspell problem
    Last post: RUSSHEL
    Board: EN - General support
    16.06.2013 - 21:21
    16.06.2013 - 20:42 - 0 Replies
    » "Make sure you have cooki...
    "Make sure you have cookies enabled" During Login
    Last post: Sasquatch
    Board: EN - General support
    16.06.2013 - 20:42
    16.06.2013 - 16:22 - 8 Replies
    » Farbe von "Dein Profil wu...
    Farbe von "Dein Profil wurde aktualisiert. Du wirst weitergeleitet" ändern!
    Last post: Cali-go
    Board: DE - Allgemeiner Support
    16.06.2013 - 16:22
    16.06.2013 - 16:19 - 2 Replies
    » Sehr erfahrener Programmi...
    Sehr erfahrener Programmierer gesucht (Community,Clanpage)
    Last post: StufF
    Board: DE - Suche
    16.06.2013 - 16:19
    15.06.2013 - 22:39 - 0 Replies
    » portfolio/agency for sale
    portfolio/agency for sale
    Last post: Thoomii
    Board: DE - Biete
    15.06.2013 - 22:39
    15.06.2013 - 16:39 - 2 Replies
    » [4SALE] eSport Design/Tem...
    [4SALE] eSport Design/Template
    Last post: LeG3nDz
    Board: EN - Offers
    15.06.2013 - 16:39
    15.06.2013 - 10:35 - 12 Replies
    » externe Festplatte spinnt
    externe Festplatte spinnt
    Last post: plenergy
    Board: DE - Internet
    15.06.2013 - 10:35
    14.06.2013 - 20:53 - 11 Replies
    » Webspell ver 1070 EN
    Webspell ver 1070 EN
    Last post: TyRRRax
    Board: EN - General support
    14.06.2013 - 20:53
    14.06.2013 - 19:03 - 4 Replies
    » Kostenlose Clanmappen!
    Kostenlose Clanmappen!
    Last post: unikat
    Board: DE - Biete
    14.06.2013 - 19:03
    14.06.2013 - 15:22 - 6 Replies
    » Userpic & Avatar
    Userpic & Avatar
    Last post: Tuxx
    Board: DE - Technischer Support
    14.06.2013 - 15:22
    14.06.2013 - 14:31 - 5 Replies
    » [B] Meine Dienste als Des...
    [B] Meine Dienste als Designer
    Last post: Kenny2601
    Board: DE - Biete
    14.06.2013 - 14:31
    14.06.2013 - 00:52 - 3 Replies
    » News Fail can´t publish
    News Fail can´t publish
    Last post: bazic
    Board: DE - Allgemeiner Support
    14.06.2013 - 00:52
    13.06.2013 - 13:59 - 2 Replies
    » [V] Design + Anpassung
    [V] Design + Anpassung
    Last post: e9li
    Board: DE - Biete
    13.06.2013 - 13:59
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers