* as published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see <http://www.gnu.org/licenses/>. */ define('ABS_PATH', dirname(dirname($_SERVER['SCRIPT_FILENAME'])) . '/'); define('OC_ADMIN', true); require_once ABS_PATH . 'oc-load.php'; $adminThemes = new AdminThemes(); $functions_path = $adminThemes->getCurrentThemePath() . 'functions.php'; if (file_exists($functions_path)) { require_once $functions_path; } if (file_exists(ABS_PATH . '.maintenance')) { define('__OSC_MAINTENANCE__', true); } switch (Params::getParam('page')) { case 'items': require_once osc_admin_base_path() . 'items.php'; $do = new CAdminItems(); $do->doModel(); break; case 'comments': require_once osc_admin_base_path() . 'comments.php'; $do = new CAdminItemComments();