本文整理汇总了PHP中ses_update_status函数的典型用法代码示例。如果您正苦于以下问题:PHP ses_update_status函数的具体用法?PHP ses_update_status怎么用?PHP ses_update_status使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ses_update_status函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: make_perms_query
return $perms & $obj->group_cache_opt;
}
function make_perms_query(&$fields, &$join, $fid = '')
{
if (!$fid) {
$fid = 'f.id';
}
if (_uid) {
$join = ' INNER JOIN phpgw_fud_group_cache g1 ON g1.user_id=2147483647 AND g1.resource_id=' . $fid . ' LEFT JOIN phpgw_fud_group_cache g2 ON g2.user_id=' . _uid . ' AND g2.resource_id=' . $fid . ' ';
$fields = ' (CASE WHEN g2.id IS NOT NULL THEN g2.group_cache_opt ELSE g1.group_cache_opt END) AS group_cache_opt ';
} else {
$join = ' INNER JOIN phpgw_fud_group_cache g1 ON g1.user_id=0 AND g1.resource_id=' . $fid . ' ';
$fields = ' g1.group_cache_opt ';
}
}
ses_update_status($usr->sid, 'Legge il forum <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=thread&frm_id=' . $frm->id . '">' . $frm->name . '</a>', $frm_id);
$announcements = '';
if ($frm->is_ann) {
$today = gmdate('Ymd', __request_timestamp__);
$res = uq('SELECT a.subject, a.text FROM phpgw_fud_announce a INNER JOIN phpgw_fud_ann_forums af ON a.id=af.ann_id AND af.forum_id=' . $frm->id . ' WHERE a.date_started<=' . $today . ' AND a.date_ended>=' . $today);
while ($r = db_rowarr($res)) {
$announcements .= '<tr><td class="AnnText" colspan="' . $ann_cols . '"><font class="AnnSubjText">' . $r[0] . '</font><br />' . $r[1] . '</td></tr>';
}
}
function tmpl_create_forum_select($frm_id, $mod)
{
$prev_cat_id = 0;
$selection_options = '';
if (!isset($_GET['t']) || $_GET['t'] != 'thread' && $_GET['t'] != 'threadt') {
$dest = t_thread_view;
} else {
示例2: invl_inp_err
invl_inp_err();
}
$m = db_sab('SELECT
p.*,
u.id AS user_id, u.alias, u.users_opt, u.avatar_loc, u.email, u.posted_msg_count, u.join_date,
u.location, u.sig, u.icq, u.aim, u.msnm, u.yahoo, u.jabber, u.affero, u.custom_status, u.last_visit,
l.name AS level_name, l.level_opt, l.img AS level_img
FROM
phpgw_fud_pmsg p
INNER JOIN phpgw_fud_users u ON p.ouser_id=u.id
LEFT JOIN phpgw_fud_level l ON u.level_id=l.id
WHERE p.duser_id=' . _uid . ' AND p.id=' . $id);
if (!$m) {
invl_inp_err();
}
ses_update_status($usr->sid, 'Legge/Scrive i messagi personali');
$cur_ppage = tmpl_cur_ppage($m->fldr, $folders, $m->subject);
/* Next Msg */
if ($nid = q_singleval('SELECT p.id FROM phpgw_fud_pmsg p INNER JOIN phpgw_fud_users u ON u.id=p.ouser_id WHERE p.duser_id=' . _uid . ' AND p.fldr=' . $m->fldr . ' AND post_stamp>' . $m->post_stamp . ' ORDER BY p.post_stamp ASC LIMIT 1')) {
$dpmsg_next_message = '<a href="/egroupware/fudforum/3814588639/index.php?t=pmsg_view&' . _rsid . '&id=' . $nid . '" class="GenLink">Messaggio successivo <img src="/egroupware/fudforum/3814588639/theme/italian/images/goto.gif" alt="" /></a>';
} else {
$dpmsg_next_message = '';
}
/* Prev Msg */
if ($pid = q_singleval('SELECT p.id FROM phpgw_fud_pmsg p INNER JOIN phpgw_fud_users u ON u.id=p.ouser_id WHERE p.duser_id=' . _uid . ' AND p.fldr=' . $m->fldr . ' AND p.post_stamp<' . $m->post_stamp . ' ORDER BY p.post_stamp DESC LIMIT 1')) {
$dpmsg_prev_message = '<a href="/egroupware/fudforum/3814588639/index.php?t=pmsg_view&' . _rsid . '&id=' . $pid . '" class="GenLink"><img src="/egroupware/fudforum/3814588639/theme/italian/images/goback.gif" alt="" /> Messaggio precedente</a>';
} else {
$dpmsg_prev_message = '';
}
$private_message_entry = tmpl_drawpmsg($m, $usr, false);
if (!$m->read_stamp && $m->pmsg_opt & 16) {
示例3: get_all_read_perms
$custom_tags = $u->custom_status ? '' . $u->custom_status . '<br />' : '';
if (!($usr->users_opt & 1048576)) {
$frm_perms = get_all_read_perms(_uid, $usr->users_opt & 524288);
}
$moderation = '';
if ($u->users_opt & 524288) {
$c = uq('SELECT f.id, f.name FROM phpgw_fud_mod mm INNER JOIN phpgw_fud_forum f ON mm.forum_id=f.id INNER JOIN phpgw_fud_cat c ON f.cat_id=c.id WHERE ' . ($usr->users_opt & 1048576 ? '' : 'f.id IN(' . implode(',', array_keys($frm_perms)) . ') AND ') . 'mm.user_id=' . $u->id);
while ($r = db_rowarr($c)) {
$moderation .= '<a href="/egroupware/fudforum/3814588639/index.php?t=' . t_thread_view . '&frm_id=' . $r[0] . '&' . _rsid . '" class="GenLink">' . htmlspecialchars($r[1]) . '</a> ';
}
if ($moderation) {
$moderation = 'Moderatore di: ' . $moderation;
}
}
$TITLE_EXTRA = ': Informazioni utente ' . $user_info;
ses_update_status($usr->sid, 'Guarda il profilo di <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=usrinfo&id=' . $u->id . '">' . $user_info . '</a>');
$status = !empty($level_name) || !empty($moderation) || !empty($level_image) || !empty($custom_tags) ? '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap valign="top" class="GenText">Status:</td><td class="GenText">
<font class="LevelText">
' . $level_name . '
' . $level_image . '
' . $custom_tags . '
</font>
' . $moderation . '
</td></tr>' : '';
$avg = sprintf('%.2f', $u->posted_msg_count / ((__request_timestamp__ - $u->join_date) / 86400));
if ($avg > $u->posted_msg_count) {
$avg = $u->posted_msg_count;
}
$last_post = '';
if ($u->u_last_post_id) {
$r = db_saq('SELECT m.subject, m.id, m.post_stamp, t.forum_id FROM phpgw_fud_msg m INNER JOIN phpgw_fud_thread t ON m.thread_id=t.id WHERE m.id=' . $u->u_last_post_id);
示例4: ignore_add
if (!empty($usr->ignore_list)) {
$usr->ignore_list = @unserialize($usr->ignore_list);
}
if (($ignore_id = q_singleval('SELECT id FROM phpgw_fud_users WHERE id=' . $_GET['add'] . ' AND (users_opt & 1048576)=0')) && !isset($usr->ignore_list[$ignore_id])) {
ignore_add(_uid, $ignore_id);
}
check_return($usr->returnto);
}
if (isset($_GET['del']) && ($_GET['del'] = (int) $_GET['del'])) {
ignore_delete(_uid, $_GET['del']);
/* needed for external links to this form */
if (isset($_GET['redr'])) {
check_return($usr->returnto);
}
}
ses_update_status($usr->sid, 'Browsing own ignore list');
$ignore_member_search = $FUD_OPT_1 & (8388608 | 4194304) ? '<br>Or use the <a href="javascript://" class="GenLink" onClick="javascript: window_open(\'/egroupware/fudforum/3814588639/index.php?t=pmuserloc&' . _rsid . '&js_redr=buddy_add.add_login&overwrite=1\', \'user_list\', 250,250);">Find User</a> feature to find a person.' : '';
$tabs = '';
if (_uid) {
$tablist = array('Settings' => 'register', 'Subscriptions' => 'subscribed', 'Referrals' => 'referals', 'Buddy List' => 'buddy_list', 'Ignore List' => 'ignore_list');
if (isset($_POST['mod_id'])) {
$mod_id_chk = $_POST['mod_id'];
} else {
if (isset($_GET['mod_id'])) {
$mod_id_chk = $_GET['mod_id'];
} else {
$mod_id_chk = null;
}
}
if (!$mod_id_chk) {
if ($FUD_OPT_1 & 1024) {
示例5: char_fix
}
char_fix($reg_bio);
char_fix($reg_sig);
$b_year = $_POST['b_year'];
$b_month = $_POST['b_month'];
$b_day = $_POST['b_day'];
if (isset($_POST['avatar_type'])) {
$avatar_type = $_POST['avatar_type'];
}
}
}
if (empty($reg_time_zone)) {
$reg_time_zone = $SERVER_TZ;
}
if (!$mod_id) {
ses_update_status($usr->sid, 'Guarda il suo profilo', 0, 0);
}
$TITLE_EXTRA = ': Pagina di registrazione';
$tabs = '';
if (_uid) {
$tablist = array('Impostazioni' => 'register', 'Iscrizioni' => 'subscribed', 'Referrals' => 'referals', 'Buddy List' => 'buddy_list', 'Ignore List' => 'ignore_list');
if (isset($_POST['mod_id'])) {
$mod_id_chk = $_POST['mod_id'];
} else {
if (isset($_GET['mod_id'])) {
$mod_id_chk = $_GET['mod_id'];
} else {
$mod_id_chk = null;
}
}
if (!$mod_id_chk) {
示例6: unset
$a = $_GET;
unset($a['rid'], $a['S'], $a['t']);
if (isset($a[$var])) {
unset($a[$var]);
$rm = 1;
}
$url = '/sel';
foreach ($a as $k => $v) {
$url .= '/' . $k . '/' . $v;
}
if (!isset($rm)) {
$url .= '/' . $var . '/' . $val;
}
return $url . '/' . _rsid;
}
ses_update_status($usr->sid, 'Sfoglia <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=selmsg&date=today&rid=' . $usr->id . '">Messaggi odierni</a>');
$count = $usr->posts_ppg ? $usr->posts_ppg : $POSTS_PER_PAGE;
if (!isset($_GET['start']) || !($start = (int) $_GET['start'])) {
$start = 0;
}
/* limited to today */
if (isset($_GET['date'])) {
if ($_GET['date'] != 'today') {
$tm = __request_timestamp__ - ((int) $_GET['date'] - 1) * 86400;
} else {
$tm = __request_timestamp__;
}
list($day, $month, $year) = explode(' ', strftime('%d %m %Y', $tm));
$tm_today_start = mktime(0, 0, 0, $month, $day, $year);
$tm_today_end = $tm_today_start + 86400;
$date_limit = ' AND m.post_stamp>' . $tm_today_start . ' AND m.post_stamp<' . $tm_today_end . ' ';
示例7: while
/* remove stuff in quotes */
while (($p = strpos($body, '<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>')) !== false) {
$e = strpos($body, '<br></td></tr></table>', $p) + strlen('<br></td></tr></table>');
$body = substr($body, 0, $p) . substr($body, $e);
}
$body = strip_tags($body);
if (strlen($body) > $GLOBALS['MNAV_MAX_LEN']) {
$body = substr($body, 0, $GLOBALS['MNAV_MAX_LEN']) . '...';
}
return $body;
}
$search_options = tmpl_draw_radio_opt('field', "all\nsubject", "Messaggio completo\nSolo oggetto", $field, '', '', ' ');
$logic_options = tmpl_draw_select_opt("AND\nOR", "AND\nOR", $search_logic, '', '');
$sort_options = tmpl_draw_select_opt("DESC\nASC", "ordine decrescente\nordine crescente", $sort_order, '', '');
$TITLE_EXTRA = ': Ricerca ' . htmlspecialchars($srch);
ses_update_status($usr->sid, 'Cerca nei topic');
$page_pager = '';
if ($srch) {
if (!($c =& fetch_search_cache($srch, $start, $ppg, $search_logic, $field, $sort_order, $forum_limiter, $total))) {
$search_data = '<br />
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr class="RowStyleA"><th colspan=2 width="100%" align="center">Nessun risultato</th></tr>
</table>';
} else {
$i = 0;
$search_data = '';
while ($r = db_rowobj($c)) {
$body = trim_body(read_msg_body($r->foff, $r->length, $r->file_id));
$poster_info = !empty($r->poster_id) ? '<a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=usrinfo&id=' . $r->poster_id . '&' . _rsid . '">' . $r->alias . '</a>' : '' . $GLOBALS['ANON_NICK'];
++$i;
$search_data .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" width="100%">' . $i . '. <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&goto=' . $r->id . '&' . _rsid . '">' . $r->subject . '</a><br />' . $body . '</td><td class="GenText" nowrap><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=' . t_thread_view . '&frm_id=' . $r->forum_id . '&' . _rsid . '">' . $r->forum_name . '</a></td><td class="GenText" nowrap><font class="DateText">' . strftime("%a, %d %B %Y %H:%M", $r->post_stamp) . '</font> Da: ' . $poster_info . '</td></tr>';
示例8: trim_body
}
function trim_body($body)
{
/* remove stuff in quotes */
while (($p = strpos($body, '<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>')) !== false) {
$e = strpos($body, '<br></td></tr></table>', $p) + strlen('<br></td></tr></table>');
$body = substr($body, 0, $p) . substr($body, $e);
}
$body = strip_tags($body);
if (strlen($body) > $GLOBALS['MNAV_MAX_LEN']) {
$body = substr($body, 0, $GLOBALS['MNAV_MAX_LEN']) . '...';
}
return $body;
}
$TITLE_EXTRA = ': Message Navigator';
ses_update_status($usr->sid, 'Browsing Messages using <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=mnav">Message Navigator</a>');
if ($forum_limiter) {
if ($forum_limiter[0] != 'c') {
$qry_lmt = ' AND f.id=' . (int) $forum_limiter . ' ';
} else {
$qry_lmt = ' AND c.id=' . (int) substr($forum_limiter, 1) . ' ';
}
} else {
$qry_lmt = '';
}
$mnav_time_unit = tmpl_draw_select_opt("60\n3600\n86400\n604800\n2635200", "Minute(s)\nHour(s)\nDay(s)\nWeek(s)\nMonth(s)", $unit, '', '');
if (!$rng) {
$mnav_pager = $rng = '';
$unit = 86400;
$mnav_data = '<br />
<div align="center">
示例9: pager_replace
$page_next_url = $arg . '&start=' . $page_start . $suf;
$page_last_url = $arg . '&start=' . $page_start_2 . $suf;
} else {
$page_next_url = $page_last_url = $arg;
pager_replace($page_next_url, $page_start, $count);
pager_replace($page_last_url, $page_start_2, $count);
}
$page_pager_data .= !$js_pager ? ' <a href="' . $page_next_url . '" class="PagerLink">></a> <a href="' . $page_last_url . '" class="PagerLink">»</a>' : ' <a href="javascript://" onClick="' . $page_next_url . '" class="PagerLink">></a> <a href="javascript://" onClick="' . $page_last_url . '" class="PagerLink">»</a>';
}
return !$js_pager ? '<font class="SmallText"><b>Pages (' . $ttl_pg . '):
[' . $page_pager_data . ']
</b></font>' : '<font class="SmallText"><b>Pages (' . $ttl_pg . '):
[' . $page_pager_data . ']
</b></font>';
}
ses_update_status($usr->sid, '<a href="/egroupware/fudforum/3814588639/index.php?t=polllist">Reviewing Available Polls</a>');
if (!isset($_GET['oby'])) {
$_GET['oby'] = 'DESC';
}
if (!isset($_GET['start']) || !($start = (int) $_GET['start'])) {
$start = 0;
}
if (isset($_GET['uid']) && ($uid = (int) $_GET['uid'])) {
$usr_lmt = ' p.owner=' . $uid . ' AND ';
} else {
$uid = $usr_lmt = '';
}
if ($_GET['oby'] == 'ASC') {
$oby = 'ASC';
$oby_rev_val = 'DESC';
} else {
示例10: error_dialog
{
if (!$fid) {
$fid = 'f.id';
}
if (_uid) {
$join = ' INNER JOIN phpgw_fud_group_cache g1 ON g1.user_id=2147483647 AND g1.resource_id=' . $fid . ' LEFT JOIN phpgw_fud_group_cache g2 ON g2.user_id=' . _uid . ' AND g2.resource_id=' . $fid . ' ';
$fields = ' (CASE WHEN g2.id IS NOT NULL THEN g2.group_cache_opt ELSE g1.group_cache_opt END) AS group_cache_opt ';
} else {
$join = ' INNER JOIN phpgw_fud_group_cache g1 ON g1.user_id=0 AND g1.resource_id=' . $fid . ' ';
$fields = ' g1.group_cache_opt ';
}
}
if (!($FUD_OPT_2 & 512)) {
error_dialog('Tree view of the topic listing has been disabled.', 'The administrator has disabled the tree view of the topic listing, please use the flat view instead.');
}
ses_update_status($usr->sid, 'Browsing forum (tree view) <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=threadt&frm_id=' . $frm->id . '">' . htmlspecialchars($frm->name) . '</a>', $frm->id);
$announcements = '';
if ($frm->is_ann) {
$today = gmdate('Ymd', __request_timestamp__);
$res = uq('SELECT a.subject, a.text FROM phpgw_fud_announce a INNER JOIN phpgw_fud_ann_forums af ON a.id=af.ann_id AND af.forum_id=' . $frm->id . ' WHERE a.date_started<=' . $today . ' AND a.date_ended>=' . $today);
while ($r = db_rowarr($res)) {
$announcements .= '<tr><td class="AnnText" colspan="' . $ann_cols . '"><font class="AnnSubjText">' . $r[0] . '</font><br />' . $r[1] . '</td></tr>';
}
}
function tmpl_create_forum_select($frm_id, $mod)
{
$prev_cat_id = 0;
$selection_options = '';
if (!isset($_GET['t']) || $_GET['t'] != 'thread' && $_GET['t'] != 'threadt') {
$dest = t_thread_view;
} else {
示例11: read_msg_body
function read_msg_body($off, $len, $file_id)
{
$fp = register_fp($file_id);
fseek($fp, $off);
return fread($fp, $len);
}
$adm = $usr->users_opt & 1048576;
if (!$adm && !($FUD_OPT_1 & 8388608) && (!($FUD_OPT_1 & 4194304) || !_uid)) {
std_error('disabled');
}
if (isset($_GET['js_redr'])) {
define('plain_form', 1);
$adm = 0;
}
$TITLE_EXTRA = ': Trova utenti';
ses_update_status($usr->sid, 'Cerca utenti');
if (!isset($_GET['start']) || !($start = (int) $_GET['start'])) {
$start = 0;
}
$count = $MEMBERS_PER_PAGE;
if (isset($_GET['pc'])) {
$ord = 'posted_msg_count DESC';
} else {
if (isset($_GET['us'])) {
$ord = 'alias';
} else {
$ord = 'id DESC';
}
}
$usr_login = !empty($_GET['usr_login']) ? trim($_GET['usr_login']) : '';
$usr_email = !empty($_GET['usr_email']) ? trim($_GET['usr_email']) : '';
示例12: th_inc_view_count
m.id=' . $mid . ' AND m.apr=1');
if (!isset($_GET['prevloaded'])) {
th_inc_view_count($th);
if (_uid) {
if ($frm->last_view < $msg_obj->post_stamp) {
user_register_thread_view($th, $msg_obj->post_stamp, $mid);
}
if ($frm->last_forum_view < $msg_obj->post_stamp) {
user_register_forum_view($frm->forum_id);
}
}
$subscribe_status = $frm->subscribed ? '| <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=tree&th=' . $th . '&notify=' . $usr->id . '&' . _rsid . '&opt=off&mid=' . $mid . '" title="Smetti di ricevere notifiche dei nuovi messaggi in questo topic">Cancella la tua iscrizione dal topic</a> ' : '| <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=tree&th=' . $th . '&notify=' . $usr->id . '&' . _rsid . '&opt=on&mid=' . $mid . '" title="Ricevi una notifica di nuovi messaggi all'interno di questo topic">Iscriviti al topic</a> ';
} else {
$subscribe_status = '';
}
ses_update_status($usr->sid, 'Legge il topic (vista ad albero) <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=tree&th=' . $frm->id . '&' . _rsid . '">' . $frm->subject . '</a>', $frm->id);
function tmpl_create_forum_select($frm_id, $mod)
{
$prev_cat_id = 0;
$selection_options = '';
if (!isset($_GET['t']) || $_GET['t'] != 'thread' && $_GET['t'] != 'threadt') {
$dest = t_thread_view;
} else {
$dest = $_GET['t'];
}
if (!_uid) {
/* anon user, we can optimize things quite a bit here */
$c = q('SELECT f.id, f.name, c.name, c.id FROM phpgw_fud_group_cache g INNER JOIN phpgw_fud_fc_view v ON v.f=g.resource_id INNER JOIN phpgw_fud_forum f ON f.id=g.resource_id INNER JOIN phpgw_fud_cat c ON c.id=f.cat_id WHERE g.user_id=0 AND group_cache_opt>=1 AND (group_cache_opt & 1) > 0 ORDER BY v.id');
while ($r = db_rowarr($c)) {
if ($prev_cat_id != $r[3]) {
$prev_cat_id = $r[3];
示例13: buddy_add
if (!empty($usr->buddy_list)) {
$usr->buddy_list = @unserialize($usr->buddy_list);
}
if (($buddy_id = q_singleval('SELECT id FROM phpgw_fud_users WHERE id=' . $_GET['add'])) && !isset($usr->buddy_list[$buddy_id])) {
buddy_add(_uid, $buddy_id);
}
check_return($usr->returnto);
}
if (isset($_GET['del']) && ($_GET['del'] = (int) $_GET['del'])) {
buddy_delete(_uid, $_GET['del']);
/* needed for external links to this form */
if (isset($_GET['redr'])) {
check_return($usr->returnto);
}
}
ses_update_status($usr->sid, 'Browsing own buddy list');
if ($FUD_OPT_1 & 8388608 || _uid && $FUD_OPT_1 & 4194304) {
$buddy_member_search = '<br>Or use the <a href="javascript://" class="GenLink" onClick="javascript: window_open(\'/egroupware/fudforum/3814588639/index.php?t=pmuserloc&' . _rsid . '&js_redr=buddy_add.add_login&overwrite=1\', \'user_list\', 250,250);">Find User</a> feature to find a person.';
} else {
$buddy_member_search = '';
}
$tabs = '';
if (_uid) {
$tablist = array('Settings' => 'register', 'Subscriptions' => 'subscribed', 'Referrals' => 'referals', 'Buddy List' => 'buddy_list', 'Ignore List' => 'ignore_list');
if (isset($_POST['mod_id'])) {
$mod_id_chk = $_POST['mod_id'];
} else {
if (isset($_GET['mod_id'])) {
$mod_id_chk = $_GET['mod_id'];
} else {
$mod_id_chk = null;
示例14: exit
if (_uid === '_uid') {
exit('sorry, you can not access this page');
}
$section = isset($_GET['section']) ? $_GET['section'] : '';
switch ($section) {
case 'usermaintance':
case 'boardusage':
case 'readingposting':
$file = '/web/htdocs/www.milanin.com/home/egroupware/fudforum/3814588639/theme/italian/help/' . $section . '.hlp';
$return_top = '<div align="center" class="GenText">[ <a href="/egroupware/fudforum/3814588639/index.php?t=help_index&' . _rsid . '" class="GenLink">Torna all'indice</a> ]</div>';
break;
default:
$file = '/web/htdocs/www.milanin.com/home/egroupware/fudforum/3814588639/theme/italian/help/faq_index.hlp';
$return_top = '';
}
ses_update_status($usr->sid, 'Legge le <a href="/egroupware/fudforum/3814588639/index.php?t=help_index" class="GenLink">F.A.Q.</a>');
$TITLE_EXTRA = ': F.A.Q.';
$str = file_get_contents($file);
$tt_len = strlen('TOPIC_TITLE:');
$th_len = strlen('TOPIC_HELP:');
$help_section_data = '';
while (($str = strstr($str, 'TOPIC_TITLE:')) !== false) {
$end_of = strpos($str, "\n");
$topic_title = substr($str, $tt_len, $end_of - $tt_len);
$str = strstr($str, 'TOPIC_HELP:');
$str = substr($str, $th_len);
$end_of_str = strstr($str, 'TOPIC_TITLE:');
$topic_help = substr($str, 0, strlen($str) - strlen($end_of_str));
$str = $end_of_str;
$rs = _rsid;
$topic_help = str_replace('%_rsid%', $rs, $topic_help);
示例15: header
}
/* redirect the user to their message */
header('Location: /egroupware/fudforum/3814588639/index.php?t=' . $t . '&goto=' . $msg_post->id . '&' . _rsidl);
exit;
}
}
/* Form submitted and user redirected to own message */
}
/* $prevloaded is SET, this form has been submitted */
if ($reply_to || $th_id && !$msg_id) {
ses_update_status($usr->sid, 'Risponde a <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=msg&goto=' . $thr->root_msg_id . '">' . $thr->subject . '</a> in ' . $frm->name . '', $frm->id, 0);
} else {
if ($msg_id) {
ses_update_status($usr->sid, 'Risponde a <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=msg&goto=' . $thr->root_msg_id . '">' . $thr->subject . '</a> in ' . $frm->name . '', $frm->id, 0);
} else {
ses_update_status($usr->sid, 'Scrive un nuovo topic in <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=thread&frm_id=' . $frm->id . '">' . $frm->name . '</a>', $frm->id, 0);
}
}
if (isset($_POST['spell'])) {
$GLOBALS['MINIMSG_OPT']['DISABLED'] = true;
}
$start = '';
if ($th_id && empty($GLOBALS['MINIMSG_OPT']['DISABLED'])) {
$GLOBALS['DRAWMSG_OPTS']['NO_MSG_CONTROLS'] = 1;
$count = $usr->posts_ppg ? $usr->posts_ppg : $POSTS_PER_PAGE;
$start = isset($_GET['start']) ? (int) $_GET['start'] : (isset($_POST['minimsg_pager_switch']) ? (int) $_POST['minimsg_pager_switch'] : 0);
$total = $thr->replies + 1;
if ($reply_to && !isset($_POST['minimsg_pager_switch']) && $total > $count) {
$start = $total - q_singleval("SELECT count(*) FROM phpgw_fud_msg WHERE thread_id=" . $th_id . " AND apr=1 AND id>=" . $reply_to);
$msg_order_by = 'ASC';
} else {