Simpnews > Newsscroller.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Simpnews

Download:
simpnews.zip

Category:
News Publishing

Archive Content:

Content:

Admin

Admin > Css

Admin

Admin > Gfx

Admin

Admin > Help > De

Admin > Help > En

Admin

Admin > Includes

Admin > Includes > Js

Admin > Includes

Admin > Includes > Layoutpages

Admin > Includes

Admin

Admin > Js

Admin > Js > Tabbed

Admin > Language

Admin

Applet

Doc > De

Doc > En

Doc

Gfx

Gfx > Bbcodes > Highlight

Gfx > Bbcodes > Normal

Gfx

Gfx > Emoticons

Gfx

Gfx > Icons

Gfx

Help > De

Help > En

Includes

Includes > Js

Includes

Js

Language

Sfx

Content:

Newsscroller.php:


<?php
/***************************************************************************
 * (c)2002-2004 Boesch IT-Consulting (info <at> boesch-it <dot> de)
 ***************************************************************************/
$path_simpnews=dirname(__FILE__);
require_once(
$path_simpnews.'/config.php');
require_once(
$path_simpnews.'/functions.php');
if(!isset(
$category))
    
$category=0;
if(!isset($
$langvar) || !$$langvar)
    
$act_lang=$default_lang;
else
    
$act_lang=$$langvar;
include(
$path_simpnews.'/language/lang_'.$act_lang.'.php');
include(
$path_simpnews.'/includes/get_settings.inc');
$sql "select * from ".$tableprefix."_misc";
if(!
$result mysql_query($sql,  $db))
    die(
"Could not connect to the database.");
if (
$myrow mysql_fetch_array($result))
{
    if(
$myrow["shutdown"]==1)
    {
        include_once(
$path_simpnews.'/includes/styles2.inc');
?>
<table width="<?php echo $TableWidth?>" border="0" CELLPADDING="1" CELLSPACING="0" ALIGN="<?php echo $tblalign?>" class="sntable">
<tr><TD BGCOLOR="<?php echo $bordercolor?>">
<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
<?php
if(strlen($heading)>0)
{
?>
<TR BGCOLOR="<?php echo $headingbgcolor?>" ALIGN="CENTER">
<TD ALIGN="CENTER" VALIGN="MIDDLE" colspan="2"><font face="<?php echo $headingfont?>" size="<?php echo $headingfontsize?>" color="<?php echo $headingfontcolor?>"><b><?php echo $heading?></b></font></td></tr>
<?php
}
?>
</tr></table></td></tr>
<tr><TD BGCOLOR="<?php echo $bordercolor?>">
<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
<tr BGCOLOR="<?php echo $contentbgcolor?>" ALIGN="CENTER">
<TD ALIGN="CENTER" VALIGN="MIDDLE" colspan="2"><font face="<?php echo $contentfont?>" size="<?php echo $contentfontsize?>" color="<?php echo $contentfontcolor?>">
<?php
        $shutdowntext
=stripslashes($myrow["shutdowntext"]);
        
$shutdowntext undo_htmlspecialchars($shutdowntext);
        echo 
$shutdowntext;
        echo 
"</font></td></tr></table></td></tr></table>";
        echo 
"</td></tr></table>";
        include(
$path_simpnews.'/includes/footer2.inc');
        echo 
"</body></html>";
        exit;
    }
}
if(isset(
$download))
{
    
header('Content-Type: application/octetstream');
    
header('Content-Disposition: filename="newsscroller_'.$act_lang.'.ht"');
}
if(!isset(
$scrolltype))
    
$scrolltype=$newsscrollertype;
if(!isset(
$limitentries))
    
$limitentries=$newsscrollermaxentries;
if(!isset(
$limitdays))
    
$limitdays=$newsscrollermaxdays;
$datasourceurl="$url_simpnews/newsscroller2.php?limitentries=$limitentries&limitdays=$limitdays&scrolltype=$scrolltype&$langvar=$act_lang&layout=$layout&category=$category";
if(isset(
$lastvisitdate))
    
$datasourceurl.="&lastvisitdate=$lastvisitdate";
if(isset(
$maxannounce))
    
$datasourceurl.="&maxannounce=$maxannounce";
?>
<!-- code generated by SimpNews begin -->
<applet archive="<?php echo $url_simpnews?>/applet/scroller.jar"
    codebase="<?php echo $url_simpnews?>/applet"
    code="de.boesch_it.simpnews.scroller.NewsScroller"
    width="<?php echo $newsscrollerwidth?>"
    height="<?php echo $newsscrollerheight?>">
<param name="datasource" value="<?php echo $datasourceurl?>">
<param name="separator" value="<?php echo $sep_char?>">
<param name="scrollspeed" value="<?php echo $newsscrollerscrollspeed?>">
<param name="scrolldelay" value="<?php echo $newsscrollerscrolldelay?>">
<param name="pause" value="<?php echo $newsscrollerscrollpause?>">
<param name="scrolltype" value="<?php echo $scrolltype?>">
<param name="onmouseoverstop" value="<?php echo $newsscrollermousestop?>">
<param name="xoffset" value="<?php echo $newsscrollerxoffset?>">
<param name="yoffset" value="<?php echo $newsscrolleryoffset?>">
<param name="maxlines" value="<?php echo $newsscrollermaxlines+2?>">
<?php
if(isset($dodebug))
    echo 
"<param name=\"debugmode\" value=\"on\">";
if(
$newsscrollerwordwrap==1)
    echo 
"<param name=\"wordwrap\" value=\"on\">";
if(
$newsscrollerbgimage)
    echo 
"<param name=\"backgroundimage\" value=\"$newsscrollerbgimage\">";
if(
$newsscrollerfgimage)
    echo 
"<param name=\"foregroundimage\" value=\"$newsscrollerfgimage\">";
?>
</applet>
<!-- code generated by SimpNews end -->


Other News Publishing Scripts:

WebMaster Resources Home

©RingsWorld.com