Commit ea406680 authored by changi67's avatar changi67

[FIX] Delete ?>(EOF) according to Zend recommendation excluding external file

parent baab3104
...@@ -57,7 +57,6 @@ Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for detail ...@@ -57,7 +57,6 @@ Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for detail
*/ */
// I call index.php because tiki may not be setup when people attempt to call this. // I call index.php because tiki may not be setup when people attempt to call this.
header ("location: index.php"); header ("location: index.php");
die; die;
?>
\ No newline at end of file
...@@ -110,5 +110,3 @@ if (is_file($cachefile)) { ...@@ -110,5 +110,3 @@ if (is_file($cachefile)) {
header ("Content-type: ".$type); header ("Content-type: ".$type);
echo $data; echo $data;
} }
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -27,5 +27,3 @@ if ($prefs['feature_banners'] != 'y') { ...@@ -27,5 +27,3 @@ if ($prefs['feature_banners'] != 'y') {
$bannerlib->add_click($_REQUEST["id"]); $bannerlib->add_click($_REQUEST["id"]);
$url = urldecode($_REQUEST["url"]); $url = urldecode($_REQUEST["url"]);
header ("location: $url"); header ("location: $url");
?>
...@@ -66,5 +66,3 @@ if (is_file($bannercachefile)) { ...@@ -66,5 +66,3 @@ if (is_file($bannercachefile)) {
} else { } else {
echo $data; echo $data;
} }
?>
...@@ -59,5 +59,3 @@ if ($prefs['feature_categories'] == 'y') { ...@@ -59,5 +59,3 @@ if ($prefs['feature_categories'] == 'y') {
$smarty->assign_by_ref('categories', $categories["data"]); $smarty->assign_by_ref('categories', $categories["data"]);
} }
?>
...@@ -110,5 +110,3 @@ else { ...@@ -110,5 +110,3 @@ else {
} }
$smarty->assign('cat_categorize', $cat_categorize); $smarty->assign('cat_categorize', $cat_categorize);
} }
?>
...@@ -174,6 +174,3 @@ function sendArticle($params) { ...@@ -174,6 +174,3 @@ function sendArticle($params) {
return new XML_RPC_Response(new XML_RPC_Value(1, "boolean")); return new XML_RPC_Response(new XML_RPC_Value(1, "boolean"));
} }
?>
...@@ -60,4 +60,3 @@ if ($prefs['feature_contribution'] == 'y') { ...@@ -60,4 +60,3 @@ if ($prefs['feature_contribution'] == 'y') {
} }
} }
} }
?>
...@@ -82,5 +82,3 @@ $smarty->assign('copyrights', $copyrights["data"]); ...@@ -82,5 +82,3 @@ $smarty->assign('copyrights', $copyrights["data"]);
// Display the template // Display the template
$smarty->assign('mid', 'copyrights.tpl'); $smarty->assign('mid', 'copyrights.tpl');
$smarty->display("tiki.tpl"); $smarty->display("tiki.tpl");
?>
...@@ -19,4 +19,3 @@ foreach ($list['data'] as $l) { ...@@ -19,4 +19,3 @@ foreach ($list['data'] as $l) {
} }
} }
} }
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -214,4 +214,3 @@ function convert_enums($colname,$content) ...@@ -214,4 +214,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))"; $ret.="CHECK ($colname IN ($content))";
return $ret; return $ret;
} }
?>
...@@ -230,4 +230,3 @@ function convert_enums($colname,$content) ...@@ -230,4 +230,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))"; $ret.="CHECK ($colname IN ($content))";
return $ret; return $ret;
} }
?>
...@@ -187,4 +187,3 @@ function convert_enums($colname,$content) ...@@ -187,4 +187,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))"; $ret.="CHECK ($colname IN ($content))";
return $ret; return $ret;
} }
?>
...@@ -217,4 +217,3 @@ function convert_enums($colname,$content) ...@@ -217,4 +217,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))"; $ret.="CHECK ($colname IN ($content))";
return $ret; return $ret;
} }
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../index.php"); header ("location: ../index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -45,7 +45,6 @@ $user_tiki = 'myuser'; ...@@ -45,7 +45,6 @@ $user_tiki = 'myuser';
$pass_tiki = 'mypass'; $pass_tiki = 'mypass';
$dbs_tiki = 'mytiki'; $dbs_tiki = 'mytiki';
$api_tiki = 'adodb'; $api_tiki = 'adodb';
?>
** Multi-tiki ** Multi-tiki
************************************** **************************************
......
...@@ -63,7 +63,4 @@ case 'useText': ...@@ -63,7 +63,4 @@ case 'useText':
break; break;
} }
print ($raw); print ($raw);
?>
...@@ -39,5 +39,3 @@ info("Reverting to prior status."); ...@@ -39,5 +39,3 @@ info("Reverting to prior status.");
`svn switch {$local->entry->url}`; `svn switch {$local->entry->url}`;
echo "$tar.gz was created.\n"; echo "$tar.gz was created.\n";
?>
...@@ -69,5 +69,3 @@ while ($res = $result->fetchRow()) { ...@@ -69,5 +69,3 @@ while ($res = $result->fetchRow()) {
} }
} }
} }
?>
...@@ -61,5 +61,3 @@ foreach($elems as $filename) { ...@@ -61,5 +61,3 @@ foreach($elems as $filename) {
} }
} }
} }
?>
...@@ -45,5 +45,3 @@ while ($r = mysql_fetch_array($results)) { ...@@ -45,5 +45,3 @@ while ($r = mysql_fetch_array($results)) {
fclose($img); fclose($img);
echo "Done!\n"; echo "Done!\n";
} }
?>
...@@ -871,5 +871,3 @@ class FCKXmlDocument ...@@ -871,5 +871,3 @@ class FCKXmlDocument
$this->_CurrentNode->Value .= $data ; $this->_CurrentNode->Value .= $data ;
} }
} }
?>
\ No newline at end of file
...@@ -83,4 +83,3 @@ $ggg_traceFiles->outln(__FILE__); ...@@ -83,4 +83,3 @@ $ggg_traceFiles->outln(__FILE__);
$ggg_tracer = new ggg_trace(); $ggg_tracer = new ggg_trace();
// $ggg_tracer->outln("Tracer initialized in ggg-trace.php..."); // $ggg_tracer->outln("Tracer initialized in ggg-trace.php...");
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -40,4 +40,3 @@ foreach ($pages as $p) { ...@@ -40,4 +40,3 @@ foreach ($pages as $p) {
echo "\n"; echo "\n";
} }
} }
?>
...@@ -39,5 +39,3 @@ foreach($elems as $filename) { ...@@ -39,5 +39,3 @@ foreach($elems as $filename) {
} }
} }
} }
?>
...@@ -23,4 +23,3 @@ foreach ($users as $user) { ...@@ -23,4 +23,3 @@ foreach ($users as $user) {
echo "replace into users_users set userId='".$res['userId']."', pass_due='". (time()+(60*60*24*999)) ."', email='".$res['email']."', hash='".$res['hash']."', login='".$res['login']."';\n"; echo "replace into users_users set userId='".$res['userId']."', pass_due='". (time()+(60*60*24*999)) ."', email='".$res['email']."', hash='".$res['hash']."', login='".$res['login']."';\n";
echo "insert ignore into users_usergroups set userId='".$res['userId']."', groupName='Registered';\n"; echo "insert ignore into users_usergroups set userId='".$res['userId']."', groupName='Registered';\n";
} }
?>
...@@ -86,6 +86,3 @@ fclose($fp); ...@@ -86,6 +86,3 @@ fclose($fp);
} }
echo "done. use mysqldump to extract the secdb table and to add it to the release<br>"; echo "done. use mysqldump to extract the secdb table and to add it to the release<br>";
} }
?>
...@@ -38,4 +38,3 @@ while ($res = $result->fetchRow()) { ...@@ -38,4 +38,3 @@ while ($res = $result->fetchRow()) {
} }
echo $put."\n"; echo $put."\n";
} }
?>
\ No newline at end of file
...@@ -40,4 +40,3 @@ while ($r = mysql_fetch_row($results)) { ...@@ -40,4 +40,3 @@ while ($r = mysql_fetch_row($results)) {
} }
fclose($fmif); fclose($fmif);
fclose($fmid); fclose($fmid);
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -38,5 +38,3 @@ if ($prefs['feature_freetags'] == 'y' and $tiki_p_freetags_tag == 'y') { ...@@ -38,5 +38,3 @@ if ($prefs['feature_freetags'] == 'y' and $tiki_p_freetags_tag == 'y') {
$freetaglib->update_tags($user, $cat_objid, $cat_type, $tag_string, false, $cat_lang); $freetaglib->update_tags($user, $cat_objid, $cat_type, $tag_string, false, $cat_lang);
} }
?>
...@@ -53,5 +53,3 @@ if ($prefs['feature_freetags'] == 'y' and $tiki_p_view_freetags == 'y') { ...@@ -53,5 +53,3 @@ if ($prefs['feature_freetags'] == 'y' and $tiki_p_view_freetags == 'y') {
$smarty->assign('tag_suggestion',$suggestion); $smarty->assign('tag_suggestion',$suggestion);
} }
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-list_games.php"); header ("location: ../tiki-list_games.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -16,12 +16,7 @@ if ($prefs['feature_wiki'] != 'y') { ...@@ -16,12 +16,7 @@ if ($prefs['feature_wiki'] != 'y') {
$smarty->display("error.tpl"); $smarty->display("error.tpl");
die; die;
} }
include_once ('lib/wiki/wikilib.php'); include_once ('lib/wiki/wikilib.php');
$plugins = $wikilib->list_plugins(true); $plugins = $wikilib->list_plugins(true);
$smarty->assign_by_ref('plugins', $plugins); $smarty->assign_by_ref('plugins', $plugins);
$smarty->display("tiki-edit_help.tpl"); $smarty->display("tiki-edit_help.tpl");
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -262,4 +262,3 @@ tra('Yemen'); ...@@ -262,4 +262,3 @@ tra('Yemen');
tra('Yugoslavia'); tra('Yugoslavia');
tra('Zambia'); tra('Zambia');
tra('Zimbabwe'); tra('Zimbabwe');
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php"); header ("location: ../../tiki-index.php");
die; die;
?>
...@@ -186,5 +186,3 @@ class ImportMediaWikiDump ...@@ -186,5 +186,3 @@ class ImportMediaWikiDump
return $tiki_text; return $tiki_text;
} }
} }
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../index.php"); header ("location: ../index.php");
die; die;
?>
...@@ -10,5 +10,3 @@ ...@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php"); header ("location: ../tiki-index.php");
die; die;
?>
...@@ -256,5 +256,3 @@ class Installer ...@@ -256,5 +256,3 @@ class Installer
return count( $this->patches ) > 0 ; return count( $this->patches ) > 0 ;
} // }}} } // }}}
} }
?>
...@@ -15,5 +15,3 @@ function post_20090416_plugin_security_tiki( $installer ) ...@@ -15,5 +15,3 @@ function post_20090416_plugin_security_tiki( $installer )
$installer->query( "DELETE FROM tiki_preferences WHERE name = 'plugin_fingerprints'" ); $installer->query( "DELETE FROM tiki_preferences WHERE name = 'plugin_fingerprints'" );
} }
} }