chrickel.de Lichttechnik chrickel.de Lichttechnik
  Home arrow Impressum
Tuesday, 26 September 2017
 
 
 
 
Navigation
Home
Funstuff
KnowHow
Oha...!
Downloads
Links
Blog
Oha Upload
Kontakt
Impressum
DieReferenz - News
L&Si news
We have 1 guest online
 
 
 
registerFunction( 'onPrepareContent', 'botjDownload' ); function botjDownload( $published, &$row, &$params, $page=0 ) { if (!$published) return; $dlchk = strpos( strtolower($row->text), '{jdownload' ); if ($dlchk === false) return; // path to the download-files. Edit, if you want to. $downloaddir="/images/stories/mosdl/"; while ($dlchk){ $botname=substr($row->text,strpos(strtolower($row->text),"{jdownload ")); $botname=substr($botname,0,strpos(strtolower($botname),"{/jdownload}")+12); // extract Filename $dlfilename=substr($botname,strpos($botname," ")); $dlfilename=trim(substr($dlfilename,1,strpos($dlfilename,"}")-1)); // extract linktext $dllinktext=substr($botname,strpos($botname,"}")); $dllinktext=substr($dllinktext,1,strpos($dlfilename,"{/jdownload}")-12); // check if there was a linktext - if not, display filename if ($dllinktext=="") { $dllinktext=$dlfilename; } // check if file exists if (file_exists($GLOBALS['mosConfig_absolute_path'].$downloaddir.$dlfilename)) { // YES - then replace Tag with Link $row->text=str_replace(trim($botname),''.$dllinktext.'',$row->text); } else { // NO - then just display linktext in italics $row->text=str_replace(trim($botname),"".$dllinktext."",$row->text); } $dlchk = strpos( strtolower($row->text), '{jdownload' ); } } ?>
Impressum

Betreiber der Seite und inhaltlich verantwortlich:

chrickel.de Lichttechnik
Christopher "Chrickel" Diedrich
Meister für Veranstaltungstechnik

Turnhallenstr. 435
CH - 5044 Schlossrued

Tel D +49-177-428 19 24
Tel CH +41-79-936 04 43
Fax D +49-221-98 51 287

Skype: chrickel.de
openBC/Xing: chrickel.de

 

Diese Daten dienen nicht dazu, mir unverlangte Werbung o.ä. zuzusenden.

This site is powered by:

Bookmarks v2.6-Plus (2005-09-03) © 2005 TEGDesign

Special thanks to Martin Rafferty, www.infullswing.co.uk

 


 

 
(C) 2017 chrickel.de Lichttechnik
Home | Funstuff | KnowHow | Oha...! | Downloads | Links | Blog |