function GetMUSites($page = '') { global $cookie, $domain; if (empty($page)) { $page = geturl($domain, 80, "/", 0, $cookie); is_page($page); if (preg_match('@Location: http://([^/|\\r|\\n]+)/@i', $page, $rd)) { $domain = $rd[1]; $page = geturl($domain, 80, "/", 0, $cookie); is_page($page); } $cookie = GetCookiesArr($page); } if (!preg_match_all("@showdetails\\('(\\w+)'\\)@i", $page, $hosts)) { html_error('Cannot Check Supported Sites [1]'); } $sites = array(); foreach ($hosts[1] as $host) { $popup = cut_str($page, 'id="details_' . $host . '">', '</div></div>'); if (empty($popup) || (!preg_match('@"(?:http://[^"]+/)?logos/(\\d+)\\.[^"]+"@i', $popup, $hid) || !preg_match('@Upload files directly into my ([^\\"|\'|\\<|\\:]+) account\\:@i', $popup, $name))) { html_error("Cannot Check Supported Sites [2 ({$host})]"); } $name[1] = trim($name[1]); if ($hid[1] != 14) { $sites[] = array('hname' => $name[1], 'id' => $hid[1], 'sname' => $host); } unset($popup, $hid, $name); } return $sites; }
function SendLogin($post) { global $_T8, $referer, $cookie, $pauth; $page = geturl($_T8['domain'], $_T8['port'], $_T8['path'] . '?op=login', $referer, $cookie, 0, 0, $_GET['proxy'], $pauth); is_page($page); if (!($form = cut_str($page, '<form', '</form>'))) { html_error('Cannot find login form.'); } if (!($post['rand'] = cut_str($page, 'name="rand" value="', '"'))) { html_error('Login form "rand" not found.'); } if (substr_count($form, "<span style='position:absolute;padding-left:") > 3 && preg_match_all("@<span style='[^\\'>]*padding-left\\s*:\\s*(\\d+)[^\\'>]*'[^>]*>((?:&#\\w+;)|(?:\\d))</span>@i", $form, $txtCaptcha)) { // Text Captcha (decodeable) $txtCaptcha = array_combine($txtCaptcha[1], $txtCaptcha[2]); ksort($txtCaptcha, SORT_NUMERIC); $txtCaptcha = trim(html_entity_decode(implode($txtCaptcha), ENT_QUOTES, 'UTF-8')); $post['code'] = $txtCaptcha; } else { html_error('Login captcha not found.'); } // Don't remove this sleep or you will only see "Error Decoding Captcha. [Login]" sleep(3); // 2 or 3 seconds. $page = geturl($_T8['domain'], $_T8['port'], $_T8['path'] . '?op=login', $referer, $cookie, $post, 0, $_GET['proxy'], $pauth); is_page($page); is_present($page, '>Wrong captcha code<', 'Error: Error Decoding Captcha. [Login]'); return $page; }
public function GetPage($link, $cookie = 0, $post = 0, $referer = 0, $auth = 0, $XMLRequest = 0) { if (!$referer && !empty($GLOBALS['Referer'])) { $referer = $GLOBALS['Referer']; } $cURL = $GLOBALS['options']['use_curl'] && extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec') ? true : false; $Url = parse_url(trim($link)); if (strtolower($Url['scheme']) == 'https') { $chttps = false; if ($cURL) { $cV = curl_version(); if (in_array('https', $cV['protocols'], true)) { $chttps = true; } } if (!extension_loaded('openssl') && !$chttps) { html_error('You need to install/enable PHP\'s OpenSSL extension to support HTTPS connections.'); } elseif (!$chttps) { $cURL = false; } } if ($cURL) { if ($XMLRequest) { $referer .= "\r\nX-Requested-With: XMLHttpRequest"; } $page = cURL($link, $cookie, $post, $referer, $auth); } else { global $pauth; $page = geturl($Url['host'], defport($Url), $Url['path'] . (!empty($Url['query']) ? '?' . $Url['query'] : ''), $referer, $cookie, $post, 0, !empty($_GET['proxy']) ? $_GET['proxy'] : '', $pauth, $auth, $Url['scheme'], 0, $XMLRequest); is_page($page); } return $page; }
public function GetPage($link, $cookie = 0, $post = 0, $referer = 0, $auth = 0, $XMLRequest = 0) { global $options; if (!$referer) { global $Referer; $referer = $Referer; } $cURL = $options['use_curl'] && extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec') ? true : false; $Url = parse_url(trim($link)); if ($Url['scheme'] == 'https') { $chttps = false; if ($cURL) { $cV = curl_version(); if (in_array('https', $cV['protocols'], true)) { $chttps = true; } } if (!extension_loaded('openssl') && !$chttps) { html_error('This server doesn\'t support https connections.'); } elseif (!$chttps) { $cURL = false; } } if ($cURL) { if ($XMLRequest) { $referer .= "\r\nX-Requested-With: XMLHttpRequest"; } $page = cURL($link, $cookie, $post, $referer, $auth); } else { global $pauth; $page = geturl($Url['host'], defport($Url), $Url['path'] . (!empty($Url['query']) ? '?' . $Url['query'] : ''), $referer, $cookie, $post, 0, !empty($_GET['proxy']) ? $_GET['proxy'] : '', $pauth, $auth, $Url['scheme'], 0, $XMLRequest); is_page($page); } return $page; }
function rapportive($email) { $json_str = geturl('https://rapportive.com/contacts/email/' . $email); $json = json_decode($json_str); if ($json === false) { return "<p>Failed to load Rapportive</p>"; } if (!isset($json->contact)) { return "<p>No information found</p>"; } $out = "<div>"; if (isset($json->contact->image_url_raw) && strlen($json->contact->image_url_raw)) { $out .= "<img style='float:left;margin-right:5px;margin-bottom:5px;;' width='75px' height='75px' src='{$json->contact->image_url_raw}'> "; } if (isset($json->contact->name) && strlen($json->contact->name)) { $out .= "<strong>{$json->contact->name}</strong><br>"; } if (isset($json->contact->email) && strlen($json->contact->email)) { $out .= "<a href='mailto:{$email}'>{$email}</a><br>"; } if (isset($json->contact->location) && strlen($json->contact->location)) { $out .= "{$json->contact->location}</div>"; } $out .= "<div style='clear:both;'></div>"; foreach ($json->contact->occupations as $o) { $out .= "• {$o->job_title} at {$o->company}<br>"; } foreach ($json->contact->memberships as $m) { $out .= "<div style='float:left;margin-right:5px;'><img src='https://rapportive.com/images/icons/{$m->icon_name}.png'> "; $out .= "<a href='{$m->profile_url}'>{$m->formatted}</a></div>"; } $out .= "<div style='clear:both;'></div>"; return $out; }
function SendLogin($post) { global $_T8, $cookie, $pauth; $page = geturl($_T8['domain'], $_T8['port'], $_T8['path'] . '?op=login', 'https://login.uptobox.com/', $cookie, $post, 0, $_GET['proxy'], $pauth); is_page($page); return $page; }
function SendLogin($post) { global $_T8, $cookie, $pauth; $page = geturl('login.uptobox.com', 443, '/logarithme', 'https://login.uptobox.com/', $cookie, $post, 0, 0, 0, 0, 'https'); // geturl doesn't support https proxy is_page($page); return $page; }
/** * 获取图片路劲 * * @return string */ function getImagePath() { $imagePath = geturl($this->fileName); if ($imagePath[0]) { return $imagePath[0]; } return ''; }
public function doChangeLocale() { $locale = Input::get('locale'); LaravelLocalization::setLocale($locale); App::setLocale($locale); Cookie::queue('locale', $locale); return Response::json(array('status' => true, 'link' => geturl(Input::get('url')))); }
function _getGroupImage($cnimg) { if (!$cnimg) { global $imgpath; return $imgpath . '/g/groupnopic.gif'; } list($cnimg) = geturl("cn_img/{$cnimg}", 'lf'); return $cnimg; }
function _getImagesByTid($tid) { global $db; $temp = array(); $query = $db->query("SELECT attachurl FROM pw_attachs WHERE tid=" . S::sqlEscape($tid, false) . " AND type='img' LIMIT 5"); while ($rt = $db->fetch_array($query)) { $a_url = geturl($rt['attachurl'], 'show'); $temp[] = is_array($a_url) ? $a_url[0] : $a_url; } return $temp; }
function checkuser($id, $space) { global $_SGLOBAL; if (empty($space)) { showmessage('link_failure', geturl('action/login')); } list($dateline, $operation, $idstring) = explode("\t", $space); if ($dateline < $_SGLOBAL['timestamp'] - 86400 * 3 || $operation != 1 || $idstring != $id) { showmessage('getpasswd_illegal'); } }
public function onGetValue($formField, array &$row, &$postfix) { if ($row) { if ($formField->getFieldName() == 'id_catalog') { if ($row['id_catalog']) { $product = Tree::find($row['id_catalog']); return '<a href="' . geturl($product->getUrl()) . '" target="_blank">' . $product->title_ru . '</a>'; } } } }
/** * You can use this function to retrieve pages without parsing the link * * @param string $link The link of the page to retrieve * @param string $cookie The cookie value if you need * @param array $post name=>value of the post data * @param string $referer The referer of the page, it might be the value you are missing if you can't get plugin to work * @param string $auth Page authentication, unneeded in most circumstances */ public function GetPage($link, $cookie = 0, $post = 0, $referer = 0, $auth = 0) { global $pauth; if (!$referer) { global $Referer; $referer = $Referer; } $Url = parse_url(trim($link)); $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $referer, $cookie, $post, 0, $_GET["proxy"], $pauth, $auth); is_page($page); return $page; }
function _cookData($data) { global $db_bbsurl, $attachpath; $data['url'] = $db_bbsurl . '/apps.php?q=photos&a=view&pid=' . $data['pid']; $data['title'] = $data['pintro']; if ($data['path'] && substr($rt['path'], 0, 7) != 'http://') { $a_url = geturl($data['path']); $data['imgurl'] = is_array($a_url) ? $a_url[0] : $a_url; } $data['image'] = $data['imgurl']; return $data; }
function sentMessage($number, $telco, $message, $type) { switch ($type) { case 2: break; case 1: $baseurl = geturl($number, $telco, $message); //callussd($baseurl,$number,$telco,$message); break; default: break; } return true; }
/** * 获取相片的真实路径 * * @param string $path * @param bool $thumb * @return string */ function getphotourl($path, $thumb = false) { global $pwModeImg; if (!$path) { return "{$pwModeImg}/nophoto.gif"; } $lastpos = strrpos($path, '/') + 1; $thumb && ($path = substr($path, 0, $lastpos) . 's_' . substr($path, $lastpos)); list($path) = geturl($path, 'show'); if ($path == 'imgurl' || $path == 'nopic') { return "{$pwModeImg}/nophoto.gif"; } return $path; }
/** * 获取照片的真实路径 * * @param string $path * @param bool $thumb * @return string */ function getphotourl($path, $thumb = false, $defaultPic = 'nophoto.gif') { global $imgpath; if (!$path) { return "{$imgpath}/{$defaultPic}"; } $lastpos = strrpos($path, '/') + 1; $thumb && ($path = substr($path, 0, $lastpos) . 's_' . substr($path, $lastpos)); $path = geturl($path, 'show'); if (!is_array($path) && ($path == 'imgurl' || $path == 'nopic')) { return "{$imgpath}/{$defaultPic}"; } return $path[0]; }
function getUploadUrl() { try { $page = geturl("api.wupload.com", 80, '/upload?method=getUploadUrl&format=json&u=' . $this->_username . '&p=' . $this->_password, 0, 0, 0, 0, $_GET["proxy"], $pauth); $response = explode("\n", $page); $body = ''; foreach ($response as $content) { $content = trim($content); if (isset($isBody) && $isBody <= 1) { $isBody++; } if ($content == '') { $isBody = 0; } if ($content == '0') { break; } if ($isBody == 2) { $body = $content; } } $apiResponse = json_decode($body, true); if (!$apiResponse || !isset($apiResponse['FSApi_Upload']) || !isset($apiResponse['FSApi_Upload']['getUploadUrl']) || !isset($apiResponse['FSApi_Upload']['getUploadUrl']['status'])) { throw new Exception("Unable to get upload server, unknow API response. Debugging: " . $page); } if ($apiResponse['FSApi_Upload']['getUploadUrl']['status'] == 'failed') { $msg = ''; foreach ($apiResponse['FSApi_Upload']['getUploadUrl']['errors'] as $type => $errors) { switch ($type) { case 'FSApi_Auth_Exception': $msg .= "Please verify your Username and Password\n"; break; default: $msg .= $errors . "\n"; } } throw new Exception("Failed to get upload server with message: " . $msg); } $this->_uploadUrl = $apiResponse['FSApi_Upload']['getUploadUrl']['response']['url']; $this->_uploadMaxFilesize = $apiResponse['FSApi_Upload']['getUploadUrl']['response']['url']; return $this->_uploadUrl; } catch (Exception $e) { echo '<pre>' . $e->getMessage() . '</pre>'; exit; } }
/** * * 数据处理 * @param array $data * @return array */ function _cookData($data) { foreach ($data as $k => $v) { $v['url'] = 'read.php?tid=' . $v['tid']; $v['title'] = $v['subject']; $v['value'] = $v['postdate']; $temp = geturl($v['icon']); $v['image'] = $temp[0] ? $temp[0] : ''; $v['authorurl'] = 'u.php?uid=' . $v['authorid']; $v['forumname'] = getForumName($v['fid']); $v['forumurl'] = getForumUrl($v['fid']); list($v['topictypename'], $v['topictypeurl']) = getTopicType($v['type'], $v['fid']); $v['addition'] = $v; $data[$k] = $v; } return $data; }
function getThumbAttach($attachurl, $ifthumb = false) { global $attachpath, $attachdir, $db_ftpweb; $a_url = geturl($attachurl, 'show', $ifthumb); list($wind_version) = explode(',', WIND_VERSION); if ($wind_version >= 8.0) { $thumburl = $this->getMiniUrl($attachurl, $ifthumb, $a_url[1]); } else { $thumburl = $a_url[0]; } if ($a_url[1] == 'Local') { $sourceurl = $attachpath . '/' . $attachurl; } elseif ($a_url[1] == 'Ftp') { $sourceurl = $db_ftpweb . '/' . $attachurl; } return array($sourceurl, $thumburl); }
function PwSpace($uid) { global $db, $winduid, $db_phopen, $db_dopen, $db_groups_open; $this->_db =& $db; $this->uid = $uid; $userService = L::loadClass('UserService', 'user'); if ($winduid && $winduid == $uid) { $this->info = $GLOBALS['winddb']; $this->info['isMe'] = 1; } elseif ($userdb = $userService->get($this->uid, true, true, true)) { //$userdb['rvrc'] /= 10; $this->info = $userdb; } if ($this->info) { if (perf::checkMemcache()) { $_cacheService = Perf::gatherCache('pw_space'); $space = $_cacheService->getSpaceByUid($this->uid); } else { $space = $this->_db->get_one("SELECT * FROM pw_space WHERE uid=" . S::sqlEscape($this->uid)); } if ($space) { $this->info = array_merge($this->info, $space); if ($this->info['banner']) { list($this->info['banner_s']) = geturl($this->info['banner'], 'lf'); } } else { $this->default = true; } $spaceGroupid = $this->info['groupid'] == -1 ? $this->info['memberid'] : $this->info['groupid']; include pwCache::getPath(D_P . "data/groupdb/group_{$spaceGroupid}.php"); $this->info['generalRight'] = $_G; !$this->info['name'] && ($this->info['name'] = $this->info['username'] . '的个人主页'); !$this->info['skin'] && ($this->info['skin'] = 'default85'); $GLOBALS['uskin'] =& $this->info['skin']; } if ($db_dopen) { $this->models[] = 'diary'; } if ($db_phopen) { $this->models[] = 'photos'; } if ($db_groups_open) { $this->models[] = 'colony'; } }
/** * 格式化数据统一输出 * @param array $data * @return array */ function _cookData($data) { $cookData = array(); foreach ($data as $k => $v) { if (isset($v['password'])) { unset($v['password']); } if ($v['topicid']) { if (strpos($v['topicname'], '[s:') !== false && strpos($v['topicname'], ']') !== false) { unset($data[$k]); continue; } $v['title'] = $v['descrip'] = strip_tags($v['topicname']); $v['url'] = 'apps.php?q=weibo&do=topics&topic=' . $v['topicname']; $v['postdate'] = get_date($v['crtime'], 'Y-m-d'); } elseif ($v['mid']) { $v['url'] = 'apps.php?q=weibo&do=detail&mid=' . $v['mid'] . '&uid=' . $v['uid']; $v['title'] = $v['extra']['title'] ? strip_tags($v['extra']['title']) : strip_tags($v['content']); $v['descrip'] = strip_tags($v['content']); $v['authorurl'] = 'u.php?uid=' . $v['uid']; $v['author'] = $v['username']; $v['authorid'] = $v['uid']; $v['postdate'] = $v['postdate_s']; if (S::isArray($v['extra']['photos'])) { $image = $v['extra']['photos'][0]; $temp = geturl($image['path']); $v['image'] = $temp[0] ? $temp[0] : ''; } $pic = showfacedesign($v['icon'], true, 's'); $v['icon'] = S::isArray($pic) ? $pic[0] : ''; } else { $v['url'] = 'u.php?uid=' . $v['uid']; $v['title'] = $v['username']; $v['uid'] = $v['uid']; $v['tags'] = $v['tags'] ? $v['tags'] : "TA还没有标签"; $v['image'] = $v['icon'] ? $v['icon'] : ''; } if (!$v['title']) { unset($data[$k]); continue; } $cookData[$k] = $v; } return $cookData; }
function GetVideo_HTML5($key, $hdstyle) { //加载信息 $url = geturl($key); for ($i = 0; $i < 3; $i++) { $info = getfile($url, 'http://video.sina.com.cn', null); if (!empty($info)) { break; } } preg_match_all('#\\<url\\>\\<\\!\\[CDATA\\[(.*?)\\]\\]\\>\\<\\/url\\>#i', $info, $vurl); $i = 0; foreach ($vurl[1] as $value) { if (!empty($value)) { $video['data'][$i]['src'] = $value; } $i++; } if (empty($video['data'][0]['src'])) { return false; } return $video; }
/** * * 数据处理 * @param int $fid * @return */ function _cookData($data) { $attachsService = L::loadClass('attachs', 'forum'); foreach ($data as $k => $v) { $v['url'] = 'read.php?tid=' . $v['tid']; $v['title'] = $v['subject']; if (!$v['title']) { unset($data[$k]); continue; } $v['value'] = $v['postdate']; $v['hits'] = $v['hits'] ? $v['hits'] : 0; $v['totalnum'] = $v['totalnum'] ? $v['totalnum'] : 0; $v['collectnum'] = $v['collectnum'] ? $v['collectnum'] : 0; $temp = geturl($v['cover'], 'show'); $v['image'] = $temp[0] ? $temp[0] : $GLOBALS['imgpath'] . '/imgdel_h200.jpg'; $v['forumname'] = getForumName($v['fid']); $v['forumurl'] = getForumUrl($v['fid']); $v['authorurl'] = 'u.php?uid=' . $v['authorid']; $v['addition'] = $v; $data[$k] = $v; } return $data; }
public function Download($link) { global $Referer, $pauth; $page = $this->GetPage($link); $cook = ""; preg_match_all('/Set-Cookie: ([^;]+)/', $page, $cook); $cookie = implode('; ', $cook[1]); $newredir = ""; $count = ""; if (preg_match('/Location: (.*)/', $page, $newredir)) { $Url = parse_url($newredir[1]); $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, $cookie, 0, 0, $_GET["proxy"], $pauth); is_page($page); //}elseif(preg_match('/href="(.*html)".*Download Now/', $page, $newredir)) } elseif (preg_match('/href="([^"]+)".*Download Now/', $page, $newredir)) { $redir = 'http://' . $Url["host"] . $newredir[1]; //$Url = parse_url($redir); $Url = parse_url($newredir[1]); $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, $cookie, 0, 0, $_GET["proxy"], $pauth); is_page($page); } if (preg_match('/var c = ([0-9]+);/', $page, $count)) { $countDown = $count[1]; $this->CountDown($countDown); } if (preg_match('%window\\.location = "(http://.+?)";%', $page, $redir)) { $link = $redir[1]; } elseif (preg_match('/(http.*?)\'.*Click here to download/', $page, $redir)) { $link = $redir[1]; } else { html_error("Download-link not found.", 0); } $Url = parse_url($link); $FileName = basename($Url["path"]); $this->RedirectDownload($link, $FileName); }
} $uid += floor(rand() * 10); $post['upload_type'] = 'file'; $post['sess_id'] = $xfss; $post['file_0_descr'] = $_REQUEST['descript']; $post['file_0_public'] = '1'; $post['link_rcpt'] = ''; $post['link_pass'] = ''; $post['tos'] = '1'; $post['submit_btn'] = ' Upload! '; $uurl = $upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=anon&upload_type=file'; $url = parse_url($upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=anon&upload_type=file'); ?> <script>document.getElementById('info').style.display='none';</script> <?php $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookies, $post, $lfile, $lname, "file_0"); ?> <script>document.getElementById('progressblock').style.display='none';</script> <?php $locat = cut_str($upfiles, 'rea name=\'fn\'>', '</textarea>'); unset($post); $gpost['fn'] = "{$locat}"; $gpost['st'] = "OK"; $gpost['op'] = "upload_result"; $Url = parse_url($ref); $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $uurl, $cookies, $gpost, 0, $_GET["proxy"], $pauth); $ddl = cut_str($page, '<td><a href="', '"'); $del = cut_str($page, 'killcode=', '"'); $download_link = $ddl; $delete_link = $ddl . '?killcode=' . $del; // Made By CHRISTIAN™ 09/06/2010 09:40
<div id=info width=100% align=center>Retrieve upload ID</div> <?php if (!preg_match('%javascript:beginUpload\\(\'(.{32})\'\\);return%', $page, $sid)) { html_error('Upload ID not found'); } if (!preg_match('%<input type="hidden" name="control" value="(.+)">%', $page, $control)) { html_error('Upload control-ID not found'); } $url = parse_url('http://sharex.xpg.com.br/cgi-bin/upload.cgi?sid=' . $sid[1] . '&maxsize=314572800'); ?> <script>document.getElementById('info').style.display='none';</script> <?php $post = array(); $post['control'] = $control[1]; $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookies, $post, $lfile, $lname, "file"); ?> <script>document.getElementById('progressblock').style.display='none';</script> <?php is_page($upfiles); if (!($dpage = cut_str($upfiles, "<script>window.top.location = '", "';</script>"))) { html_error('Couldn\'t find the upload links'); } $Url = parse_url($dpage); $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, $cookies, 0, 0, $_GET["proxy"], $pauth); is_page($page); preg_match('%(http://sharex\\.xpg\\.com\\.br/files/\\d+/.+\\..+)"%U', $page, $glink); preg_match('%(http://sharex\\.xpg\\.com\\.br/files/\\d+/\\d+[^\\.])"%U', $page, $dlink); $download_link = $glink[1]; $delete_link = $dlink[1]; } //szal 04jul2009
if ($winduid != $atcdb['authorid'] && $groupid != 3 && $groupid != 4) { $authordb = $db->get_one("SELECT groupid FROM pw_members WHERE uid=" . pwEscape($atcdb['authorid'])); if ($authordb['groupid'] == 3 || $authordb['groupid'] == 4) { Showmsg('modify_admin'); } } if ($_G['edittime'] && $timestamp - $atcdb['postdate'] > $_G['edittime'] * 60) { Showmsg('modify_timelimit'); } $hideemail = 'disabled'; $icon = (int) $icon; if (empty($_POST['step'])) { $attach = ''; if ($atcdb['attachs']) { foreach ($atcdb['attachs'] as $key => $value) { list($value['attachurl'], ) = geturl($value['attachurl'], 'lf'); $attach .= "'{$key}' : ['{$value['name']}', '{$value['size']}', '{$value['attachurl']}', '{$value['type']}', '{$value['special']}', '{$value['needrvrc']}', '{$value['ctype']}', '{$value['descrip']}'],"; } $attach = rtrim($attach, ','); } if ($postmodify->type == 'topic') { if ($pwforum->foruminfo['cms']) { include_once R_P . 'require/c_search.php'; list($tids, $kname) = search_tid($tid); } if ($t_db[$type]['upid']) { $ptype = $t_db[$type]['upid']; $psubtype = $type; } else { $ptype = $type; }
\t\t\t\t\t\t\t\t<article class="panel panel-default"> \t\t\t\t\t\t\t\t\t<header class="panel-heading"> \t\t\t\t\t\t\t\t\t\t<h3 class="panel-title">Our Twitch streamers</h3> \t\t\t\t\t\t\t\t\t</header> \t\t\t\t\t\t\t\t\t<div class="panel-body"> \t\t\t\t\t\t\t\t\t\t<ul class="streamers-list" id="twitch"> \t\t\t\t\t\t\t\t\t\t\t{$twitchPeeps} \t\t\t\t\t\t\t\t\t\t</ul> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</article> \t\t\t\t\t\t\t</div> TWITCHBOX; } } /* HitBox */ $hitboxUsers = geturl('http://api.hitbox.tv/team/steamlug'); $hitboxStreamers = @json_decode($hitboxUsers, true); $hitboxPeeps = ""; if ($hitboxStreamers != null) { foreach ($hitboxStreamers['members'] as $streamer) { $hitboxPeeps .= '<li>'; $hitboxPeeps .= '<a href="http://hitbox.tv/' . $streamer['user_name'] . '">'; $hitboxPeeps .= '<img src="//edge.sf.hitbox.tv/' . $streamer['user_logo_small'] . '" alt="A lovely picture of ' . $streamer['user_name'] . '" />'; $hitboxPeeps .= $streamer['user_name'] . '</a>'; $hitboxPeeps .= '</li>'; /* if ( $streamer['user_name'] == 'steamlug' and $streamer['is_live'] == 1) { $someoneStreaming = true; $hitboxOnline = true; // we cannot embed the hitbox viewer because it is http only true; } */