Esempio n. 1
0
File: pdf.php Progetto: philum/cms
function plug_pdf($p, $o)
{
    $_SESSION['call'] = '';
    if (!$_GET['nom']) {
        Head::add('csslink', '../css/_admin.css');
        Head::add('jslink', '../progb/ajx.js');
        $ret = Head::get();
    }
    $ret .= arts_menus($dya, $dyb);
    $ret .= divd('call', '');
    $ret .= divd('pdf', '');
    return $ret;
}
Esempio n. 2
0
File: upim.php Progetto: philum/cms
    Head::add('csslink', '../css/_admin.css');
    //Head::add('jslink','../js/upload.js');
    Head::add('csscode', '
.upload_form_cont {border:1px solid transparent; color:#000;}
.info {background:#eee; border:1px solid #ddd; font-weight:bold; margin:20px;}
.info > div {padding:10px 15px;}
.info > h2 {padding:0 15px;}
#dropArea {background:#ddd; border:3px dashed #000; font-size:32px; height:50px; line-height:50px; margin:10px; text-align:center;}
#dropArea.hover {background:#ccc;}
#result .success, #result .failure {font-size:12px; margin-bottom:10px; padding:5px; border-radius:5px;}
#result .success {background-color:#77fc9f;}
#result .failure {background-color:#fcc577;}
}');
}
upim_h();
echo Head::get();
function fsize_b($d)
{
    $u = array('B', 'KB', 'MB');
    return @round($d / pow(1024, $i = floor(log($d, 1024))), 1) . ' ' . $u[$i];
}
function upload_j()
{
    //p($_FILES);
    if (isset($_FILES['myfile']) && $_SESSION['uproot']) {
        $tmp = $_FILES['myfile']['tmp_name'];
        $t = $_FILES['myfile']['type'];
        $s = fsize_b($_FILES['myfile']['size']);
        $n = $_FILES['myfile']['name'];
        $n = strtolower($n);
        $f = $_SESSION['uproot'] . '/' . $n;
Esempio n. 3
0
File: index.php Progetto: philum/cms
} else {
    $ret .= css_link('/css/' . $meta["css"] . '.css' . $cst);
}
$ret .= js_code('cutat=' . $_SESSION['jbuffer'] . '; fixpop="' . $_SESSION['mobile'] . '"; 
fulpop="1"; read="' . $read . '"; flow="' . $flow . '";');
$ret .= js_link('/prog' . $g . '/ajx.js');
//ajax
$ret .= js_link('/prog' . $g . '/utils.js');
//js
if (rstr(100)) {
    $ret .= js_link('http://code.jquery.com/jquery-1.9.1.min.js');
}
if ($_SESSION['desgn']) {
    $ret .= js_link('/js/live.js#css');
}
$ret .= Head::get();
$ret .= '</head>' . "\n";
if ($_GET['admin']) {
    $sp = ' spellcheck="false"';
}
$ret .= '<body' . atb('onload', $onload) . ' onclick="clpop(event)" onmousemove="popslide(event)"' . $sp . '>' . "\n";
//
$ret .= divd('clbub', '') . "\n";
$ret .= $madmin;
$ret .= divd('desktop', '') . "\n";
$ret .= '<div id="page">' . "\n";
if ($out) {
    $ret .= implode('', $out);
}
//if($rout)$ret.=$rout;
$ret .= '</div>' . "\n";