// +-----------------------------------------------------------------------+ $plugin_menu_links = trigger_change('get_admin_plugin_menu_links', array()); function UC_name_compare($a, $b) { return strcmp(strtolower($a['NAME']), strtolower($b['NAME'])); } usort($plugin_menu_links, 'UC_name_compare'); $template->assign('plugin_menu_items', $plugin_menu_links); // +-----------------------------------------------------------------------+ // | Refresh permissions | // +-----------------------------------------------------------------------+ // Only for pages witch change permissions if (in_array($page['page'], array('site_manager', 'site_update')) or !empty($_POST) and in_array($page['page'], array('album', 'cat_move', 'cat_options', 'user_list', 'user_perm'))) { invalidate_user_cache(); } // +-----------------------------------------------------------------------+ // | Include specific page | // +-----------------------------------------------------------------------+ trigger_notify('loc_begin_admin_page'); include PHPWG_ROOT_PATH . 'admin/' . $page['page'] . '.php'; $template->assign('ACTIVE_MENU', get_active_menu($page['page'])); // +-----------------------------------------------------------------------+ // | Sending html code | // +-----------------------------------------------------------------------+ // Add the Piwigo Official menu $template->assign('pwgmenu', pwg_URL()); include PHPWG_ROOT_PATH . 'include/page_header.php'; trigger_notify('loc_end_admin'); flush_page_messages(); $template->pparse('admin'); include PHPWG_ROOT_PATH . 'include/page_tail.php';
</head> <body> <header id="header" name="top"> <div id="login_info"> <?php get_login_info(); ?> </div> <a href=""> <h1>DESARROLLO DE APLICACIONES</h1> <h2>PHP - ANDROID</h2> </a> <nav> <ul> <?php $active = get_active_menu(); ?> <a href="?p=home" class="<?php if ($active == "index") { echo "active"; } ?> "><li>INICIO</li></a> <a href="?p=homephp" class="<?php if ($active == "php") { echo "active"; } ?> "><li>PHP</li></a> <a href="?p=homeandroid" class="<?php if ($active == "android") {
<?php defined('URLUPLOADER_PATH') or die('Hacking attempt!'); global $template, $page, $conf; load_language('plugin.lang', URLUPLOADER_PATH); // +-----------------------------------------------------------------------+ // | URL Uploader tab | // +-----------------------------------------------------------------------+ define('PHOTOS_ADD_BASE_URL', get_root_url() . 'admin.php?page=photos_add'); include_once PHPWG_ROOT_PATH . 'admin/include/functions.php'; include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php'; include_once PHPWG_ROOT_PATH . 'admin/include/functions_upload.inc.php'; $tabsheet = new tabsheet(); $tabsheet->set_id('photos_add'); $tabsheet->select('url_uploader'); $tabsheet->assign(); $page['active_menu'] = get_active_menu('photo'); // +-----------------------------------------------------------------------+ // | prepare form | // +-----------------------------------------------------------------------+ include PHPWG_ROOT_PATH . 'admin/include/photos_add_direct_prepare.inc.php'; $template->set_filename('urluploader_content', realpath(URLUPLOADER_PATH . 'template/photos_add.tpl')); // template vars $template->assign(array('URLUPLOADER_PATH' => get_root_url() . URLUPLOADER_PATH, 'URLUPLOADER_ADMIN' => URLUPLOADER_ADMIN)); // send page content $template->assign_var_from_handle('ADMIN_CONTENT', 'urluploader_content');