Exemple #1
0
<?php

// Include common functions and declarations
include "../../include/common.php";
if (!$login->isWebmaster()) {
    $login->printLoginForm();
    exit;
}
if (!$module->isModuleInstalled("Blog")) {
    // Create tables in database
    $dbi->parse_mysql_dump(scriptPath . "/blog/install/tables/blog.sql");
    // Register content types
    $module->initialize();
    /* Get max position in sections */
    $result = $dbi->query("SELECT MAX(position) FROM " . sectionTableName);
    if ($result->rows()) {
        list($position) = $result->fetchrow_array();
        $position++;
    }
    /* Install blog index in sections */
    $dbi->query("INSERT INTO " . sectionTableName . "(parentId,title,link,userlevel,userlevelAdmin,position) VALUES(0,'Blogs','blog/index.php',0,3,{$position})");
    /* Print common header */
    printHeader("Blog installed");
    /* Print section header */
    printSectionHeader("Blog installed");
    echo "<p>The blog module was succesfully installed into CMIS. Remember to remove the install folder for security reasons.</p>";
    /* Print footer */
    printFooter();
}
Exemple #2
0
echo layoutUrl;
?>
/css/cmis.css.php" type="text/css" />
<link type="text/css" href="<?php 
echo layoutUrl;
?>
/css/popup.css.php" rel="stylesheet" />
<link type="text/css" href="<?php 
echo layoutUrl;
?>
/css/format.css.php" rel="stylesheet" />
<link rel="shortcut icon" type="image/ico" href="<?php 
echo layoutUrl;
?>
/favicon.ico" />
<link rel="search" title="Search blog" href="<?php 
echo scriptUrl;
?>
/search.php?id=1&amp;searchString=" />
<script language="JavaScript" type="text/javascript" src="<?php 
echo scriptUrl;
?>
/javascript/default.js"></script>
</head>

<body>
<div id="content">
<?php 
if ($printHeader) {
    printSectionHeader($title);
}
Exemple #3
0
                    </td>
                <?php 
    }
    ?>
            </tr>
        </table>
<?php 
}
// print SectionHasItems, thereby printing all sections, with items if they have them
$currentSectionId = null;
foreach ($results->shis as $shi) {
    $section = $shi->getSection();
    $item = $shi->getItem();
    if ($section->getId() != $currentSectionId) {
        $currentSectionId = $section->getId();
        printSectionHeader($section);
    }
    if ($item) {
        ?>
        <table class="course <?php 
        echo $tableClass;
        ?>
">
            <?php 
        printItemRow($item, $shi->getRequiredStatus());
        ?>
        </table>
    <?php 
    } else {
        if (!$section->getRequiresBooks()) {
            ?>
Exemple #4
0
require_once "../../../include/common.php";
require_once "../include/config.php";
// Check if user is webmaster
if (!$login->isWebmaster()) {
    $login->printLoginForm();
    exit;
}
if (!$module->isModuleInstalled("Contributor")) {
    if (empty($_GET["step"])) {
        // Print common header
        printHeader("Contributor Module Installation");
        // Print section header
        printSectionHeader("Contributor Module Installation");
        echo "<p>You're about to install the contributor module into CMIS. Click <a href=\"index.php?step=2\">here</a> to proceed.</p>";
        // Print footer
        printFooter();
    } else {
        // Create tables in database
        include "tables.php";
        $dbi->createTables($dbTableDefs);
        // Register content types
        $module->initialize();
        // Print common header
        printHeader("Contributor Installed");
        // Print section header
        printSectionHeader("Contributor Module Installed");
        echo "<p>Remember to remove the install folder for security reasons. Click <a href=\"" . scriptUrl . "/" . folderContributor . "\">here</a> to start using the module.</p>";
        // Print footer
        printFooter();
    }
}
Exemple #5
0
echo $title;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php 
echo pageDescription;
?>
" />
<meta name="keywords" content="<?php 
echo pageKeywords;
?>
" />
<link type="text/css" href="<?php 
echo scriptUrl;
?>
/include/template/style.css.php" rel="stylesheet" />
<script language="JavaScript" type="text/javascript" src="<?php 
echo scriptUrl;
?>
/javascript/default.js"></script>
</head>

<body>
<?php 
global $login;
if ($login->isWebmaster()) {
    echo "<div class=\"error\" style=\"padding:5px;width:100%;border:1px #000000 solid\">No theme specified. Click <a href=\"" . scriptUrl . "/" . folderSettings . "\">here</a> to set theme.</div>";
}
// Print header
echo $printHeader ? printSectionHeader($title) : "";