Skip to content

Recentste berichten

  • After 13 and a bit it’s time for 13!
  • Na 13 en een beetje, komt 13?
  • Dining-out!
  • Lekker eten
  • Special night

Most Used Categories

  • Algemeen (190)
  • Algemeen @en (106)
  • Werk (83)
  • Lekker (eten en drinken) (55)
    • Recepten (8)
  • Motor (36)
  • Trouwen (27)
  • Fiets (25)
Skip to content

tom.scholten.nu

Tom's personal log

Subscribe
  • About me
  • Archief
    • CMS Framework
    • Postfix LDAP Howto
      • Postfix LDAP Howto
      • Postfix LDAP Howto v2.0 part two
    • Scroller.txt
  • Archive
  • aXBo – Testing
  • Cookie Policy
  • iPad
  • iPad
  • iPhone
    • iPhone (1.0)
      • Modem/proxy usage
    • iPhone (2.0)
  • iPhone
  • LoBySS
  • LoBySS
  • Music
  • Muziek
    • Never ending story (Limahl)
    • SnoWMusic
    • The Load out / Stay (just a little bit longer)
  • OSX Tools and Stuff
  • OSX Tools and Stuff
  • Over mij
  • Postfix LDAP Howto v2.1
  • Postfix LDAP Howto v2.1
  • Postfix MySQL howto v1.0
  • Recipes
  • Speedtouch SIP spoof (716)
  • WPG2
  • Wiki

Scroller.txt

Place scroller.txt (writeable for you’re webserver)
and scroller.php in a directory, adjust HTML code
and you’re set to go

Include in the file where you want the scroller to
appear the following IFRAME:

 

File: Scroller.txt (9 lines)
——————
klik op de scroller om jouw tekst toe te voegen
1
2
3
4
5
6
7
8

File: Scroller.php
——————

 

#
# Scroller.php
# Copyright (c) 2003 by CoMPa Technology
#       http://www.compa.nl
#
# Designed for http://www.wilhelmina.org
# and all others who like the functionality
#

# Start session (for keeping track and not letting
# users fill up the string
session_start();

# Get variables
$act=$_GET[‘act’];
$info=$_POST[‘info’];

# What file to keep the text’s in
$file=”./scroller.txt”;
# What seperator to use (can be html text)
$sep=”“;

if ( $act == “” )
{
if (is_file($file)) {
$content=file($file);
$arraycount=count($content);
while ( $arraycount != 0 ) {
$scroller = $scroller2;
$arraycount–;
$line=preg_replace(“/(<.+?>)/”, “”, $content[$arraycount]);
$scroller2 = “$line $sep $scroller”;
}
$scroller = “$sep $line $sep $scroller $line $sep”;

?>


 

}
exit;
}

if ( $act == “edit” && $_SESSION[‘scroller_post’] != “true” )
{
?>

Jouw tekst:   

} elseif ( $_SESSION[‘scroller_post’] == “true” ) {
?>

} 

if ( $act == “add” )
{
$_SESSION[‘scroller_post’]=”true”;

if ($content=file($file)) {
# Leave first two intact, reroute all others
$i=1;
while ($i<8) { $content[$i]=$content[$i+1]; $i++; }
# add new one
$content[8]=$info.”\n”;
$file=fopen($file,’w’);
$i=0; $contentsize=9;
while ($i<=$contentsize) {
$content[$i]=preg_replace(“/(<.+?>)/”, “”, $content[$i]);
$content[$i]=stripslashes($content[$i]);
fputs($file,$content[$i]);
$i++;
}
fclose($file);
}
?>
}
exit;
?>

Geef een reactie

Your email address will not be published. Required fields are marked *

Copyright All Rights Reserved | Theme: BlockWP by Candid Themes.

Warning: Undefined array key "ltasurl" in /var/www/html/weblog/wp-content/plugins/flash-video-player/flash-video-player.php on line 96

Warning: Trying to access array offset on null in /var/www/html/weblog/wp-content/plugins/flash-video-player/flash-video-player.php on line 96