Example #1
0
    if (isset($_GET['single'])) {
        $plugins = array($showExtension);
    } else {
        $list = array_keys(getEnabledPlugins());
        foreach ($list as $extension) {
            $option_interface = NULL;
            $path = getPlugin($extension . '.php');
            $pluginStream = file_get_contents($path);
            $str = isolate('$option_interface', $pluginStream);
            if (false !== $str) {
                $plugins[] = $extension;
            }
        }
        natcasesort($plugins);
    }
    $rangeset = getPageSelector($plugins, PLUGINS_PER_PAGE);
    $plugins = array_slice($plugins, $subpage * PLUGINS_PER_PAGE, PLUGINS_PER_PAGE);
    ?>
					<div id="tab_plugin" class="tabbox">
						<?php 
    zp_apply_filter('admin_note', 'options', $subtab);
    ?>
						<script type="text/javascript">
																							// <!-- <![CDATA[
																							var optionholder = new Array();
																							// ]]> -->
						</script>
						<form class="dirty-check" id="form_options" action="?action=saveoptions<?php 
    if (isset($_GET['single'])) {
        echo '&amp;single=' . $showExtension;
    }
Example #2
0
}
if ($articles_page) {
    $total = ceil($articles / $articles_page);
    //Needed check if we really have articles for page x or not otherwise we are just on page 1
    if ($total <= $subpage) {
        $subpage = 0;
    }
    $offset = CMS::getOffset($articles_page);
    $list = array();
    foreach ($result as $article) {
        $list[] = $article[$sortorder];
    }
    if ($sortorder == 'title') {
        $rangeset = getPageSelector($list, $articles_page);
    } else {
        $rangeset = getPageSelector($list, $articles_page, 'dateDiff');
    }
    $options = array_merge(array('page' => 'news', 'tab' => 'articles'), getNewsAdminOption(NULL));
    $result = array_slice($result, $offset, $articles_page);
} else {
    $rangeset = $options = array();
}
?>
					<span class="zenpagestats"><?php 
printNewsStatistic($articles, count($resultU));
?>
</span>
					</h1>
					<div class="floatright">
						<?php 
printAuthorDropdown();
Example #3
0
                        $hisgroups = explode(',', $user['group']);
                        if (!in_array($showgroup, $hisgroups)) {
                            unset($admins[$key]);
                        }
                        break;
                }
            }
        }
        $admins = sortMultiArray($admins, 'user');
        $rights = DEFAULT_RIGHTS;
        $groupname = 'default';
        $list = array();
        foreach ($admins as $admin) {
            $list[] = $admin['user'];
        }
        $rangeset = getPageSelector($list, USERS_PER_PAGE);
    }
    $newuser = array('id' => -1, 'user' => '', 'pass' => '', 'name' => '', 'email' => '', 'rights' => $rights, 'custom_data' => NULL, 'valid' => 1, 'group' => $groupname);
    $alterrights = '';
} else {
    $alterrights = ' disabled="disabled"';
    $rangeset = array();
    if ($_zp_current_admin_obj) {
        $admins = array($_zp_current_admin_obj->getUser() => array('id' => $_zp_current_admin_obj->getID(), 'user' => $_zp_current_admin_obj->getUser(), 'pass' => $_zp_current_admin_obj->getPass(), 'name' => $_zp_current_admin_obj->getName(), 'email' => $_zp_current_admin_obj->getEmail(), 'rights' => $_zp_current_admin_obj->getRights(), 'custom_data' => $_zp_current_admin_obj->getCustomData(), 'valid' => 1, 'group' => $_zp_current_admin_obj->getGroup()));
        $showset = array($_zp_current_admin_obj->getUser());
    } else {
        $admins = $showset = array();
    }
}
$max = floor((count($admins) - 1) / USERS_PER_PAGE);
if ($subpage > $max) {
}
if ($articles_page) {
    $total = ceil($articles / $articles_page);
    //Needed check if we really have articles for page x or not otherwise we are just on page 1
    if ($total <= $subpage) {
        $subpage = 0;
    }
    $offset = Zenpage::getOffset($articles_page);
    $list = array();
    foreach ($result as $article) {
        $list[] = $article[$sortorder];
    }
    if ($sortorder == 'date') {
        $rangeset = getPageSelector($list, $articles_page, 'dateDiff');
    } else {
        $rangeset = getPageSelector($list, $articles_page);
    }
    $options = array_merge(array('page' => 'news', 'tab' => 'articles'), getNewsAdminOption(array('category' => 0, 'date' => 0, 'published' => 0, 'sortorder' => 0, 'articles_page' => 1)));
    $result = array_slice($result, $offset, $articles_page);
} else {
    $rangeset = $options = array();
}
?>
          <span class="zenpagestats"><?php 
printNewsStatistic($articles, count($resultU));
?>
</span></h1>
        <div class="floatright">
					<?php 
printCategoryDropdown($subpage);
printArticleDatesDropdown($subpage);