Hilfe bei PHP und PopUp

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Hilfe bei PHP und PopUp

    Hallo,

    Vorweg, ich habe von PHP keine Ahnung. Ich verwende für meine HP den Script PHPKIT. In diesem gibt es eine DL Section. Ich möchte jetzt wenn man auf den DL Button drückt das ein PopUp aufgeht. Wenn möglich soll dann der DL nach so 5 sec. beginnen.
    Wer kann mir ein paar tips geben, wie ich das machen kann.

    Danke

    Dirk

    http://www.sterbai.de/phpkit/include...p&contentid=29

    Bei DL starten:
    http://www.sterbai.de/phpkit/include...d=go&mirror=1.

    Die download.php


    PHP-Code:
    <?php
    if ($contentid=="") {header ("location: include.php?path=content/overview.php&type=4&PHPKITSID=".$PHPKITSID."");}
    elseif (
    $contentid!="" && $download==go
        {
        
    $getinfo=mysql_query("SELECT * FROM $tab_content where content_id='$contentid'"$servercon);
        
    $contentinfo=mysql_fetch_array ($getinfo);

        
    $getcontentcat=mysql_query("SELECT contentcat_rights FROM $tab_contentcat WHERE contentcat_id='$contentinfo[content_cat]' LIMIT 1");
        
    $contentcatinfo=mysql_fetch_array($getcontentcat);

        if (
    $contentinfo[content_status]==or $contentinfo[content_status]=="") {$event=14; include ("config/event.php");}
        elseif (
    getrights($config[content_downloadstatus])!="true" or getrights($contentcatinfo[contentcat_rights])!="true") {$event=1; include("config/event.php");}
        elseif (
    $contentinfo[content_altdat]!="" && getrights($config[content_downloadstatus])=="true" && getrights($contentcatinfo[contentcat_rights])=="true")
            {
            
    $sqlcommand="UPDATE $tab_content SET content_views=content_views+1 WHERE content_id='$contentid'";
            
    $result=mysql_query($sqlcommand$servercon);

            
    $dl=explode("\n",$contentinfo[content_altdat]);

            foreach(
    $dl as $d)
                {
                
    $c++; $d=trim($d);
                if (
    $mirror==$c)
                    {
                    if (!
    eregi("http://",$d) && !eregi("ftp://",$d)) {$d=$config[content_downloadpath]."/".$d;}
                    
    header ("location: ".$d."");
                    }
                }
            }
        else    {
    header ("location: include.php?path=start.php&event=0&PHPKITSID".session_id()."");}
        }
    else     {
        
    $getinfo=mysql_query("SELECT * FROM $tab_content where content_id='$contentid'"$servercon);
        
    $contentinfo=mysql_fetch_array ($getinfo);

        if (
    $contentinfo[content_status]==or $contentinfo[content_status]=="") {$event=14; include ("config/event.php");}
        elseif (
    $contentinfo[content_option]==0) {header ("location: content/content.php&PHPKITSID=".$PHPKITSID."");}
        elseif (
    $contentinfo[content_option]==1) {header ("location: content/artciles.php&PHPKITSID=".$PHPKITSID."");}
        elseif (
    $contentinfo[content_option]==2) {header ("location: content/news.php&PHPKITSID=".$PHPKITSID."");}
        elseif (
    $contentinfo[content_option]==3) {header ("location: content/links.php&PHPKITSID=".$PHPKITSID."");}
        else     {
            
    $getcat=mysql_query("SELECT * FROM $tab_contentcat where contentcat_id='$contentinfo[content_cat]'"$servercon);
            
    $contentcatinfo=mysql_fetch_array($getcat);

            if (
    getrights($contentcatinfo[contentcat_rights])=="true")
                {
                
    $getuserinfo=mysql_query("SELECT user_id, user_nick FROM $tab_user WHERE user_id='$contentinfo[content_autorid]'"$servercon);
                
    $userinfo=mysql_fetch_array($getuserinfo);

                
    $content_time=strftime("%d.%m.%Y","$contentinfo[content_time]");
                
    $contentinfo[content_title]=stripslashes($contentinfo[content_title]);

                if (
    $userinfo[user_id]!="") {eval ("\$autor_info= \"".templateinclude("member_showprofil_textlink")."\";");}
                else    {
    $autor_info=$contentinfo[content_autor];}

                eval (
    "\$content_article_head= \"".templateinclude("content/download_textlink_1")."\";");

                if (
    $contentcatinfo[contentcat_symbol]!="blank.gif")
                    {
                    
    $catimage_dimension=@getimagesize("images/catimages/$contentcatinfo[contentcat_symbol]");
                    eval (
    "\$content_catimage= \"".templateinclude("content/cat_image_left")."\";");
                    }

                
    $content_article_body=format_it($contentinfo[content_text], $contentinfo[content_html], $contentinfo[content_ubb], $contentinfo[content_smilies]);

                
    $dl=explode("\n",$contentinfo[content_altdat]);

                foreach(
    $dl as $d)
                    {
                    
    $c++; 
                    
    $d=trim($d);

                    if (!
    eregi("http://",$d) && !eregi("ftp://",$d)) 
                        {
                        if (@
    file_exists("$config[content_downloadpath]/$d")) 
                            {
                            
    $file_size=number_format((filesize("$config[content_downloadpath]/$d")/1024),1,",",".");
                            eval (
    "\$download_links.= \"".templateinclude("content/download_link")."\";");
                            }
                        }
                    else    {eval (
    "\$download_links.= \"".templateinclude("content/download_link")."\";");}
                    }

                if (
    $contentinfo[content_comment_status]==1)
                    {
                    
    $getcountmysql_query("SELECT * FROM $tab_comment WHERE comment_cat='cont' AND comment_subid='$contentinfo[content_id]'"$servercon);
                    
    $countermysql_num_rows($getcount);

                    if (
    $counter==1) {$content_comment_count="(1 Kommentar)";}
                    elseif (
    $counter>1) {$content_comment_count="($counter Kommentare)";}

                    eval (
    "\$content_comment= \"".templateinclude("content/article_comment_link")."\";");

                    unset(
    $counter);
                    }
                if (
    $contentinfo[content_rating_status]==1)
                    {
                    if (
    $contentinfo[content_rating_total]>0
                        {
                        
    $content_rating_d=number_format($contentinfo[content_rating],2,",",".");
                        
    $content_rating_votes=$contentinfo[content_rating_total]." Stimme";
                        if (
    $contentinfo[content_rating_total]>1) {$content_rating_votes.="n";}
                        eval (
    "\$content_rating_info= \"".templateinclude("content/article_rating_info")."\";");
                        }
                    eval (
    "\$content_rate= \"".templateinclude("content/article_rating_link")."\";");
                    }

                if (
    $file_size=="") {$file_size=$contentinfo[content_filesize];}
                if (
    $file_size=="" or $file_size=="0") {$file_size="&nbsp; - &nbsp;";}
                eval (
    "\$download_size= \"".templateinclude("content/download_size")."\";");

                eval (
    "\$site_body.= \"".templateinclude("content/download")."\";");
                }
            else    {
    $event=1; include("config/event.php");}
            }
        }
    ?>
Lädt...
X