?> <!-- generator="phpcollab/ phpCollab <?php echo $version; ?> " --> <rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" > <?php $_thisRSS = createRSS(); ?> <channel rdf:about="<?php $root; ?> "> <title><?php echo $setTitle; ?> </title> <link><?php echo $root; ?> </link> <description><?php
} } if ($option == 'loginPageSubmit') { loginPageSubmit(); die; } if ($option == 'logoutPage') { logout(); //die; } //execute hooks only if there are hooks to execute if ($SHP->hooks_exist('hook-head-before')) { $SHP->execute_hooks('hook-head-before'); } if ($option == 'RSS') { createRSS(); exit; } if (trim($optionValue2) == "") { $postTitle = ""; $postTitleSave = ""; } else { $postTitle = str_replace(" ", " ", str_replace("-", " ", $optionValue2)) . " « "; $postTitleSave = str_replace(" ", " ", str_replace("-", " ", $optionValue2)) . " | "; } $theme_header['title'] = $postTitle . $config['blogTitle']; $theme_header['script'] = $blogPath; //$_SERVER["SCRIPT_NAME"]; $theme_header['optionValue'] = $optionValue; $theme_header['blogPath'] = $blogPath; $theme_header['blogTitle'] = $config['blogTitle'];
echo json_encode($functionArray); }); $app->post('/api/createRSS', function () use($dbh) { $args['username'] = $_SESSION['userLogin']; $args['title'] = $_POST['title']; $args['category'] = $_POST['category']; $args['copyright'] = $_POST['copyright']; $args['description'] = $_POST['description']; $args['url'] = $_POST['url']; $args['link'] = "_rss/_profiles/_" . $args['username']; $args['imageURL'] = "_images/_profiles/_" . $args['username'] . "/profile.png"; $args['imageTitle'] = $args['username'] . " RSS picture for " . $args['username']; $args['language'] = "en-us"; $args['creationDate'] = date("Y/m/d"); $args['ttl'] = "340"; echo json_encode(createRSS($dbh, $args), JSON_UNESCAPED_SLASHES); // echo json_encode(print_r($args)); }); $app->post('/api/addRSS', function () use($dbh) { $args['user'] = $_SESSION['userLogin']; $args['title'] = $_POST['title']; $args['category'] = $_POST['category']; $args['description'] = $_POST['description']; $args['pubDate'] = date('Y-m-d'); $args['link'] = "_rss/_profiles/_" . $args['user'] . "/rss_" . $args['user'] . ".xml"; echo json_encode(addRSS($dbh, $args)); }); $app->get('/api/rssExists', function () use($dbh) { echo json_encode(rssExists($dbh), JSON_UNESCAPED_SLASHES); }); $app->post('/api/addSubscription', function () use($dbh) {