Exemple #1
0
    if (isset($_POST['phpblockfn'])) {
        $phpblockfn = $_POST['phpblockfn'];
    }
    $is_enabled = '';
    if (isset($_POST['is_enabled'])) {
        $is_enabled = $_POST['is_enabled'];
    }
    $allow_autotags = '';
    if (isset($_POST['allow_autotags'])) {
        $allow_autotags = $_POST['allow_autotags'];
    }
    $cache_time = $_CONF['default_cache_time_block'];
    if (isset($_POST['cache_time'])) {
        $cache_time = COM_applyFilter($_POST['cache_time'], true);
    }
    $display .= saveblock($bid, $name, $_POST['title'], $help, $_POST['type'], $blockorder, $content, $rdfurl, $rdfupdated, $rdflimit, $phpblockfn, $_POST['onleft'], COM_applyFilter($_POST['owner_id'], true), COM_applyFilter($_POST['group_id'], true), $_POST['perm_owner'], $_POST['perm_group'], $_POST['perm_members'], $_POST['perm_anon'], $is_enabled, $allow_autotags, $cache_time);
} elseif ($mode == 'edit') {
    $tmp = editblock($bid);
    $display = COM_createHTMLDocument($tmp, array('pagetitle' => $LANG21[3]));
} elseif ($mode == 'move') {
    if (SEC_checkToken()) {
        $display .= moveBlock();
    }
    $display .= listblocks();
    $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG21[19]));
} else {
    // 'cancel' or no mode at all
    $display .= COM_showMessageFromParameter();
    $display .= listblocks();
    $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG21[19]));
}
for ($sd = 0; $sd < count($sideboxes); $sd++) {
    include "includes/modules/sideboxes/" . $sideboxes[$sd];
    saveblock($sideboxes[$sd], $title, $content);
}
?>
<td valign="top" class="centercolumn">
<?php 
$modulesmo = array(FILENAME_FEATURED_PRODUCTS_MODULE, FILENAME_SPECIALS_INDEX, FILENAME_NEW_PRODUCTS, FILENAME_UPCOMING_PRODUCTS);
for ($mo = 0; $mo < count($modulesmo); $mo++) {
    $lcontents = '';
    $title = '';
    include DIR_WS_MODULES . zen_get_module_directory($modulesmo[$mo]);
    saveblock($modulesmo[$mo], $title, $lcontents);
}
$categories_query = "select c.categories_id, cd.categories_name, c.categories_image, c.parent_id\r\n                           from   " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd\r\n                           where      c.parent_id = '" . (int) $current_category_id . "'\r\n                           and        c.categories_id = cd.categories_id\r\n                           and        cd.language_id = '" . (int) $_SESSION['languages_id'] . "'\r\n                           and        c.categories_status= '1'\r\n                           order by   sort_order, cd.categories_name";
$categories = $db->Execute($categories_query);
$number_of_categories = $categories->RecordCount();
$new_products_category_id = $current_category_id;
echo "<table>";
require DIR_WS_MODULES . 'pages/index/category_row.php';
echo "</table>";
saveblock("category_row.php", "category_row.php", "<table>" . $contents . "</table>");
?>
</td>
</td>
</tr>
</table>
<?php 
include DIR_WS_MODULES . 'footer.php';
?>
</body>