function view_all_friends_posts() { $u_id = $_SESSION['u_id']; $sql = "select u_uID, u_f_name, u_l_name, u_userName, p_post, p_time, u_image\n from users as u \n join relationships as r \n on u.u_id = r.friend_id \n join posts as p\n on r.friend_id = p.u_id where r.u_id = {$u_id}\n order by p_time desc"; $result = get_array($sql); if (!$result) { return FALSE; } foreach ($result as $k) { if ($k->u_image != 'def_img') { $k->u_image = md5($k->u_uID); } else { $k->u_image = 'def_img'; } unset($k->u_uID); } return $result; }
external_link_list_url : "<?php qoolinfo('home'); ?> /admin/ajaxgeteditorlinks", external_image_list_url : "<?php qoolinfo('home'); ?> /admin/ajaxgeteditorimages", //media_external_list_url : "<?php qoolinfo('home'); ?> /admin/ajaxgeteditormedia", setup : function(ed) { // Add all custom buttons <?php foreach ($btns = get_array('editorBtns') as $k => $v) { ?> ed.addButton('<?php echo $v['name']; ?> ', { title : '<?php echo $v['title']; ?> ', image : '<?php echo $v['image']; ?> ', onclick : function() { <?php
function get_all_friends() { $u_id = $_SESSION['u_id']; $sql = "select u.u_uID, u_f_name, u_l_name, u_image, u_userName\n from users as u\n join relationships as r\n on u.u_id = r.u_id where friend_id = {$u_id} order by f_id desc"; $result = get_array($sql); if (!$result) { return 'no_friends_to_view'; } $requestsArr = []; //Get user Image and unset u_uID after image check foreach ($result as $obj) { $u_uID = $obj->u_uID; $userImg = $obj->u_image; if ($userImg != 'def_img') { $obj->u_image = md5($u_uID); } else { $userImg = 'def_img'; } unset($obj->u_uID); } return json_encode($result); }
<div class="row tumbnails"> <div class="3u"> <?php mywidget('top_box1'); ?> </div> <div class="9u maintext"> <?php $i = 0; ?> <div class="3u"> <ul> <?php foreach (get_array('content') as $post) { ?> <?php if ($i == 10) { ?> </ul></div><div class="4u"><ul><?php $i = 0; } ?> <li><a href="<?php qoolinfo('home'); ?> /hooks/<?php echo $post['slug']; ?> "><?php echo $post['title']; ?>
</p> </div> <?php foreach (get_array('slotList') as $k => $v) { ?> <div class="span3 tspan"> <h6><?php echo $v['title']; ?> </h6> <div class="drop well well-small minheightwell" id="<?php echo $v['id']; ?> "> <?php foreach (get_array('widgetList') as $ko => $vo) { ?> <?php if ($vo['name'] == $v['widget']) { ?> <div class="alert"><div id="<?php echo $vo['name']; ?> " class="label label-inverse drg placed"><i class="icon-move icon-white"> </i> <?php echo $vo['title']; ?> </div><a data-id="<?php echo $vo['name']; ?> " class='close' data-dismiss='alert' href='#'>×</a></div> <?php
function get_ipaddrs() { $result = mysql_query("SELECT DISTINCT(IP)\n\t\t\t FROM wp_3xvgq6_Counterize;"); $arr = get_array($result, "IP"); return $arr; }
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> </div> </div> <div class="box-content"> <div id="external-events" class="well"> <h4><?php t("Calendars"); ?> </h4> <div class="divider"> </div> <div class="label label-info"><?php t('Qool Tasks'); ?> </div> <?php foreach (get_array('googleCalendars') as $k => $v) { ?> <div class="divider"> </div> <div class="calendarSource label label-<?php echo $v['calendar_class']; ?> " data-source="<?php echo $v['calendar_address']; ?> "><?php echo $v['calendar_title']; ?> <a rev="general_data" id="<?php echo $v['id']; ?> " title="<?php
?> </ul> </div> <?php if (isActive('moduleMenu')) { ?> <div class="btn-group pull-left"> <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" > <i class="icon-cog icon-white"></i> <?php t('Options'); ?> <span class="caret"></span> </a> <ul class="dropdown-menu"> <?php foreach (get_array('moduleMenu') as $k => $v) { ?> <li><a href="<?php qoolinfo('home'); ?> /admin/<?php echo $k; ?> "><?php t($v); ?> </a></li> <?php } ?> </ul>
function taxonomy_recent($taxonomy, $type, $num = 10, $start = 0) { $qool =& get_array('qool'); $content = $qool->getRecentByTaxonomy($taxonomy, $type, $num, $start); return $content; }
$pattern = rtrim($pattern, '|'); $pattern = "/({$pattern})/i"; $constants = array("XML_PullParser_ERROR_BAD_INTERNAL_ARRAY", "XML_PullParser_ERROR_BAD_PARAM", "XML_PullParser_ERROR_DEF", "XML_PullParser_ERROR_MISMATCHED_TAGS", "XML_PullParser_ERROR_NO_DATA", "XML_PullParser_ERROR_NO_DEFAULT_TOKEN", "XML_PullParser_ERROR_NO_TOKEN", "XML_PullParser_ERROR_SYSTEM", "XML_PullParser_ERROR_USER_DEFINED", "XML_PullParser_ERROR_NS_SUPPORT"); $constants_array = array(); $constants_pattern = ""; foreach ($constants as $c) { $constants_pattern .= $c . '|'; } $constants_pattern = rtrim($constants_pattern, '|'); $constants_pattern = "/({$constants_pattern})/i"; require_once "XML_PullParser.inc"; $fn_names = array(); $file_names = array(); $file_names_index = 0; $xml_outfile = "XML_PullParser_index.xml"; get_array(); file_loop(); $handle = openOutputFile(); writeHeader($handle); writeText($handle, "<indexdiv><title>Index of Defined Constants</title>\n"); ksort($constants_array); foreach ($constants_array as $const => $val) { $val = array_unique($val); $citation_str = ""; foreach ($val as $index) { $citation_str .= formatSectionCitations($file_names[$index]); } writeEntry($handle, $const, $citation_str, "varname"); } writeText($handle, "</indexdiv>\n"); writeText($handle, "<formalpara><title></title><para><![CDATA[ <BR /> ]]></para></formalpara>");
<div class="row thumbnails"> <div class="6u"> <?php $user = get_array('user'); ?> <h3><?php echo $user['username']; ?> </h3> <dl> <?php foreach ($user['data'] as $k => $v) { ?> <dt><?php echo $k; ?> </dt> <dd><?php echo $v; ?> </dd> <?php } ?> </dl> </div> <?php if (isActive('formTitle')) { ?> <div class="6u"> <?php
<?php message(); $widgets = get_array('boardwidgets'); ?> <div class="tabbable tabs-left"> <!-- Only required for left/right tabs --> <ul class="nav nav-tabs"> <?php $i = 0; foreach ($widgets as $k => $v) { $i++; ?> <li <?php if ($i === 1) { ?> class="active"<?php } ?> ><a href="#<?php echo $k; ?> " data-toggle="tab"><?php t($k); ?> </a></li> <?php } ?> </ul> <div class="tab-content">
function get_the_title($id) { global $tpl; $single = $tpl->tpl->tplObject['single']; return $single['title']; $qool =& get_array('qool'); $post = $qool->getAllById($id); $type = $qool->getContentType($post['type_id']); $post = $qool->getContent($type['lib'], $post['id'], 1); return apply_filters('the_title', $post['title'], $id); }
/** * Resets query flags to false. * * The query flags are what page info WordPress was able to figure out. * * @since 2.0.0 * @access private */ function init_query_flags() { $this->is_single = false; $this->is_preview = false; $this->is_page = false; $this->is_archive = false; $this->is_date = false; $this->is_year = false; $this->is_month = false; $this->is_day = false; $this->is_time = false; $this->is_author = false; $this->is_category = false; $this->is_tag = false; $this->is_tax = false; $this->is_search = false; $this->is_feed = false; $this->is_comment_feed = false; $this->is_trackback = false; $this->is_home = false; $this->is_404 = false; $this->is_comments_popup = false; $this->is_paged = false; $this->is_admin = false; $this->is_attachment = false; $this->is_singular = false; $this->is_robots = false; $this->is_posts_page = false; $this->is_post_type_archive = false; $this->qool = $qool =& get_array('qool'); $this->qooldb = $qool->db; }
" data-toggle="modal" class="qoolmodal btn btn-setting btn-round"><i class="icon-cog"></i></a> <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> </div> </div> <div class="box-content1"> <p class="center"> <button id="toggle-fullscreen" class="btn btn-large btn-primary visible-desktop" data-toggle="button"><?php t('Toggle Fullscreen'); ?> </button> </p> <br/> <ul id="newitemsholder" class="thumbnails gallery"> <?php $i = 0; foreach (get_array('galleryimages') as $k => $v) { $i++; ?> <li id="image-<?php echo $i; ?> " class="thumbnail" data-src="<?php echo $k; ?> "> <a style="background:url('<?php echo $v; ?> ')" class="clboxer" href="<?php echo $v; ?>