Nieuw lid |
|
Ik ben op zoek naar een random image script voor in mijn header. Jullie begrijpen neem ik aan wat ik daar mee bedoel. Dat is dat je niet altijd een saai plaatje ziet in de header, maar elke keer een andere. Dit is het scriptje van mijn streamingmodule:
<?
/************************************************************************/
/*STREAMING MODULE FOR PHPNUKE */
/* =========================== */
/* */
/* Copyright (c) 2002 by Yavuz Dônmez */
/* http://www.uzerlik.free.fr */
/* */
/* 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 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
include_once('pdb.php');
$cpname="copyright.php";
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$cpname = ereg_replace("_", " ", $module_name);
include("header.php");
get_lang($module_name);
global $count;
$index = 0;
OpenTable();
echo "<p align='center'><font class=\"title\">"._TITLE."</font></p>";
echo "<p align=center><a href=modules.php?name=streaming>"._GOTOSTREAMINGINDEX."</a>";
CloseTable();
if($typen==1){
OpenTable();
/************************Call to object like mplaye with param $url************************************/
echo "<p align='center'> <object id='UZERLIKPlay' width='360' height='288'";
echo "classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'";
echo "codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'";
echo "standby='Loading Microsoft Windows Media Player components...'";
echo "type='application/x-oleobject'>";
echo "<PARAM NAME=\"filename\" VALUE=\"$urli\">
<PARAM NAME=\"autoStart\" VALUE=\"1\">
<param name=\"Volume\" value=\"100\">
<param name=\"Balance\" value=\"0\">
<param name=\"CurrentMarker\" value=\"0\">
<param name=\"DefaultFrame\" value>
<param name=\"Enabled\" value=\"0\">
<PARAM NAME=\"enableContextMenu\" VALUE=\"0\">
<PARAM NAME=\"animationatStart\" VALUE=\"true\">
<PARAM NAME=\"ShowControls\" VALUE=\"0\">
<PARAM NAME=\"ShowDisplay\" VALUE=\"0\">
<PARAM NAME=\"ShowStatusBar\" VALUE=\"1\">
<PARAM name=\"uiMode\" value=\"none\">
</OBJECT>";
echo "</p>";
/************************End object*******************************************************************/
CloseTable();
}
if($typen==2)
{
Opentable();
echo "<div align=\"center\"><font color=\"#FFFFFF\" size=\"1\"><b><font color=\"#FFFFFF\"><object id=\"RVOCX\" classid=\"CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"220\" height=\"180\"> <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"ImageWindow\"> <param name=\"CONSOLE\" value=\"cons\"> <embed width=\"220\" height=\"180\" autostart=\"true\" SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"220\" height=\"180\" CONTROLS=\"ImageWindow\" CONSOLE=\"cons\"> </embed> <param name=\"autostart\" value=\"true\"> </object></font></b></font>\n";
echo " <br>\n";
echo " <object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"26\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PlayOnlyButton\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"26\" height=\"26\" CONTROLS=\"PlayOnlyButton\" CONSOLE=\"cons\" > </embed> </object><object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"26\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PauseButton\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"26\" height=\"26\" CONTROLS=\"PauseButton\" CONSOLE=\"cons\" > </embed> </object><object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"26\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"StopButton\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"26\" height=\"26\" CONTROLS=\"StopButton\" CONSOLE=\"cons\" > </embed> </object><object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"115\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PositionField\"> <param name=\"CONSOLE\" value=\"cons\"> <embed width=\"115\" SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"115\" height=\"26\" CONTROLS=\"PositionField\" CONSOLE=\"cons\" > </embed> </object> <object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"45\" height=\"25\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"HomeCtrl\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"45\" height=\"25\" CONTROLS=\"HomeCtrl\" CONSOLE=\"cons\" > </embed> </object><br>\n";
echo " <object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"240\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PositionSlider\"> <param name=\"CONSOLE\" value=\"cons\"> <embed width=\"240\" SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"240\" height=\"26\" CONTROLS=\"PositionSlider\" CONSOLE=\"cons\" > </embed> </object><br>\n";
echo " </font></b></div>";
CloseTable();
}
if($typen==3)
{
Opentable();
echo "<p align=\"center\">";
echo "<OBJECT CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" WIDTH=\"320\"\n";
echo "HEIGHT=\"320\" CODEBASE=\"http://www.apple.com/qtactivex/qtplugin.cab\">\n";
echo "<PARAM name=\"SRC\" VALUE=\"$urli\">\n";
echo "<PARAM name=\"AUTOPLAY\" VALUE=\"true\">\n";
echo "<PARAM name=\"CONTROLLER\" VALUE=\"true\">\n";
echo "<EMBED SRC=\"$urli\" WIDTH=\"320\" HEIGHT=\"320\" AUTOPLAY=\"true\"\n";
echo "CONTROLLER=\"true\"\n";
echo "PLUGINSPAGE=\"http://www.apple.com/quicktime/download/\">\n";
echo "</EMBED>\n";
echo "</OBJECT>\n";
echo "</p>";
CloseTable();
}
if($typen==4)
{
Opentable();
echo "<center>";
echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0\" name=\"mc3\" width=\"250\" height=\"250\" id=\"mc3\">\n";
echo "<param name=\"movie\" value=$urli>\n";
echo "<param name=\"quality\" value=\"high\">\n";
echo "<param name=\"BGCOLOR\" value=\"#000000\">n";
echo "<embed src=$urli width=\"250\" height=\"250\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\"mc3\"></embed>\n";
echo "</object>";
echo "</center>";
CloseTable();
}
//On commence l'afficheges des differents categories disponibles.
function liste_cat()
{
global $dbi;
global $bgcolor1, $bgcolor2;
$query = "SELECT * FROM nuke_streaming_cat";
OpenTable();
echo "<center>";
print "<h1>Zoek een media in alle categorieën</h1>\n";
// Find Form
print "<form action=\"$PHP_SELF?name=streaming\" method=\"POST\">\n";
print "<input type=\"text\" name=\"find\" value=\"$find\">\n";
print "<input type=\"submit\" value=\"Find\">\n";
print "<input type=\"hidden\" name=\"do\" value=\"search_streaming_medias\">\n";
if ($find != ''){
print "<br><a href=\"$PHP_SELF?op=liste_streaming\">Show all Records</a>\n";
}
print "</form>\n";
echo "</center>";
CloseTable();
pdb_paginal_query2($dbi, $query,5, '', '');
print "<p>"._PAGE.": ". pdb_paginal_links_compact(50) ."</p>\n\n";
}
function view_gal($cid)
{
global $dbi;
if (! isset($action)) {$action = 'list';}
if (! isset($stpage)) {$stpage = 1;}
// Records List
if ($action == 'list'){
$query = "SELECT * FROM `nuke_streaming` WHERE status=\"enable\"&&scid=\"$cid\"";
OpenTable();
echo "<center>";
print "<h1>Zoek een media in alle categorieën</h1>\n";
// Find Form
print "<form action=\"$PHP_SELF?name=streaming\" method=\"POST\">\n";
print "<input type=\"text\" name=\"find\" value=\"$find\">\n";
print "<input type=\"submit\" value=\"Find\">\n";
print "<input type=\"hidden\" name=\"do\" value=\"search_streaming_medias\">\n";
if ($find != ''){
print "<br><a href=\"$PHP_SELF?op=liste_streaming\">Show all Records</a>\n";
}
print "</form>\n";
echo "</center>";
CloseTable();
pdb_paginal_query($dbi, $query,10, '', '');
print "<p>"._PAGE.": ". pdb_paginal_links_compact(50) ."</p>\n\n";
}
}
function search_streaming_medias(){
global $dbi,$action,$stpage,$orderby,$find;
if (! isset($action)) {$action = 'list';}
if (! isset($stpage)) {$stpage = 1;}
if (! isset($find)) {$find = '';}
// Records List
if ($action == 'list'){
$query = "SELECT * FROM nuke_streaming";
if ($find != ''){
$query = $query . " WHERE (name LIKE '%$find%')";
}
pdb_paginal_query($dbi, $query,2000, '', '');
print "<p>"._PAGE.": ". pdb_paginal_links_compact(1000) ."</p>\n\n";
}
}
if (! isset($do)&&($count==0)) {$do = 'liste_cat';}
if ($count==1){$do = 'view_gal_streaming';}
switch($do) {
case "view_gal_streaming":
view_gal($cid);
break;
case "liste_cat":
liste_cat();
break;
case "search_streaming_medias":
search_streaming_medias();
break;
}
/************************End Listing*******************************************************************/
echo "<p align=\"right\"><a href=\"http://www.microsoft.com/windows/windowsmedia/download/default.asp\"><img src=\"images/streaming/getmediaplayer.gif\" width=\"65\" height=\"28\" border=\"0\"></a><a href=\"http://www.apple.com/quicktime/download/\"><img src=\"images/streaming/quick.gif\" width=\"65\" height=\"28\" border=\"0\"></a><a href=\"http://www.real.com/realone\"><img src=\"images/streaming/real.gif\" width=\"65\" height=\"28\" border=\"0\"></a></p>\n";
?>
<? /************************************************************************/ /*STREAMING MODULE FOR PHPNUKE */ /* =========================== */ /* */ /* Copyright (c) 2002 by Yavuz Dônmez */ /* http://www.uzerlik.free.fr */ /* */ /* 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 2 of the License. */ /************************************************************************/ if (!eregi("modules.php", $PHP_SELF)) { die ("You can't access this file directly..."); } include_once('pdb.php'); $cpname="copyright.php"; require_once("mainfile.php"); include("header.php"); get_lang($module_name); $index = 0; OpenTable(); echo "<p align='center'><font class=\"title\">"._TITLE ."</font></p>"; echo "<p align=center><a href=modules.php?name=streaming>"._GOTOSTREAMINGINDEX ."</a>"; CloseTable(); if($typen==1){ OpenTable(); /************************Call to object like mplaye with param $url************************************/ echo "<p align='center'> <object id='UZERLIKPlay' width='360' height='288'"; echo "classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'"; echo "codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'"; echo "standby='Loading Microsoft Windows Media Player components...'"; echo "type='application/x-oleobject'>"; echo "<PARAM NAME=\"filename\" VALUE=\"$urli\"> <PARAM NAME=\"autoStart\" VALUE=\"1\"> <param name=\"Volume\" value=\"100\"> <param name=\"Balance\" value=\"0\"> <param name=\"CurrentMarker\" value=\"0\"> <param name=\"DefaultFrame\" value> <param name=\"Enabled\" value=\"0\"> <PARAM NAME=\"enableContextMenu\" VALUE=\"0\"> <PARAM NAME=\"animationatStart\" VALUE=\"true\"> <PARAM NAME=\"ShowControls\" VALUE=\"0\"> <PARAM NAME=\"ShowDisplay\" VALUE=\"0\"> <PARAM NAME=\"ShowStatusBar\" VALUE=\"1\"> <PARAM name=\"uiMode\" value=\"none\"> </OBJECT>"; /************************End object*******************************************************************/ CloseTable(); } if($typen==2) { Opentable(); echo "<div align=\"center\"><font color=\"#FFFFFF\" size=\"1\"><b><font color=\"#FFFFFF\"><object id=\"RVOCX\" classid=\"CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"220\" height=\"180\"> <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"ImageWindow\"> <param name=\"CONSOLE\" value=\"cons\"> <embed width=\"220\" height=\"180\" autostart=\"true\" SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"220\" height=\"180\" CONTROLS=\"ImageWindow\" CONSOLE=\"cons\"> </embed> <param name=\"autostart\" value=\"true\"> </object></font></b></font>\n"; echo " <object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"26\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PlayOnlyButton\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"26\" height=\"26\" CONTROLS=\"PlayOnlyButton\" CONSOLE=\"cons\" > </embed> </object><object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"26\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PauseButton\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"26\" height=\"26\" CONTROLS=\"PauseButton\" CONSOLE=\"cons\" > </embed> </object><object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"26\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"StopButton\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"26\" height=\"26\" CONTROLS=\"StopButton\" CONSOLE=\"cons\" > </embed> </object><object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"115\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PositionField\"> <param name=\"CONSOLE\" value=\"cons\"> <embed width=\"115\" SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"115\" height=\"26\" CONTROLS=\"PositionField\" CONSOLE=\"cons\" > </embed> </object> <object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"45\" height=\"25\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"HomeCtrl\"> <param name=\"CONSOLE\" value=\"cons\"> <embed SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"45\" height=\"25\" CONTROLS=\"HomeCtrl\" CONSOLE=\"cons\" > </embed> </object><br>\n"; echo " <object id=RVOCX classid=\"CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"240\" height=\"26\" > <param name=\"SRC\" value=$urli> <param name=\"CONTROLS\" value=\"PositionSlider\"> <param name=\"CONSOLE\" value=\"cons\"> <embed width=\"240\" SRC=$urli type=\"audio/x-pn-realaudio-plugin\" width=\"240\" height=\"26\" CONTROLS=\"PositionSlider\" CONSOLE=\"cons\" > </embed> </object><br>\n"; echo " </font></b></div>"; CloseTable(); } if($typen==3) { Opentable(); echo "<p align=\"center\">"; echo "<OBJECT CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" WIDTH=\"320\"\n"; echo "HEIGHT=\"320\" CODEBASE=\"http://www.apple.com/qtactivex/qtplugin.cab\">\n"; echo "<PARAM name=\"SRC\" VALUE=\"$urli\">\n"; echo "<PARAM name=\"AUTOPLAY\" VALUE=\"true\">\n"; echo "<PARAM name=\"CONTROLLER\" VALUE=\"true\">\n"; echo "<EMBED SRC=\"$urli\" WIDTH=\"320\" HEIGHT=\"320\" AUTOPLAY=\"true\"\n"; echo "CONTROLLER=\"true\"\n"; echo "PLUGINSPAGE=\"http://www.apple.com/quicktime/download/\">\n"; CloseTable(); } if($typen==4) { Opentable(); echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0\" name=\"mc3\" width=\"250\" height=\"250\" id=\"mc3\">\n"; echo "<param name=\"movie\" value=$urli>\n"; echo "<param name=\"quality\" value=\"high\">\n"; echo "<param name=\"BGCOLOR\" value=\"#000000\">n"; echo "<embed src=$urli width=\"250\" height=\"250\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\"mc3\"></embed>\n"; CloseTable(); } //On commence l'afficheges des differents categories disponibles. function liste_cat() { $query = "SELECT * FROM nuke_streaming_cat"; OpenTable(); print "<h1>Zoek een media in alle categorieën</h1>\n"; // Find Form print "<form action=\"$PHP_SELF?name=streaming\" method=\"POST\">\n"; print "<input type=\"text\" name=\"find\" value=\"$find\">\n"; print "<input type=\"submit\" value=\"Find\">\n"; print "<input type=\"hidden\" name=\"do\" value=\"search_streaming_medias\">\n"; if ($find != ''){ print "<br><a href=\"$PHP_SELF?op=liste_streaming\">Show all Records</a>\n"; } CloseTable(); pdb_paginal_query2($dbi, $query,5, '', ''); print "<p>"._PAGE .": ". pdb_paginal_links_compact (50) ."</p>\n\n"; } function view_gal($cid) { if (! isset($action)) {$action = 'list';} if (! isset($stpage)) {$stpage = 1;} // Records List if ($action == 'list'){ $query = "SELECT * FROM `nuke_streaming` WHERE status=\"enable\"&&scid=\"$cid\""; OpenTable(); print "<h1>Zoek een media in alle categorieën</h1>\n"; // Find Form print "<form action=\"$PHP_SELF?name=streaming\" method=\"POST\">\n"; print "<input type=\"text\" name=\"find\" value=\"$find\">\n"; print "<input type=\"submit\" value=\"Find\">\n"; print "<input type=\"hidden\" name=\"do\" value=\"search_streaming_medias\">\n"; if ($find != ''){ print "<br><a href=\"$PHP_SELF?op=liste_streaming\">Show all Records</a>\n"; } CloseTable(); pdb_paginal_query($dbi, $query,10, '', ''); print "<p>"._PAGE .": ". pdb_paginal_links_compact (50) ."</p>\n\n"; } } function search_streaming_medias(){ global $dbi,$action,$stpage,$orderby,$find; if (! isset($action)) {$action = 'list';} if (! isset($stpage)) {$stpage = 1;} if (! isset($find)) {$find = '';} // Records List if ($action == 'list'){ $query = "SELECT * FROM nuke_streaming"; if ($find != ''){ $query = $query . " WHERE (name LIKE '%$find%')"; } pdb_paginal_query($dbi, $query,2000, '', ''); print "<p>"._PAGE .": ". pdb_paginal_links_compact (1000) ."</p>\n\n"; } } if (! isset($do)&&($count==0)) {$do = 'liste_cat';} if ($count==1){$do = 'view_gal_streaming';} switch($do) { case "view_gal_streaming": view_gal($cid); break; case "liste_cat": liste_cat(); break; case "search_streaming_medias": search_streaming_medias(); break; } /************************End Listing*******************************************************************/ echo "<p align=\"right\"><a href=\"http://www.microsoft.com/windows/windowsmedia/download/default.asp\"><img src=\"images/streaming/getmediaplayer.gif\" width=\"65\" height=\"28\" border=\"0\"></a><a href=\"http://www.apple.com/quicktime/download/\"><img src=\"images/streaming/quick.gif\" width=\"65\" height=\"28\" border=\"0\"></a><a href=\"http://www.real.com/realone\"><img src=\"images/streaming/real.gif\" width=\"65\" height=\"28\" border=\"0\"></a></p>\n"; ?>
En zie hier een voorbeeld van de streamingmodule, want daar gaat het om. Het gaat niet om de header van de website zelf!!:
http://autorijs...=streaming
Het gaat om het stukje waar staat :
VIDEO
Go to Categories index
Dus kan iemand me aub ff helpen met die header in te bouwen?Zou het zeer op prijs stellen namelijk
|