Co-Founder, The United Flyball League International
http://www.u-fli.com
// // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // 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 General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // // Author: Kazumi Ono (AKA onokazu) // // URL:http://www.myweb.ne.jp/,https://xoops.org/,http://www.xoopscube.jp/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) { exit("Access Denied"); } else { $op = 'list'; if (isset($_POST)) { foreach ( $_POST as $k => $v ) { ${$k} = $v; } } if (isset($_GET['op'])) { $op = trim($_GET['op']); $id = $moddir = $file = $type = $tplset = null; if (isset($_GET['id'])) { $id = intval($_GET['id']); } if (isset($_GET['moddir'])) { $moddir = trim($_GET['moddir']); } if (isset($_GET['file'])) { $file = trim($_GET['file']); } if (isset($_GET['type'])) { $type = trim($_GET['type']); } if (isset($_GET['tplset'])) { $tplset = trim($_GET['tplset']); } } if ($op == 'edittpl_go') { if (isset($previewtpl)) { $op = 'previewtpl'; } } switch ($op) { case 'list': $tplset_handler =& xoops_gethandler('tplset'); $tplsets =& $tplset_handler->getObjects(); xoops_cp_header(); echo '
'._MD_TPLMAIN.'
'; $installed = array(); $tpltpl_handler =& xoops_gethandler('tplfile'); $installed_mods = $tpltpl_handler->getModuleTplCount('default'); $tcount = count($tplsets); echo ''; $class = 'even'; for ($i = 0; $i < $tcount; $i++) { $tplsetname = $tplsets[$i]->getVar('tplset_name'); $installed_themes[] = $tplsetname; $class = ($class == 'even') ? 'odd' : 'even'; echo ''; if ($tplsetname == $xoopsConfig['template_set']) { echo ''; } else { echo ''; } echo ''; } echo '