예제 #1
0
                if (0) {
                    // PHP4 Compatibility
                    $flen = filesize($filename);
                    if ($flen > 0) {
                        $contents = fread($handle, $flen);
                    }
                }
                fclose($handle);
                $contents = str_replace('<br />', '<br>', $contents);
            } else {
                die($ccms['lang']['system']['error_deleted']);
            }
        }
        // Get keywords for current file
        $keywords = $row->keywords;
        $textarea_id = str2variablename('page_' . $page_id);
        // blow away the resize cookie: expire it 10 hours ago
        setcookie('TinyMCE_' . $textarea_id . '_size', '', time() - 36000);
        ?>
	<!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="<?php 
        echo $cfg['language'];
        ?>
">
	<head>
		<title>CompactCMS - <?php 
        echo $ccms['lang']['editor']['editorfor'] . ' ' . $name;
        ?>
</title>
		<link rel="stylesheet" type="text/css" href="../../../admin/img/styles/base.css,liquid.css,layout.css,sprite.css,last_minute_fixes.css" />
		<?php 
예제 #2
0
    }
    closedir($handle);
    sort($albums, SORT_STRING);
    // to make sure $count[] array is in sync with the $albums[] array, we need to perform this extra round AFTER the sort() operation.
    foreach ($albums as $key => $file) {
        // Count files in album
        $images = fileList(BASE_PATH . '/media/albums/' . $file);
        $count[$key] = count($images);
    }
}
$album = getGETparam4Filename('album');
$album_path = in_array($album, $albums) ? BASE_PATH . '/media/albums/' . $album : null;
$page_id = getGETparam4IdOrNumber('page_id');
$preview_checkcode = GenerateNewPreviewCode($page_id);
$tinyMCE_required = false;
$textarea4descr_id = str2variablename('lightbox_' . $page_id . (!empty($album) ? '_' . $album : ''));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Lightbox module</title>
	<link rel="stylesheet" type="text/css" href="../../../admin/img/styles/base.css,liquid.css,layout.css,sprite.css,last_minute_fixes.css" />
	<link rel="stylesheet" type="text/css" href="modLightbox.css" />
	<!--[if IE]>
		<link rel="stylesheet" type="text/css" href="../../../admin/img/styles/ie.css" />
	<![endif]-->
</head>
<body>
	<div class="module" id="lightbox-management">
		<div class="center-text <?php 
예제 #3
0
$newsID = getGETparam4Number('newsID');
$page_id = getGETparam4IdOrNumber('page_id');
if (!(checkAuth() && $perm->is_level_okay('manageModNews', $_SESSION['ccms_userLevel']))) {
    die("No external access to file");
}
if (!$page_id) {
    die($ccms['lang']['system']['error_forged'] . ' (' . __FILE__ . ', ' . __LINE__ . ')');
}
if ($newsID && $page_id) {
    $news = $db->QuerySingleRow("SELECT * FROM `" . $cfg['db_prefix'] . "modnews` m LEFT JOIN `" . $cfg['db_prefix'] . "users` u ON m.userID = u.userID WHERE newsID = " . MySQL::SQLValue($newsID, MySQL::SQLVALUE_NUMBER) . " AND page_id = " . MySQL::SQLValue($page_id, MySQL::SQLVALUE_NUMBER));
    if (!$news) {
        $db->Kill();
    }
}
$textarea4teaser_id = str2variablename('newstease_' . $page_id . (!empty($newsID) ? '_' . $newsID : ''));
$textarea4article_id = str2variablename('newsarticle_' . $page_id . (!empty($newsID) ? '_' . $newsID : ''));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>News module</title>

	<link rel="stylesheet" type="text/css" href="../../../admin/img/styles/base.css,liquid.css,layout.css,sprite.css,last_minute_fixes.css" />

	<!-- File uploader styles -->
	<link rel="stylesheet" media="all" type="text/css" href="../../../lib/includes/js/mootools-filemanager/Assets/js/milkbox/css/milkbox.css" />
	<link rel="stylesheet" media="all" type="text/css" href="../../../lib/includes/js/mootools-filemanager/Assets/Css/FileManager.css,Additions.css" />

	<!--[if IE]>
		<link rel="stylesheet" type="text/css" href="../../../admin/img/styles/ie.css" />