/** * API method * Returns the list of tags as you can see them in administration * @param mixed[] $params * * Only admin can run this method and permissions are not taken into * account. */ function ws_tags_getAdminList($params, &$service) { return array('tags' => new PwgNamedArray(get_all_tags(), 'tag', ws_std_get_tag_xml_attributes())); }
</div> </div> <div class="form-group"> <label for="selector1" class="col-sm-3 control-label">Tags</label> <div class="col-sm-6"> <select required="" name="destination[]" multiple="" id="tags" style="width:100%" class="populate tags"> <optgroup label="Current actions"> <?php foreach (get_all_tags() as $tag) { ?> <option value="<?= $tag['id'] ?>"><?= ucwords($tag['title']) ?></option> <?php } ?> </optgroup> </select> </div> </div> <div class="row"> <div class="form-group">
<?php $template = \shgysk8zer0\Core\Template::load('recent_posts'); ?> <aside class="sidebar" rel="sidebar"> <div class="recent posts"> <h3 class="sticky">Recent Posts</h3> <?php echo array_reduce(get_recent_posts(15), function ($html = '', \stdClass $post) use($template, $URL) { return $html .= $template->title($post->title)->description($post->description)->link("{$URL}posts/{$post->url}"); }); ?> </div> <div class="recent tags"> <h3 class="sticky">Tags</h3> <?php echo array_reduce(get_all_tags(), 'recent_tags_list', $doc->appendChild($doc->createElement('ul'))); ?> </div> </aside> <?php ob_flush(); flush();
echo json_encode($response); } elseif ('users' == $_GET['uri']) { send_headers(); $users = get_all_users(); $response = array("version" => $version, "response" => $users); echo json_encode($response); } elseif ('tags' == $_GET['uri'] && isset($_GET['id'])) { send_headers(); $tag = get_tag_by_uid($_GET['id']); $tag['type'] = get_tag_type($tag['type']); unset($tag['keya']); $response = array("version" => $version, "response" => $tag); echo json_encode($response); } elseif ('tags' == $_GET['uri']) { send_headers(); $tags = get_all_tags(); $response = array("version" => $version, "response" => $tags); echo json_encode($response); } elseif ('readers' == $_GET['uri'] && isset($_GET['id'])) { send_headers(); $reader = get_reader_by_id($_GET['id']); $reader['services'] = get_reader_services_by_id($reader['id']); $services = []; foreach (get_reader_services_by_id($reader['id']) as $service_id) { $services[] = get_reader_service($service_id); } $reader['services'] = $services; $response = array("version" => $version, "response" => $reader); echo json_encode($response); } elseif ('readers' == $_GET['uri']) { send_headers();
echo $url_colaborador; ?> &orden=comentarios#anchor">Comentarios</a></li><?php } ?> </ul> </div> </div> </div> </div> <div class="tags-rollover clearfix"> <span class="title">Etiquetas relacionadas</span> <ul class="tags"> <?php echo get_all_tags(get_bloginfo("url"), "", $tag, $tipo); ?> </ul> </div> </div> <!-- main-content--> <div class="main-content clearfix"> <div class="content full-width"> <div class="inner" style="padding-top:0"> <?php if ($_GET["tema"]) { ?> <!-- etiquetas relacionadas-->
function list_tags_action($uid) { // needed to set the tab active $tags_active = true; //check if the user is admin if (user_is_admin($uid)) { // dealing with tag add form if (isset($_POST['owner'])) { $tag_added = get_tag_by_uid($_POST['uid']); // tag exists if ($tag_added) { update_tag($_POST['uid'], $_POST); } else { add_tag($_POST); } } // list all the users $tags = get_all_tags(); $types = get_tag_types(); $uids = get_all_uids(); require 'templates/tags.php'; } else { require 'templates/login.php'; } }
<?php /* #Author: Cengkuru Micheal 9/2/14 10:49 AM */ if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="panel-heading ui-draggable-handle"> <h3 class="panel-title">Listing <span class="badge badge-info"><?= count(get_all_tags()) ?></span></h3> </div> <div class="panel-body"> <!-- code here--> <div class="panel-body"> <?php //if user has permission if (check_my_access('add_tags')) { ?> <p> <a class="btn btn-xs btn-primary" href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) ?>/add_tag">New tag</a> </p> <?php } else { load_access_denied_page(); } ?>
<?php // require 'page_top.html'; require '../config.php'; require '../db_lib.php'; $db = new db(); $table_name = 'tweet_tags'; $report_name = 'all_tags.php'; require 'select_date.php'; print '<h2>Top Tags Tweeted by all Accounts</h2>'; require '../get_all_tags.php'; $tags = get_all_tags($where, $page * $results_per_page, $results_per_page); if (sizeof($tags)) { $tag_html = '<table><th align="left">Count</th><th align="left">Tag</th>'; foreach ($tags as $tag) { $tag_html .= '<tr><td style="width:60px">' . number_format($tag['cnt']) . '</td><td><a href="https://twitter.com/search?q=%23' . $tag['tag'] . '">' . $tag['tag'] . '</a></td></tr>'; } $tag_html .= '</table>'; print $tag_html; } else { print "No tags found"; } require 'page_bottom.html';
$response = '{"success":"1","message":"success"}'; //$callback = trim(@$_REQUEST['callback']); /*$json = $callback . '({ "proposals": '; */ $json .= $response; /*$json .= '})'; */ echo $json; break; case "check_free_period": echo check_free_period($_REQUEST['udid'], $_REQUEST['cid'], $_REQUEST['callback']); break; //**************************************TAGS********************************************************************************** //**************************************TAGS********************************************************************************** case "get_all_tags": echo get_all_tags($_REQUEST['cid'], $_REQUEST['start'] - 1, $_REQUEST['offset']); break; case "get_articles_by_tag": echo get_articles_by_tag($_REQUEST['tid'], $_REQUEST['cid'], $_REQUEST['page'] - 1, $_REQUEST['limit']); break; case "get_articles_by_tag_from_my_sources": echo get_articles_by_tag_from_my_sources($_REQUEST['tid'], $_REQUEST['cid'], $_REQUEST['page'] - 1, $_REQUEST['limit'], $_REQUEST['sources']); break; case "loop": while (true) { echo 1; } break; //***************************sport************************************************************* //***************************sport************************************************************* case "save_football_PADS":
/** * Builds a <datalist> for the request, each result being a <option> * * @param string $list Requested datalist * @return string Results as a <datalist> * @uses \DOMDocument * @uses \DOMElement */ function get_datalist($list) { $pdo = \shgysk8zer0\Core\PDO::load('connect.json'); if (!$pdo->connected) { return; } switch (strtolower($list)) { case 'tags': $options = get_all_tags(); break; case 'php_errors_files': $options = array_map(function (\stdClass $option) { return preg_replace('/^' . preg_quote(BASE . DIRECTORY_SEPARATOR, '/') . '/', null, $option->file); }, $pdo->fetchArray("SELECT DISTINCT(`file`) FROM `PHP_errors`;")); break; default: return []; } $datalist = array_reduce($options, function (\DOMElement $list, $item) { $list->option = ['@value' => $item]; return $list; }, new \shgysk8zer0\Core\HTML_El('datalist', null, null, true)); $datalist->{'@id'} = "{$list}"; return "{$datalist}"; }
header("Content-Transfer-Encoding: binary"); } $contentType = $_GET['query']; ob_end_clean(); switch ($contentType) { case "blogs": get_all_blogs(); break; case "pages": get_all_pages(); break; case "posts": get_all_posts(); break; case "tags": get_all_tags(); break; case "users": get_all_users(); break; case "administrators": get_all_users("administrator"); break; case "authors": get_all_users("author"); break; case "contributors": get_all_users("contributor"); break; case "editors": get_all_users("editor");
function tag_cron() { tag_instance_table_cleanup(); if ($tags = get_all_tags('*')) { foreach ($tags as $tag) { cache_correlated_tags($tag->id); } } }
} ?> </div> <div class="panel-body list-group"> <?php //if user has permission if (check_my_access('view_tags')) { ?> <a href="<?= base_url() . $this->uri->segment(1) . '/admin_settings/tags' ?>" class="list-group-item"><span class="fa fa-calendar"></span> All tags <span class="badge badge-danger"><?= count(get_all_tags()) ?></span> </a> <?php } ?> </div> </div> <?php } ?>