A tumblelog CMS built on AJAX, PHP and MySQL.

options.php 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?php
  2. if (!defined('entry')) {
  3. define('entry', true);
  4. }
  5. /* ===========================
  6. gelato CMS - A PHP based tumblelog CMS
  7. development version
  8. http://www.gelatocms.com/
  9. gelato CMS is a free software licensed under the GPL 2.0
  10. Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
  11. =========================== */
  12. ?>
  13. <?php
  14. require_once('../entry.php');
  15. global $user, $conf, $tumble;
  16. if ($user->isAdmin()) {
  17. if (isset($_POST["btnsubmit"])) {
  18. if (!$tumble->saveOption($_POST["rich_text"], "rich_text")) {
  19. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  20. die();
  21. }
  22. if (!$tumble->saveOption($_POST["url_friendly"], "url_friendly")) {
  23. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  24. die();
  25. }
  26. $off_r= split(",", $_POST['time_offsets']);
  27. $_POST['offset_time'] = $off_r[0];
  28. $_POST['offset_city'] = $off_r[1];
  29. unset($_POST['time_offsets']);
  30. if (!$tumble->saveOption($_POST["offset_city"], "offset_city")) {
  31. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  32. die();
  33. }
  34. if (!$tumble->saveOption($_POST["offset_time"], "offset_time")) {
  35. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  36. die();
  37. }
  38. if (!$tumble->saveOption($_POST["allow_comments"], "allow_comments")) {
  39. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  40. die();
  41. }
  42. if (!$tumble->saveOption($_POST["shorten_links"], "shorten_links")) {
  43. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  44. die();
  45. }
  46. if (!$tumble->saveOption($_POST["rss_import_frec"], "rss_import_frec")) {
  47. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  48. die();
  49. }
  50. if (!$tumble->saveOption($_POST["check_version"], "check_version")) {
  51. header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
  52. die();
  53. }
  54. header("Location: ".$conf->urlGelato."/admin/options.php?modified=true");
  55. die();
  56. } else {
  57. ?>
  58. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  59. <html xmlns="http://www.w3.org/1999/xhtml">
  60. <head>
  61. <title>gelato :: <?php echo __("options")?></title>
  62. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  63. <meta name="generator" content="gelato cms <?php echo util::version(); ?>" />
  64. <link rel="shortcut icon" href="<?php echo $conf->urlGelato; ?>/images/favicon.ico" />
  65. <script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato; ?>/admin/scripts/jquery.js"></script>
  66. <script type="text/javascript">
  67. $(document).ready(function(){
  68. $("#divMessages").fadeOut(5000,function(){
  69. $("#divMessages").css({display:"none"});
  70. });
  71. });
  72. </script>
  73. <style type="text/css" media="screen">
  74. @import "<?php echo $conf->urlGelato; ?>/admin/css/style.css";
  75. </style>
  76. </head>
  77. <body>
  78. <div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
  79. <div id="cont">
  80. <div id="head">
  81. <h1><a href="<?php echo $conf->urlGelato; ?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
  82. <ul id="nav">
  83. <li><a href="<?php echo $conf->urlGelato; ?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
  84. </ul>
  85. </div>
  86. <div id="main">
  87. <div class="box">
  88. <ul class="menu manage">
  89. <h3><?php echo __("Tumblelog options")?></h3>
  90. <li><a href="<?php echo $conf->urlGelato; ?>/admin/index.php"><?php echo __("Post")?></a></li>
  91. <li><a href="<?php echo $conf->urlGelato; ?>/admin/admin.php"><?php echo __("Users")?></a></li>
  92. <li><a href="<?php echo $conf->urlGelato; ?>/admin/plugins.php"><?php echo __("Plugins")?></a></li>
  93. <li><a href="<?php echo $conf->urlGelato; ?>/admin/settings.php"><?php echo __("Settings")?></a></li>
  94. <li class="selected"><a><?php echo __("Options")?></a></li>
  95. </ul>
  96. <?php
  97. if (isset($_GET["modified"])) {
  98. if ($_GET["modified"]=="true") {
  99. echo "<div class=\"exito\" id=\"divMessages\">".__("The configuration has been modified successfully.")."</div>";
  100. }
  101. }
  102. if (isset($_GET["error"])) {
  103. if ($_GET["error"]==1) {
  104. echo "<div class=\"error\" id=\"divMessages\"><strong>".__("Error on the database server: ")."</strong>".$_GET["des"]."</div>";
  105. }
  106. } ?>
  107. <div class="tabla">
  108. <form action="options.php" method="post" id="options_form" autocomplete="off" class="newpost">
  109. <fieldset>
  110. <ul>
  111. <li class="select"><label for="rich_text"><?php echo __("Rich text editor:")?></label>
  112. <select name="rich_text" id="rich_text">
  113. <option value="1" <?php if ($conf->richText) {
  114. echo "selected";
  115. } ?>><?php echo __("Active")?></option>
  116. <option value="0" <?php if (!$conf->richText) {
  117. echo "selected";
  118. } ?>><?php echo __("Deactive")?></option>
  119. </select>
  120. </li>
  121. <li class="select"><label for="url_friendly"><?php echo __("URL friendly:")?></label>
  122. <select name="url_friendly" id="url_friendly">
  123. <option value="1" <?php if ($conf->urlFriendly) {
  124. echo "selected";
  125. } ?>><?php echo __("Active")?></option>
  126. <option value="0" <?php if (!$conf->urlFriendly) {
  127. echo "selected";
  128. } ?>><?php echo __("Deactive")?></option>
  129. </select>
  130. </li>
  131. <li class="select"><label for="allow_comments"><?php echo __("Allow readers comments:")?></label>
  132. <select name="allow_comments" id="allow_comments">
  133. <option value="1" <?php if ($conf->allowComments) {
  134. echo "selected";
  135. } ?>><?php echo __("Active")?></option>
  136. <option value="0" <?php if (!$conf->allowComments) {
  137. echo "selected";
  138. } ?>><?php echo __("Deactive")?></option>
  139. </select>
  140. </li>
  141. <li class="select"><label for="time_offsets"><?php echo __("Time Offset:")?></label>
  142. <select id="time_offsets" name="time_offsets">
  143. <option value="-12,Pacific/Kwajalein" <?php echo ($conf->offsetCity=="Pacific/Kwajalein")? "selected=\"selected\"":"" ?>>(GMT -12:00) International Date Line West</option>
  144. <option value="-11,Pacific/Samoa" <?php echo ($conf->offsetCity=="Pacific/Samoa")? "selected=\"selected\"":"" ?>>(GMT -11:00) Midway Island, Samoa</option>
  145. <option value="-10,Pacific/Honolulu" <?php echo ($conf->offsetCity=="Pacific/Honolulu")? "selected=\"selected\"":"" ?>>(GMT -10:00) Hawaii</option>
  146. <option value="-9,US/Alaska" <?php echo ($conf->offsetCity=="US/Alaska")? "selected=\"selected\"":"" ?>>(GMT -9:00) Alaska</option>
  147. <option value="-8,US/Pacific" <?php echo ($conf->offsetCity=="US/Pacific")? "selected=\"selected\"":"" ?>>(GMT -8:00) Pacific Time (US &amp; Canada); Tijuana</option>
  148. <option value="-7,US/Mountain" <?php echo ($conf->offsetCity=="US/Mountain")? "selected=\"selected\"":"" ?>>(GMT -7:00) Mountain Time (US &amp; Canada)</option>
  149. <option value="-7,US/Arizona" <?php echo ($conf->offsetCity=="US/Arizona")? "selected=\"selected\"":"" ?>>(GMT -7:00) Arizona</option>
  150. <option value="-7,Mexico/BajaNorte" <?php echo ($conf->offsetCity=="Mexico/BajaNorte")? "selected=\"selected\"":"" ?>>(GMT -7:00) Chihuahua, La Paz, Mazatlan</option>
  151. <option value="-6,US/Central" <?php echo ($conf->offsetCity=="US/Central")? "selected=\"selected\"":"" ?>>(GMT -6:00) Central Time (US &amp; Canada)</option>
  152. <option value="-6,America/Costa_Rica" <?php echo ($conf->offsetCity=="America/Costa_Rica")? "selected=\"selected\"":"" ?>>(GMT -6:00) Central America</option>
  153. <option value="-6,Mexico/General" <?php echo ($conf->offsetCity=="Mexico/General")? "selected=\"selected\"":"" ?>>(GMT -6:00) Guadalajara, Mexico City, Monterrey</option>
  154. <option value="-6,Canada/Saskatchewan" <?php echo ($conf->offsetCity=="Canada/Saskatchewan")? "selected=\"selected\"":"" ?>>(GMT -6:00) Saskatchewan</option>
  155. <option value="-5,US/Eastern" <?php echo ($conf->offsetCity=="US/Eastern")? "selected=\"selected\"":"" ?>>(GMT -5:00) Eastern Time (US &amp; Canada)</option>
  156. <option value="-5,America/Bogota" <?php echo ($conf->offsetCity=="America/Bogota")? "selected=\"selected\"":"" ?>>(GMT -5:00) Bogota, Lima, Quito</option>
  157. <option value="-5,US/East-Indiana" <?php echo ($conf->offsetCity=="US/East-Indiana")? "selected=\"selected\"":"" ?>>(GMT -5:00) Indiana (East)</option>
  158. <option value="-4,Canada/Eastern" <?php echo ($conf->offsetCity=="Canada/Eastern")? "selected=\"selected\"":"" ?>>(GMT -4:00) Atlantic Time (Canada)</option>
  159. <option value="-4,America/Caracas" <?php echo ($conf->offsetCity=="America/Caracas")? "selected=\"selected\"":"" ?>>(GMT -4:00) Caracas, La Paz</option>
  160. <option value="-4,America/Santiago" <?php echo ($conf->offsetCity=="America/Santiago")? "selected=\"selected\"":"" ?>>(GMT -4:00) Santiago</option>
  161. <option value="-3.50,Canada/Newfoundland" <?php echo ($conf->offsetCity=="Canada/Newfoundland")? "selected=\"selected\"":"" ?>>(GMT -3:30) Newfoundland</option>
  162. <option value="-3,Canada/Atlantic" <?php echo ($conf->offsetCity=="Canada/Atlantic")? "selected=\"selected\"":"" ?>>(GMT -3:00) Brasilia, Greenland</option>
  163. <option value="-3,America/Buenos_Aires" <?php echo ($conf->offsetCity=="America/Buenos_Aires")? "selected=\"selected\"":"" ?>>(GMT -3:00) Buenos Aires, Georgetown</option>
  164. <option value="-2,Atlantic/Central" <?php echo ($conf->offsetCity=="Atlantic/Central")? "selected=\"selected\"":"" ?>>(GMT -2:00) Atlantic Central</option>
  165. <option value="-1,Atlantic/Cape_Verde" <?php echo ($conf->offsetCity=="Atlantic/Cape_Verde")? "selected=\"selected\"":"" ?>>(GMT -1:00) Cape Verde Is.</option>
  166. <option value="-1,Atlantic/Azores" <?php echo ($conf->offsetCity=="Atlantic/Azores")? "selected=\"selected\"":"" ?>>(GMT -1:00) Azores</option>
  167. <option value="0,Africa/Casablanca" <?php echo ($conf->offsetCity=="Africa/Casablanca")? "selected=\"selected\"":"" ?>>(GMT) Casablanca, Monrovia</option>
  168. <option value="0,Europe/Dublin" <?php echo ($conf->offsetCity=="Europe/Dublin")? "selected=\"selected\"":"" ?>>(GMT) Greenwich Mean Time : Dublin, Edinburgh, London</option>
  169. <option value="1,Europe/Amsterdam" <?php echo ($conf->offsetCity=="Europe/Amsterdam")? "selected=\"selected\"":"" ?>>(GMT +1:00) Amsterdam, Berlin, Rome, Stockholm, Vienna</option>
  170. <option value="1,Europe/Prague" <?php echo ($conf->offsetCity=="Europe/Pragu")? "selected=\"selected\"":"" ?>>(GMT +1:00) Belgrade, Bratislava, Budapest, Prague</option>
  171. <option value="1,Europe/Paris" <?php echo ($conf->offsetCity=="Europe/Paris")? "selected=\"selected\"":"" ?>>(GMT +1:00) Brussels, Copenhagen, Madrid, Paris</option>
  172. <option value="1,Europe/Warsaw" <?php echo ($conf->offsetCity=="Europe/Warsaw")? "selected=\"selected\"":"" ?>>(GMT +1:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
  173. <option value="1,Africa/Bangui" <?php echo ($conf->offsetCity=="Africa/Bangui")? "selected=\"selected\"":"" ?>>(GMT +1:00) West Central Africa</option>
  174. <option value="2,Europe/Istanbul" <?php echo ($conf->offsetCity=="Europe/Istanbul")? "selected=\"selected\"":"" ?>>(GMT +2:00) Athens, Beirut, Bucharest, Cairo, Istanbul </option>
  175. <option value="2,Asia/Jerusalem" <?php echo ($conf->offsetCity=="Asia/Jerusalem")? "selected=\"selected\"":"" ?>>(GMT +2:00) Harare, Jerusalem, Pretoria</option>
  176. <option value="2,Europe/Kiev" <?php echo ($conf->offsetCity=="Europe/Kiev")? "selected=\"selected\"":"" ?>>(GMT +2:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius</option>
  177. <option value="3,Asia/Riyadh" <?php echo ($conf->offsetCity=="Asia/Riyadh")? "selected=\"selected\"":"" ?>>(GMT +3:00) Kuwait, Nairobi, Riyadh</option>
  178. <option value="3,Europe/Moscow" <?php echo ($conf->offsetCity=="Europe/Moscow")? "selected=\"selected\"":"" ?>>(GMT +3:00) Baghdad, Moscow, St. Petersburg, Volgograd</option>
  179. <option value="3.50,Asia/Tehran" <?php echo ($conf->offsetCity=="Asia/Tehran")? "selected=\"selected\"":"" ?>>(GMT +3:30) Tehran</option>
  180. <option value="4,Asia/Muscat" <?php echo ($conf->offsetCity=="Asia/Muscat")? "selected=\"selected\"":"" ?>>(GMT +4:00) Abu Dhabi, Muscat</option>
  181. <option value="4,Asia/Baku" <?php echo ($conf->offsetCity=="Asia/Baku")? "selected=\"selected\"":"" ?>>(GMT +4:00) Baku, Tbilsi, Yerevan</option>
  182. <option value="4.50,Asia/Kabul" <?php echo ($conf->offsetCity=="Asia/Kabul")? "selected=\"selected\"":"" ?>>(GMT +4:30) Kabul</option>
  183. <option value="5,Asia/Yekaterinburg" <?php echo ($conf->offsetCity=="Asia/Yekaterinburg")? "selected=\"selected\"":"" ?>>(GMT +5:00) Yekaterinburg</option>
  184. <option value="5,Asia/Karachi" <?php echo ($conf->offsetCity=="Asia/Karachi")? "selected=\"selected\"":"" ?>>(GMT +5:00) Islamabad, Karachi, Tashkent</option>
  185. <option value="5.50,Asia/Calcutta" <?php echo ($conf->offsetCity=="Asia/Calcutta")? "selected=\"selected\"":"" ?>>(GMT +5:30) Chennai, Calcutta, Mumbai, New Delhi</option>
  186. <option value="5.75,Asia/Katmandu" <?php echo ($conf->offsetCity=="Asia/Katmandu")? "selected=\"selected\"":"" ?>>(GMT +5:45) Katmandu</option>
  187. <option value="6,Asia/Almaty" <?php echo ($conf->offsetCity=="Asia/Almaty")? "selected=\"selected\"":"" ?>>(GMT +6:00) Almaty, Novosibirsk</option>
  188. <option value="6,Asia/Dhaka" <?php echo ($conf->offsetCity=="Asia/Dhaka")? "selected=\"selected\"":"" ?>>(GMT +6:00) Astana, Dhaka, Sri Jayawardenepura</option>
  189. <option value="6.50,Asia/Rangoon" <?php echo ($conf->offsetCity=="Asia/Rangoo")? "selected=\"selected\"":"" ?>>(GMT +6:30) Rangoon</option>
  190. <option value="7,Asia/Bangkok" <?php echo ($conf->offsetCity=="Asia/Bangkok")? "selected=\"selected\"":"" ?>>(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
  191. <option value="7,Asia/Krasnoyarsk" <?php echo ($conf->offsetCity=="Asia/Krasnoyarsk")? "selected=\"selected\"":"" ?>>(GMT +7:00) Krasnoyarsk</option>
  192. <option value="8,Asia/Hong_Kong" <?php echo ($conf->offsetCity=="Asia/Hong_Kong")? "selected=\"selected\"":"" ?>>(GMT +8:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
  193. <option value="8,Asia/Irkutsk" <?php echo ($conf->offsetCity=="Asia/Irkutsk")? "selected=\"selected\"":"" ?>>(GMT +8:00) Irkutsk, Ulaan Bataar</option>
  194. <option value="8,Asia/Singapore" <?php echo ($conf->offsetCity=="Asia/Singapore")? "selected=\"selected\"":"" ?>>(GMT +8:00) Kuala Lumpar, Perth, Singapore, Taipei</option>
  195. <option value="9,Asia/Tokyo" <?php echo ($conf->offsetCity=="Asia/Tokyo")? "selected=\"selected\"":"" ?>>(GMT +9:00) Osaka, Sapporo, Tokyo</option>
  196. <option value="9,Asia/Seoul" <?php echo ($conf->offsetCity=="Asia/Seoul")? "selected=\"selected\"":"" ?>>(GMT +9:00) Seoul</option>
  197. <option value="9,Asia/Yakutsk" <?php echo ($conf->offsetCity=="Asia/Yakutsk")? "selected=\"selected\"":"" ?>>(GMT +9:00) Yakutsk</option>
  198. <option value="9.50,Australia/Adelaide" <?php echo ($conf->offsetCity=="Australia/Adelaide")? "selected=\"selected\"":"" ?>>(GMT +9:30) Adelaide</option>
  199. <option value="9.50,Australia/Darwin" <?php echo ($conf->offsetCity=="Australia/Darwin")? "selected=\"selected\"":"" ?>>(GMT +9:30) Darwin</option>
  200. <option value="10,Australia/Brisbane" <?php echo ($conf->offsetCity=="Australia/Brisbane")? "selected=\"selected\"":"" ?>>(GMT +10:00) Brisbane, Guam, Port Moresby</option>
  201. <option value="10,Australia/Canberra" <?php echo ($conf->offsetCity=="Australia/Canberra")? "selected=\"selected\"":"" ?>>(GMT +10:00) Canberra,Melbourne, Sydney, Vladivostok</option>
  202. <option value="11,Asia/Magadan" <?php echo ($conf->offsetCity=="Asia/Magadan")? "selected=\"selected\"":"" ?>>(GMT +11:00) Magadan, Soloman Is., New Caledonia</option>
  203. <option value="12,Pacific/Auckland" <?php echo ($conf->offsetCity=="Pacific/Auckland")? "selected=\"selected\"":"" ?>>(GMT +12:00) Auckland, Wellington</option>
  204. <option value="12,Pacific/Fiji" <?php echo ($conf->offsetCity=="Pacific/Fiji")? "selected=\"selected\"":"" ?>>(GMT +12:00) Fiji, Kamchatka, Marshall Is.</option>
  205. </select>
  206. </li>
  207. <li class="select"><label for="shorten_links"><?php echo __("Shorten long URLs:")?></label>
  208. <select name="shorten_links" id="shorten_links">
  209. <option value="1" <?php if ($conf->shorten_links) {
  210. echo "selected=\"selected\"";
  211. } ?>><?php echo __("Active")?></option>
  212. <option value="0" <?php if (!$conf->shorten_links) {
  213. echo "selected=\"selected\"";
  214. } ?>><?php echo __("Deactive")?></option>
  215. </select>
  216. </li>
  217. <li class="select"><label for="rss_import_frec"><?php echo __("Import feeds every:")?></label>
  218. <select name="rss_import_frec" id="rss_import_frec">
  219. <option value="5 minutes" <?php if ($conf->rssImportFrec == '5 minutes') {
  220. echo "selected=\"selected\"";
  221. } ?>>5 <?php echo __("minutes"); ?></option>
  222. <option value="10 minutes" <?php if ($conf->rssImportFrec == '10 minutes') {
  223. echo "selected=\"selected\"";
  224. } ?>>10 <?php echo __("minutes"); ?></option>
  225. <option value="15 minutes" <?php if ($conf->rssImportFrec == '15 minutes') {
  226. echo "selected=\"selected\"";
  227. } ?>>15 <?php echo __("minutes"); ?></option>
  228. <option value="30 minutes" <?php if ($conf->rssImportFrec == '30 minutes') {
  229. echo "selected=\"selected\"";
  230. } ?>>30 <?php echo __("minutes"); ?></option>
  231. <option value="45 minutes" <?php if ($conf->rssImportFrec == '45 minutes') {
  232. echo "selected=\"selected\"";
  233. } ?>>45 <?php echo __("minutes"); ?></option>
  234. <option value="1 hour" <?php if ($conf->rssImportFrec == '1 hour') {
  235. echo "selected=\"selected\"";
  236. } ?>>1 <?php echo __("hour"); ?></option>
  237. <option value="2 hours" <?php if ($conf->rssImportFrec == '2 hours') {
  238. echo "selected=\"selected\"";
  239. } ?>>2 <?php echo __("hours"); ?></option>
  240. <option value="3 hours" <?php if ($conf->rssImportFrec == '3 hours') {
  241. echo "selected=\"selected\"";
  242. } ?>>3 <?php echo __("hours"); ?></option>
  243. <option value="4 hours" <?php if ($conf->rssImportFrec == '4 hours') {
  244. echo "selected=\"selected\"";
  245. } ?>>4 <?php echo __("hours"); ?></option>
  246. <option value="6 hours" <?php if ($conf->rssImportFrec == '6 hours') {
  247. echo "selected=\"selected\"";
  248. } ?>>6 <?php echo __("hours"); ?></option>
  249. <option value="12 hours" <?php if ($conf->rssImportFrec == '12 hours') {
  250. echo "selected=\"selected\"";
  251. } ?>>12 <?php echo __("hours"); ?></option>
  252. <option value="1 day" <?php if ($conf->rssImportFrec == '1 day') {
  253. echo "selected=\"selected\"";
  254. } ?>>24 <?php echo __("hours"); ?></option>
  255. </select>
  256. </li>
  257. <li class="select"><label for="check_version"><?php echo __("Check for updates:")?></label>
  258. <select name="check_version" id="check_version">
  259. <option value="1" <?php if ($conf->check_version) {
  260. echo "selected=\"selected\"";
  261. } ?>><?php echo __("Active")?></option>
  262. <option value="0" <?php if (!$conf->check_version) {
  263. echo "selected=\"selected\"";
  264. } ?>><?php echo __("Deactive")?></option>
  265. </select>
  266. </li>
  267. <?php
  268. $trigger->call('add_options_panel'); ?>
  269. </ul>
  270. </fieldset>
  271. <p>
  272. <input type="submit" name="btnsubmit" id="btnsubmit" value="<?php echo __("Modify")?>" class="submit"/>
  273. </p>
  274. </form>
  275. </div>
  276. <div class="footer-box">&nbsp;</div>
  277. </div>
  278. </div>
  279. <div id="foot">
  280. <a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
  281. </div>
  282. </div>
  283. </body>
  284. </html>
  285. <?php
  286. }
  287. } else {
  288. header("Location: ".$conf->urlGelato."/login.php");
  289. }
  290. ?>