function WT_IPC_Monitor() { $gw = WT_spawn_new_gateway(); $r = $gw->current_lib->IPC_Monitor(); if ($r != '') { print setvars($r); } else { print ' '; } }
function WT_GetProblemDesc() { global $id, $cid, $backlink; if ($id == '' || $cid == '') { return; } $gw = WT_spawn_new_gateway(); $r = $gw->current_lib->IPC_Problem_DescriptionForm($id, $cid, $backlink); if ($r != '') { print setvars($r); } else { print ' '; } }
} // GALLERY FUNCTIONS if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['img'])) { if ($_SESSION['SELL_pict_url_temp'] == $_SESSION['UPLOADED_PICTURES'][intval($_GET['img'])]) { unlink($upload_path . session_id() . '/' . $_SESSION['SELL_pict_url']); unset($_SESSION['SELL_pict_url']); } unlink($upload_path . session_id() . '/' . $_SESSION['UPLOADED_PICTURES'][intval($_GET['img'])]); unset($_SESSION['UPLOADED_PICTURES'][intval($_GET['img'])]); unset($_SESSION['UPLOADED_PICTURES_SIZE'][intval($_GET['img'])]); } if (isset($_GET['action']) && $_GET['action'] == 'makedefault') { $_SESSION['SELL_pict_url_temp'] = $_SESSION['SELL_pict_url'] = $_GET['img']; } // set variables setvars(); if (isset($_GET['mode']) && $_GET['mode'] == 'recall') { $_SESSION['action'] = 1; } switch ($_SESSION['action']) { case 4: // finalise auction (submit to db) if ($system->SETTINGS['usersauth'] == 'y' && $system->SETTINGS['https'] == 'y' && $_SERVER['HTTPS'] != 'on') { $sslurl = str_replace('http://', 'https://', $system->SETTINGS['siteurl']); $sslurl = !empty($system->SETTINGS['https_url']) ? $system->SETTINGS['https_url'] : $sslurl; header('location: ' . $sslurl . 'sell.php'); exit; } // does the user need to login before they can submit the auction? if ($system->SETTINGS['usersauth'] == 'y') { // hash and check the password
function SetVars($content) { $content = preg_replace('/\\${information}/', stencil_info($this->information), $content); $content = setvars($content); foreach ($this->vars as $k => $v) { $content = preg_replace('/\\${' . prepare_pattern($k) . '}/', $v, $content); } $content = deecranvars($content); return $content; }
function GetRSSData() { $res = ''; $percontent = opt_get('rss_items_per_content'); $prefix = config_get('http-document-root'); if (is_array($this->settings['contents'])) { foreach ($this->settings['contents'] as $cid => $dummy) { $c = wiki_spawn_content($cid); if ($c->GetID() <= 0) { unset($this->settings['contents'][$cid]); continue; } $arr = $c->GetRSSData($percontent); $n = min(count($arr), $percontent); for ($i = 0; $i < $n; $i++) { $linkPrefix = $prefix . $c->GetFullHTTPPath(); $row = $arr[$i]; $row['timestamp'] = $timestamp; $res .= " <item>\n"; $res .= ' <title>' . htmlspecialchars($row['title']) . '</title>' . "\n"; if ($row['link'] != '') { $res .= ' <link>' . $linkPrefix . '/' . $row['link'] . '</link>' . "\n"; } $res .= ' <description>' . htmlspecialchars($row['description']) . '</description>' . "\n"; if ($row['comments'] != '') { $res .= ' <comments>' . $row['comments'] . '</comments>' . "\n"; } $res .= ' <pubDate>' . FullLocalTime($row['pubdate']) . '</pubDate>' . "\n"; if ($row['dccreator'] != '') { $res .= ' <dc:creator>' . htmlspecialchars($row['dccreator']) . '</dc:creator>' . "\n"; } $res .= " </item>\n"; } } } return setvars($res); }