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
*/
// I call index.php because tiki may not be setup when people attempt to call this.
header ("location: index.php");
die;
header ("location: index.php");
die;
?>
\ No newline at end of file
......@@ -110,5 +110,3 @@ if (is_file($cachefile)) {
header ("Content-type: ".$type);
echo $data;
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -27,5 +27,3 @@ if ($prefs['feature_banners'] != 'y') {
$bannerlib->add_click($_REQUEST["id"]);
$url = urldecode($_REQUEST["url"]);
header ("location: $url");
?>
......@@ -66,5 +66,3 @@ if (is_file($bannercachefile)) {
} else {
echo $data;
}
?>
......@@ -59,5 +59,3 @@ if ($prefs['feature_categories'] == 'y') {
$smarty->assign_by_ref('categories', $categories["data"]);
}
?>
......@@ -110,5 +110,3 @@ else {
}
$smarty->assign('cat_categorize', $cat_categorize);
}
?>
......@@ -174,6 +174,3 @@ function sendArticle($params) {
return new XML_RPC_Response(new XML_RPC_Value(1, "boolean"));
}
?>
......@@ -60,4 +60,3 @@ if ($prefs['feature_contribution'] == 'y') {
}
}
}
?>
......@@ -82,5 +82,3 @@ $smarty->assign('copyrights', $copyrights["data"]);
// Display the template
$smarty->assign('mid', 'copyrights.tpl');
$smarty->display("tiki.tpl");
?>
......@@ -19,4 +19,3 @@ foreach ($list['data'] as $l) {
}
}
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -214,4 +214,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))";
return $ret;
}
?>
......@@ -230,4 +230,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))";
return $ret;
}
?>
......@@ -187,4 +187,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))";
return $ret;
}
?>
......@@ -217,4 +217,3 @@ function convert_enums($colname,$content)
$ret.="CHECK ($colname IN ($content))";
return $ret;
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -45,7 +45,6 @@ $user_tiki = 'myuser';
$pass_tiki = 'mypass';
$dbs_tiki = 'mytiki';
$api_tiki = 'adodb';
?>
** Multi-tiki
**************************************
......
......@@ -63,7 +63,4 @@ case 'useText':
break;
}
print ($raw);
?>
......@@ -39,5 +39,3 @@ info("Reverting to prior status.");
`svn switch {$local->entry->url}`;
echo "$tar.gz was created.\n";
?>
......@@ -69,5 +69,3 @@ while ($res = $result->fetchRow()) {
}
}
}
?>
......@@ -61,5 +61,3 @@ foreach($elems as $filename) {
}
}
}
?>
......@@ -45,5 +45,3 @@ while ($r = mysql_fetch_array($results)) {
fclose($img);
echo "Done!\n";
}
?>
......@@ -871,5 +871,3 @@ class FCKXmlDocument
$this->_CurrentNode->Value .= $data ;
}
}
?>
\ No newline at end of file
......@@ -83,4 +83,3 @@ $ggg_traceFiles->outln(__FILE__);
$ggg_tracer = new ggg_trace();
// $ggg_tracer->outln("Tracer initialized in ggg-trace.php...");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -40,4 +40,3 @@ foreach ($pages as $p) {
echo "\n";
}
}
?>
......@@ -39,5 +39,3 @@ foreach($elems as $filename) {
}
}
}
?>
......@@ -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 "insert ignore into users_usergroups set userId='".$res['userId']."', groupName='Registered';\n";
}
?>
......@@ -86,6 +86,3 @@ fclose($fp);
}
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()) {
}
echo $put."\n";
}
?>
\ No newline at end of file
......@@ -40,4 +40,3 @@ while ($r = mysql_fetch_row($results)) {
}
fclose($fmif);
fclose($fmid);
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -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);
}
?>
......@@ -53,5 +53,3 @@ if ($prefs['feature_freetags'] == 'y' and $tiki_p_view_freetags == 'y') {
$smarty->assign('tag_suggestion',$suggestion);
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-list_games.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -16,12 +16,7 @@ if ($prefs['feature_wiki'] != 'y') {
$smarty->display("error.tpl");
die;
}
include_once ('lib/wiki/wikilib.php');
$plugins = $wikilib->list_plugins(true);
$smarty->assign_by_ref('plugins', $plugins);
$smarty->display("tiki-edit_help.tpl");
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -262,4 +262,3 @@ tra('Yemen');
tra('Yugoslavia');
tra('Zambia');
tra('Zimbabwe');
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -186,5 +186,3 @@ class ImportMediaWikiDump
return $tiki_text;
}
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../tiki-index.php");
die;
?>
......@@ -256,5 +256,3 @@ class Installer
return count( $this->patches ) > 0 ;
} // }}}
}
?>
......@@ -15,5 +15,3 @@ function post_20090416_plugin_security_tiki( $installer )
$installer->query( "DELETE FROM tiki_preferences WHERE name = 'plugin_fingerprints'" );
}
}
?>
......@@ -45,5 +45,3 @@ else {
}
}
}
?>
......@@ -66,5 +66,3 @@ if (isset($_FILES['filepath']) && is_uploaded_file($_FILES['filepath']['tmp_name
fclose ($fw);
fclose ($fw2);
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -8364,4 +8364,3 @@ $lang=Array(
"Top pages" => "اعلى الصفحات",
"Last pages" => "اخر الصفحات",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10902,4 +10902,3 @@ $lang=Array(
"Tiki RSS feed for the wiki pages" => "Alimentació RSS del Tiki per a planes wiki",
"Last modifications to the Wiki." => "Darreres modificacions al Wiki.",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10095,4 +10095,3 @@ $lang=Array(
"Top pages" => "热门页面",
"Last pages" => "最近页面",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -8313,4 +8313,3 @@ $lang=Array(
"Tiki RSS feed for the wiki pages" => "Tiki RSS obsah pro wiki stránky",
"Last modifications to the Wiki." => "Poslední změny Wiki.",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -9308,4 +9308,3 @@ $lang=Array(
"Top pages" => "Top sider",
"Last pages" => "Seneste sider",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -9419,4 +9419,3 @@ $lang=Array(
"Tiki RSS feed for the wiki pages" => "Tiki RSS Wiki Feed",
"Last modifications to the Wiki." => "Zuletzt ge&auml;nderte Wikiseiten.",
"###end###"=>"###end###");
?>
......@@ -1683,4 +1683,3 @@ $lang=Array(
// ### end of possibly untranslated words
// ###
"###end###"=>"###end###");
?>
\ No newline at end of file
......@@ -6,5 +6,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -8439,4 +8439,3 @@ $lang=Array(
"Last pages" => "Τελευταίες σελίδες",
"Last modifications to the Wiki." => "Τελευταίες αλλαγές στο wiki",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -8263,4 +8263,3 @@ $lang=Array(
"Colored text" => "Coloured text",
"%m/%d/%Y [%H:%M]" => "%d/%m/%Y [%H:%M]",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -8248,4 +8248,3 @@ $lang=Array(
// "The page is empty" => "The page is empty",
"_HOMEPAGE_CONTENT_" => "{GROUP(groups=Admins)}\n!Thank you for installing Tiki.\n\nThe entire Tiki Community would like to thank you and help you get introduced to Tiki.\n\n!How To Get Started\nTiki has more than 1000 features and settings.\n\nThis allows you to create both very simple and complex websites.\n\nWe understand that so many features might seem overwhelming at first. This is why we offer you two different ways to __Get Started__ with Tiki.\n\n{SPLIT()}\n-=Easy Setup using Profiles=-\n!![tiki-admin.php?profile=&category=Featured+profiles&repository=http%3a%2f%2fprofiles.tikiwiki.org%2fprofiles&preloadlist=y&page=profiles&list=List#profile-results|Get Started using Profiles]\n__Who Should Use This__\n*You want to get started quickly\n*You don't feel like learning the Admin Panel right away\n*You want to quickly test out some of Tiki's Features\n\n!!Featured Profiles\n\n__Collaborative Community__ ([tiki-admin.php?profile=&category=Featured+profiles&repository=http%3a%2f%2fprofiles.tikiwiki.org%2fprofiles&preloadlist=y&page=profiles&list=List#profile-results|install profile now])\nSetup to help subject experts and enthusiasts work together to build a Knowledge Base\n*Wiki Editing\n*Personal Member Spaces\n*Forums\n*Blogs\n\n__Personal Blog and Profile__ ([tiki-admin.php?profile=&category=Featured+profiles&repository=http%3a%2f%2fprofiles.tikiwiki.org%2fprofiles&preloadlist=y&page=profiles&list=List#profile-results|install profile now])\nSetup with many cool features to help you integrate the Social Web and establish a strong presence in the Blogosphere\n*Blog (Full set of blog related features)\n*Image Gallery\n*Calendar\n*RSS Integration\n*Video Log\n\n__Company Intranet__ ([tiki-admin.php?profile=&category=Featured+profiles&repository=http%3a%2f%2fprofiles.tikiwiki.org%2fprofiles&preloadlist=y&page=profiles&list=List#profile-results|install profile now])\nSetup for a Corporate Intranet of a typical medium-sized business.\n*Company News Articles\n*Executive Blog\n*File Repository & Management\n*Collaborative Wiki\n\n__Small Organization Web Presence__ ([tiki-admin.php?profile=&category=Featured+profiles&repository=http%3a%2f%2fprofiles.tikiwiki.org%2fprofiles&preloadlist=y&page=profiles&list=List#profile-results|install profile now])\nSetup for a Web Presence of a typical small business or non-profit.\n*Company News & Updates\n*Highlight Company's Products and Services\n*File Gallery (great for Media Kit)\n*Contact Form\n---\n-=Manual Setup using Admin Panel=-\n!![tiki-admin.php|Get Started using Admin Panel]\n__Who Should Use This__\n*You are familiar with software Admin Panels\n*You enjoy exploring and playing with many options\n*You already know Tiki\n\n\n{SPLIT}\n{ELSE}\n\n!Congratulations\nThis is the default ))HomePage(( for your Tiki. If you are seeing this page, your installation was successful.\n\nYou can change this page after logging in. Please review the [http://doc.tikiwiki.org/wiki+syntax|wiki syntax] for editing details.\n\n\n!!{img src=pics/icons/star.png alt=\"Star\"} Get started.\nTo begin configuring your site:\n{FANCYLIST()}\n1) Log in as the __admin__ with password __admin__.\n2) Change the admin password.\n3) Enable specific Tiki features.\n4) Configure the features.\n{FANCYLIST}\n\n!!{img src=pics/icons/help.png alt=\"Help\"} Need help?\nFor more information:\n*[http://info.tikiwiki.org/Learn+More|Learn more about TikiWiki].\n*[http://info.tikiwiki.org/Help+Others|Get help], including the [http://doc.tikiwiki.org|official documentation] and [http://www.tikiwiki.org/forums|support forums].\n*[http://info.tikiwiki.org/Join+the+community|Join the TikiWiki community].\n{GROUP}",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -9813,4 +9813,3 @@ $lang=Array(
"Tiki RSS feed for the wiki pages" => "Tiki RSS feed para las páginas wiki",
"Last modifications to the Wiki." => "Últimas modificaciones para el Wiki.",
"###end###"=>"###end###");
?>
......@@ -10,5 +10,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -9863,4 +9863,3 @@ $lang=Array(