<?php require_once 'prefs.php'; include_once 'header.php'; ?> <h1>Buttons (Codes)</h1> <?php if (filesize(BUTTONS) > 0) { if (isset($_GET['p'])) { if ($_GET['p'] != "[0-9]x[0-9]" && !ctype_alnum($_GET['p'])) { echo "<p>That is not a valid button size. <a href=\"buttons.php\">See all sizes?</a></p>"; include 'footer.php'; exit; } getButtonSizes(); list($width, $height) = preg_split("/x/", $_GET['p']); getButtons($width, $height); } else { getButtonSizes(); } } else { echo "<p>There are no buttons.</p>"; } include 'footer.php';
</tbody> <?php } ?> </table> </div> <?php } ?> </div> </div> </div> </div> <?php echo getButtons($this->data['buttons'][$this->router->method]); ?> <div class="modal fade" tabindex="-1" role="dialog" id="modalYesToAll"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">System Question</h4> </div> <div class="modal-body"> <p>Are you sure you want to allow all actions for this module?</p> <input type="hidden" name="txtContentYesToAll" id="txtContentYesToAll" value="" /> </div>
function PageCompListMembers($list, $table, $sqlWho, $sqlWhom, $sqlSelectAdd = '', $sqlWhereAdd = '', $sqlOrderAdd = '') { global $memberID; global $site; global $dir; global $tmpl; $form = "{$table}_{$list}"; if ($list == '') { $query = "\n\t\t\tSELECT\n\t\t\t\tIF( `{$table}`.`{$sqlWho}` = {$memberID}, `{$table}`.`{$sqlWhom}`, `{$table}`.`{$sqlWho}` ) AS `{$sqlWhom}`,\n\t\t\t\t`Profiles`.`NickName`\n\t\t\t\t{$sqlSelectAdd}\n\t\t\tFROM `{$table}`\n\t\t\tLEFT JOIN `Profiles`\n\t\t\t\tON `Profiles`.`ID` = IF( `{$table}`.`{$sqlWho}` = {$memberID}, `{$table}`.`{$sqlWhom}`, `{$table}`.`{$sqlWho}` )\n\t\t\tWHERE\n\t\t\t\t( `{$table}`.`{$sqlWho}` = {$memberID} OR `{$table}`.`{$sqlWhom}` = {$memberID} )\n\t\t\t\t{$sqlWhereAdd}\n\t\t\tORDER BY {$sqlOrderAdd} `Profiles`.`NickName` ASC\n\t\t"; } else { $query = "\n\t\t\tSELECT\n\t\t\t\t`{$table}`.`{$sqlWho}`,\n\t\t\t\t`{$table}`.`{$sqlWhom}`,\n\t\t\t\t`Profiles`.`NickName`\n\t\t\t\t{$sqlSelectAdd}\n\t\t\tFROM `{$table}`\n\t\t\tLEFT JOIN `Profiles`\n\t\t\t\tON `Profiles`.`ID` = `{$table}`.`{$sqlWhom}`\n\t\t\tWHERE\n\t\t\t\t`{$table}`.`{$sqlWho}` = {$memberID}\n\t\t\t\t{$sqlWhereAdd}\n\t\t\tORDER BY {$sqlOrderAdd} `Profiles`.`NickName` ASC\n\t\t"; } $rMembers = db_res($query); if ($num_res = mysql_num_rows($rMembers)) { $sWhole = file_get_contents("{$dir['root']}templates/tmpl_{$tmpl}/contacts_tmpl.html"); $aMyTmpl = preg_split("/\\{\\/?InsertRows\\}/", $sWhole); $tmplRow = $aMyTmpl[1]; $sWhole = "{$aMyTmpl[0]}{InsertRows /}{$aMyTmpl[2]}"; $InsertRows = ''; $tr_class = 'odd'; while ($aMember = mysql_fetch_assoc($rMembers)) { $aReplace = array(); $aReplace['ID'] = $aMember[$sqlWhom]; $aReplace['CheckBoxName'] = "mem[{$aMember[$sqlWhom]}]"; if ($aMember[$sqlWhom] > 0) { $aReplace['Thumbnail'] = get_member_icon($aMember[$sqlWhom], 'left'); $aReplace['NickName'] = "<a href=\"" . getProfileLink($aMember[$sqlWhom]) . "\">{$aMember['NickName']}</a>"; $aReplace['SendGreet'] = sendKissPopUp($aMember[$sqlWhom]); $aReplace['SendMsg'] = "\n\t\t\t\t <a href=\"{$site['url']}compose.php?ID={$aMember[$sqlWhom]}\" title=\"" . _t('_Send Message') . "\">\n\t\t\t\t\t<img src=\"" . getTemplateIcon('compose.png') . "\" alt=\"" . _t('_Send Message') . "\" />\n\t\t\t\t </a>"; } else { $aReplace['Thumbnail'] = ''; $aReplace['NickName'] = _t('_Visitor'); $aReplace['SendGreet'] = ''; $aReplace['SendMsg'] = ''; } $aReplace['Times'] = $aMember['Number'] ? _t("_N times", $aMember['Number']) : ' '; $aReplace['PicNew'] = $aMember['New'] ? '<img src="' . getTemplateIcon('new.gif') . '" class="pic_new" />' : ''; $aReplace['Date'] = $aMember['Arrived'] ? $aMember['Arrived'] : ' '; $aReplace['tr_class'] = $tr_class; $sInsertRow = $tmplRow; foreach ($aReplace as $key => $val) { $sInsertRow = str_replace("{{$key}}", $val, $sInsertRow); } $sInsertRows .= $sInsertRow; $tr_class = $tr_class == 'odd' ? 'even' : 'odd'; } $aReplace = array(); $aReplace['InsertRows /'] = $sInsertRows; $aReplace['Self'] = $_SERVER['PHP_SELF'] . '?show=' . $_GET['show'] . '&list=' . $_GET['list']; $aReplace['FormName'] = "{$form}_form"; $aReplace['CheckAll'] = _t('_Check all'); $aReplace['UncheckAll'] = _t('_Uncheck all'); $aReplace['Actions'] = getButtons($form); foreach ($aReplace as $key => $val) { $sWhole = str_replace("{{$key}}", $val, $sWhole); } // unset "new" flag for kisses if ($table == 'VKisses' and $list == 'me') { db_res("UPDATE `VKisses` SET `New`='0' WHERE `Member`={$memberID} AND `New`='1'"); } } else { $sWhole = file_get_contents("{$dir['root']}templates/tmpl_{$tmpl}/contacts_tmpl_nores.html"); $aReplace = array(); $aReplace['NoResults'] = _t('_No members found here'); foreach ($aReplace as $key => $val) { $sWhole = str_replace("{{$key}}", $val, $sWhole); } } $sWhole = str_replace('{TableCaption}', getTableName($form, $num_res), $sWhole); return $sWhole; }
return RV_Sync::getConfigVersion($version); } require_once MAX_PATH . '/lib/OA/Sync.php'; return OA_Sync::getConfigVersion($version); } ?> <div style="width: 800px"> <?php open_flash_chart_object('800', 350, $oGraph->getUrl()); ?> <div style="text-align: center; margin: 8px 0; padding: 4px 32px; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc;"> <?php echo getButtons($oGraph->getLinks()); ?> </div> <div style="margin: 4px"> <script type='text/javascript'><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://servedby.reviveservers.com/ajs.php':'http://servedby.reviveservers.com/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=684&version=<?php echo urlencode(getPluginVersion()); ?> "); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
} ?> <?php } ?> <?php } ?> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <h5>Sorry, there's no data in here!'</h5> <?php } ?> <?php $this->load->view('common/pagination'); ?> </div> </div> <?php echo getButtons($this->data['buttons'][$this->router->method], @$this->data['disabled']);