Source of: /modules.php


<?php
/*

Copyright  2001, 2002, 2003, 2004, 2005, 2006 Andres Baravalle

This file is part of phpGrabComics.

phpGrabComics 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, or
(at your option) any later version.

phpGrabComics is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with phpGrabComics; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/
include_once("dir.php");
include_once(
$dir "inc/prepend.php");
echo 
"<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><!-- InstanceBegin template="/Templates/accessible.dwt" codeOutsideHTMLIsLocked="true" -->
<head>

<?php
include_once($dir "inc/head.php");
?>
<!-- #BeginEditable "doctitle" --> 
<?php
// include all the comics classes
include_once($dir "inc/load_comics_classes.php");
// include PEAR classes
include_once($dir "inc/load_PEAR_classes.php");
$title="Syndication";
?>
<!-- #EndEditable -->
<title>
<?php
if($title!="")
    echo 
"phpGrabComics - " $title;
else
{
    
$title "phpGrabComics";
    echo 
$title;
}
?>
</title>
</head>
<body>
<div id="header">
  <div class="left" id="logo"><a href="index.php"><img src="<?php echo $banners_file?>/phpgrabcomics_10.png" alt="phpGrabComics home page" width="85" height="85" style="vertical-align: middle; margin-right: 36px;" /></a>
    <h1><?php echo $title?></h1>
  </div>
  <?php
    
// disable search bar for sites other then the main one.
    
if(!empty($search_with_google))
    {
    
?>
  <div class="right" id="title" style="vertical-align: top;">
    <p style="text-align:right"><br />
    <form method="get" action="http://www.google.com/custom">
      <input type="text" name="q" size="15" maxlength="255" value="" />
      <input type="submit" name="sa" value="search" />
            <input type="hidden" name="cof" value="GL:0;AH:center;LH:75;L:http://phpgrabcomics.org/images/phpgrabcomics_3.png;LW:190;AWFID:e9f23ee0cb5669aa;" />
            <input type="hidden" name="domains" value="server.phpgrabcomics.org" />
            <input type="hidden" name="sitesearch" value="<?php echo $search_with_google?>" /> 
    </form>
    </p>
  </div>
  <?php
    
}
    
?>
  <hr />
</div>
<div id="body">
  <?php
    
if (isset($_GET["show_source"]) and $_GET["show_source"]==1)
    {
        echo 
"<br /><h2>Source of: ".$_SERVER["SCRIPT_NAME"]."</h2>\n<hr />\n";
        
highlight_file($_SERVER["SCRIPT_FILENAME"]);
        
printf("<hr /><br />"_LAST_MODIFIED ": %s"gmdate("Y/M/d H:i:s",filemtime($_SERVER["SCRIPT_FILENAME"])));
    }
    else
    {
    
?>
  <!-- #BeginEditable "testo dentro il livello" -->
                            <p>If you would like
                            a new module, <a href="http://sourceforge.net/tracker/?func=add&group_id=33239&atid=407576">submit a new feature request</a>; I often prepare new
                                modules under request - if I like the comic!</p>
                                <p>Please remember that <strong>the following feeds are not official</strong>, and phpGrabComics has no link with the listed comics. More information on phpGrabComics and copyright is available <a href="http://phpgrabcomics.org/copyright.php">here</a>. </p>
                                <p>Moreover, there are different possible conditions for the modules:</p>
                                <ul>
                                        <li><strong>enabled</strong>: an icon is available with a link to the RSS</li>
                                    <li><strong>complains</strong>: the web site formally complained and the RSS is not public anymore</li>
                                    <li><strong>cannot redistribute</strong>: the web site is technically restricting the use of RSS </li>
                                    <li><strong>disabled</strong>: the module is not working any more and has been disabled. Post a message in the <a href="http://sourceforge.net/forum/forum.php?forum_id=104236">developers forum</a> if you think that a disabled module can be corrected and enabled. In most cases, modules are disabled when the comic strip is not available any more. </li>
                                </ul>
                                <p>If you install your own copy of phpGrabComics, you will have access to all the feeds that are not disabled, for your personal use only.</p>
                                <p class="block">If the feeds do not work in your client, or if you want to customise your RSS feeds, please refer to the <a href="docs/user.html">user documentation</a>. </p>
                                <p>The following feeds include a number of the last comic strips published. How many comics are included varies in the different feeds.</p>
                                <?php
                            
echo "<table style=\"padding:6px\">\n";
                            echo 
"<thead><tr><th scope=\"row\">Comic name</th><th>Module name<br /><span style=\"font-size: x-small\">in phpGrabComics</span></th><th>Last update <br /><span style=\"font-size: x-small\">of the comic strip</span></th><th>Last modification <br /><span style=\"font-size: x-small\">of the module</span></th><th>Syndicate</th></tr></thead>\n";
                            echo 
"<tbody>";
                            
uasort($comic_list_full,array(new admin(), "sort"));
                            
                            
$comics_disabled 0;
                            
$comics_enabled 0;
                            
$comics_cannot_redistribute 0;
                            
$comics_site_complains 0;
                            
                            while(list(
$key,$val) = each($comic_list_full))
                            {
                                echo 
"\n<tr>";
                                echo 
"<td><a href=\"index.php?comic_array[]=" .$val->unix_name "&amp;view=1\">" $val->name "</a></td>";
                                echo 
"<td>"$val->unix_name "</td>";
                                
                                echo 
"<td style=\"padding: 0px 24px 0px 0px\">";
                                
$row admin::rLastComic($val->unix_name);
                                if(!empty(
$row["last_date2"]))
                                        echo 
gmdate("Y/M/d H:i",$row["last_date2"]);
                                else
                                    echo 
"never/undefined";
                                echo 
"</td>";
                                echo 
"<td style=\"padding: 0px 24px 0px 0px\">";    
                                echo 
gmdate("Y/M/d H:i",filemtime($dir."$modules_folder/".$val->unix_name.".php"))."</td>";
                                echo 
"<td style=\"text-align:center\">";
                                if(
$val->enabled == False)
                                {
                                    
$comics_disabled++;
                                    echo 
"<span style=\"font-size: x-small\">disabled</span>";
                                }
                                else
                                {
                                    
$site_complains $val->siteComplains();
                                    if(
$val->checks_enabled==False and ($site_complains==False or $authenticated == True))
                                    {
                                        echo 
"<a href=\"${full_web_dir}/${phpgrabcomics_file}?from_real_site=True&amp;comic_array[]=" $val->unix_name"\"><img src=\"images/xml.png\" alt=\"RSS for "$val->name "\" width=\"36\" height=\"14\" /></a>";
                                        
$comics_enabled++;
                                    }
                                    elseif(
$val->checks_enabled==True)
                                    {
                                        echo 
"<span style=\"font-size: x-small\">cannot redistribute</span>";
                                        
$comics_cannot_redistribute++;
                                    }
                                    elseif(
$site_complains==True)
                                    {
                                        echo 
"<span style=\"font-size: x-small\">complains</span>";
                                        
$comics_site_complains++;
                                    }
                                    else
                                        echo 
"&nbsp;";
                                }
                                echo 
"</td>";
                                echo 
"</tr>\n";
                            }    
                            echo 
"</tbody>";
                            echo 
"</table>\n";
                            
?>
                    
                            <h2>Summary</h2>
                            <p><?php echo $comics_enabled;?> strips are <strong>enabled</strong> and can be syndicated.</p>
                            <p><?php echo $comics_cannot_redistribute;?> strips are enabled but <strong>cannot be redistributed</strong> for technical reasons.</p>
                            <p><?php echo $comics_site_complains;?> strips are enabled but <strong>the copyright holder complained</strong> and asked not to redistribute them in the RSS feeds.</p>
                            <p><?php echo $comics_disabled;?> strips are <strong>disabled</strong> because they are not working any more.</p>
                            
                            
                            <p class="footnote">An easy-to-manipulate list of <a href="rss_feeds.php">RSS feeds</a> is available as well.</p>
                                    <h2>All the comics together </h2>
                            <p><a href="<?php echo $phpgrabcomics_file?>?from_real_site=True"><img src="images/xml.png" alt="RSS for all the comics" width="36" height="14" border="0" /></a> This <a href="<?php echo $phpgrabcomics_file?>?from_real_site=True">feed</a> includes the all the comics, but only the last comic strip published for each of them.</p>
                            <p><a href="<?php echo $opml_file?>"><img src="images/opml.png" alt="OPML" width="36" height="14" border="0" /></a> This is the <a href="<?php echo $opml_file?>">opml</a> for all the feeds.</p>
 <!-- #EndEditable -->
  <?php
    
}
    
?>
</div>
<div id="footer">
  <hr />
  <div class="left" id="source"><a href="<?php echo $dir?>index.php"><img src="<?php echo $dir?>images/logo.png" id="show_source" width="32" height="48" alt="show source" /></a> <a href="<?php echo $_SERVER["SCRIPT_NAME"];?>?show_source=1">show source</a></div>
  <div class="right" id="hosted"> <a href="http://sourceforge.net/projects/phpgrabcomics/"><img src="<?php echo $dir?>sourceforge.php" id="sourceforge" alt="SourceForge" /></a> phpGrabComics    project is hosted at <a href="http://sourceforge.net/projects/phpgrabcomics/">sourceforge.net</a>.</div>
</div>
</body>
<!-- InstanceEnd --></html>
<?php
include_once($dir "inc/append.php");
?>


Last modified: 2013/Feb/20 11:01:14