Rename library .php files to .inc, so they don't get served out as pages.

This commit is contained in:
Jeff Teunissen 2007-03-22 05:41:34 +00:00
parent 26e9f1b525
commit e1800a17c2
18 changed files with 32 additions and 8 deletions

View File

@ -42,7 +42,7 @@
$channelTitle = $info[1];
$channelLink = $info[2];
$channelDesc = $info[3];
echo "<H3><A href=\"$channelLink\">" . unhtmlentities ($channelTitle) . "</A></H3>";
echo "<H3><A href=\"$channelLink\">" . convertFromHTML ($channelTitle) . "</A></H3>";
}
}
@ -55,7 +55,7 @@
$title = $info[1][$i];
$link = $info[2][$i];
$desc = $info[3][$i];
echo "<P><A href=\"$link\">" . unhtmlentities ($title) . "</A></P>\n";
echo "<P><A href=\"$link\">" . convertFromHTML ($title) . "</A></P>\n";
}
}
@ -63,4 +63,4 @@
{
displayRSSFeed ('http://rss.slashdot.org/Slashdot/slashdot', false);
}
?>
?>

View File

@ -1,7 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<LINK rel="Icon" type="image/png" href="/img/icons16/qficon.png">
<LINK rel="StyleSheet" type="text/css" href="/styles/<?=$theme?>/level1.css">
<META http-equiv="Content-Script-Type" content="text/javascript">
<META http-equiv="Content-Style-Type" content="text/css">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<STYLE type="text/css" media="screen"><!--
@import url(/styles/<?=$theme?>/level2.css);
--></STYLE>
@ -14,7 +18,6 @@
}
echo "$siteName: $pageName";
?></TITLE>
<LINK rel="Icon" type="image/png" href="/img/icons16/qficon.png">
<SCRIPT type="text/javascript"><? include siteHome . "/parts/menuResize.js"; ?></SCRIPT>
</HEAD>
<BODY>

View File

@ -41,7 +41,7 @@
}
if (!defined ('_ARRAY_')) { // Treat array handler special
require siteHome . "/lib/array.php";
require siteHome . "/lib/array.inc";
}
if (!defined ('_LIBFUNCS_')) {
@ -61,7 +61,7 @@
for ($i = 0 ; $i < count ($libs) ; $i++ ) {
$lib = $libs[$i];
if ((inArray ($libs[$i], $needs)) && (!inArray ($libs[$i], $has))) {
include siteHome . "/lib/$libs[$i].php";
include siteHome . "/lib/$libs[$i].inc";
}
}
}
@ -100,8 +100,29 @@
if (strlen ($str))
echo $str;
require siteHome . '/parts/postamble.php'; // end page
die;
}
function stripAllSlashes (&$var)
{
if (is_array ($var)) {
foreach (array_keys ($var) as $key) {
if (is_array($var[$key])) {
stripAllSlashes ($var[$key]);
} else {
$var[$key] = stripSlashes ($var[$key]);
}
}
} else {
$var = stripSlashes ($var);
}
}
if (true && get_magic_quotes_gpc()) { // unquote $_GET, $_POST, $_COOKIE
stripAllSlashes ($_GET);
stripAllSlashes ($_POST);
stripAllSlashes ($_COOKIE);
stripAllSlashes ($_REQUEST);
}
} // !_LIBFUNCS_
?>

View File

@ -76,6 +76,6 @@
// searchMenu ();
?>
<SPAN class="centered"><A class="sfLogo" href="http://sourceforge.net/projects/quake/"><IMG src="http://sflogo.sourceforge.net/sflogo.php?group_id=882&amp;type=2" width="125" height="37" border="0" alt="SourceForge Logo"></A></SPAN>
<SPAN class="centered"><A class="sfLogo" href="http://sourceforge.net/projects/quake/"><IMG src="http://sflogo.sourceforge.net/sflogo.php?group_id=882&amp;type=2" width="125" height="37" alt="SourceForge Logo"></A></SPAN>
</DIV>
<!-- end menu -->