Пример #1
0
function facil_reset($k, $nc)
{
    $ret .= btn('txtcadr', 'default') . ' ';
    $ret .= lkc('txtx', '/?admin=css&edit_css=' . $k . '&reset_this==#' . $k, 'reset') . br() . br();
    $r = css_default();
    if ($r) {
        foreach ($r as $k => $v) {
            $ncb = name_classe($v);
            if ($ncb == $nc) {
                $ret .= name_line_j($k, $v, 1, 2);
            }
        }
    }
    return $ret;
}
Пример #2
0
Файл: pop.php Проект: philum/cms
function makenew($qb, $restore = '')
{
    $qdu = ses('qdu');
    require 'styl.php';
    if (!auth(4)) {
        $_SESSION['auth'] = 4;
    }
    msq_copy("system", "default_css_1", 'design', $qb . '_design_1');
    msq_copy("system", "default_clr_1", 'design', $qb . '_clrset_1');
    msq_copy("system", "default_css_2", 'design', $qb . '_design_2');
    msq_copy("system", "default_clr_2", 'design', $qb . '_clrset_2');
    msq_copy("system", "default_mods", 'users', $qb . '_mods_1');
    msq_copy("system", "default_rstr", 'users', $qb . '_rstr');
    msq_copy("system", "default_apps", 'users', $qb . '_apps');
    if ($restore) {
        list($rstr, $config) = ndprms_defaults();
        update('qdu', 'rstr', $rstr, 'name', ses('qb'));
        update('qdu', 'config', $config, 'name', ses('qb'));
    }
    $clr = msql_read('system', 'default_clr_1', '');
    $css = 'css/' . $qb . '_design_1.css';
    build_css($css, css_default(1), $clr);
    $clr = msql_read('system', 'default_clr_2', '');
    $css = 'css/' . $qb . '_design_2.css';
    build_css($css, css_default(), $clr);
    update('qdu', 'menus', ses('dayx'), 'name', $qb);
    if (!is_dir('users/' . $qb)) {
        mkdir_r('users/' . $qb);
    }
    return $qb;
}
Пример #3
0
define('BLOB_SKIP_NON_ASCII', false);
# text to display for blob and null fields (boring)
$null_text = '<em>NULL</em>';
// tinymy starts here, you don't want to read further
ob_start();
process_tinyadm();
$content = ob_get_contents();
ob_end_clean();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" media="all"><?php 
echo css_compact(css_default());
?>
</style>
<title><?php 
if ($db->is_connected()) {
    // you may want to change these lines to display something more meaningful, if
    // you have multiple sites to manage and the default title is not meaningful enough
    $host_to_show = $db_host;
    if (strtolower($host_to_show) == 'localhost' || $host_to_show == '127.0.0.1') {
        $host_to_show = $_SERVER['SERVER_ADDR'];
    }
    h("%s@%s - tinyMy", $_SESSION['user'], $host_to_show);
} else {
    echo 'tinyMy';
}
?>