+ Antworten
Seite 1 von 3 1 2 3 LetzteLetzte
Ergebnis 1 bis 10 von 21

Thema: Verweise auf index2.php nach Migration umschreiben - War: Verzweifelung

  1. #1
    Neu an Board
    Registriert seit
    14.10.2008
    Beiträge
    28
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard Verweise auf index2.php nach Migration umschreiben - War: Verzweifelung

    Hallo Leute,

    ich bin hier langsam am Verzweifeln.

    Ich bin dabei eine Joomla 1.0.15 auf eine 1.5 zu migrieren,,,

    Das mit den Datenbanken hat ja mit etwas tricksen ganz gut geklappt.

    Womit ich jetzt extreme Probleme habe ist die Migration der beiden Index.PHP's

    Index.php und Index2.php

    Da in diesen Verweise auf eigene Scripte stehen kann und möchte ich nicht auf diese verzichten.

    Habe versuch die PHP's anzupassen, hab mittlerweile gefühlte 1000 Foren nach Hilfe durchforstet,
    hab da auch einiges gefunden jedoch komme ich zu keinem Ergebnis...
    hab dazu einfach zu wenig Erfahrung in Sachen PHP.

    Wer kann mir helfen?

    MfG
    Der Drache

  2. #2
    Kommt häufiger vorbei Avatar von Ethlaegil
    Registriert seit
    15.12.2008
    Ort
    Oldenburg
    Alter
    38
    Beiträge
    260
    Bedankte sich
    4
    Erhielt 67 Danksagungen
    in 63 Beiträgen

    Standard

    du meinst die index.php und die index.php2 im root von Joomla!? Was hast du damals bei Joomla! 1.0.15 da eingebaut? Meine Glaskugel ist ganz trübe.

  3. #3
    Neu an Board
    Registriert seit
    14.10.2008
    Beiträge
    28
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Zitat Zitat von Ethlaegil Beitrag anzeigen
    du meinst die index.php und die index.php2 im root von Joomla!? Was hast du damals bei Joomla! 1.0.15 da eingebaut? Meine Glaskugel ist ganz trübe.

    Ja ganu da....

    So genau kann ich das leider garnicht sagen... hat mein damaliger Admin alles Programmiert,
    und ich hab ehrlich gesagt keine Ahnung was da alles drinnen ist, bzw. obs benötigt wird.

    Ist eben so das, wenn ich die PHP's ins root kopiere... kommen Fehlermeldungen ..
    mit denen ich jedoch nichts anfangen kann.


    Und Schon hab ich das nächste Problem... gibt es das Tigra Menü auch für 1.5?

    LG
    Drache

  4. #4
    Kommt häufiger vorbei Avatar von Ethlaegil
    Registriert seit
    15.12.2008
    Ort
    Oldenburg
    Alter
    38
    Beiträge
    260
    Bedankte sich
    4
    Erhielt 67 Danksagungen
    in 63 Beiträgen

    Standard

    Dann poste mal die beiden Dateien jeweils in einem Codeblock.

    Tigra Menü: (kenn ich nicht) aber guck doch mal auf http://extensions.joomla.org nach.

  5. #5
    Neu an Board
    Registriert seit
    14.10.2008
    Beiträge
    28
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Zitat Zitat von Ethlaegil Beitrag anzeigen
    Dann poste mal die beiden Dateien jeweils in einem Codeblock.
    [/URL] nach.
    Codeblock??

  6. #6
    Kommt häufiger vorbei Avatar von Ethlaegil
    Registriert seit
    15.12.2008
    Ort
    Oldenburg
    Alter
    38
    Beiträge
    260
    Bedankte sich
    4
    Erhielt 67 Danksagungen
    in 63 Beiträgen

    Standard

    Zitat Zitat von Der_Drache Beitrag anzeigen
    Codeblock??
    im Editor des Forums unten rechts auf "Erweitert" und dann im Editor Menü ganz rechts auf das "php" Symbol klicken und jeweils den Inhalt der Datein innerhalb der
    PHP-Code:
    Inhalt der index.php 
    PHP-Code:
    Inhalt der index2.php 
    Blöcke kopieren.
    Geändert von Ethlaegil (24.07.2011 um 18:32 Uhr)

  7. #7
    Neu an Board
    Registriert seit
    14.10.2008
    Beiträge
    28
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Index.php

    PHP-Code:
    <?php

    /**
    * @version $Id: index.php 6022 2006-12-18 22:30:07Z friesengeist $
    * @package Joomla
    * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
    * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
    * Joomla! is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * See COPYRIGHT.php for copyright notices and details.
    */

    // Set flag that this is a parent file
    define'_VALID_MOS');

    // checks for configuration file, if none found loads installation page
    if (!file_exists'configuration.php' ) || filesize'configuration.php' ) < 10) {
        
    $self rtrimdirname$_SERVER['PHP_SELF'] ), '/\\' ) . '/';
        
    header("Location: http://" $_SERVER['HTTP_HOST'] . $self "installation/index.php" );
        exit();
    }

    require( 
    'globals.php' );
    require_once( 
    'configuration.php' );

    // SSL check - $http_host returns <live site url>:<port number if it is 443>
    $http_host explode(':'$_SERVER['HTTP_HOST'] );
    if( (!empty( 
    $_SERVER['HTTPS'] ) && strtolower$_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr$mosConfig_live_site0) != 'https://' ) {
        
    $mosConfig_live_site 'https://'.substr$mosConfig_live_site);
    }

    require_once( 
    'includes/joomla.php' );

    //Installation sub folder check, removed for work with SVN
    if (file_exists'installation/index.php' ) && $_VERSION->SVN == 0) {
        
    define'_INSTALL_CHECK');
        include ( 
    $mosConfig_absolute_path .'/offline.php');
        exit();
    }

    // displays offline/maintanance page or bar
    if ($mosConfig_offline == 1) {
        require( 
    $mosConfig_absolute_path .'/offline.php' );
    }

    // load system bot group
    $_MAMBOTS->loadBotGroup'system' );

    // trigger the onStart events
    $_MAMBOTS->trigger'onStart' );

    if (
    file_exists$mosConfig_absolute_path .'/components/com_sef/sef.php' )) {
        require_once( 
    $mosConfig_absolute_path .'/components/com_sef/sef.php' );
    } else {
        require_once( 
    $mosConfig_absolute_path .'/includes/sef.php' );
    }
    require_once( 
    $mosConfig_absolute_path .'/includes/frontend.php' );

    // retrieve some expected url (or form) arguments
    $option strvalstrtolowermosGetParam$_REQUEST'option' ) ) );
    $Itemid intvalmosGetParam$_REQUEST'Itemid'null ) );

    if (
    $option == '') {
        if (
    $Itemid) {
            
    $query "SELECT id, link"
            
    "\n FROM #__menu"
            
    "\n WHERE menutype = 'mainmenu'"
            
    "\n AND id = " . (int) $Itemid
            
    "\n AND published = 1"
            
    ;
            
    $database->setQuery$query );
        } else {
            
    $query "SELECT id, link"
            
    "\n FROM #__menu"
            
    "\n WHERE menutype = 'mainmenu'"
            
    "\n AND published = 1"
            
    "\n ORDER BY parent, ordering"
            
    ;
            
    $database->setQuery$query0);
        }
        
    $menu = new mosMenu$database );
        if (
    $database->loadObject$menu )) {
            
    $Itemid $menu->id;
        }
        
    $link $menu->link;
        if ((
    $pos strpos$link'?' )) !== false) {
            
    $link substr$link$pos+). '&Itemid='.$Itemid;
        }
        
    parse_str$link$temp );
        
    /** this is a patch, need to rework when globals are handled better */
        
    foreach ($temp as $k=>$v) {
            
    $GLOBALS[$k] = $v;
            
    $_REQUEST[$k] = $v;
            if (
    $k == 'option') {
                
    $option $v;
            }
        }
    }
    if ( !
    $Itemid ) {
    // when no Itemid give a default value
        
    $Itemid 99999999;
    }

    // mainframe is an API workhorse, lots of 'core' interaction routines
    $mainframe = new mosMainFrame$database$option'.' );
    $mainframe->initSession();

    // trigger the onAfterStart events
    $_MAMBOTS->trigger'onAfterStart' );

    // checking if we can find the Itemid thru the content
    if ( $option == 'com_content' && $Itemid === ) {
        
    $id     intvalmosGetParam$_REQUEST'id') );
        
    $Itemid $mainframe->getItemid$id );
    }

    /** do we have a valid Itemid yet?? */
    if ( $Itemid === ) {
        
    /** Nope, just use the homepage then. */
        
    $query "SELECT id"
        
    "\n FROM #__menu"
        
    "\n WHERE menutype = 'mainmenu'"
        
    "\n AND published = 1"
        
    "\n ORDER BY parent, ordering"
        
    ;
        
    $database->setQuery$query0);
        
    $Itemid $database->loadResult();
    }

    // patch to lessen the impact on templates
    if ($option == 'search') {
        
    $option 'com_search';
    }

    // loads english language file by default
    if ($mosConfig_lang=='') {
        
    $mosConfig_lang 'english';
    }
    include_once( 
    $mosConfig_absolute_path .'/language/' $mosConfig_lang '.php' );

    // frontend login & logout controls
    $return     strvalmosGetParam$_REQUEST'return'NULL ) );
    $message     intvalmosGetParam$_POST'message') );
    if (
    $option == 'login') {
        
    $mainframe->login();

        
    // JS Popup message
        
    if ( $message ) {
            
    ?>
            <script language="javascript" type="text/javascript">
            <!--//
            alert( "<?php echo addslashes_LOGIN_SUCCESS ); ?>" );
            //-->
            </script>
            <?php
        
    }

        if ( 
    $return && !( strpos$return'com_registration' ) || strpos$return'com_login' ) ) ) {
        
    // checks for the presence of a return url
        // and ensures that this url is not the registration or login pages
            // If a sessioncookie exists, redirect to the given page. Otherwise, take an extra round for a cookiecheck
            
    if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
                
    mosRedirect$return );
            } else {
                
    mosRedirect$mosConfig_live_site .'/index.php?option=cookiecheck&return=' urlencode$return ) );
            }
        } else {
            
    // If a sessioncookie exists, redirect to the start page. Otherwise, take an extra round for a cookiecheck
            
    if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
                
    mosRedirect$mosConfig_live_site .'/index.php' );
            } else {
                
    mosRedirect$mosConfig_live_site .'/index.php?option=cookiecheck&return=' urlencode$mosConfig_live_site .'/index.php' ) );
            }
        }

    } else if (
    $option == 'logout') {
        
    $mainframe->logout();

        
    // JS Popup message
        
    if ( $message ) {
            
    ?>
            <script language="javascript" type="text/javascript">
            <!--//
            alert( "<?php echo addslashes_LOGOUT_SUCCESS ); ?>" );
            //-->
            </script>
            <?php
        
    }

        if ( 
    $return && !( strpos$return'com_registration' ) || strpos$return'com_login' ) ) ) {
        
    // checks for the presence of a return url
        // and ensures that this url is not the registration or logout pages
            
    mosRedirect$return );
        } else {
            
    mosRedirect$mosConfig_live_site.'/index.php' );
        }
    } else if (
    $option == 'cookiecheck') {
        
    // No cookie was set upon login. If it is set now, redirect to the given page. Otherwise, show error message.
        
    if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
            
    mosRedirect$return );
        } else {
            
    mosErrorAlert_ALERT_ENABLED );
        }
    }

    /** get the information about the current user from the sessions table */
    $my $mainframe->getUser();

    // detect first visit
    $mainframe->detect();

    // set for overlib check
    $mainframe->set'loadOverlib'false );

    $gid intval$my->gid );

    // gets template for page
    $cur_template $mainframe->getTemplate();
    /** temp fix - this feature is currently disabled */

    /** @global A places to store information from processing of the component */
    $_MOS_OPTION = array();

    // precapture the output of the component
    require_once( $mosConfig_absolute_path '/editor/editor.php' );

    ob_start();

    if (
    $path $mainframe->getPath'front' )) {
        
    $task     strvalmosGetParam$_REQUEST'task''' ) );
        
    $ret     mosMenuCheck$Itemid$option$task$gid );

        if (
    $ret) {
            require_once( 
    $path );
        } else {
            
    mosNotAuth();
        }
    } else {
        
    header'HTTP/1.0 404 Not Found' );
        echo 
    _NOT_EXIST;
    }

    $_MOS_OPTION['buffer'] = ob_get_contents();

    ob_end_clean();

    initGzip();

    header'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
    header'Last-Modified: ' gmdate'D, d M Y H:i:s' ) . ' GMT' );
    header'Cache-Control: no-store, no-cache, must-revalidate' );
    header'Cache-Control: post-check=0, pre-check=0'false );
    header'Pragma: no-cache' );

    // display the offline alert if an admin is logged in
    if (defined'_ADMIN_OFFLINE' )) {
        include( 
    $mosConfig_absolute_path .'/offlinebar.php' );
    }

    // loads template file
    if ( !file_exists$mosConfig_absolute_path .'/templates/'$cur_template .'/index.php' ) ) {
        echo 
    _TEMPLATE_WARN $cur_template;
    } else {
        require_once( 
    $mosConfig_absolute_path .'/templates/'$cur_template .'/index.php' );
        echo 
    '<!-- 'time() .' -->';
    }

    // displays queries performed for page
    if ($mosConfig_debug) {
        echo 
    $database->_ticker ' queries executed';
        echo 
    '<pre>';
         foreach (
    $database->_log as $k=>$sql) {
             echo 
    $k+"\n" $sql '<hr />';
        }
        echo 
    '</pre>';
    }

    doGzip();
    ?>

  8. #8
    Neu an Board
    Registriert seit
    14.10.2008
    Beiträge
    28
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    index2.php

    PHP-Code:
    <?php
    /**
    * @version $Id: index2.php 6022 2006-12-18 22:30:07Z friesengeist $
    * @package Joomla
    * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
    * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
    * Joomla! is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * See COPYRIGHT.php for copyright notices and details.
    */

    // Set flag that this is a parent file
    define'_VALID_MOS');

    require( 
    'globals.php' );
    require_once( 
    'configuration.php' );

    // SSL check - $http_host returns <live site url>:<port number if it is 443>
    $http_host explode(':'$_SERVER['HTTP_HOST'] );
    if( (!empty( 
    $_SERVER['HTTPS'] ) && strtolower$_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr$mosConfig_live_site0) != 'https://' ) {
        
    $mosConfig_live_site 'https://'.substr$mosConfig_live_site);
    }

    require_once( 
    'includes/joomla.php' );

    // displays offline/maintanance page or bar
    if ($mosConfig_offline == 1) {
        require( 
    $mosConfig_absolute_path .'/offline.php' );
    }

    // load system bot group
    $_MAMBOTS->loadBotGroup'system' );

    // trigger the onStart events
    $_MAMBOTS->trigger'onStart' );

    if (
    file_exists$mosConfig_absolute_path .'/components/com_sef/sef.php' )) {
        require_once( 
    $mosConfig_absolute_path .'/components/com_sef/sef.php' );
    } else {
        require_once( 
    $mosConfig_absolute_path .'/includes/sef.php' );
    }
    require_once( 
    $mosConfig_absolute_path .'/includes/frontend.php' );

    // retrieve some expected url (or form) arguments
    $option     strtolowerstrvalmosGetParam$_REQUEST'option' ) ) );
    $Itemid     intvalmosGetParam$_REQUEST'Itemid') );
    $no_html     intvalmosGetParam$_REQUEST'no_html') );
    $act         strvalmosGetParam$_REQUEST'act''' ) );
    $do_pdf     intvalmosGetParam$_REQUEST'do_pdf') );

    // mainframe is an API workhorse, lots of 'core' interaction routines
    $mainframe = new mosMainFrame$database$option'.' );
    $mainframe->initSession();

    // trigger the onAfterStart events
    $_MAMBOTS->trigger'onAfterStart' );

    // get the information about the current user from the sessions table
    $my $mainframe->getUser();
    // patch to lessen the impact on templates
    if ($option == 'search') {
        
    $option 'com_search';
    }

    // loads english language file by default
    if ($mosConfig_lang=='') {
        
    $mosConfig_lang 'english';
    }
    include_once( 
    $mosConfig_absolute_path .'/language/' $mosConfig_lang '.php' );


    if (
    $option == 'login') {
        
    $mainframe->login();
        
    mosRedirect('index.php');
    } else if (
    $option == 'logout') {
        
    $mainframe->logout();
        
    mosRedirect'index.php' );
    }

    if ( 
    $do_pdf == ){
        include 
    $mosConfig_absolute_path .'/includes/pdf.php';
        exit();
    }


    // detect first visit
    $mainframe->detect();

    $gid intval$my->gid );

    $cur_template $mainframe->getTemplate();

    // precapture the output of the component
    require_once( $mosConfig_absolute_path '/editor/editor.php' );

    ob_start();

    if (
    $path $mainframe->getPath'front' )) {
        
    $task     strvalmosGetParam$_REQUEST'task''' ) );
        
    $ret     mosMenuCheck$Itemid$option$task$gid );
        if (
    $ret) {
            require_once( 
    $path );
        } else {
            
    mosNotAuth();
        }
    } else {
        
    header("HTTP/1.0 404 Not Found");
        echo 
    _NOT_EXIST;
    }
    $_MOS_OPTION['buffer'] = ob_get_contents();

    ob_end_clean();

    initGzip();

    header'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
    header'Last-Modified: ' gmdate'D, d M Y H:i:s' ) . ' GMT' );
    header'Cache-Control: no-store, no-cache, must-revalidate' );
    header'Cache-Control: post-check=0, pre-check=0'false );
    header'Pragma: no-cache' );

    // display the offline alert if an admin is logged in
    if (defined'_ADMIN_OFFLINE' )) {
        include( 
    $mosConfig_absolute_path .'/offlinebar.php' );
    }

    // start basic HTML
    if ( $no_html == ) {
        
    $customIndex2 'templates/'$mainframe->getTemplate() .'/index2.php';
        if (
    file_exists$customIndex2 )) {
            require( 
    $customIndex2 );
        } else {
            
    // needed to seperate the ISO number from the language file constant _ISO
            
    $iso split'='_ISO );
            
    // xml prolog
            
    echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';
        
    ?>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <?php echo $mainframe->getHead(); ?>
                <link rel="stylesheet" href="templates/<?php echo $cur_template;?>/css/template_css.css" type="text/css" />
                <link rel="shortcut icon" href="<?php echo $mosConfig_live_site?>/images/favicon.ico" />
                <meta **********="Content-Type" content="text/html; <?php echo _ISO?>" />
                <meta name="robots" content="noindex, nofollow" />
                <?php if ($my->id || $mainframe->get'joomlaJavascript' )) { ?>
                <script language="JavaScript" src="<?php echo $mosConfig_live_site;?>/includes/js/joomla.javascript.js" type="text/javascript"></script>
                <?php ?>
            </head>
            <body class="contentpane">
                <?php mosMainBody(); ?>
            </body>
        </html>
        <?php
        
    }
    } else {
        
    mosMainBody();
    }
    doGzip();
    ?>

  9. #9
    Kommt häufiger vorbei Avatar von Ethlaegil
    Registriert seit
    15.12.2008
    Ort
    Oldenburg
    Alter
    38
    Beiträge
    260
    Bedankte sich
    4
    Erhielt 67 Danksagungen
    in 63 Beiträgen

    Standard

    Soweit ich sehen kann ist da nichts verändert. Ich glaube du hast ein grundsätzliches Verständnisproblem. Dein "Admin" hat sicher ein Template unter /templates/ programmiert, dass jetzt eigentlich auch nach Joomla! 1.5 migriert werden muss. Das ist aber nicht gerade trivial. Guckst du z.B. hier: http://wiki.joomla-nafu.de/joomla-do...late-Migration

    EDIT: also bitte die original index.php und index2.php von Joomla! 1.5 in dein Joomla! root Verzeichnis hochladen und dich um die Template Migration kümmern, bzw. eben eine anderes für Joomla! 1.5 gedachtes Template nutzen.
    Geändert von Ethlaegil (24.07.2011 um 18:43 Uhr)

  10. #10
    Neu an Board
    Registriert seit
    14.10.2008
    Beiträge
    28
    Bedankte sich
    0
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    ok.. wenn das so ist ... dann passts ja

    Lasse bis alles läuft Joomla im Legacy Mode laufen ... das Template kommt zum Schluss

    ich hab da noch eine PHP die mir Probleme bereitet.

    Vieleicht kannst Du mir da ja auch helfen.

    die tuts auch nicht, wegen den DB Zugriffen.

    PHP-Code:
    <?php
    error_reporting
    (0);
    //-----------------------

    //KATEGORIE WÄHLEN:
    $tids "2";

    //-----------------------

    //Refresh-Interval Festlegen (in Sekunden)

    $interval 300;

    //-----------------------
    include("./configuration.php");
    $table "jos_artbannersplus";
    $imgpath $mosConfig_live_site."/images/banners/";
    $body "";

    $database mysql_connect($mosConfig_host,$mosConfig_user,$mosConfig_password) or die("Konnte keine Verbindug zur Datenbank herstellen!");

        
    $date date("Y-m-d H:i:s",time());
        
    $time date("H:i:s",time());;
        
    $weekday date("w",time());;
        
    $where = array();
        if (
    $tids) {
            
    $where[] = "tid IN ($tids)";
        }
        
    $where "(".implode(' OR '$where).") AND";

        
    $query "SELECT * FROM ".$table." WHERE ".$where.
              (('"
    .$date."' <= publish_down_date
               OR publish_down_date = '0000-00-00' )
              AND '"
    .$date."' >= publish_up_date
              AND (
                  (reccurtype = 0)
               OR (reccurtype = 1 AND reccurweekdays LIKE '%"
    .$weekday."%')
              )
              AND '$time' >= publish_up_time
              AND ('$time' <= publish_down_time OR publish_down_time = '00:00:00')
              AND state = '1') ORDER BY last_show ASC, msec ASC"

              

        
    mysql_select_db($mosConfig_db);
        
    $dbquery mysql_query($query,$database) or die("Datenbankfehler:".mysql_error($database) );

        
    $row mysql_fetch_array($dbquery);
        
    $showed 0;
        
    $result "";

            
    mysql_query("UPDATE ".$table." SET imp_made=imp_made+1 WHERE id=".$row['id'],$database);
            
    mysql_query("UPDATE ".$table." SET last_show='".date("Y-m-d H:i:s"time()+$mosConfig_offset*60*60)."' WHERE id=".$row['id'],$database);
            
    $secs gettimeofday();
            
    mysql_query("UPDATE ".$table." SET msec='".$secs["usec"]."' WHERE id=".$row['id'],$database);
            
    $impmade$row['imp_made']++;

            if (
    $row['imp_total'] == $impmade) {
                
    mysql_query("UPDATE ".$table." SET state='0' WHERE id=".$row['id'],$database);
            }

            if( 
    $row['custom_banner_code'] != "") {
                
    $body .= $row['custom_banner_code'];
            } else if ((
    eregi(".gif"$row['image_url'])) || (eregi(".jpg"$row['image_url'])) || (eregi(".png"$row->image_url))){
                
    $image_url="$mosConfig_live_site/images/banners/".$row['image_url'];
                
    $imginfo getimagesize"$mosConfig_absolute_path/images/banners/".$row['image_url'] );
                
    $target $row['target'];
                
    $border_value $row['border_value'];
                
    $border_style $row['border_style'];
                
    $border_color $row['border_color'];
                
    $body .= "    <a href=\"countclick.php?url=".$row['click_url']."&id=".$row['id']."\" target=\"_blank\">
                            <img src=\""
    .$image_url."\" style=\"border:".$border_value."px ".$border_style." ".$border_color."\" vspace=\"0\" alt=\"".$row['name']."\" width=\"".$imginfo[0]."\" height=\"".$imginfo[1]."\"/>
                            </a>"
    ;
            } 
            else if (
    eregi(".swf"$row['image_url'])) {
                
    $image_url="$mosConfig_live_site/images/banners/".$row['image_url'];
                
    $swfinfo = @getimagesize"$mosConfig_absolute_path/images/banners/".$row['image_url'] );
                
    $body .= "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" border=\"0\" width=\"".$swfinfo[0]."\" height=\"".$swfinfo[1]."\" vspace=\"0\">
                            <param name=\"SRC\" value=\""
    .$image_url."\"><embed src=\"".$image_url."\" loop=\"false\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\">
                            </object></a>"
    ;
            }

            
    $result .= $end;

            
    $showed++;
            if (
    $showed == $count) {break;}
    #    mysql_close($database);
    ?>


    <html>
    <head>
    <title>Banner</title>
    <meta **********="Content-Type" content="text/html; charset=iso-8859-1">
    <META **********=********* content="<?php echo $interval?>; URL=banner.php">
    <link rel="stylesheet" href="http://<? echo $_SERVER['HTTP_HOST']; ?>/templates/neu_hp/css/template.css">
    </head>

    <body>
    <table border="0" cellpadding="0" cellspacing="0" style="height:100%; width:100%;">
     <tr>
      <td align="center" valign="middle"><?php echo $body?></td>
     </tr>
    </table>

    </body>
    </html>

+ Antworten
Seite 1 von 3 1 2 3 LetzteLetzte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein