Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

612 lines
20 KiB

  1. <?php
  2. /**
  3. * Friendika admin
  4. */
  5. function admin_init(&$a) {
  6. if(!is_site_admin()) {
  7. notice( t('Permission denied.') . EOL);
  8. return;
  9. }
  10. }
  11. function admin_post(&$a){
  12. if(!is_site_admin()) {
  13. return login(false);
  14. }
  15. // urls
  16. if ($a->argc > 1){
  17. switch ($a->argv[1]){
  18. case 'site':
  19. admin_page_site_post($a);
  20. break;
  21. case 'users':
  22. admin_page_users_post($a);
  23. break;
  24. case 'logs':
  25. admin_page_logs_post($a);
  26. break;
  27. }
  28. }
  29. goaway($a->get_baseurl() . '/admin' );
  30. return; // NOTREACHED
  31. }
  32. function admin_content(&$a) {
  33. if(!is_site_admin()) {
  34. return login(false);
  35. }
  36. /**
  37. * Side bar links
  38. */
  39. // array( url, name, extra css classes )
  40. $aside = Array(
  41. 'site' => Array($a->get_baseurl()."/admin/site/", t("Site") , "site"),
  42. 'users' => Array($a->get_baseurl()."/admin/users/", t("Users") , "users"),
  43. 'plugins'=> Array($a->get_baseurl()."/admin/plugins/", t("Plugins") , "plugins")
  44. );
  45. /* get plugins admin page */
  46. $r = q("SELECT * FROM `hook` WHERE `hook`='plugin_admin'");
  47. $aside['plugins_admin']=Array();
  48. foreach ($r as $h){
  49. $plugin = explode("/",$h['file']); $plugin = $plugin[1];
  50. $aside['plugins_admin'][] = Array($a->get_baseurl()."/admin/plugins/".$plugin, $plugin, "plugin");
  51. }
  52. $aside['logs'] = Array($a->get_baseurl()."/admin/logs/", t("Logs"), "logs");
  53. $t = get_markup_template("admin_aside.tpl");
  54. $a->page['aside'] = replace_macros( $t, array(
  55. '$admin' => $aside,
  56. '$h_pending' => t('User registrations waiting for confirm'),
  57. '$admurl'=> $a->get_baseurl()."/admin/"
  58. ));
  59. /**
  60. * Page content
  61. */
  62. $o = '';
  63. // urls
  64. if ($a->argc > 1){
  65. switch ($a->argv[1]){
  66. case 'site':
  67. $o = admin_page_site($a);
  68. break;
  69. case 'users':
  70. $o = admin_page_users($a);
  71. break;
  72. case 'plugins':
  73. $o = admin_page_plugins($a);
  74. break;
  75. case 'logs':
  76. $o = admin_page_logs($a);
  77. break;
  78. default:
  79. notice( t("Item not found.") );
  80. }
  81. } else {
  82. $o = admin_page_summary($a);
  83. }
  84. return $o;
  85. }
  86. /**
  87. * Admin Summary Page
  88. */
  89. function admin_page_summary(&$a) {
  90. $r = q("SELECT `page-flags`, COUNT(uid) as `count` FROM `user` GROUP BY `page-flags`");
  91. $accounts = Array(
  92. Array( t('Normal Account'), 0),
  93. Array( t('Soapbox Account'), 0),
  94. Array( t('Community/Celebrity Account'), 0),
  95. Array( t('Automatic Friend Account'), 0)
  96. );
  97. $users=0;
  98. foreach ($r as $u){ $accounts[$u['page-flags']][1] = $u['count']; $users+=$u['count']; }
  99. $r = q("SELECT COUNT(id) as `count` FROM `register`");
  100. $pending = $r[0]['count'];
  101. $t = get_markup_template("admin_summary.tpl");
  102. return replace_macros($t, array(
  103. '$title' => t('Administration'),
  104. '$page' => t('Summary'),
  105. '$users' => Array( t('Registered users'), $users),
  106. '$accounts' => $accounts,
  107. '$pending' => Array( t('Pending registrations'), $pending),
  108. '$version' => Array( t('Version'), FRIENDIKA_VERSION),
  109. '$build' => get_config('system','build'),
  110. '$plugins' => Array( t('Active plugins'), $a->plugins )
  111. ));
  112. }
  113. /**
  114. * Admin Site Page
  115. */
  116. function admin_page_site_post(&$a){
  117. if (!x($_POST,"page_site")){
  118. return;
  119. }
  120. $sitename = ((x($_POST,'sitename')) ? notags(trim($_POST['sitename'])) : '');
  121. $banner = ((x($_POST,'banner')) ? trim($_POST['banner']) : false);
  122. $language = ((x($_POST,'language')) ? notags(trim($_POST['language'])) : '');
  123. $theme = ((x($_POST,'theme')) ? notags(trim($_POST['theme'])) : '');
  124. $maximagesize = ((x($_POST,'maximagesize')) ? intval(trim($_POST['maximagesize'])) : 0);
  125. $register_policy = ((x($_POST,'register_policy')) ? intval(trim($_POST['register_policy'])) : 0);
  126. $register_text = ((x($_POST,'register_text')) ? notags(trim($_POST['register_text'])) : '');
  127. $allowed_sites = ((x($_POST,'allowed_sites')) ? notags(trim($_POST['allowed_sites'])) : '');
  128. $allowed_email = ((x($_POST,'allowed_email')) ? notags(trim($_POST['allowed_email'])) : '');
  129. $block_public = ((x($_POST,'block_public')) ? True : False);
  130. $force_publish = ((x($_POST,'publish_all')) ? True : False);
  131. $global_directory = ((x($_POST,'directory_submit_url')) ? notags(trim($_POST['directory_submit_url'])) : '');
  132. $global_search_url = ((x($_POST,'directory_search_url'))? notags(trim($_POST['directory_search_url'])) : '');
  133. $no_multi_reg = ((x($_POST,'no_multi_reg')) ? True : False);
  134. $no_openid = ((x($_POST,'no_openid')) ? True : False);
  135. $no_gravatar = ((x($_POST,'no_gravatar')) ? True : False);
  136. $no_regfullname = ((x($_POST,'no_regfullname')) ? True : False);
  137. $no_utf = ((x($_POST,'no_utf')) ? True : False);
  138. $rino_enc = ((x($_POST,'rino_enc')) ? True : False);
  139. $verifyssl = ((x($_POST,'verifyssl')) ? True : False);
  140. $proxyuser = ((x($_POST,'proxyuser')) ? notags(trim($_POST['global_search_url'])) : '');
  141. $proxy = ((x($_POST,'proxy')) ? notags(trim($_POST['global_search_url'])) : '');
  142. $timeout = ((x($_POST,'timeout')) ? intval(trim($_POST['timeout'])) : 60);
  143. set_config('config','sitename',$sitename);
  144. if ($banner==""){
  145. // don't know why, but del_config doesn't work...
  146. q("DELETE FROM `config` WHERE `cat` = '%s' AND `k` = '%s' LIMIT 1",
  147. dbesc("system"),
  148. dbesc("banner")
  149. );
  150. } else {
  151. set_config('system','banner', $banner);
  152. }
  153. set_config('system','language', $language);
  154. set_config('system','theme', $theme);
  155. set_config('system','maximagesize', $maximagesize);
  156. set_config('config','register_policy', $register_policy);
  157. set_config('config','register_text', $register_text);
  158. set_config('system','allowed_sites', $allowed_sites);
  159. set_config('system','allowed_email', $allowed_email);
  160. set_config('system','block_public', $block_public);
  161. set_config('system','publish_all', $force_publish);
  162. if ($global_directory==""){
  163. // don't know why, but del_config doesn't work...
  164. q("DELETE FROM `config` WHERE `cat` = '%s' AND `k` = '%s' LIMIT 1",
  165. dbesc("system"),
  166. dbesc("directory_submit_url")
  167. );
  168. } else {
  169. set_config('system','directory_submit_url', $global_directory);
  170. }
  171. set_config('system','directory_search_url', $global_search_url);
  172. set_config('system','block_extended_register', $no_multi_reg);
  173. set_config('system','no_openid', $no_openid);
  174. set_config('system','no_gravatar', $no_gravatar);
  175. set_config('system','no_regfullname', $no_regfullname);
  176. set_config('system','proxy', $no_utf);
  177. set_config('system','rino_encrypt', $rino_enc);
  178. set_config('system','verifyssl', $verifyssl);
  179. set_config('system','proxyuser', $proxyuser);
  180. set_config('system','proxy', $proxy);
  181. set_config('system','curl_timeout', $timeout);
  182. goaway($a->get_baseurl() . '/admin/site' );
  183. return; // NOTREACHED
  184. }
  185. function admin_page_site(&$a) {
  186. /* Installed langs */
  187. $lang_choices = array();
  188. $langs = glob('view/*/strings.php');
  189. if(is_array($langs) && count($langs)) {
  190. if(! in_array('view/en/strings.php',$langs))
  191. $langs[] = 'view/en/';
  192. asort($langs);
  193. foreach($langs as $l) {
  194. $t = explode("/",$l);
  195. $lang_choices[$t[1]] = $t[1];
  196. }
  197. }
  198. /* Installed themes */
  199. $theme_choices = array();
  200. $files = glob('view/theme/*');
  201. if($files) {
  202. foreach($files as $file) {
  203. $f = basename($file);
  204. $theme_name = ((file_exists($file . '/experimental')) ? sprintf("%s - \x28Experimental\x29", $f) : $f);
  205. $theme_choices[$f] = $theme_name;
  206. }
  207. }
  208. /* Banner */
  209. $banner = get_config('system','banner');
  210. if($banner == false)
  211. $banner = htmlspecialchars('<a href="http://project.friendika.com"><img id="logo-img" src="images/friendika-32.png" alt="logo" /></a><span id="logo-text"><a href="http://project.friendika.com">Friendika</a></span>');
  212. //echo "<pre>"; var_dump($lang_choices); die("</pre>");
  213. /* Register policy */
  214. $register_choices = Array(
  215. REGISTER_CLOSED => t("Closed"),
  216. REGISTER_APPROVE => t("Need approvation"),
  217. REGISTER_OPEN => t("Open")
  218. );
  219. $t = get_markup_template("admin_site.tpl");
  220. return replace_macros($t, array(
  221. '$title' => t('Administration'),
  222. '$page' => t('Site'),
  223. '$submit' => t('Submit'),
  224. '$baseurl' => $a->get_baseurl(),
  225. // name, label, value, help string, extra data...
  226. '$sitename' => array('sitename', t("Site name"), $a->config['sitename'], ""),
  227. '$banner' => array('banner', t("Banner/Logo"), $banner, ""),
  228. '$language' => array('language', t("System language"), get_config('system','language'), "", $lang_choices),
  229. '$theme' => array('theme', t("System theme"), get_config('system','theme'), "Default system theme (which may be over-ridden by user profiles)", $theme_choices),
  230. '$maximagesize' => array('maximagesize', t("Maximum image size"), get_config('system','maximagesize'), "Maximum size in bytes of uploaded images. Default is 0, which means no limits."),
  231. '$register_policy' => array('register_policy', t("Register policy"), $a->config['register_policy'], "", $register_choices),
  232. '$register_text' => array('register_text', t("Register text"), $a->config['register_text'], "Will be displayed prominently on the registration page."),
  233. '$allowed_sites' => array('allowed_sites', t("Allowed friend domains"), get_config('system','allowed_sites'), "Comma separated list of domains which are allowed to establish friendships with this site. Wildcards are accepted. Empty to allow any domains"),
  234. '$allowed_email' => array('allowed_email', t("Allowed email domains"), get_config('system','allowed_email'), "Comma separated list of domains which are allowed in email addresses for registrations to this site. Wildcards are accepted. Empty to allow any domains"),
  235. '$block_public' => array('block_public', t("Block public"), get_config('system','block_public'), "Check to block public access to all otherwise public personal pages on this site unless you are currently logged in."),
  236. '$force_publish' => array('publish_all', t("Force publish"), get_config('system','publish_all'), "Check to force all profiles on this site to be listed in the site directory."),
  237. '$global_directory' => array('directory_submit_url', t("Global directory update URL"), get_config('system','directory_submit_url'), "URL to update the global directory. If this is not set, the global directory is completely unavailable to the application."),
  238. '$global_search_url'=> array('directory_search_url', t("Global directory search URL"), get_config('system','directory_search_url'), ""),
  239. '$no_multi_reg' => array('no_multi_reg', t("Block multiple registrations"), get_config('system','block_extended_register'), "Disallow users to register additional accounts for use as pages."),
  240. '$no_openid' => array('no_openid', t("No OpenID support"), get_config('system','no_openid'), "Disable OpenID support for registration and logins."),
  241. '$no_gravatar' => array('no_gravatar', t("No Gravatar support"), get_config('system','no_gravatar'), ""),
  242. '$no_regfullname' => array('no_regfullname', t("No fullname check"), get_config('system','no_regfullname'), "If unchecked, force users to registrate with a space between his firsname and lastname in Full name, as an antispam measure"),
  243. '$no_utf' => array('no_utf', t("No UTF-8 Regular expressions"), get_config('system','proxy'), "Default is false (meaning UTF8 regular expressions are supported and working)"),
  244. '$rino_enc' => array('rino_enc', t("Enable Rino encrypt"), get_config('system','rino_encrypt'),""),
  245. '$verifyssl' => array('verifyssl', t("Verify SSL"), get_config('system','verifyssl'), "If you wish, you can turn on strict certificate checking. This will mean you cannot connect (at all) to self-signed SSL sites."),
  246. '$proxyuser' => array('proxyuser', t("Proxy user"), get_config('system','proxyuser'), ""),
  247. '$proxy' => array('proxy', t("Proxy URL"), get_config('system','proxy'), ""),
  248. '$timeout' => array('timeout', t("Network timeout"), (x(get_config('system','curl_timeout'))?get_config('system','curl_timeout'):60), "Value is in seconds. Set to 0 for unlimited (not recommended)."),
  249. ));
  250. }
  251. /**
  252. * Users admin page
  253. */
  254. function admin_page_users_post(&$a){
  255. $users=array(); $pending=array();
  256. foreach($_POST as $k=>$v){
  257. if (substr($k,0,5)=="user_") $users[] = substr($k,5,strlen($k)-5);
  258. if (substr($k,0,8)=="pending_") $users[] = substr($k,8,strlen($k)-8);
  259. }
  260. if (x($_POST,'page_users_block')){
  261. foreach($users as $uid){
  262. q("UPDATE `user` SET `blocked`=1-`blocked` WHERE `uid`=%s",
  263. intval( $uid )
  264. );
  265. }
  266. notice( sprintf( tt("%s user blocked", "%s users blocked", count($users)), count($users)) );
  267. }
  268. if (x($_POST,'page_users_delete')){
  269. require_once("include/Contact.php");
  270. foreach($users as $uid){
  271. user_remove($uid);
  272. }
  273. notice( sprintf( tt("%s user deleted", "%s users deleted", count($users)), count($users)) );
  274. }
  275. if (x($_POST,'page_users_approve')){
  276. require_once("include/regmod.php");
  277. foreach($pending as $hash){
  278. user_allow($hash);
  279. }
  280. }
  281. if (x($_POST,'page_users_deny')){
  282. require_once("include/regmod.php");
  283. foreach($pending as $hash){
  284. user_deny($hash);
  285. }
  286. }
  287. goaway($a->get_baseurl() . '/admin/users' );
  288. return; // NOTREACHED
  289. }
  290. function admin_page_users(&$a){
  291. if ($a->argc>2) {
  292. $uid = $a->argv[3];
  293. $user = q("SELECT * FROM `user` WHERE `uid`=%d", intval($uid));
  294. if (count($user)==0){
  295. notice( 'User not found' . EOL);
  296. goaway($a->get_baseurl() . '/admin/users' );
  297. return; // NOTREACHED
  298. }
  299. switch($a->argv[2]){
  300. case "delete":{
  301. // delete user
  302. require_once("include/Contact.php");
  303. user_remove($uid);
  304. notice( sprintf(t("User '%s' deleted"), $user[0]['username']) . EOL);
  305. }; break;
  306. case "block":{
  307. q("UPDATE `user` SET `blocked`=%d WHERE `uid`=%s",
  308. intval( 1-$user[0]['blocked'] ),
  309. intval( $uid )
  310. );
  311. }; break;
  312. }
  313. goaway($a->get_baseurl() . '/admin/users' );
  314. return; // NOTREACHED
  315. }
  316. /* get pending */
  317. $pending = q("SELECT `register`.*, `contact`.`name`, `user`.`email`
  318. FROM `register`
  319. LEFT JOIN `contact` ON `register`.`uid` = `contact`.`uid`
  320. LEFT JOIN `user` ON `register`.`uid` = `user`.`uid`;");
  321. /* get users */
  322. $users = q("SELECT `user` . * , `contact`.`name` , `contact`.`url` , `contact`.`micro` , `lastitem`.`changed` AS `lastitem_date`
  323. FROM (
  324. SELECT `item`.`changed` , `item`.`uid`
  325. FROM `item`
  326. GROUP BY `uid`
  327. ORDER BY `item`.`changed`
  328. ) AS `lastitem` , `user`
  329. LEFT JOIN `contact` ON `user`.`uid` = `contact`.`uid`
  330. WHERE `user`.`verified` =1
  331. AND `contact`.`self` =1
  332. AND `lastitem`.`uid` = `user`.`uid`
  333. ORDER BY `contact`.`name`
  334. ");
  335. function _setup_users($e){
  336. $accounts = Array(
  337. t('Normal Account'),
  338. t('Soapbox Account'),
  339. t('Community/Celebrity Account'),
  340. t('Automatic Friend Account')
  341. );
  342. $e['page-flags'] = $accounts[$e['page-flags']];
  343. $e['register_date'] = relative_date($e['register_date']);
  344. $e['login_date'] = relative_date($e['login_date']);
  345. $e['lastitem_date'] = relative_date($e['lastitem_date']);
  346. return $e;
  347. }
  348. $users = array_map("_setup_users", $users);
  349. $t = get_markup_template("admin_users.tpl");
  350. return replace_macros($t, array(
  351. // strings //
  352. '$title' => t('Administration'),
  353. '$page' => t('Users'),
  354. '$submit' => t('Submit'),
  355. '$select_all' => t('select all'),
  356. '$h_pending' => t('User registrations waiting for confirm'),
  357. '$th_pending' => array( t('Request date'), t('Name'), t('Email') ),
  358. '$no_pending' => t('No registrations.'),
  359. '$approve' => t('Approve'),
  360. '$deny' => t('Deny'),
  361. '$delete' => t('Delete'),
  362. '$block' => t('Block'),
  363. '$unblock' => t('Unblock'),
  364. '$h_users' => t('Users'),
  365. '$th_users' => array( t('Name'), t('Email'), t('Register date'), t('Last login'), t('Last item'), t('Account') ),
  366. '$confirm_delete_multi' => t('Selected users will be deleted!\n\nEverything these users had posted on this site will be permanently deleted!\n\nAre you sure?'),
  367. '$confirm_delete' => t('The user {0} will be deleted!\n\nEverything this user has posted on this site will be permanently deleted!\n\nAre you sure?'),
  368. // values //
  369. '$baseurl' => $a->get_baseurl(),
  370. '$pending' => $pending,
  371. '$users' => $users,
  372. ));
  373. }
  374. /*
  375. * Plugins admin page
  376. */
  377. function admin_page_plugins(&$a){
  378. /**
  379. * Single plugin
  380. */
  381. if ($a->argc == 3){
  382. $plugin = $a->argv[2];
  383. if (!is_file("addon/$plugin/$plugin.php")){
  384. notice( t("Item not found.") );
  385. return;
  386. }
  387. if (x($_GET,"a") && $_GET['a']=="t"){
  388. // Toggle plugin status
  389. $idx = array_search($plugin, $a->plugins);
  390. if ($idx){
  391. unset($a->plugins[$idx]);
  392. uninstall_plugin($plugin);
  393. } else {
  394. $a->plugins[] = $plugin;
  395. install_plugin($plugin);
  396. }
  397. set_config("system","addon", implode(", ",$a->plugins));
  398. goaway($a->get_baseurl() . '/admin/plugins' );
  399. return; // NOTREACHED
  400. }
  401. // display plugin details
  402. require_once('library/markdown.php');
  403. if (in_array($plugin, $a->plugins)){
  404. $status="on"; $action= t("Disable");
  405. } else {
  406. $status="off"; $action= t("Enable");
  407. }
  408. $readme=Null;
  409. if (is_file("addon/$plugin/README.md")){
  410. $readme = file_get_contents("addon/$plugin/README.md");
  411. $readme = Markdown($readme);
  412. } else if (is_file("addon/$plugin/README")){
  413. $readme = "<pre>". file_get_contents("addon/$plugin/README") ."</pre>";
  414. }
  415. $t = get_markup_template("admin_plugins_details.tpl");
  416. return replace_macros($t, array(
  417. '$title' => t('Administration'),
  418. '$page' => t('Plugins'),
  419. '$toggle' => t('Toggle'),
  420. '$baseurl' => $a->get_baseurl(),
  421. '$plugin' => $plugin,
  422. '$status' => $status,
  423. '$action' => $action,
  424. '$info' => get_plugin_info($plugin),
  425. '$readme' => $readme
  426. ));
  427. }
  428. /**
  429. * List plugins
  430. */
  431. $plugins = array();
  432. $files = glob("addon/*/");
  433. if($files) {
  434. foreach($files as $file) {
  435. if (is_dir($file)){
  436. list($tmp, $id)=array_map("trim", explode("/",$file));
  437. $info = get_plugin_info($id);
  438. $plugins[] = array( $id, (in_array($id, $a->plugins)?"on":"off") , $info);
  439. }
  440. }
  441. }
  442. $t = get_markup_template("admin_plugins.tpl");
  443. return replace_macros($t, array(
  444. '$title' => t('Administration'),
  445. '$page' => t('Plugins'),
  446. '$submit' => t('Submit'),
  447. '$baseurl' => $a->get_baseurl(),
  448. '$plugins' => $plugins
  449. ));
  450. }
  451. /**
  452. * Logs admin page
  453. */
  454. function admin_page_logs_post(&$a) {
  455. if (x($_POST,"page_logs")) {
  456. $logfile = ((x($_POST,'logfile')) ? notags(trim($_POST['logfile'])) : '');
  457. $debugging = ((x($_POST,'debugging')) ? true : false);
  458. $loglevel = ((x($_POST,'loglevel')) ? intval(trim($_POST['loglevel'])) : 0);
  459. set_config('system','logfile', $logfile);
  460. set_config('system','debugging', $debugging);
  461. set_config('system','loglevel', $loglevel);
  462. }
  463. goaway($a->get_baseurl() . '/admin/logs' );
  464. return; // NOTREACHED
  465. }
  466. function admin_page_logs(&$a){
  467. $log_choices = Array(
  468. LOGGER_NORMAL => 'Normal',
  469. LOGGER_TRACE => 'Trace',
  470. LOGGER_DEBUG => 'Debug',
  471. LOGGER_DATA => 'Data',
  472. LOGGER_ALL => 'All'
  473. );
  474. $t = get_markup_template("admin_logs.tpl");
  475. $f = get_config('system','logfile');
  476. $size = filesize($f);
  477. if($size > 5000000)
  478. $size = 5000000;
  479. $data = '';
  480. $fp = fopen($f,'r');
  481. if($fp) {
  482. $seek = fseek($fp,0-$size,SEEK_END);
  483. if($seek === 0) {
  484. fgets($fp); // throw away the first partial line
  485. $data = str_replace(array("\n","\t"),array('<br />','&nbsp;&nbsp;&nbsp;&nbsp;'),escape_tags(fread($fp,$size)));
  486. while(! feof($fp))
  487. $data .= str_replace(array("\n","\t"),array('<br />','&nbsp;&nbsp;&nbsp;&nbsp;'),escape_tags(fread($fp,4096)));
  488. }
  489. fclose($fp);
  490. }
  491. return replace_macros($t, array(
  492. '$title' => t('Administration'),
  493. '$page' => t('Logs'),
  494. '$submit' => t('Submit'),
  495. '$clear' => t('Clear'),
  496. '$data' => $data,
  497. '$baseurl' => $a->get_baseurl(),
  498. '$logname' => get_config('system','logfile'),
  499. // name, label, value, help string, extra data...
  500. '$debugging' => array('debugging', t("Debugging"),get_config('system','debugging'), ""),
  501. '$logfile' => array('logfile', t("Log file"), get_config('system','logfile'), "Must be writable by web server. Relative to your Friendika index.php."),
  502. '$loglevel' => array('loglevel', t("Log level"), get_config('system','loglevel'), "", $log_choices),
  503. ));
  504. }