|
From: <txm...@us...> - 2015-01-20 10:51:42
|
Revision: 12939
http://sourceforge.net/p/xoops/svn/12939
Author: txmodxoops
Date: 2015-01-20 10:51:37 +0000 (Tue, 20 Jan 2015)
Log Message:
-----------
newmylinks with tdmcreate v.1.37
Added Paths:
-----------
XoopsModules/mylinks/branches/timgno/newmylinks/
XoopsModules/mylinks/branches/timgno/newmylinks/admin/
XoopsModules/mylinks/branches/timgno/newmylinks/admin/about.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_footer.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_header.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/broken.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/cat.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/admin/index.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/links.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/menu.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/mod.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/permissions.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/text.php
XoopsModules/mylinks/branches/timgno/newmylinks/admin/votedata.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/blocks_broken.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/blocks_cat.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/blocks_links.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/blocks_mod.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/blocks_text.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/blocks_votedata.php
XoopsModules/mylinks/branches/timgno/newmylinks/blocks/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/broken.php
XoopsModules/mylinks/branches/timgno/newmylinks/cat.php
XoopsModules/mylinks/branches/timgno/newmylinks/class/
XoopsModules/mylinks/branches/timgno/newmylinks/class/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/class/mylinks_broken.php
XoopsModules/mylinks/branches/timgno/newmylinks/class/mylinks_cat.php
XoopsModules/mylinks/branches/timgno/newmylinks/class/mylinks_links.php
XoopsModules/mylinks/branches/timgno/newmylinks/class/mylinks_mod.php
XoopsModules/mylinks/branches/timgno/newmylinks/class/mylinks_text.php
XoopsModules/mylinks/branches/timgno/newmylinks/class/mylinks_votedata.php
XoopsModules/mylinks/branches/timgno/newmylinks/css/
XoopsModules/mylinks/branches/timgno/newmylinks/css/admin.css
XoopsModules/mylinks/branches/timgno/newmylinks/css/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/css/style.css
XoopsModules/mylinks/branches/timgno/newmylinks/docs/
XoopsModules/mylinks/branches/timgno/newmylinks/docs/changelog.txt
XoopsModules/mylinks/branches/timgno/newmylinks/docs/credits.txt
XoopsModules/mylinks/branches/timgno/newmylinks/docs/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/docs/install.txt
XoopsModules/mylinks/branches/timgno/newmylinks/docs/lang_diff.txt
XoopsModules/mylinks/branches/timgno/newmylinks/docs/licence.txt
XoopsModules/mylinks/branches/timgno/newmylinks/docs/readme.txt
XoopsModules/mylinks/branches/timgno/newmylinks/header.php
XoopsModules/mylinks/branches/timgno/newmylinks/images/
XoopsModules/mylinks/branches/timgno/newmylinks/images/icons/
XoopsModules/mylinks/branches/timgno/newmylinks/images/icons/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/images/icons/off.png
XoopsModules/mylinks/branches/timgno/newmylinks/images/icons/on.png
XoopsModules/mylinks/branches/timgno/newmylinks/images/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/images/menu/
XoopsModules/mylinks/branches/timgno/newmylinks/images/menu/bg.png
XoopsModules/mylinks/branches/timgno/newmylinks/images/menu/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/images/menu/left_both.png
XoopsModules/mylinks/branches/timgno/newmylinks/images/menu/right_both.png
XoopsModules/mylinks/branches/timgno/newmylinks/images/mylinks_slogo.png
XoopsModules/mylinks/branches/timgno/newmylinks/include/
XoopsModules/mylinks/branches/timgno/newmylinks/include/configs.php
XoopsModules/mylinks/branches/timgno/newmylinks/include/functions.php
XoopsModules/mylinks/branches/timgno/newmylinks/include/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/include/install.php
XoopsModules/mylinks/branches/timgno/newmylinks/index.php
XoopsModules/mylinks/branches/timgno/newmylinks/language/
XoopsModules/mylinks/branches/timgno/newmylinks/language/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/admin.php
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/blocks.php
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/help/
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/help/help.html
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/help/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/main.php
XoopsModules/mylinks/branches/timgno/newmylinks/language/italian/modinfo.php
XoopsModules/mylinks/branches/timgno/newmylinks/links.php
XoopsModules/mylinks/branches/timgno/newmylinks/mod.php
XoopsModules/mylinks/branches/timgno/newmylinks/sql/
XoopsModules/mylinks/branches/timgno/newmylinks/sql/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/sql/mysql.sql
XoopsModules/mylinks/branches/timgno/newmylinks/templates/
XoopsModules/mylinks/branches/timgno/newmylinks/templates/admin/
XoopsModules/mylinks/branches/timgno/newmylinks/templates/admin/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_broken_block_day.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_broken_block_random.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_broken_block_recent.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_cat_block_day.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_cat_block_random.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_cat_block_recent.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_links_block_day.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_links_block_random.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_links_block_recent.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_mod_block_day.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_mod_block_random.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_mod_block_recent.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_text_block_day.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_text_block_random.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_text_block_recent.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_votedata_block_day.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_votedata_block_random.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/blocks/mylinks_votedata_block_recent.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/index.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_broken.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_cat.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_footer.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_header.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_index.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_links.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_mod.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_text.html
XoopsModules/mylinks/branches/timgno/newmylinks/templates/mylinks_votedata.html
XoopsModules/mylinks/branches/timgno/newmylinks/text.php
XoopsModules/mylinks/branches/timgno/newmylinks/votedata.php
XoopsModules/mylinks/branches/timgno/newmylinks/xoops_version.php
Added: XoopsModules/mylinks/branches/timgno/newmylinks/admin/about.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/newmylinks/admin/about.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/newmylinks/admin/about.php 2015-01-20 10:51:37 UTC (rev 12939)
@@ -0,0 +1,43 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+$aboutAdmin = new ModuleAdmin();
+echo $aboutAdmin->addNavigation("about.php");
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_footer.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_footer.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_footer.php 2015-01-20 10:51:37 UTC (rev 12939)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+global $pathImageAdmin;
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src='" . $pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> "._AM_MYLINKS_MAINTAINEDBY." <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+ xoops_cp_footer();
Added: XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_header.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_header.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/newmylinks/admin/admin_header.php 2015-01-20 10:51:37 UTC (rev 12939)
@@ -0,0 +1,98 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+include_once '../include/functions.php';
+
+$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
+$globlang = $GLOBALS['xoopsConfig']['language'];
+
+if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
+ include_once $pathDir.'/language/'.$globlang.'/main.php';
+ }else{
+ include_once $pathDir.'/language/english/main.php';
+ }
+
+if ( file_exists($pathDir.'/moduleadmin.php')){
+ include_once $pathDir.'/moduleadmin.php';
+ //return true;
+ }else{
+ xoops_cp_header();
+ echo xoops_error(_AM_MYLINKS_MODULEADMIN_MISSING);
+ xoops_cp_footer();
+ //return false;
+ }
+$dirname = basename(dirname(dirname( __FILE__ ) ));
+$module_handler =& xoops_gethandler('module');
+$xoopsModule = & $module_handler->getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+$brokenHandler=& xoops_getModuleHandler('mylinks_broken', $dirname );
+$catHandler=& xoops_getModuleHandler('mylinks_cat', $dirname );
+$linksHandler=& xoops_getModuleHandler('mylinks_links', $dirname );
+$modHandler=& xoops_getModuleHandler('mylinks_mod', $dirname );
+$textHandler=& xoops_getModuleHandler('mylinks_text', $dirname );
+$votedataHandler=& xoops_getModuleHandler('mylinks_votedata', $dirname );
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+
+$style_admin = "../css/admin.css";
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
Added: XoopsModules/mylinks/branches/timgno/newmylinks/admin/broken.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/newmylinks/admin/broken.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/newmylinks/admin/broken.php 2015-01-20 10:51:37 UTC (rev 12939)
@@ -0,0 +1,164 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mylinks_CleanVars($_REQUEST, 'op', 'list_broken', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$broken_waiting = $brokenHandler->getCount($criteria);
+$status_menu = mylinks_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_broken":
+ $broken_admin = new ModuleAdmin();
+ echo $broken_admin->addNavigation('broken.php');
+ if ($status_menu == 1){
+ $broken_admin->addItemButton(_AM_MYLINKS_BROKENNEW, 'broken.php?op=new_broken', 'add');
+ }else{
+ $broken_admin->addItemButton(_AM_MYLINKS_BROKEN_LIST, 'broken.php?op=list_broken', 'list');
+ $broken_admin->addItemButton(_AM_MYLINKS_BROKENNEW, 'broken.php?op=new_broken', 'add');
+ }
+ echo $broken_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("broken_reportid");
+ $criteria->setOrder("ASC");
+ $numrows = $brokenHandler->getCount();
+ $broken_arr = $brokenHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYLINKS_BROKEN_LID."</th>
+ <th align=\"center\">"._AM_MYLINKS_BROKEN_SENDER."</th>
+ <th align=\"center\">"._AM_MYLINKS_BROKEN_IP."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYLINKS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($broken_arr) as $i)
+ {
+ if ( $broken_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$broken_arr[$i]->getVar("broken_lid")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_sender")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_ip")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"broken.php?op=edit_broken&broken_reportid=".$broken_arr[$i]->getVar("broken_reportid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"broken.php?op=delete_broken&broken_reportid=".$broken_arr[$i]->getVar("broken_reportid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $brokenHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_broken":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("broken.php");
+ $member_admin->addItemButton(_AM_MYLINKS_BROKEN_LIST, 'broken.php?op=list_broken', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $brokenHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_broken":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["broken_reportid"])) {
+ $obj =& $brokenHandler->get($_REQUEST["broken_reportid"]);
+ } else {
+ $obj =& $brokenHandler->create();
+ }
+ //Form broken_lid
+ $obj->setVar("broken_lid", $_REQUEST["broken_lid"]);
+ //Form broken_sender
+ $obj->setVar("broken_sender", $_REQUEST["broken_sender"]);
+ //Form broken_ip
+ $obj->setVar("broken_ip", $_REQUEST["broken_ip"]);
+
+
+ if ($brokenHandler->insert($obj)) {
+ redirect_header("broken.php?op=list_broken", 2, _AM_MYLINKS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_broken":
+ $obj = $brokenHandler->get($_REQUEST["broken_reportid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_broken":
+ $obj =& $brokenHandler->get($_REQUEST["broken_reportid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($brokenHandler->delete($obj)) {
+ redirect_header("broken.php", 3, _AM_MYLINKS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "broken_reportid" => $_REQUEST["broken_reportid"], "op" => "delete_broken"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYLINKS_FORMSUREDEL, $obj->getVar("broken")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/newmylinks/admin/cat.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/newmylinks/admin/cat.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/newmylinks/admin/cat.php 2015-01-20 10:51:37 UTC (rev 12939)
@@ -0,0 +1,182 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mylinks_CleanVars($_REQUEST, 'op', 'list_cat', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$cat_waiting = $catHandler->getCount($criteria);
+$status_menu = mylinks_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_cat":
+ $cat_admin = new ModuleAdmin();
+ echo $cat_admin->addNavigation('cat.php');
+ if ($status_menu == 1){
+ $cat_admin->addItemButton(_AM_MYLINKS_CATNEW, 'cat.php?op=new_cat', 'add');
+ }else{
+ $cat_admin->addItemButton(_AM_MYLINKS_CAT_LIST, 'cat.php?op=list_cat', 'list');
+ $cat_admin->addItemButton(_AM_MYLINKS_CATNEW, 'cat.php?op=new_cat', 'add');
+ }
+ echo $cat_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("cat_id");
+ $criteria->setOrder("ASC");
+ $numrows = $catHandler->getCount();
+ $cat_arr = $catHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYLINKS_CAT_PID."</th>
+ <th align=\"center\">"._AM_MYLINKS_CAT_TITLE."</th>
+ <th align=\"center\">"._AM_MYLINKS_CAT_IMGURL."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYLINKS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($cat_arr) as $i)
+ {
+ if ( $cat_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$cat_arr[$i]->getVar("cat_pid")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_title")."</td>";
+ echo "<td align='center'><img src='".XOOPS_URL."/uploads/mylinks/cat/cat_imgurl/".$cat_arr[$i]->getVar("cat_imgurl")."' height='30px' title='cat_imgurl' alt='cat_imgurl'></td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"cat.php?op=edit_cat&cat_id=".$cat_arr[$i]->getVar("cat_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"cat.php?op=delete_cat&cat_id=".$cat_arr[$i]->getVar("cat_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $catHandler->create();
+ //$form = ...
[truncated message content] |