本文整理汇总了PHP中ses函数的典型用法代码示例。如果您正苦于以下问题:PHP ses函数的具体用法?PHP ses怎么用?PHP ses使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ses函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: plug_chat
function plug_chat($p, $msg, $res = '')
{
//$_SESSION['muse']='';
$p = $p ? normalize($p) : 'public';
ses('muse', $res ? ajxg($res) : ses('USE'));
return chatform($p, $msg) . divd('cht' . $p, chatread($p));
}
示例2: poll_init
function poll_init()
{
$db = plugin_func('install', 'install_db', ses('qd'));
if ($db['_poll']) {
mysql_query($db['_poll']) or die($db['_poll']);
}
}
示例3: plug_msqedit
function plug_msqedit($p, $o)
{
ses('msqdt', ses('qb') . '_' . $p);
$bt = msqedit($p, $o);
//$bt.=msqlink('',nod($p));
return $bt . $ret;
}
示例4: matrix_j
function matrix_j($p, $o, $res = '')
{
list($p, $o) = ajxp($res, $p, $o);
//$resultant des champs
$ret = matrix_build($p, $o);
return plugin_func('svg', 'svg_j', $ret, ses('sz'));
}
示例5: plug_microform
function plug_microform($p, $id)
{
$rid = 'mfr' . randid();
//echo $p.'-'.$id;
$nod = ses('mform', ses('qb') . '_microform_' . $id);
req('pop');
ses('mformj', $rid . '_plug___microform_plug*microform_' . ajx($p) . '_' . $id);
reqp('msql');
$msq = new msql('', $nod);
//table
list($p, $tp) = explode('§', $p);
$rb = mform_mr($p);
//p($rb);
$msq->create($rb);
$ret .= make_form($p, 'mfr' . $id, '_plug___microform_mform*j_' . ajx($p, '') . '_' . $id . '_') . br();
if (auth(4)) {
$ret .= msqlink('users', ses('mform')) . ' ' . btn('txtsmall2', $nod) . ' ';
}
if ($tp == 1) {
$ret .= mform_read($id);
} elseif ($tp) {
$ret .= plugin('msqtemplate', $nod, $tp);
}
return divd($rid, $ret . $bt);
}
示例6: sql_init
function sql_init($t)
{
$db = plugin_func('install', 'install_db', ses('qd'));
if ($db['_' . $t]) {
mysql_query($db['_' . $t]) or die(mysql_error() . $db['_' . $t]);
}
}
示例7: pad_write
function pad_write($p, $o, $res)
{
$pad = 'pad' . ses('USE') . date('ymd');
$f = 'plug/_data/' . $pad . '.txt';
write_file($f, ajxg($res));
return lkt('popbt', root() . $f, $pad);
}
示例8: plug_negcss
function plug_negcss($p, $o)
{
if ($n = $_SESSION['prmb'][5]) {
$nod = ses(qb) . '_auto';
} else {
$nod = ses(qb) . '_design_' . $_SESSION['prmd'];
}
$f = 'css/' . $nod . '_neg.css';
$tima = ftime('css/' . $nod . '.css', 'ymdhi');
$timb = ftime($f, 'ymdhi');
if ($tima > $timb) {
req('styl');
if ($n = $_SESSION['prmb'][5]) {
if ($n < 4) {
$r = msql_read('system', 'default_css_' . $n);
} elseif (is_numeric($n)) {
$r = msql_read('design', 'public_design_' . $n);
}
} else {
$r = msql_read('design', $nod);
}
$clr = $_SESSION['clrs'][$_SESSION['prmd']];
foreach ($clr as $k => $v) {
if ($v) {
$klr[$k] = invert_color($v, 0);
}
}
$_SESSION['clrs'][$_SESSION['prmd']] = $klr;
build_css($f, $r);
}
}
示例9: plug_umdico
function plug_umdico($p, $o)
{
ses('qdvoc', qd('umvoc'));
ses('qdvoc_b', qd('umvoc_arts'));
$ret = udc_build($p);
$ret .= msqlink('', 'ummo_umvoc_1', '') . ' ';
$ret .= lkt('', '/plug/umvoc', picto('link'));
return $ret;
}
示例10: plug_imtx
function plug_imtx($p, $o)
{
$rid = 'plg' . randid();
ses('out', '/plug/_data/imtx.png');
$j = $rid . '_plug__2_imtx_imt*j_' . $w . '_' . $h . '_txtarec';
$sj = 'SaveJ(\'' . $j . '\')';
$ret .= txarea('txtarec', $p, 44, 14, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj));
$ret .= lj('', $j, picto('reload')) . ' ';
return $ret . divd($rid, image(root() . ses('out')));
}
示例11: natwords
function natwords()
{
$r = sql_inner('msg', 'qdm', 'qda', 'id', 'vr', ' ' . ses('qda') . '.day>"' . calc_date(1) . '"');
foreach ($r as $k => $v) {
$ra = addwords($v, $ra);
}
//p($ra);
$ra = array_flip($ra);
return $ra;
}
示例12: plug_arts
function plug_arts($p, $o)
{
$rid = 'plg' . randid();
Head::add('csslink', '/css/' . ses('qb') . '_design_' . ses('prmd'));
$p = $p ? $p : 'nbdays=2&preview=auto';
//priority=>1&priority=<4
$ret .= input(1, 'params', $p, '', 30) . ' ';
$ret .= lj('', $rid . '_plug__3_arts_arts*j__nl_params', picto('reload')) . ' ';
return divd('page', $ret . divd($rid, divd('content', arts_j($p, '', ''))));
}
示例13: plug_ummdico
function plug_ummdico($p, $o)
{
//umm_sav();
ses('qu', 'umm_dico');
$ret = bal('h3', 'Recherche sur le dictionnaire des vocables');
$ret .= input(1, 'search', '', '') . ' ';
$ret .= checkbox('chk', '1', 'phonétique', 0);
$ret .= lj('txtbox', 'ucbk_plug___ummdico_ud*search_1_2_search|chk', 'chercher') . br() . br();
$ret .= divd('ucbk', '') . br();
//callback
return $ret;
}
示例14: plug_rss
function plug_rss($hub, $preview)
{
if ($hub) {
$_GET['hub'] = $hub;
}
if ($preview == '=' or !$preview) {
$preview = 2;
}
if (!$hub) {
return slct_menus(ses('mn'), '/plug/rss/', '', '', '', 'kv');
}
require_once '../prog/lib.php';
req('pop,art');
require '../plug/sys.php';
require '../plug/lib.php';
$fnod = $_SESSION["qb"] . '_cache';
$main = msql_read_b('users', $fnod, '', 1);
$nb_arts = count($main);
$lastid = lastid('qda');
$last_art = $main[$lastid];
$newest = key($main);
$oldest = array_pop($main);
$nb_days = round((time() - $oldest[0]) / 86400);
$cache = 1;
$f = '../plug/_data/' . $_SESSION["qb"] . '_' . $newest . '_' . $preview . '.xml';
if (is_file($f) && !$_GET['rebuild'] && $cache) {
return read_file($f);
} else {
$http = host();
if ($preview) {
req('tri,pop,art');
}
//spe,mod
$xml .= '<' . '?xml version="1.0" encoding="iso-8859-1"?' . '>' . "\n";
$xml .= '<rss version="2.0">' . "\n";
$xml .= '<channel>' . "\n";
$xml .= bal('title', $_SESSION['qb']) . "\n";
$xml .= bal('link', $http) . "\n";
$xml .= bal('description', $nb_arts . ' articles / ' . $nb_days . ' days - preview=' . $preview . ' - static url=' . $http . substr($f, 2)) . "\n";
$xml .= bal('language', 'fr') . "\n";
$xml .= bal('lastBuildDate', date("r", $last_art[0])) . "\n";
if ($main) {
$xml .= flux_xml($main, $preview) . "\n";
}
$xml .= '</channel>' . "\n";
$xml .= '</rss>' . "\n";
write_file($f, $xml);
rss_del_old($newest);
}
//eye
eye('rss');
return $xml;
}
示例15: menu
static function menu($p, $o, $rid)
{
$ret = inp('inp', $p ? $p : 1) . ' ';
$ret .= lj('', $rid . '_app___slides_j__' . $rid . '_inp', picto('reload')) . ' ';
if (auth(6)) {
$ret .= lj('', 'popup_plupin___msqedit_slides*' . $p . '_val', picto('edit')) . ' ';
$j = 'popup_msqledit___users_' . ajx(ses('nodslid')) . '_';
$ret .= lj('', $j . $p . '_1', picto('editxt')) . ' ';
$ret .= lj('', 'popup_plup___msqedit_msqdt*add_slides*' . $p . '_val', picto('add')) . ' ';
}
return divc('', $ret);
}