当前位置: 首页>>代码示例>>PHP>>正文


PHP lkc函数代码示例

本文整理汇总了PHP中lkc函数的典型用法代码示例。如果您正苦于以下问题:PHP lkc函数的具体用法?PHP lkc怎么用?PHP lkc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了lkc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: smsreader

function smsreader($r, $p, $o)
{
    $o = '+' . $o;
    foreach ($r as $k => $v) {
        $numbr = $v[0] ? $v[0] : $v[1];
        $numb = substr($numbr, 1);
        $day = $v[2] . $v[3] . $v[4] . $v[5] . $v[6] . $v[7];
        if ($v[7]) {
            $time = mktime($v[5], $v[6], $v[7], $v[3], $v[4], $v[2]);
        }
        if ($v[0] && $v[0] == $o or $v[1] && $v[1] == $o) {
            //szFromNumber
            //$day=$v['uYear'].$v['uMonth'].$v['uDay'].$v['uHour'].$v['uMinute'].$v['uSecond'];
            if ($time) {
                $realday = mkday($time, 'ymd.hi');
            }
            $ret .= $day . br() . $v[8] . br() . hr();
            $who = ($v[0] ? 'From' : 'To') . ':' . $numbr;
            $rb[$time] = divc('panel', $who . ', ' . $realday . br() . divc('justy', $v[8]));
        } else {
            $rb[$time] .= lkc('', '/plugin/smsreader/' . $p . '/' . $numb, $numb) . ' ';
        }
    }
    ksort($rb);
    //p($rb);
    $ret = implode(hr(), $rb);
    //echo $ret;
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:29,代码来源:smsreader.php

示例2: plug_backup

function plug_backup($p, $o)
{
    $p = $p ? $p : '';
    $o = '1';
    //philumnet//philuminfo
    $user = 'root';
    $host = 'localhost';
    $pasw = base64_decode('bGdyM3Zkdng=');
    $base = $p;
    //exc('mkdir /home/w41k/backup');
    //$f='/var/backups/'.$p.date('ymd').'.sql';
    $f = '/_backup/' . $p . date('ymd') . '.sql';
    $fa = '/home/nfo' . $f;
    #dump
    $d = 'mysqldump -u' . $user . ' -h' . $host . ' -p' . $pasw . ' ' . $base . ' > ' . $fa;
    #tar dir
    //$f='/_backup/'.$p.date('ymd').'.tgz'; $d='tar -zcf /home/nfo'.$f.' /var/lib/mysql/'.$p; $o='';
    #dump
    //$d='mysqldump --user='.$user.' --host='.$host.' --password='.$pasw.' '.$base.' > '.$fa;
    #restore
    //$d='mysql -u root -p maBase < '.$fa;
    #copy dir
    //cp -r /répertoire_source /répertoire_destination
    if (!is_file($f) && $d) {
        exc($d);
        if ($o) {
            exc('gzip -r ' . $fa);
        }
    }
    //gzip
    $ret = lkc('', $f . '.gz', $p);
    //substr(,10)
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:34,代码来源:backup.php

示例3: plug_erase

function plug_erase($del, $dir)
{
    //$del='';
    //$dir='';
    if ($_SESSION['auth'] < 6) {
        return 'no';
    }
    echo $del . '-' . $dir . '-';
    if ($del) {
        unlink($del);
    } elseif ($dir && strpos($dir, '/') != false) {
        rmdir_r($dir);
    }
    //$func='rmdir_r';
    //$r=explore($dir); explode_dir($r,$dir,$func?$func:"removef"); p($r);
    //walk_dir($dir,"removef");
    //rmdir($dir);
    //chmod($dir,0777);
    if ($del) {
        return $del;
    }
    if ($dir) {
        return $dir;
    }
    return lkc('', '/plug/erase.php?del=', 'del file');
}
开发者ID:philum,项目名称:cms,代码行数:26,代码来源:erase.php

示例4: plug_sendmail

function plug_sendmail()
{
    $ret .= lkc("", "sendmail.php", "index") . br();
    $ip = hostname();
    $arr = array("from" => "text", "dest" => "text", "suj" => "text", "msg" => "textarea", "ok" => "submit");
    if ($_POST["submit"] == "ok") {
        foreach ($arr as $k => $v) {
            ${$k} = $_POST[$k];
            $ret .= $k . ': ' . ${$k} . "\n";
        }
        if ($ip == $myip) {
            $ret .= nl2br($ret);
            mail($dest, $suj, $msg, 'From: ' . $from . "\n", "");
        } else {
            $ret .= "_specify_your_ip_in_source" . br();
        }
    }
    $f = "data/sendmail.txt";
    //$ret.=lkc("",$f,"txt").br();
    $t .= date("ymd.Hi", time()) . "\n" . $ip . "\n" . $ret . "---\n";
    $t .= read_file($f);
    write_file($f, $t . "\n");
    //write_file($f,$t,"a+");
    $ret .= make_form_b($arr, "");
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:26,代码来源:sendmail.php

示例5: tg_list

function tg_list($r, $go)
{
    if ($r) {
        foreach ($r as $k => $v) {
            $ret .= lkc('popbt', htac($go) . $k, $k . ' (' . $v . ')');
        }
    }
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:9,代码来源:tags.php

示例6: ascii_menu

function ascii_menu($s, $l)
{
    $s = $s ? $s : 128;
    $l = $l ? $l : 1000;
    $ret .= lj('', 'ascii_plug___ascii_ascii*j_' . ($s - $l) . '-' . $l, chr_b(9664));
    $ret .= lj('', 'ascii_plug___ascii_ascii*j_' . ($s + $l) . '-' . $l, chr_b(9658));
    $ret .= lkc('', '/plug/ascii/' . $s . '-' . $l, $s . '-' . ($s + $l)) . ' ';
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:9,代码来源:ascii.php

示例7: plug_deploy

function plug_deploy($deploy)
{
    $qb = $_SESSION['qb'];
    $USE = $_SESSION['USE'];
    $raed = suj_of_id($deploy);
    $nl = $_GET['nl'] ? $_GET['nl'] : "nl";
    if ($deploy && $USE) {
        //prep
        list($qauth, $subj) = sql('name,suj', 'qda', 'r', 'id="' . $deploy . '"');
        $msg = sql('msg', 'qdm', 'v', 'id="' . $deploy . '"');
        if ($USE == $qauth or auth(5)) {
            $http = host();
            if (!$_POST['dpl']) {
                reqp('mail');
                $qmail = mail_list_tosend();
                $ret .= form("/?read={$deploy}&deploy={$deploy}&nl=nlb", txarea('dpl" maxlength="1000', $qmail, 40, 10) . br() . checkbox("dpf", "ok", "html", 1) . checkbox("multiple", "ok", "each_one", 1) . input2('submit', "send", nms(50), 'popbt'));
            } else {
                $htacc = urlread($deploy);
                $_SESSION['nl'] = $nl;
                //deploy
                if ($_POST['dpf'] == "ok") {
                    $mail_format = "html";
                    $txt = format_txt($msg, $nl, $deploy);
                    $txt = html_entity_decode($txt);
                    $txt = str_replace('href="/', 'href="' . $http . '/', $txt);
                    $msg = lkc("", $http . $htacc, bal("h2", $subj));
                    $msg .= divc("panel justy", $txt);
                } else {
                    $mail_format = "txt";
                    $msg = clean_internaltag($msg);
                    $msg = html_entity_decode($msg);
                }
                $_SESSION['nl'] = "";
                //send
                $sender = sql('mail', 'qdu', 'v', 'name="' . $USE . '"');
                $lstm = str_replace("\n", ",", $_POST['dpl']);
                $lstm = str_replace("\r", ",", $lstm);
                $listmail = explode(",", trim($lstm));
                if ($_POST['multiple'] == "ok" && is_array($listmail)) {
                    $sentto = send_mail_r($listmail, $mail_format, $qb . ' :: ' . $raed, $msg, $sender, $htacc);
                } else {
                    $sentto = $_POST['dpl'];
                    $vm = str_replace(array(",", ";", "\n", " "), ",", $sentto);
                    send_mail($mail_format, $vm, $qb . ' :: ' . $raed, $msg, $sender, $htacc);
                }
                $ret .= lkc("popbt", '/?read=' . $deploy, 'article ' . $deploy . ' sent to: ' . $sentto);
            }
        } else {
            $ret .= btn("popdel", "forbidden");
        }
    }
    //if($_POST['dpl'])return $ret;
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:54,代码来源:deploy.php

示例8: loged_j

function loged_j($usr, $rg, $t, $tl)
{
    if ($t) {
        $ta = btn("txtsmall", $t);
    }
    if ($_SESSION['USE'] == '_' or !is_numeric($rg)) {
        $nam = nameofauthes($_SESSION["prmb"][11]);
        return '<form id="login" name="form2" method="post" action="/?log=on" onKeyPress="checkEnter(event,\'login\')">' . $ta . autoclic("user", $nam, $tl, "100", "txtx") . ' ' . autoclic("password", "pass", "pass", $tl, "50", "txtx") . ' ' . submitj('txtx" title="log:in / nouvel utilisateur', "login", "ok") . ' </form>';
    } else {
        return lkc("txtx", "/?log=out", "log_out") . br();
    }
}
开发者ID:philum,项目名称:cms,代码行数:12,代码来源:login.php

示例9: msqlxread

function msqlxread()
{
    $page = $_GET['page'] ? $_GET['page'] : 1;
    $npg = 10;
    require 'plug/microxml.php';
    $min = ($page - 1) * $npg;
    $max = $page * $npg;
    $i = 0;
    $site = 'http://philum.net';
    //$site=philum();//father_server
    $r = clkt($site . '/msql/clients/philum_tickets');
    unset($r['_menus_']);
    if ($r) {
        foreach ($r as $k => $v) {
            //array('host','hub','msg','day','ip')
            if ($v[0] == $_SERVER['HTTP_HOST'] && $v[1] == ses('qb')) {
                $del = lj('txtyl', 'tickets_plug___tickets_tickets*j_' . $k . '_x', 'x');
            } else {
                $del = '';
            }
            $answ = ljb('popbt', 'jumpMenu_text', 'tckansw_' . ($v[5] ? $v[5] : $k), nms(91));
            $rb[$k] .= btn('txtsmall2', $v[3]) . ' ';
            $rb[$k] .= lkc('txtsmall', 'http://' . $v[0] . '/' . $v[1], $v[1]) . ' ';
            if (!$v[5]) {
                $rb[$k] .= $answ . ' ';
            }
            $rb[$k] .= $del . br();
            $msg = $v[2];
            if (!function_exists('correct_txt')) {
                req('tri,pop,spe');
            }
            //$msg=correct_txt($msg,'','sconn');
            if ($i >= $min && $i < $max) {
                $msg = miniconn($msg);
            }
            $i++;
            $rb[$k] .= divc('" style="width:400px;', nl2br(stripslashes($msg))) . br();
            if ($v[5]) {
                $rb[$v[5]] .= div(ats('margin-left:40px;'), $rb[$k]);
                unset($rb[$k]);
            }
        }
    }
    if ($rb) {
        rsort($rb);
    }
    return by_pages($rb, $page);
}
开发者ID:philum,项目名称:cms,代码行数:48,代码来源:tickets.php

示例10: ftp_render

function ftp_render($r)
{
    $j = 'popup_plup___ftp_ftp*ops_';
    if ($r) {
        foreach ($r as $k => $v) {
            $f = $v[2];
            $t = $v[3];
            $rb[$k][] = lkc('txtbox', $f, $t);
            $rb[$k][] = lj('txtx', $j . 'rename_' . ajx($f), 'rename');
            $rb[$k][] = lj('txtx', $j . 'delete_' . ajx($f), 'del');
            $rb[$k][] = lj('txtx', $j . 'copy_' . ajx($f), 'copy to');
            $rb[$k][] = lj('txtx', $j . 'infos_' . ajx($f), 'infos');
        }
    }
    return make_divtable($rb);
}
开发者ID:philum,项目名称:cms,代码行数:16,代码来源:ftp.php

示例11: plug_slct

function plug_slct()
{
    $r = msql_read('system', 'program_plugs', '', 1);
    //p($r);
    //ksort($r);
    foreach ($r as $k => $v) {
        if ($v[2] == '1' && !$v[3] && !$v[5] && $v[1]) {
            $rb = tri_tag(str_replace(' ', ',', $v[1]));
        }
        if ($rb) {
            foreach ($rb as $kb => $vb) {
                $ret[$vb][] = lkc('', '/plug/' . $k, $k);
            }
        }
    }
    return divc('', make_tabs($ret));
}
开发者ID:philum,项目名称:cms,代码行数:17,代码来源:plug.php

示例12: vmailsend

function vmailsend($id, $o, $res)
{
    req('pop,spe,tri,mod');
    $http = host();
    $htacc = urlread($id);
    list($from, $to, $txt, $suj) = ajxr($res);
    if (strpos($to, "@") !== false) {
        $suj = sql('suj', 'qda', 'v', 'id="' . $id . '"');
        $msg = divc("panel justy", $txt);
        $msg .= lkc("", $http . $htacc, bal("h2", $suj));
        $msg .= divc("panel justy", read_msg($id, "nlb"));
        send_mail("html", $to, $suj, $msg, $from ? $from : hostname(), $htacc);
        return btn("popbt", nms(34) . ' ' . nms(79) . ' ' . nms(36) . ': ' . $to);
    } else {
        return btn("popdel", 'error' . $to);
    }
}
开发者ID:philum,项目名称:cms,代码行数:17,代码来源:mail.php

示例13: plug_retape

function plug_retape($p, $o)
{
    $p = $p ? $p : 1000;
    $o = $o ? $o : 1;
    $n = $p * $o;
    $w = 'id>' . ($n - $p) . ' AND id<' . $n;
    $w = 'id=10';
    //
    req('pop');
    $rq = sql('id,msg', 'qdm', 'q', $w);
    if ($rq) {
        while ($r = mysql_fetch_row($rq)) {
            retape($r[1], $r[0]);
        }
    }
    //echo $r[1];//
    $ret = lkc('txtx', '/plug/retape/' . $p . '/' . ($o + 1), $o + 1);
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:19,代码来源:retape.php

示例14: addf_inject

function addf_inject()
{
    calltar();
    $ra = msql_read('server', 'edition_typos', '');
    if ($ra) {
        $vra = array_keys_r($ra, 0, 'k');
    }
    $r = msql_read('', 'public_addfonts', '');
    if ($r) {
        $vr = array_shift($r);
    }
    $dir = 'fonts/';
    $diru = 'users/' . $_SESSION['qb'] . '/fonts/';
    if (!is_dir($diru)) {
        mkdir($diru);
    }
    if ($r) {
        foreach ($r as $k => $v) {
            $font = normalize($v[0]);
            if (!$vra[$font]) {
                $rb = array($font, '', '', '', '');
                for ($i = 1; $i < count($v); $i++) {
                    $f = $font . '.' . $vr[$i];
                    $rc[] = $dir . $f;
                    $ret .= addf_copy($v[$i], $dir . $f) . br();
                }
                //u
                //msql_modif('server','edition_typos',$rb,$dfb,'push','');
                //modif_vars('','public_addfonts',$k,'del');
                if ($rc) {
                    PclTarCreate($diru . $font . '.tar.gz', $rc, '', '', '');
                }
                $ret .= btn('txtblc', lka($diru . $font . '.tar.gz')) . ' ' . btn('txtx', 'saved') . br();
            } else {
                $ret .= $font . ' already_exists' . br();
            }
        }
    }
    //if($rb)msql_modif('server','edition_typos',$rb,$dfb,'add','');
    $ret .= lkc('txtbox', '/?admin=fonts&inject==', 'inject datas (admin/fonts)') . br();
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:42,代码来源:addfonts.php

示例15: plug_htaccess

function plug_htaccess($d)
{
    $here = 'htaccess';
    $default = msql_read('system', 'default_htaccess', 1);
    $actual = read_file('.' . $here);
    if (!$actual or $d) {
        $actual = $default;
        $ret .= btn('txtyl', 'default_loaded') . br();
    }
    $ret .= picto('alert�24') . ' ' . btn('txtcadr', 'critical_operations') . ' ';
    $ret .= lj('txtbox', 'txt_plug__4_' . $here . '_' . $here . '*default', 'default') . ' ';
    $ret .= lj('txtbox', 'cbk_plug__xd_' . $here . '_' . $here . '*mkdefault___txt', 'backup') . ' ';
    $ret .= msqlink('system', 'default_htaccess') . ' ';
    $ret .= lkc('txtx', '.htaccess', 'link') . ' ';
    $ret .= hlpbt('htaccess') . ' ' . btd('cbk', '') . ' ';
    $ret .= btd('bts', lj('txtbox', 'cbk_plug__xd_' . $here . '_' . $here . '*j___txt', 'save')) . br() . br();
    $ret .= txarea('txt', $actual, 120, 26) . br();
    $ret .= lkt('txtblc', 'http://htaccess.madewithlove.be/', 'tests');
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:20,代码来源:htaccess.php


注:本文中的lkc函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。