[UberCMS] UberCMS Edited

Page 6 of 6 FirstFirst 123456
Results 76 to 86 of 86
  1. #76
    Account Upgraded | Title Enabled! Amiroslo is offline
    MemberRank
    Jul 2012 Join Date
    NorwayLocation
    274Posts

    Re: [UberCMS] UberCMS Edited

    cmon guys? Im not joking! I need to remove that shit!!
    I just want the user to get redicted to the index page after he is done registering and enter the client normally -.-

  2. #77
    Infraction Banned HallaHotel is offline
    MemberRank
    Mar 2011 Join Date
    AustriaLocation
    60Posts

    Re: [UberCMS] UberCMS Edited

    Its a normal UberCMS not a edit. What was edited?

  3. #78
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: [UberCMS] UberCMS Edited

    Quote Originally Posted by HallaHotel View Post
    Its a normal UberCMS not a edit. What was edited?
    If you actually read the thread, you'll see that it's a revised version of my old edit. Therefore, it an edit of the original UberCMS. So yeah, fuck off.

  4. #79
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: [UberCMS] UberCMS Edited

    Sorry to bump...

    Exploit: article.php
    Line: 42

    You did not filter it:
    PHP Code:
    $id $bits[0]; 
    You should filter it by doing this:

    PHP Code:
    $id mysql_real_escape_string($bits[0]); 
    Or whatever, you could use filter instead of mysql_real_escape_string if you have problems with that, Anyway full patched article.php:

    PHP Code:
    <?php
    /*=======================================================================
    | UberCMS - Advanced Website and Content Management System for uberEmu
    | #######################################################################
    | Copyright (c) 2010, Roy 'Meth0d'
    | http://www.meth0d.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 3 of the License, or
    | (at your option) any later version.
    | #######################################################################
    | This program is distributed in the hope that it will be useful,
    | but WITHOUT ANY WARRANTY; without even the implied warranty of
    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    | GNU General Public License for more details.
    \======================================================================*/

    define('TAB_ID'5);
    define('PAGE_ID'17);

    require_once 
    "global.php";

    $articleData null;

    if (isset(
    $_GET['mostRecent']))
    {
        
    $getData dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 1");
        
        if (
    mysql_num_rows($getData) > 0)
        {
            
    $articleData mysql_fetch_assoc($getData);
        }
    }
    else if (isset(
    $_GET['rel']))
    {
        
    $rel $_GET['rel'];
        
        if (
    strrpos($rel'-') >= 1)
        {
            
    $bits explode('-'$rel);
            
    $id mysql_real_escape_string($bits[0]);
            
            
    $getData dbquery("SELECT * FROM site_news WHERE id = '" $id "' LIMIT 1");
            
            if (
    mysql_num_rows($getData) > 0)
            {
                
    $articleData mysql_fetch_assoc($getData);
            }
        }
    }

    $tpl->Init();

    $tpl->AddGeneric('head-init');
    $tpl->AddIncludeSet('generic');
    $tpl->WriteIncludeFiles();
    $tpl->AddGeneric('head-overrides-generic');
    $tpl->AddGeneric('head-bottom');
    $tpl->AddGeneric('generic-top');
        
    $tpl->Write('<div id="column1" class="column">');

    $newslist = new Template('comp-newslist');

    if (isset(
    $_GET['archiveMode']))
    {
        
    $newslist->SetParam('mode''archive');
    }
    else if (isset(
    $_GET['category']) && is_numeric($_GET['category']))
    {
        
    $newslist->SetParam('mode''category');
        
    $newslist->SetParam('category_id'$_GET['category']);
    }
    else
    {
        
    $newslist->SetParam('mode''recent');
    }

    $tpl->AddTemplate($newslist);

    $tpl->Write('</div>');

    $tpl->Write('<div id="column2" class="column">');

    $article = new Template('comp-newsarticle');

    if (
    $articleData != null)
    {
        
    $article->SetParam('news_article_id'$articleData['id']);
        
    $article->SetParam('news_article_title'clean($articleData['title']));
        
    $article->SetParam('news_article_date''Posted ' clean($articleData['datestr']));
        
    $article->SetParam('news_category''<a href="/articles/category/' $articleData['category_id'] . '">' clean(mysql_result(dbquery("SELECT caption FROM site_news_categories WHERE id = '" $articleData['category_id'] . "' LIMIT 1"), 0)) . '</a>');
        
    $article->SetParam('news_article_summary'clean($articleData['snippet']));
        
    $article->SetParam('news_article_body'clean($articleData['body'], true));
        
        
    $tpl->SetParam('page_title''News - ' clean($articleData['title']));
    }
    else
    {
        
    $article->SetParam('news_article_id'0);
        
    $article->SetParam('news_article_title''News article not found');
        
    $article->SetParam('news_article_date''');
        
    $article->SetParam('news_category''');
        
    $article->SetParam('news_article_summary''');
        
    $article->SetParam('news_article_body'"The article you were looking for could not be retrieved. Please press the 'back' button on your browser to return to your previous page.");    
        
        
    $tpl->SetParam('page_title''News - News Article not found');
    }

    $tpl->AddTemplate($article);
    $tpl->Write('</div>');

    $tpl->AddGeneric('generic-column3');
    $tpl->AddGeneric('footer');

    $tpl->SetParam('body_id''news');

    $tpl->Output();

    ?>
    If I find more I will update this post or post a new one, Again sorry to bump but I think its needed.

  5. #80
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: [UberCMS] UberCMS Edited

    Quote Originally Posted by zJordan View Post
    Sorry to bump...

    Exploit: article.php
    Line: 42

    You did not filter it:
    PHP Code:
    $id $bits[0]; 
    You should filter it by doing this:

    PHP Code:
    $id mysql_real_escape_string($bits[0]); 
    Or whatever, you could use filter instead of mysql_real_escape_string if you have problems with that, Anyway full patched article.php:

    PHP Code:
    <?php
    /*=======================================================================
    | UberCMS - Advanced Website and Content Management System for uberEmu
    | #######################################################################
    | Copyright (c) 2010, Roy 'Meth0d'
    | http://www.meth0d.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 3 of the License, or
    | (at your option) any later version.
    | #######################################################################
    | This program is distributed in the hope that it will be useful,
    | but WITHOUT ANY WARRANTY; without even the implied warranty of
    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    | GNU General Public License for more details.
    \======================================================================*/

    define('TAB_ID'5);
    define('PAGE_ID'17);

    require_once 
    "global.php";

    $articleData null;

    if (isset(
    $_GET['mostRecent']))
    {
        
    $getData dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 1");
        
        if (
    mysql_num_rows($getData) > 0)
        {
            
    $articleData mysql_fetch_assoc($getData);
        }
    }
    else if (isset(
    $_GET['rel']))
    {
        
    $rel $_GET['rel'];
        
        if (
    strrpos($rel'-') >= 1)
        {
            
    $bits explode('-'$rel);
            
    $id mysql_real_escape_string($bits[0]);
            
            
    $getData dbquery("SELECT * FROM site_news WHERE id = '" $id "' LIMIT 1");
            
            if (
    mysql_num_rows($getData) > 0)
            {
                
    $articleData mysql_fetch_assoc($getData);
            }
        }
    }

    $tpl->Init();

    $tpl->AddGeneric('head-init');
    $tpl->AddIncludeSet('generic');
    $tpl->WriteIncludeFiles();
    $tpl->AddGeneric('head-overrides-generic');
    $tpl->AddGeneric('head-bottom');
    $tpl->AddGeneric('generic-top');
        
    $tpl->Write('<div id="column1" class="column">');

    $newslist = new Template('comp-newslist');

    if (isset(
    $_GET['archiveMode']))
    {
        
    $newslist->SetParam('mode''archive');
    }
    else if (isset(
    $_GET['category']) && is_numeric($_GET['category']))
    {
        
    $newslist->SetParam('mode''category');
        
    $newslist->SetParam('category_id'$_GET['category']);
    }
    else
    {
        
    $newslist->SetParam('mode''recent');
    }

    $tpl->AddTemplate($newslist);

    $tpl->Write('</div>');

    $tpl->Write('<div id="column2" class="column">');

    $article = new Template('comp-newsarticle');

    if (
    $articleData != null)
    {
        
    $article->SetParam('news_article_id'$articleData['id']);
        
    $article->SetParam('news_article_title'clean($articleData['title']));
        
    $article->SetParam('news_article_date''Posted ' clean($articleData['datestr']));
        
    $article->SetParam('news_category''<a href="/articles/category/' $articleData['category_id'] . '">' clean(mysql_result(dbquery("SELECT caption FROM site_news_categories WHERE id = '" $articleData['category_id'] . "' LIMIT 1"), 0)) . '</a>');
        
    $article->SetParam('news_article_summary'clean($articleData['snippet']));
        
    $article->SetParam('news_article_body'clean($articleData['body'], true));
        
        
    $tpl->SetParam('page_title''News - ' clean($articleData['title']));
    }
    else
    {
        
    $article->SetParam('news_article_id'0);
        
    $article->SetParam('news_article_title''News article not found');
        
    $article->SetParam('news_article_date''');
        
    $article->SetParam('news_category''');
        
    $article->SetParam('news_article_summary''');
        
    $article->SetParam('news_article_body'"The article you were looking for could not be retrieved. Please press the 'back' button on your browser to return to your previous page.");    
        
        
    $tpl->SetParam('page_title''News - News Article not found');
    }

    $tpl->AddTemplate($article);
    $tpl->Write('</div>');

    $tpl->AddGeneric('generic-column3');
    $tpl->AddGeneric('footer');

    $tpl->SetParam('body_id''news');

    $tpl->Output();

    ?>
    If I find more I will update this post or post a new one, Again sorry to bump but I think its needed.
    Thanks very much. This has now been updated.

  6. #81
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: [UberCMS] UberCMS Edited

    Seeing as this is bumped, it won't matter if I say thanks. Logged on to find a copy of uber to look at the HTML for the tags habblet (and some other things), and first thing I saw was just what I need. xD

  7. #82
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: [UberCMS] UberCMS Edited

    Quote Originally Posted by Gangnam View Post
    Seeing as this is bumped, it won't matter if I say thanks. Logged on to find a copy of uber to look at the HTML for the tags habblet (and some other things), and first thing I saw was just what I need. xD
    Thanks mate. :)

  8. #83
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: [UberCMS] UberCMS Edited

    I've got this error by accesing some pages 'com-vip-support', how can i fix that?

  9. #84
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: [UberCMS] UberCMS Edited

    Quote Originally Posted by streamhotel View Post
    I've got this error by accesing some pages 'com-vip-support', how can i fix that?
    Get another uber edit and find the page 'comp-vip-support'

  10. #85
    Member Speedy141 is offline
    MemberRank
    May 2011 Join Date
    64Posts

    Re: [UberCMS] UberCMS Edited

    screen3.pngscreen4.png

    I have this index and register, someone knows how to fix?

  11. #86
    I don't even know azaidi is offline
    MemberRank
    Apr 2010 Join Date
    the NetherlandsLocation
    2,065Posts

    Re: [UberCMS] UberCMS Edited

    Update your webbuild.



Page 6 of 6 FirstFirst 123456

Advertisement