You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
From: <ari...@us...> - 2012-03-23 17:50:08
|
Revision: 9174 http://xoops.svn.sourceforge.net/xoops/?rev=9174&view=rev Author: arion92fr Date: 2012-03-23 17:49:58 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Created directory 'XoopsModules/tag/branches/arion92fr/tag'. Added Paths: ----------- XoopsModules/tag/branches/arion92fr/tag/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ari...@us...> - 2012-03-23 17:42:58
|
Revision: 9173 http://xoops.svn.sourceforge.net/xoops/?rev=9173&view=rev Author: arion92fr Date: 2012-03-23 17:42:46 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Xoops 2.5 with Flash Cumulus Added Paths: ----------- XoopsModules/tag/branches/arion92fr/admin/ XoopsModules/tag/branches/arion92fr/admin/admin.tag.php XoopsModules/tag/branches/arion92fr/admin/header.php XoopsModules/tag/branches/arion92fr/admin/index.php XoopsModules/tag/branches/arion92fr/admin/menu.php XoopsModules/tag/branches/arion92fr/admin/syn.tag.php XoopsModules/tag/branches/arion92fr/blocks/ XoopsModules/tag/branches/arion92fr/blocks/block.php XoopsModules/tag/branches/arion92fr/blocks/index.html XoopsModules/tag/branches/arion92fr/class/ XoopsModules/tag/branches/arion92fr/class/index.html XoopsModules/tag/branches/arion92fr/class/link.php XoopsModules/tag/branches/arion92fr/class/tag.php XoopsModules/tag/branches/arion92fr/class/wp-cumulus.php XoopsModules/tag/branches/arion92fr/images/ XoopsModules/tag/branches/arion92fr/images/delimiter.gif XoopsModules/tag/branches/arion92fr/images/left_both.gif XoopsModules/tag/branches/arion92fr/images/logo.gif XoopsModules/tag/branches/arion92fr/images/logo.old.gif XoopsModules/tag/branches/arion92fr/images/modadminbg.gif XoopsModules/tag/branches/arion92fr/images/right_both.gif XoopsModules/tag/branches/arion92fr/include/ XoopsModules/tag/branches/arion92fr/include/action.module.php XoopsModules/tag/branches/arion92fr/include/cumulus.swf XoopsModules/tag/branches/arion92fr/include/formtag.php XoopsModules/tag/branches/arion92fr/include/functions.ini.php XoopsModules/tag/branches/arion92fr/include/functions.php XoopsModules/tag/branches/arion92fr/include/functions.recon.php XoopsModules/tag/branches/arion92fr/include/index.html XoopsModules/tag/branches/arion92fr/include/plugin.dist.php XoopsModules/tag/branches/arion92fr/include/plugin.php XoopsModules/tag/branches/arion92fr/include/search.inc.php XoopsModules/tag/branches/arion92fr/include/swfobject.js XoopsModules/tag/branches/arion92fr/include/tagbar.php XoopsModules/tag/branches/arion92fr/include/vars.php XoopsModules/tag/branches/arion92fr/language/ XoopsModules/tag/branches/arion92fr/language/english/ XoopsModules/tag/branches/arion92fr/language/english/admin.php XoopsModules/tag/branches/arion92fr/language/english/blocks.php XoopsModules/tag/branches/arion92fr/language/english/config.php XoopsModules/tag/branches/arion92fr/language/english/index.html XoopsModules/tag/branches/arion92fr/language/english/main.php XoopsModules/tag/branches/arion92fr/language/english/modinfo.php XoopsModules/tag/branches/arion92fr/language/french/ XoopsModules/tag/branches/arion92fr/language/french/admin.php XoopsModules/tag/branches/arion92fr/language/french/blocks.php XoopsModules/tag/branches/arion92fr/language/french/config.php XoopsModules/tag/branches/arion92fr/language/french/index.html XoopsModules/tag/branches/arion92fr/language/french/main.php XoopsModules/tag/branches/arion92fr/language/french/modinfo.php XoopsModules/tag/branches/arion92fr/language/index.html XoopsModules/tag/branches/arion92fr/plugin/ XoopsModules/tag/branches/arion92fr/plugin/AMS.php XoopsModules/tag/branches/arion92fr/plugin/article.php XoopsModules/tag/branches/arion92fr/plugin/newbb.php XoopsModules/tag/branches/arion92fr/plugin/news.php XoopsModules/tag/branches/arion92fr/plugin/xforum.php XoopsModules/tag/branches/arion92fr/sql/ XoopsModules/tag/branches/arion92fr/sql/index.html XoopsModules/tag/branches/arion92fr/sql/mysql.150.sql XoopsModules/tag/branches/arion92fr/sql/mysql.sql XoopsModules/tag/branches/arion92fr/templates/ XoopsModules/tag/branches/arion92fr/templates/blocks/ XoopsModules/tag/branches/arion92fr/templates/blocks/tag_block_cloud.html XoopsModules/tag/branches/arion92fr/templates/blocks/tag_block_cumulus.html XoopsModules/tag/branches/arion92fr/templates/blocks/tag_block_top.html XoopsModules/tag/branches/arion92fr/templates/index.html XoopsModules/tag/branches/arion92fr/templates/style.css XoopsModules/tag/branches/arion92fr/templates/tag_bar.html XoopsModules/tag/branches/arion92fr/templates/tag_index.html XoopsModules/tag/branches/arion92fr/templates/tag_list.html XoopsModules/tag/branches/arion92fr/templates/tag_view.html Added: XoopsModules/tag/branches/arion92fr/admin/admin.tag.php =================================================================== --- XoopsModules/tag/branches/arion92fr/admin/admin.tag.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/admin/admin.tag.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,141 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: admin.tag.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ + +include 'header.php'; +require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; + +xoops_cp_header(); + +include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php"; +echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(1) : ""; + +$limit = 10; +$modid = intval( empty($_GET['modid']) ? @$_POST['modid'] : $_GET['modid'] ); +$start = intval( empty($_GET['start']) ? @$_POST['start'] : $_GET['start'] ); +$status = intval( empty($_GET['status']) ? @$_POST['status'] : $_GET['status'] ); + +$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname")); + +if (!empty($_POST['tags'])) { + foreach ($_POST['tags'] as $tag => $tag_status) { + $tag_obj =& $tag_handler->get($tag); + if (!is_object($tag_obj) || !$tag_obj->getVar("tag_id")) continue; + if ($tag_status < 0) { + $tag_handler->delete($tag_obj); + } elseif ($tag_status != $tag_obj->getVar("tag_status")) { + $tag_obj->setVar("tag_status", $tag_status); + $tag_handler->insert($tag_obj); + } + } + redirect_header("admin.tag.php?modid={$modid}&start={$start}&status={$status}", 2); + exit(); +} + +$sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag"; +$sql .= " FROM " . $xoopsDB->prefix("tag_link"); +$sql .= " GROUP BY tag_modid"; +$counts_module = array(); +$module_list = array(); +if ( ($result = $xoopsDB->query($sql)) == false) { + xoops_error($xoopsDB->error()); +} else { + while ($myrow = $xoopsDB->fetchArray($result)) { + $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"]; + } + if (!empty($counts_module)) { + $module_handler =& xoops_gethandler("module"); + $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN")); + } +} + +$opform = new XoopsSimpleForm('', 'moduleform', xoops_getenv("PHP_SELF"), "get"); +$tray = new XoopsFormElementTray(''); +$mod_select = new XoopsFormSelect(_SELECT, 'modid', $modid); +$mod_select->addOption(0, _ALL); +foreach ($module_list as $module => $module_name) { + $mod_select->addOption($module, $module_name." (" . $counts_module[$module] . ")"); +} +$tray->addElement($mod_select); +$status_select = new XoopsFormRadio("", 'status', $status); +$status_select->addOption(-1, _ALL); +$status_select->addOption(0, TAG_AM_ACTIVE); +$status_select->addOption(1, TAG_AM_INACTIVE); +$tray->addElement($status_select); +$tray->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); +$opform->addElement($tray); +$opform->display(); + +$criteria = new CriteriaCompo(); +$criteria->setSort("a"); +$criteria->setOrder("ASC"); +$criteria->setStart($start); +$criteria->setLimit($limit); +if ($status >= 0) { + $criteria->add( new Criteria("o.tag_status", $status) ); +} +if (!empty($modid)) { + $criteria->add( new Criteria("l.tag_modid", $modid) ); +} +$tags = $tag_handler->getByLimit($criteria, false); + +$form_tags = "<form name='tags' method='post' action='" . xoops_getenv("PHP_SELF") . "'>"; +$form_tags .= "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>"; +$form_tags .= "<tr align='center'>"; +$form_tags .= "<td class='bg3'>" . TAG_AM_TERM . "</td>"; +$form_tags .= "<td class='bg3' width='10%'>" . TAG_AM_ACTIVE . "</td>"; +$form_tags .= "<td class='bg3' width='10%'>" . TAG_AM_INACTIVE . "</td>"; +$form_tags .= "<td class='bg3' width='10%'>" . _DELETE . "</td>"; +$form_tags .= "</tr>"; +if (empty($tags)) { + $form_tags .= "<tr><td colspan='4'>" . _NONE . "</td></tr>"; +} else { + $class_tr = array("odd", "even"); + $i = 0; + foreach (array_keys($tags) as $key) { + $form_tags .= "<tr class='" . $class_tr[(++$i) % 2] . "'>"; + $form_tags .= "<td>" . $tags[$key]["term"] . "</td>"; + $form_tags .= "<td><input type='radio' name='tags[{$key}]' value='0' " . ( $tags[$key]["status"] ? "" : " 'checked' ") . "></td>"; + $form_tags .= "<td><input type='radio' name='tags[{$key}]' value='1' " . ( $tags[$key]["status"] ? " 'checked' " : "") . "></td>"; + $form_tags .= "<td><input type='radio' name='tags[{$key}]' value='-1'></td>"; + $form_tags .= "</tr>"; + } + if ( !empty($start) || count($tags) >= $limit ) { + $count_tag = $tag_handler->getCount($criteria); + + include XOOPS_ROOT_PATH . "/class/pagenav.php"; + $nav = new XoopsPageNav($count_tag, $limit, $start, "start", "modid={$modid}&status={$status}"); + $form_tags .= "<tr><td colspan='4' align='right'>" . $nav->renderNav(4) . "</td></tr>"; + } + $form_tags .= "<tr><td colspan='4' align='center'>"; + $form_tags .= "<input type='hidden' name='status' value='{$status}'> "; + $form_tags .= "<input type='hidden' name='start' value='{$start}'> "; + $form_tags .= "<input type='hidden' name='modid' value='{$modid}'> "; + $form_tags .= "<input type='submit' name='submit' value='" . _SUBMIT . "'> "; + $form_tags .= "<input type='reset' name='submit' value='" . _CANCEL . "'>"; + $form_tags .= "</td></tr>"; +} +$form_tags .= "</table>"; +$form_tags .= "</form>"; + +echo $form_tags; +xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/admin/admin.tag.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/admin/header.php =================================================================== --- XoopsModules/tag/branches/arion92fr/admin/header.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/admin/header.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,89 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ + +include "../../../include/cp_header.php"; +require XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/vars.php"; +require_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/functions.php"; +xoops_loadLanguage("main", $xoopsModule->getVar("dirname")); + +$myts =& MyTextSanitizer::getInstance(); + +IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"): + +function loadModuleAdminMenu($currentoption, $breadcrumb = "") +{ + if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) { + return false; + } + + $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb; + $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/"; + $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images"; + + $adminmenu_text =' + <style type="text/css"> + <!-- + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;} + #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;} + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar .current a { background-position:0 -150px; border-width:0; } + #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + //--> + </style> + <div id="buttontop"> + <table style="width: 100%; padding: 0; " cellspacing="0"> + <tr> + <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a> + </td> + <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . ' + </td> + </tr> + </table> + </div> + <div id="buttonbar"> + <ul> + '; + foreach (array_keys($adminmenu) as $key) { + $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>'; + } + $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>'; + $adminmenu_text .= ' + </ul> + </div> + <br style="clear:both;" />'; + + echo $adminmenu_text; +} + +ENDIF; +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/admin/header.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/admin/index.php =================================================================== --- XoopsModules/tag/branches/arion92fr/admin/index.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/admin/index.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,89 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: index.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ +include 'header.php'; + +xoops_cp_header(); + +include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php"; +echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(0) : ""; + +$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname")); +$count_tag = $tag_handler->getCount(); + +$count_item = 0; +$sql = " SELECT COUNT(DISTINCT tl_id) FROM " . $xoopsDB->prefix("tag_link"); +if ( ($result = $xoopsDB->query($sql)) == false) { + xoops_error($xoopsDB->error()); +} else { + list($count_item) = $xoopsDB->fetchRow($result); +} + +$sql = " SELECT tag_modid, SUM(tag_count) AS count_item, COUNT(DISTINCT tag_id) AS count_tag"; +$sql .= " FROM " . $xoopsDB->prefix("tag_stats"); +$sql .= " GROUP BY tag_modid"; +$counts_module = array(); +if( ($result = $xoopsDB->query($sql)) == false) { + xoops_error($xoopsDB->error()); +} else { + while ($myrow = $xoopsDB->fetchArray($result)) { + $counts_module[$myrow["tag_modid"]] = array("count_item" => $myrow["count_item"], "count_tag" => $myrow["count_tag"]); + } + if (!empty($counts_module)) { + $module_handler =& xoops_gethandler("module"); + $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN")); + } +} + +$output= " + <style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> +"; + +$output .= "<fieldset><legend style='font-weight: bold; color: #900;'>" . TAG_AM_STATS . "</legend>"; +$output .= "<div style='padding: 8px;'>"; +$output .= "<label><strong>" . TAG_AM_COUNT_TAG . ":</strong></label><text>" . $count_tag . "</text><br />"; +$output .= "<label><strong>" . TAG_AM_COUNT_ITEM . ":</strong></label><text>" . $count_item . "</text><br />"; +$output .= "</div>"; +$output .= "<div style='padding: 8px;'>"; +$output .= "<label><strong>" . TAG_AM_COUNT_MODULE . "</strong>:</label><text>" . TAG_AM_COUNT_TAG . " - " . TAG_AM_COUNT_ITEM . "</text><br />"; +foreach ($counts_module as $module => $count) { + $output .= "<label>" . $module_list[$module] . ":</label><text>" . $count["count_tag"] . " - " . $count["count_item"] . " [<a href=\"" . XOOPS_URL . "/modules/tag/admin/admin.tag.php?modid={$module}\">" . TAG_AM_EDIT . "</a>] [<a href=\"" . XOOPS_URL . "/modules/tag/admin/syn.tag.php?modid={$module}\">" . TAG_AM_SYNCHRONIZATION . "</a>] </text><br />"; +} +$output .= "</div>"; +$output .= "</fieldset>"; + +echo $output; +xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/admin/index.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/admin/menu.php =================================================================== --- XoopsModules/tag/branches/arion92fr/admin/menu.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/admin/menu.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,35 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: menu.php 1575 2008-05-04 15:54:26Z phppp $ + * @package tag + */ + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +global $adminmenu; + +$adminmenu = array(); + +$adminmenu[]= array("link" => "admin/index.php", + "title" => TAG_MI_ADMENU_INDEX); +$adminmenu[]= array("link" => "admin/admin.tag.php", + "title" => TAG_MI_ADMENU_EDIT); +$adminmenu[]= array("link" => "admin/syn.tag.php", + "title" => TAG_MI_ADMENU_SYNCHRONIZATION); +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/admin/menu.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/admin/syn.tag.php =================================================================== --- XoopsModules/tag/branches/arion92fr/admin/syn.tag.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/admin/syn.tag.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,94 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: syn.tag.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ +include 'header.php'; +require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; + +xoops_cp_header(); + +include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php"; +echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; + +$limit = 10; +$modid = intval( @$_GET['modid'] ); +$start = intval( @$_GET['start'] ); +$limit = isset($_GET['limit']) ? intval( $_GET['limit'] ) : 100; + +$sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag"; +$sql .= " FROM " . $xoopsDB->prefix("tag_link"); +$sql .= " GROUP BY tag_modid"; +$counts_module = array(); +$module_list = array(); +if ( $result = $xoopsDB->query($sql)) { + while ($myrow = $xoopsDB->fetchArray($result)) { + $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"]; + } + if (!empty($counts_module)) { + $module_handler =& xoops_gethandler("module"); + $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN")); + } +} + +$opform = new XoopsSimpleForm('', 'moduleform', xoops_getenv("PHP_SELF"), "get"); +$tray = new XoopsFormElementTray(''); +$mod_select = new XoopsFormSelect(_SELECT, 'modid', $modid); +$mod_select->addOption(-1, TAG_AM_GLOBAL); +$mod_select->addOption(0, TAG_AM_ALL); +foreach ($module_list as $module => $module_name) { + $mod_select->addOption($module, $module_name . " (" . $counts_module[$module] . ")"); +} +$tray->addElement($mod_select); +$num_select = new XoopsFormSelect(TAG_AM_NUM, 'limit', $limit); +foreach (array(10, 50, 100, 500) as $_num) { + $num_select->addOption($_num); +} +$num_select->addOption(0, _ALL); +$tray->addElement($num_select); +$tray->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); +$tray->addElement(new XoopsFormHidden("start", $start)); +$opform->addElement($tray); +$opform->display(); + + +if ( isset($_GET['start']) ) { + + $tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname")); + + $criteria = new CriteriaCompo(); + $criteria->setStart($start); + $criteria->setLimit($limit); + if ($modid > 0) { + $criteria->add( new Criteria("l.tag_modid", $modid) ); + } + $tags = $tag_handler->getByLimit($criteria, false); + if (empty($tags)) { + echo "<h2>" . TAG_AM_FINISHED . "</h2>"; + } else { + + foreach (array_keys($tags) as $tag_id) { + $tag_handler->update_stats($tag_id, ( $modid == -1 ) ? 0 : $tags[$tag_id]["modid"]); + } + redirect_header("syn.tag.php?modid={$modid}&start=" . ($start + $limit) . "&limit={$limit}", 2, TAG_AM_IN_PROCESS); + } +} + +xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/admin/syn.tag.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/blocks/block.php =================================================================== --- XoopsModules/tag/branches/arion92fr/blocks/block.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/blocks/block.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,463 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: block.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } +include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php"; +include_once XOOPS_ROOT_PATH . "/modules/tag/include/functions.php"; + +xoops_loadLanguage("blocks", "tag"); + +/**#@+ + * Function to display tag cloud + * + * Developer guide: + * <ul> + * <li>Build your tag_block_cloud_show function, for example newbb_block_tag_cloud_show;</li> + * <li>Call the tag_block_cloud_show in your defined block function:<br /> + * <code> + * function newbb_block_tag_cloud_show($options) { + * $catid = $options[4]; // Not used by newbb, Only for demonstration + * if (!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php") { + * return null; + * } + * $block_content = tag_block_cloud_show($options, "newbb", $catid); + * return $block_content; + * } + * </code> + * </li> + * <li>Build your tag_block_cloud_edit function, for example newbb_block_tag_cloud_edit;</li> + * <li>Call the tag_block_cloud_edit in your defined block function:<br /> + * <code> + * function newbb_block_tag_cloud_edit($options) { + * if (!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php") { + * return null; + * } + * $form = tag_block_cloud_edit($options); + * $form .= $CODE_FOR_GET_CATID; // Not used by newbb, Only for demonstration + * return $form; + * } + * </code> + * </li> + * <li>Create your tag_block_cloud template, for example newbb_block_tag_cloud.html;</li> + * <li>Include tag_block_cloud template in your created block template:<br /> + * <code> + * <{include file="db:tag_block_cloud.html"}> + * </code> + * </li> + * </ul> + * + * {@link TagTag} + * + * @param array $options: + * $options[0] - number of tags to display + * $options[1] - time duration, in days, 0 for all the time + * $options[2] - max font size (px or %) + * $options[3] - min font size (px or %) + */ +function tag_block_cloud_show( $options, $dirname = "", $catid = 0 ) +{ + global $xoopsDB; + + if (empty($dirname)) { + $modid = 0; + } elseif (isset($GLOBALS["xoopsModule"]) && is_object($GLOBALS["xoopsModule"]) && $GLOBALS["xoopsModule"]->getVar("dirname") == $dirname) { + $modid = $GLOBALS["xoopsModule"]->getVar("mid"); + } else { + $module_handler =& xoops_gethandler("module"); + $module = $module_handler->getByDirname($dirname); + $modid = $module->getVar("mid"); + } + + $block = array(); + $tag_handler =& xoops_getmodulehandler("tag", "tag"); + tag_define_url_delimiter(); + + $criteria = new CriteriaCompo(); + $criteria->setSort("count"); + $criteria->setOrder("DESC"); + $criteria->setLimit($options[0]); + $criteria->add( new Criteria("o.tag_status", 0) ); + if (!empty($modid)) { + $criteria->add( new Criteria("l.tag_modid", $modid) ); + if ($catid >= 0) { + $criteria->add( new Criteria("l.tag_catid", $catid) ); + } + } + if (!$tags = $tag_handler->getByLimit($criteria, empty($options[1]))) { + return $block; + } + + $count_max = 0; + $count_min = 0; + $tags_term = array(); + foreach (array_keys($tags) as $key) { + if ($tags[$key]["count"] > $count_max) $count_max = $tags[$key]["count"]; + if ($tags[$key]["count"] < $count_min || $count_min == 0) $count_min = $tags[$key]["count"]; + $tags_term[] = strtolower($tags[$key]["term"]); + } + array_multisort($tags_term, SORT_ASC, $tags); + $count_interval = $count_max - $count_min; + $level_limit = 5; + + $font_max = $options[2]; + $font_min = $options[3]; + $font_ratio = ($count_interval) ? ($font_max - $font_min) / $count_interval : 1; + + $tags_data = array(); + foreach (array_keys($tags) as $key) { + $tags_data[] = array( + "id" => $tags[$key]["id"], + "font" => ($count_interval) ? floor( ($tags[$key]["count"] - $count_min) * $font_ratio + $font_min ) : 100, + "level" => empty($count_max) ? 0 : floor( ($tags[$key]["count"] - $count_min) * $level_limit / $count_max ), + "term" => $tags[$key]["term"], + "count" => $tags[$key]["count"], + ); + } + unset($tags, $tags_term); + + $block["tags"] =& $tags_data; + $block["tag_dirname"] = "tag"; + if (!empty($modid)) { + $module_handler =& xoops_gethandler('module'); + if ($module_obj =& $module_handler->get($modid)) { + $block["tag_dirname"] = $module_obj->getVar("dirname"); + } + } + return $block; +} + +function tag_block_cloud_edit($options) +{ + $form = TAG_MB_ITEMS . ": <input type=\"text\" name=\"options[0]\" value=\"" . $options[0] . "\" /><br />"; + $form .= TAG_MB_TIME_DURATION . ": <input type=\"text\" name=\"options[1]\" value=\"" . $options[1] . "\" /><br />"; + $form .= TAG_MB_FONTSIZE_MAX . ": <input type=\"text\" name=\"options[2]\" value=\"" . $options[2] . "\" /><br />"; + $form .= TAG_MB_FONTSIZE_MIN . ": <input type=\"text\" name=\"options[3]\" value=\"" . $options[3] . "\" /><br />"; + + return $form; +} + + +/**#@+ + * Function to display top tag list + * + * Developer guide: + * <ul> + * <li>Build your tag_block_top_show function, for example newbb_block_tag_top_show;</li> + * <li>Call the tag_block_top_show in your defined block function:<br /> + * <code> + * function newbb_block_tag_top_show($options) { + * $catid = $options[3]; // Not used by newbb, Only for demonstration + * if (!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php") { + * return null; + * } + * $block_content = tag_block_top_show($options, "newbb", $catid); + * return $block_content; + * } + * </code> + * </li> + * <li>Build your tag_block_top_edit function, for example newbb_block_tag_top_edit;</li> + * <li>Call the tag_block_top_edit in your defined block function:<br /> + * <code> + * function newbb_block_tag_top_edit($options) { + * if (!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php") { + * return null; + * } + * $form = tag_block_cloud_edit($options); + * $form .= $CODE_FOR_GET_CATID; // Not used by newbb, Only for demonstration + * return $form; + * } + * </code> + * </li> + * <li>Create your tag_block_top template, for example newbb_block_tag_top.html;</li> + * <li>Include tag_block_top template in your created block template:<br /> + * <code> + * <{include file="db:tag_block_top.html"}> + * </code> + * </li> + * </ul> + * + * {@link TagTag} + * + * @param array $options: + * $options[0] - number of tags to display + * $options[1] - time duration, in days, 0 for all the time + * $options[2] - sort: a - alphabet; c - count; t - time + */ +function tag_block_top_show( $options, $dirname = "", $catid = 0 ) +{ + global $xoopsDB; + + if (empty($dirname)) { + $modid = 0; + } elseif (isset($GLOBALS["xoopsModule"]) && is_object($GLOBALS["xoopsModule"]) && $GLOBALS["xoopsModule"]->getVar("dirname") == $dirname) { + $modid = $GLOBALS["xoopsModule"]->getVar("mid"); + } else { + $module_handler =& xoops_gethandler("module"); + $module = $module_handler->getByDirname($dirname); + $modid = $module->getVar("mid"); + } + + $block = array(); + $tag_handler =& xoops_getmodulehandler("tag", "tag"); + tag_define_url_delimiter(); + + $criteria = new CriteriaCompo(); + $sort = ($options[2] == "a" || $options[2] == "alphabet") ? "count" : $options[2]; + $criteria->setSort("count"); + $criteria->setOrder("DESC"); + $criteria->setLimit($options[0]); + $criteria->add( new Criteria("o.tag_status", 0) ); + if (!empty($options[1])) { + $criteria->add( new Criteria("l.tag_time", time() - $options[1] * 24 * 3600, ">") ); + } + if (!empty($modid)) { + $criteria->add( new Criteria("l.tag_modid", $modid) ); + if ($catid >= 0) { + $criteria->add( new Criteria("l.tag_catid", $catid) ); + } + } + if (!$tags = $tag_handler->getByLimit($criteria, empty($options[1]))) { + return $block; + } + + $count_max = 0; + $count_min = 0; + $tags_sort = array(); + foreach (array_keys($tags) as $key) { + if ($tags[$key]["count"] > $count_max) $count_max = $tags[$key]["count"]; + if ($tags[$key]["count"] < $count_min) $count_min = $tags[$key]["count"]; + if ($options[2] == "a" || $options[2] == "alphabet") { + $tags_sort[] = strtolower($tags[$key]["term"]); + } + } + $count_interval = $count_max - $count_min; + + /* + $font_max = $options[1]; + $font_min = $options[2]; + $font_ratio = ($count_interval) ? ($font_max - $font_min) / $count_interval : 1; + */ + if (!empty($tags_sort)) { + array_multisort($tags_sort, SORT_ASC, $tags); + } + + $tags_data = array(); + foreach (array_keys($tags) as $key) { + $tags_data[] = array( + "id" => $tags[$key]["id"], + //"level" => ($tags[$key]["count"] - $count_min) * $font_ratio + $font_min, + "term" => $tags[$key]["term"], + "count" => $tags[$key]["count"], + ); + } + unset($tags, $tags_term); + + $block["tags"] =& $tags_data; + $block["tag_dirname"] = "tag"; + if (!empty($modid)) { + $module_handler =& xoops_gethandler('module'); + if ($module_obj =& $module_handler->get($modid)) { + $block["tag_dirname"] = $module_obj->getVar("dirname"); + } + } + return $block; +} + +function tag_block_top_edit($options) +{ + $form = TAG_MB_ITEMS . ": <input type=\"text\" name=\"options[0]\" value=\"" . $options[0] . "\" /><br />"; + $form .= TAG_MB_TIME_DURATION . ": <input type=\"text\" name=\"options[1]\" value=\"" . $options[1] . "\" /><br />"; + $form .= TAG_MB_SORT . ": <select name='options[2]'>"; + $form .= "<option value='a'"; + if ($options[2] == "a") $form .= " selected='selected' "; + $form .= ">" . TAG_MB_ALPHABET . "</option>"; + $form .= "<option value='c'"; + if ($options[2] == "c") $form .= " selected='selected' "; + $form .= ">" . TAG_MB_COUNT . "</option>"; + $form .= "<option value='t'"; + if ($options[2] == "t") $form .= " selected='selected' "; + $form .= ">" . TAG_MB_TIME . "</option>"; + $form .= "</select>"; + + return $form; +} + +/* + * $options: $options[0] - number of tags to display $options[1] - time duration +* $options[2] - max font size (px or %) $options[3] - min font size (px or %) +* $options[4] - cumulus_flash_width $options[5] - cumulus_flash_height +* $options[6] - cumulus_flash_background $options[7] - +* cumulus_flash_transparency $options[8] - cumulus_flash_color $options[9] - +* cumulus_flash_hicolor $options[10] - cumulus_flash_speed +*/ +function tag_block_cumulus_show($options, $dirname = "", $catid = 0) { + global $xoopsDB, $xoTheme; + + $xoTheme->addScript("modules/tag/include/swfobject.js"); + xoops_load('xoopscache'); + $cache =& XoopsCache::getInstance(); + $keysql=md5("tag_block_cumulus_show"); + $result = $cache->read($keysql); + if ($result){ + return $result; + } + if (empty ( $dirname )) { + $modid = 0; + } elseif (isset ( $GLOBALS ["xoopsModule"] ) && is_object ( $GLOBALS ["xoopsModule"] ) && $GLOBALS ["xoopsModule"]->getVar ( "dirname" ) == $dirname) { + $modid = $GLOBALS ["xoopsModule"]->getVar ( "mid" ); + } else { + $module_handler = & xoops_gethandler ( "module" ); + $module = $module_handler->getByDirname ( $dirname ); + $modid = $module->getVar ( "mid" ); + } + + $block = array (); + $tag_handler = & xoops_getmodulehandler ( "tag", "tag" ); + tag_define_url_delimiter (); + + $criteria = new CriteriaCompo (); + $criteria->setSort ( "count" ); + $criteria->setOrder ( "DESC" ); + $criteria->setLimit ( $options [0] ); + $criteria->add ( new Criteria ( "o.tag_status", 0 ) ); + if (! empty ( $modid )) { + $criteria->add ( new Criteria ( "l.tag_modid", $modid ) ); + if ($catid >= 0) { + $criteria->add ( new Criteria ( "l.tag_catid", $catid ) ); + } + } + if (! $tags = $tag_handler->getByLimit ( $criteria, empty ( $options [1] ) )) { + return $block; + } + + $count_max = 0; + $count_min = 0; + $tags_term = array (); + foreach ( array_keys ( $tags ) as $key ) { + if ($tags [$key] ["count"] > $count_max) + $count_max = $tags [$key] ["count"]; + if ($tags [$key] ["count"] < $count_min || $count_min == 0) + $count_min = $tags [$key] ["count"]; + $tags_term [] = strtolower ( $tags [$key] ["term"] ); + } + array_multisort ( $tags_term, SORT_ASC, $tags ); + $count_interval = $count_max - $count_min; + $level_limit = 5; + + $font_max = $options [2]; + $font_min = $options [3]; + $font_ratio = ($count_interval) ? ($font_max - $font_min) / $count_interval : 1; + + $tags_data = array (); + foreach ( array_keys ( $tags ) as $key ) { + $tags_data [] = array ("id" => $tags [$key] ["id"], "font" => ($count_interval) ? floor ( ($tags [$key] ["count"] - $count_min) * $font_ratio + $font_min ) : 12, "level" => empty ( $count_max ) ? 0 : floor ( ($tags [$key] ["count"] - $count_min) * $level_limit / $count_max ), "term" => $tags [$key] ["term"], "count" => $tags [$key] ["count"] ); + } + unset ( $tags, $tags_term ); + $block ["tags"] = & $tags_data; + + $block ["tag_dirname"] = "tag"; + if (! empty ( $modid )) { + $module_handler = & xoops_gethandler ( 'module' ); + if ($module_obj = & $module_handler->get ( $modid )) { + $block ["tag_dirname"] = $module_obj->getVar ( "dirname" ); + } + } + $flash_params = array ('flash_url' => XOOPS_URL . "/modules/tag/include/cumulus.swf", + 'width' => $options [4], 'height' => $options [5], + 'background' => preg_replace ( '/(#)/ie', '', $options [6] ), + 'color' => "0x" . preg_replace ( '/(#)/ie', '', $options [8] ), // 'hicolor' => "0x".preg_replace('/(#)/ie','',$options[9]), + 'speed' => $options [9] ); + + $output = '<tags>'; + $xoops_url = XOOPS_URL; + foreach ( $tags_data as $term ) { + // assign font size + $output .= <<<EOT +<a href='{$xoops_url}/modules/tag/view.tag.php?{$term['id']}' style='font-size: {$term['font']}px;'>{$term['term']}</a> +EOT; + } + $output .= '</tags>'; + $flash_params ['tags_formatted_flash'] = urlencode ( $output ); + if ($options [7] === "transparent") { + $flash_params ['transparency'] = 'widget_so.addParam("wmode", "transparent");'; + } + $block ["flash_params"] = $flash_params; + $cache->write($keysql, $block, 60*60); + return $block; + +} +function tag_block_cumulus_edit($options) { +error_reporting(E_ALL); + include_once (XOOPS_ROOT_PATH . "/class/xoopsformloader.php"); + if (!class_exists("XoopsCumulusBlockForm")){ + class XoopsCumulusBlockForm extends XoopsForm { + + /** + * create HTML to output the form as a table + * + * @return string + */ + function render() { + $ele_name = $this->getName (); + $ret = " + <div> + "; + $hidden = ''; + foreach ( $this->getElements () as $ele ) { + if (! is_object ( $ele )) { + $ret .= $ele; + } elseif (! $ele->isHidden ()) { + if (($caption = $ele->getCaption ()) != '') { + $ret .= "<div class='xoops-form-element-caption" . ($ele->isRequired () ? "-required" : "") . "'>" . "<span class='caption-text'>{$caption}</span>" . "<span class='caption-marker'>*</span>" . "</div>"; + } + + $ret .= "<div style='margin:5px 0 8px 0; '>" . $ele->render () . "</div>\n"; + } else { + $hidden .= $ele->render (); + } + } + $ret .= "</div>"; + $ret .= $this->renderValidationJS ( true ); + return $ret; + } + }} + + $form = new XoopsCumulusBlockForm ( "", "", "" ); + $form->addElement ( new XoopsFormText ( TAG_MB_ITEMS, "options[0]", 25, 25, $options [0] ) ); + $form->addElement ( new XoopsFormText ( TAG_MB_TIME_DURATION, "options[1]", 25, 25, $options [1] ) ); + $form->addElement ( new XoopsFormText ( TAG_MB_FONTSIZE_MAX, "options[2]", 25, 25, $options [2] ) ); + $form->addElement ( new XoopsFormText ( TAG_MB_FONTSIZE_MIN, "options[3]", 25, 25, $options [3] ) ); + $form->addElement ( new XoopsFormText ( TAG_MB_FLASH_WIDTH, "options[4]", 25, 25, $options [4] ) ); + $form->addElement ( new XoopsFormText ( TAG_MB_FLASH_HEIGHT, "options[5]", 25, 25, $options [5] ) ); + $form->addElement ( new XoopsFormColorPicker ( TAG_MB_FLASH_TRANSPARENCY, "options[6]", $options [6] ) ); + $form_cumulus_flash_transparency = new XoopsFormSelect ( TAG_MB_FLASH_TRANSPARENCY, "options[7]", $options [7] ); + $form_cumulus_flash_transparency->addOption ( 0, _NO ); + $form_cumulus_flash_transparency->addOption ( "transparent", TAG_MB_FLASH_TRANSPARENT ); + $form->addElement ( $form_cumulus_flash_transparency ); + $form->addElement ( new XoopsFormColorPicker ( TAG_MB_FLASH_FONTCOLOR, "options[8]", $options [8] ) ); + // $form->addElement(new + // XoopsFormColorPicker("cumulus_flash_hicolor","options[9]",$options[9])); + $form->addElement ( new XoopsFormText ( TAG_MB_FLASH_SPEED, "options[9]", 25, 25, $options [9] ) ); + + return $form->render (); +} +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/blocks/index.html ___________________________________________________________________ Added: svn:eol-style + native Property changes on: XoopsModules/tag/branches/arion92fr/class/index.html ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/class/link.php =================================================================== --- XoopsModules/tag/branches/arion92fr/class/link.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/class/link.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,79 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: link.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class TagLink extends XoopsObject +{ + /** + * Constructor + */ + function TagLink() + { + $this->initVar("tl_id", XOBJ_DTYPE_INT, null, false); + $this->initVar("tag_id", XOBJ_DTYPE_INT, 0); + $this->initVar("tag_modid", XOBJ_DTYPE_INT, 0); + $this->initVar("tag_catid", XOBJ_DTYPE_INT, 0); + $this->initVar("tag_itemid", XOBJ_DTYPE_INT, 0); + $this->initVar("tag_time", XOBJ_DTYPE_INT, 0); + } +} + +/** + * Tag link handler class. + * @package tag + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class TagLinkHandler extends XoopsPersistableObjectHandler +{ + var $table_stats; + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function TagLinkHandler(&$db) + { + $this->XoopsPersistableObjectHandler($db, "tag_link", "TagLink", "tl_id", "tag_itemid"); + $this->table_stats = $this->db->prefix("tag_stats"); + } + + /** + * clean orphan links from database + * + * @return bool true on success + */ + function cleanOrphan() + { + return parent::cleanOrphan($this->db->prefix("tag_tag"), "tag_id"); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/arion92fr/class/link.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/arion92fr/class/tag.php =================================================================== --- XoopsModules/tag/branches/arion92fr/class/tag.php (rev 0) +++ XoopsModules/tag/branches/arion92fr/class/tag.php 2012-03-23 17:42:46 UTC (rev 9173) @@ -0,0 +1,547 @@ +<?php +/* + 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. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: tag.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class TagTag extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function TagTag($id = null) + { + $this->initVar("tag_id", XOBJ_DTYPE_INT, null, false); + $this->initVar("tag_term", XOBJ_DTYPE_TXTBOX, "", true); + $this->initVar("tag_status", XOBJ_DTYPE_INT, 0); + $this->initVar("tag_count", XOBJ_DTYPE_INT, 0); + } +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class TagTagHandler extends XoopsPersistableObjectHandler +{ + var $table_link; + var $table_stats; + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function TagTagHandler(&$db) + { + $this->XoopsPersistableObjectHandler($db, "tag_tag", "TagTag", "tag_id", "tag_term"); + $this->table_link = $this->db->prefix("tag_link"); + $this->table_stats = $this->db->prefix("tag_stats"); + } + + /** + * Get tags linked to an item + * + * @param integer $itemid item ID + * @param integer $modid module ID, optional + * @param integer $catid id of corresponding category, optional + * @return array associative array of tags (id, term) + */ + function getByItem($itemid, $modid = 0, $catid = 0) + { + $ret = array(); + + $itemid = intval($itemid); + $modid = (empty($modid) && is_object($GLOBALS["xoopsModule"]) && "tag" != $GLOBALS["xoopsModule"]->getVar("dirname") ) ? $GLOBALS["xoopsModule"]->getVar("mid") : intval($modid); + if (empty($itemid) || empty($modid)) return $ret; + + $sql = "SELECT o.tag_id, o.tag_term" . + " FROM {$this->table_link} AS l " . + " LEFT JOIN {$this->table} AS o ON o.{$this->keyName} = l.{$this->keyName} " . + " WHERE l.tag_itemid = {$itemid} AND l.tag_modid = {$modid}" . + (empty($catid) ? "" : ( " AND l.tag_catid=" . intval($catid))) . + " ORDER BY o.tag_count DESC" + ; + if ( ($result = $this->db->query($sql)) == false) { + return $ret; + } + while ($myrow = $this->db->fetchArray($result)) { + $ret[$myrow[$this->keyName]] = $myrow["tag_term"]; + } + return $ret; + } + + /** + * Update tags linked to an item + * + * @param array $tags + * @param integer $itemid item ID + * @param integer $modid module ID or module dirname, optional + * @param integer $catid id of corresponding category, optional + * @return boolean + */ + function updateByItem($tags, $itemid, $modid = "", $catid = 0) + { + $catid = intval($catid); + $itemid = intval($itemid); + $cache =& XoopsCache::getInstance(); + $keysql=md5("tag_block_cumulus_show"); + $cache->delete($keysql); + if (!empty($modid) && !is_numeric($modid)) { + if (is_object($GLOBALS["xoopsModule"]) && $modid == $GLOBALS["xoopsModule"]->getVar("dirname") ) { + $modid = $GLOBALS["xoopsModule"]->getVar("mid"); + } else { + $module_handler =& xoops_gethandler("module"); + if ($module_obj = $module_handler->getByDirname($modid)) { + $modid = $module_obj->getVar("mid"); + } else { + $modid = 0; + } + } + } elseif (is_object($GLOBALS["xoopsModule"])) { + $modid = $GLOBALS["xoopsModule"]->getVar("mid"); + } + + if (empty($itemid) || empty($modid)) return false; + + if (empty($tags)) { + $tags = array(); + } elseif (!is_array($tags)) { + include_once XOOPS_ROOT_PATH . "/modules/tag/include/functions.php"; + $tags = tag_parse_tag(addslashes(stripslashes($tags))); + } + + $tags_existing = $this->getByItem($itemid, $modid, $catid); + $tags_delete = array_diff(array_values($tags_existing), $tags); + $tags_add = array_diff($tags, array_values($tags_existing)); + + $tags_update = array(); + + if (!empty($tags_delete)) { + $tags_delete = array_map(array($this->db, "quoteString"), $tags_delete); + if ($tags_id = $this->getIds(new Criteria("tag_term", "(" . implode(", ", $tags_delete) . ")", "IN"))) { + $sql = "DELETE FROM {$this->table_link}" . + " WHERE " . + " {$this->keyName} IN (" . implode(", ", $tags_id) . ")" . + " AND tag_modid = {$modid} AND tag_catid = {$catid} AND tag_itemid = {$itemid}"; + if ( ($result = $this->db->queryF($sql)) == false) { + } + $sql = "DELETE FROM " . $this->table . + " WHERE ". + " tag_count < 2 AND ". + " {$this->keyName} IN (" . implode(", ", $tags_id) . ")"; + if ( ($result = $this->db->queryF($sql)) == false) { + //xoops_error($this->db->error()); + } + + $sql = "UPDATE " . $this->table . + " SET tag_count = tag_count - 1" . + " WHERE " . + " {$this->keyName} IN (" . implode(", ", $tags_id) . ")"; + if ( ($result = $this->db->queryF($sql)) == false) { + //xoops_error($this->db->error()); + } + $tags_update = $tags_id; + } + } + + if (!empty($tags_add)) { + $tag_link = array(); + $tag_count = array(); + foreach($tags_add as $tag) { + if ($tags_id = $this->getIds(new Criteria("tag_term", $tag))) { + $tag_id = $tags_id[0]; + $tag_count[] = $tag_id; + } else { + $tag_obj =& $this->create(); + $tag_obj->setVar("tag_term", $tag); + $tag_obj->setVar("tag_count", 1); + $this->insert($tag_obj); + $tag_id = $tag_obj->getVar("tag_id"); + unset($tag_obj); + } + $tag_link[] = "({$tag_id}, {$itemid}, {$catid}, {$modid}, " . time() . ")"; + $tags_update[] = $tag_id; + } + $sql = "INSERT INTO {$this->table_link}" . + " (tag_id, tag_itemid, tag_catid, tag_modid, tag_time) " . + " VALUES " . implode(", ", $tag_link); + if ( ($result = $this->db->queryF($sql)) == false) { + //xoops_error($this->db->error()); + } + if (!empty($tag_count)) { + $sql = "UPDATE " . $this->table . + " SET tag_count = tag_count+1" . + " WHERE " . + " {$this->keyName} IN (" . implode(", ", $tag_count) . ")"; + if ( ($result = $this->db->queryF($sql)) == false) { + //xoops_error($this->db->error()); + } + } + } + foreach($tags_update as $tag_id) { + $this->update_stats($tag_id, $modid, $catid); + } + return true; + } + + function update_stats($tag_id, $modid = 0, $catid = 0) + { + $tag_id = intval($tag_id); + if (empty($tag_id)) return true; + $cache =& XoopsCache::getInstance(); + $keysql=md5("tag_block_cumulus_show"); + $cache->delete($keysql); + + $modid = intval($modid); + $catid = empty($modid) ? -1 : intval($catid); + + $count = 0; + $sql = " SELECT COUNT(*) " . + " FROM {$this->table_link}" . + " WHERE tag_id = {$tag_id}" . + (empty($modid) ? "" : " AND tag_modid = {$modid}"). + (($catid < 0) ? "" : " AND tag_catid = {$catid}"); + if ( ($result = $this->db->query($sql)) == false) { + //xoops_error($this->db->error()); + } else { + list($count) = $this->db->fetchRow($result); + } + if (empty($modid)) { + $tag_obj =& $this->get($tag_id); + if (empty($count)) { + $this->delete($tag_obj); + } else { + $tag_obj->setVar("tag_count", $count); + $this->insert($tag_obj, true); + } + } else { + if (empty($count)) { + $sql = "DELETE FROM {$this->table_stats}" . + " WHERE " . + " {$this->keyName} = {$tag_id}" . + " AND tag_modid = {$modid}" . + " AND tag_catid = {$catid}" + ; + if ( ($result = $this->db->queryF($sql)) == false) { + //xoops_error($this->db->error()); + } + } else { + $ts_id = null; + $sql = " SELECT ts_id, tag_count " . + " FROM {$this->table_stats}" . + " WHERE " . + " {$this->keyName} = {$tag_id}" . + " AND tag_modid = {$modid}" . + " AND tag_catid = {$catid}" + ; + if ($result = $this->db->query($sql)) { + list($ts_id, $tag_count) = $this->db->fetchRow($result); + } + $sql = ""; + if ($ts_id && $tag_count != $count) { + $sql = " UPDATE {$this->table_stats}" . + " SET tag_count = {$count}" . + " WHERE " . + " ts_id = {$ts_id}"; + } elseif (!$ts_id) { + $sql = " INSERT INTO {$this->table_stats}" . + " (tag_id, tag_modid, tag_catid, tag_count)" . + " VALUES " . + " ({$tag_id}, {$modid}, {$catid}, {$count})" + ; + } + if ( !empty($sql) && ($result = $this->db->queryF($sql)) == false) { + //xoops_error($this->db->error()); + } + } + } + + return true; + } + + /** + * Get tags with item count + * + * @param object $criteria + * @param boolean $fromSt... [truncated message content] |
From: <ari...@us...> - 2012-03-23 17:35:37
|
Revision: 9172 http://xoops.svn.sourceforge.net/xoops/?rev=9172&view=rev Author: arion92fr Date: 2012-03-23 17:35:28 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Created directory 'XoopsModules/tag/branches/arion92fr'. Added Paths: ----------- XoopsModules/tag/branches/arion92fr/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-22 09:58:23
|
Revision: 9171 http://xoops.svn.sourceforge.net/xoops/?rev=9171&view=rev Author: beckmi Date: 2012-03-22 09:58:12 +0000 (Thu, 22 Mar 2012) Log Message: ----------- Conversion to XOOPS 2.5.x GUI Modified Paths: -------------- XoopsModules/groups/trunk/groups/admin/index.php XoopsModules/groups/trunk/groups/admin/menu.php XoopsModules/groups/trunk/groups/admin/perm.php XoopsModules/groups/trunk/groups/images/gm_logo.png XoopsModules/groups/trunk/groups/language/english/admin.php XoopsModules/groups/trunk/groups/language/english/modinfo.php XoopsModules/groups/trunk/groups/templates/gm_admin_navbar.html XoopsModules/groups/trunk/groups/templates/gm_main.html XoopsModules/groups/trunk/groups/xoops_version.php Added Paths: ----------- XoopsModules/groups/trunk/groups/admin/about.php XoopsModules/groups/trunk/groups/admin/admin_footer.php XoopsModules/groups/trunk/groups/admin/admin_header.php XoopsModules/groups/trunk/groups/admin/main.php XoopsModules/groups/trunk/groups/docs/ XoopsModules/groups/trunk/groups/docs/changelog.txt XoopsModules/groups/trunk/groups/docs/credits.txt XoopsModules/groups/trunk/groups/docs/index.html XoopsModules/groups/trunk/groups/docs/install.txt XoopsModules/groups/trunk/groups/docs/lang_diff.txt XoopsModules/groups/trunk/groups/docs/license.txt XoopsModules/groups/trunk/groups/docs/readme.txt XoopsModules/groups/trunk/groups/language/english/help/ XoopsModules/groups/trunk/groups/language/english/help/help.html XoopsModules/groups/trunk/groups/language/english/help/index.html Added: XoopsModules/groups/trunk/groups/admin/about.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/about.php (rev 0) +++ XoopsModules/groups/trunk/groups/admin/about.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,38 @@ +<?php +// $Id: admin.php 8094 2011-11-06 09:52:56Z beckmi $ // +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.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. // +// // +// 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 // +// ------------------------------------------------------------------------ // +// + +include_once dirname(__FILE__) . '/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/groups/trunk/groups/admin/admin_footer.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/admin_footer.php (rev 0) +++ XoopsModules/groups/trunk/groups/admin/admin_footer.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,10 @@ +<?php + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_GROUPS_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/groups/trunk/groups/admin/admin_header.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/admin_header.php (rev 0) +++ XoopsModules/groups/trunk/groups/admin/admin_header.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,25 @@ +<?php + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_GMAPS_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/admin/index.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/index.php 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/admin/index.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -1,114 +1,13 @@ <?php -require_once '../../../include/cp_header.php'; +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; -require_once XOOPS_ROOT_PATH . '/class/template.php'; -if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} -$xoopsTpl->xoops_setCaching(0); -$xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname')); - - -// CHECK IF SUBMIT WAS PRESSED -if (isset($_POST['add_x']) or isset($_POST['del_x'])){ - -if (isset($_POST['add_x'])){ -$hMember =& xoops_gethandler('member'); -$membership =& $hMember->addUserToGroup($_POST['groupid'],$_POST['all']); -} - -if (isset($_POST['del_x'])){ -$hMember =& xoops_gethandler('member'); -$membership =& $hMember->removeUsersFromGroup($_POST['groupid'],array($_POST['curr'])); -} -} - - -/* -CREATE USER LIST -*/ - xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); -//Check user permission to display permission page -$perm_name = 'allowedgrp'; -$perm_itemid = 1; -if ($xoopsUser) { - $groups = $xoopsUser->getGroups(); -} else { - $groups = XOOPS_GROUP_ANONYMOUS; -} -$module_id = $xoopsModule->getVar('mid'); -$gperm_handler =& xoops_gethandler('groupperm'); -if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups, $module_id)) { - // allowed, so display contents within the category - $xoopsTpl->assign('perallow', 1); -} else { - // not allowed, display an error message or redirect to another page - $xoopsTpl->assign('perallow', 0); -} -//---------------------------------------*/ + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); - -$grpInfo=array(); - -$member_handler =& xoops_gethandler('member'); -$groups =& $member_handler->getGroups(); - -$count = count($groups); -for ($i = 0; $i < $count; $i++) { - -$id = $groups[$i]->getVar('groupid'); -$name=$groups[$i]->getVar('name'); -//Skip anonymous group -if ($id==3) continue; - - -//check if user has permission to change this group -$perm_name = 'groupper'; -$perm_itemid = $id; -if ($xoopsUser) { - $groups2 = $xoopsUser->getGroups(); -} else { - $groups2 = XOOPS_GROUP_ANONYMOUS; -} -$module_id = $xoopsModule->getVar('mid'); -$gperm_handler =& xoops_gethandler('groupperm'); -if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups2, $module_id)) { -} else { - continue; -} -//----------------*/ - - -$uids =& $member_handler->getUsersByGroup($id); -$criteria = new Criteria('uid', "(".implode(',', $uids).")", "IN"); -$criteria->setSort('uname'); -$users=$member_handler->getUserList($criteria); - -$grpInfo[$i]['users']=$users; -$grpInfo[$i]['name']=$name; -$grpInfo[$i]['id']=$id; -} - -/*---------------------------// -Get all users -//----------------------------------*/ -$allUsr=array(); -$member_handler =& xoops_gethandler('member'); -$foundusers =& $member_handler->getUsers(); -foreach (array_keys($foundusers) as $j) { -//echo $foundusers[$j]->getVar("uname").'<br>'; -$uid=$foundusers[$j]->getVar("uid"); -$username=$foundusers[$j]->getVar("uname"); -$allUsr[$uid]=$username; -} -//--------------------------// - - -$xoopsTpl->assign('allUsr', $allUsr); -$xoopsTpl->assign('grpInfo', $grpInfo); - -$xoopsTpl->display('db:gm_main.html'); -xoops_cp_footer(); -?> \ No newline at end of file +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/groups/trunk/groups/admin/main.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/main.php (rev 0) +++ XoopsModules/groups/trunk/groups/admin/main.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,145 @@ +<?php +// $Id: admin.php 8094 2011-11-06 09:52:56Z beckmi $ // +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.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. // +// // +// 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 // +// ------------------------------------------------------------------------ // +// + +require_once '../../../include/cp_header.php'; +include_once('admin_header.php'); + + +require_once XOOPS_ROOT_PATH . '/class/template.php'; +if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} +//$xoopsTpl->xoops_setCaching(0); +$xoopsTpl->caching=0; +$xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname')); + + +// CHECK IF SUBMIT WAS PRESSED +if (isset($_POST['add_x']) or isset($_POST['del_x'])){ + +if (isset($_POST['add_x'])){ +$hMember =& xoops_gethandler('member'); +$membership =& $hMember->addUserToGroup($_POST['groupid'],$_POST['all']); +} + +if (isset($_POST['del_x'])){ +$hMember =& xoops_gethandler('member'); +$membership =& $hMember->removeUsersFromGroup($_POST['groupid'],array($_POST['curr'])); +} +} + + +/* +CREATE USER LIST +*/ + +xoops_cp_header(); + +/* + +//Check user permission to display permission page +$perm_name = 'allowedgrp'; +$perm_itemid = 1; +if ($xoopsUser) { + $groups = $xoopsUser->getGroups(); +} else { + $groups = XOOPS_GROUP_ANONYMOUS; +} +$module_id = $xoopsModule->getVar('mid'); +$gperm_handler =& xoops_gethandler('groupperm'); +if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups, $module_id)) { + // allowed, so display contents within the category + $xoopsTpl->assign('perallow', 1); +} else { + // not allowed, display an error message or redirect to another page + $xoopsTpl->assign('perallow', 0); +} +//--------------------------------------- +*/ + +$grpInfo=array(); + +$member_handler =& xoops_gethandler('member'); +$groups =& $member_handler->getGroups(); + +$count = count($groups); +for ($i = 0; $i < $count; $i++) { + +$id = $groups[$i]->getVar('groupid'); +$name=$groups[$i]->getVar('name'); +//Skip anonymous group +if ($id==3) continue; + + +//check if user has permission to change this group +$perm_name = 'groupper'; +$perm_itemid = $id; +if ($xoopsUser) { + $groups2 = $xoopsUser->getGroups(); +} else { + $groups2 = XOOPS_GROUP_ANONYMOUS; +} +$module_id = $xoopsModule->getVar('mid'); +$gperm_handler =& xoops_gethandler('groupperm'); +if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups2, $module_id)) { +} else { + continue; +} +//----------------*/ + + +$uids =& $member_handler->getUsersByGroup($id); +$criteria = new Criteria('uid', "(".implode(',', $uids).")", "IN"); +$criteria->setSort('uname'); +$users=$member_handler->getUserList($criteria); + +$grpInfo[$i]['users']=$users; +$grpInfo[$i]['name']=$name; +$grpInfo[$i]['id']=$id; +} + +/*---------------------------// +Get all users +//----------------------------------*/ +$allUsr=array(); +$member_handler =& xoops_gethandler('member'); +$foundusers =& $member_handler->getUsers(); +foreach (array_keys($foundusers) as $j) { +//echo $foundusers[$j]->getVar("uname").'<br>'; +$uid=$foundusers[$j]->getVar("uid"); +$username=$foundusers[$j]->getVar("uname"); +$allUsr[$uid]=$username; +} +//--------------------------// + + +$xoopsTpl->assign('allUsr', $allUsr); +$xoopsTpl->assign('grpInfo', $grpInfo); + +$xoopsTpl->display('db:gm_main.html'); + +include_once("admin_footer.php"); +//xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/admin/menu.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/menu.php 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/admin/menu.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -1,6 +1,53 @@ <?php -$adminmenu[1]['title'] = 'Main'; -$adminmenu[1]['link'] = "admin/index.php"; +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); -?> \ No newline at end of file +global $xoopsModule, $xoopsUser; + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); + +xoops_loadLanguage('admin', $dirname); + +$i = 0; + +// Index +$adminmenu[$i]['title'] = _MI_GROUPS_ADMIN0; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; +$i++; + +$adminmenu[$i]['title'] = _MI_GROUPS_ADMIN1; +$adminmenu[$i]['link'] = "admin/main.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/manage.png'; + +//----------------------- + +//Check user permission to display permission page +//global $xoopsModule; +$xoopsModule = XoopsModule::getByDirname("groups"); + +$perm_name = 'allowedgrp'; +$perm_itemid = 1; +if ($xoopsUser) { + $groups = $xoopsUser->getGroups(); +} else { + $groups = XOOPS_GROUP_ANONYMOUS; +} +$module_id = $xoopsModule->getVar('mid'); +$gperm_handler =& xoops_gethandler('groupperm'); + +if ($gperm_handler->checkRight($perm_name, $perm_itemid, $groups, $module_id)) { + // allowed, so display contents within the category +$i++; +$adminmenu[$i]['title'] = _MI_GROUPS_ADMIN2; +$adminmenu[$i]['link'] = "admin/perm.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/permissions.png'; +} + +$i++; +$adminmenu[$i]['title'] = _MI_GROUPS_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/admin/perm.php =================================================================== --- XoopsModules/groups/trunk/groups/admin/perm.php 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/admin/perm.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -3,7 +3,8 @@ require_once XOOPS_ROOT_PATH . '/class/template.php'; if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} -$xoopsTpl->xoops_setCaching(0); +//$xoopsTpl->xoops_setCaching(0); +$xoopsTpl->caching=0; $xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname')); xoops_cp_header(); Added: XoopsModules/groups/trunk/groups/docs/changelog.txt =================================================================== --- XoopsModules/groups/trunk/groups/docs/changelog.txt (rev 0) +++ XoopsModules/groups/trunk/groups/docs/changelog.txt 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,10 @@ +Changelog (English) +-------------------------- + +Version 1.02 Beta (Mamba) 2012/03/21 +================================= +- converted to XOOPS 2.5.x Admin GUI (mamba) + +Version 1.01 (Kaotik) 2007/09/25 +================================= +- First release Added: XoopsModules/groups/trunk/groups/docs/credits.txt =================================================================== --- XoopsModules/groups/trunk/groups/docs/credits.txt (rev 0) +++ XoopsModules/groups/trunk/groups/docs/credits.txt 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,3 @@ +Originally developed by Kaotik with contributions from GibaPHP. + +Converted to XOOPS 2.5.x Admin GUI by Mamba. \ No newline at end of file Added: XoopsModules/groups/trunk/groups/docs/index.html =================================================================== --- XoopsModules/groups/trunk/groups/docs/index.html (rev 0) +++ XoopsModules/groups/trunk/groups/docs/index.html 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/groups/trunk/groups/docs/install.txt =================================================================== --- XoopsModules/groups/trunk/groups/docs/install.txt (rev 0) +++ XoopsModules/groups/trunk/groups/docs/install.txt 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,15 @@ +INSTALL/UNISTALL +================= + +No special measures necessary, follow the standard installation process & extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. + +- Configure module in prefs +- Obtain an api for your site from google. Link is given in the config page. +- Add your categories and points from the module menu (to make the module work, you will have to create one category at least) + +**Warning** : your theme has to be correctly compliant with w3c standards to display well large contents. Combined with the fact that IE asks for strict compliant code (in this case ! lol) , some display errors on IE for large contents have been noticed with some non-compliant themes (no increase of length's infowindow). Example : make use of unique id, as stated in w3c rules. If not, replace them by css classes ! + +============ + + +Detailed instructions on installing modules are available in the XOOPS Operations Manual: http://goo.gl/adT2i \ No newline at end of file Added: XoopsModules/groups/trunk/groups/docs/lang_diff.txt =================================================================== --- XoopsModules/groups/trunk/groups/docs/lang_diff.txt (rev 0) +++ XoopsModules/groups/trunk/groups/docs/lang_diff.txt 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,4 @@ +LANGUAGE DIFFERENCES +===================== + +Below are language differences from a version to next version. \ No newline at end of file Added: XoopsModules/groups/trunk/groups/docs/license.txt =================================================================== --- XoopsModules/groups/trunk/groups/docs/license.txt (rev 0) +++ XoopsModules/groups/trunk/groups/docs/license.txt 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,88 @@ +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +Preamble +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + + +a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + +b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + +c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: + +a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + +b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + +c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + +END OF TERMS AND CONDITIONS \ No newline at end of file Added: XoopsModules/groups/trunk/groups/docs/readme.txt =================================================================== --- XoopsModules/groups/trunk/groups/docs/readme.txt (rev 0) +++ XoopsModules/groups/trunk/groups/docs/readme.txt 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,33 @@ +README +=========== + +This module allows you to easily add or remove users from groups. + +It also allows you to set which group can change each others users, through XOOPS permissions. + + Requirements + _____________________________________________________________________ + +- XOOPS >= 2.5.0 +- PHP version >= 5.2.0 +- ModuleClasses in /Frameworks (download it from here: http://goo.gl/Bmknt) + +Install/uninstall +--------------------- +No special measures necessary, follow the standard installation process: extract the module folder into the /modules directory. Install the module through Admin -> System Module -> Modules. + +Detailed instructions on installing modules are available in the XOOPS Operations Manual: http://goo.gl/adT2i + +Operating instructions +---------------------- +This module and its operations are very simple: + +- create categories, and assign users to each category +- set permissions on how should be able to see and change permissions + +Detailed instructions on configuring the access rights for user groups are available in the XOOPS Operations Manual + +Tutorial +----------- + +There is no tutorial at the moment. \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/images/gm_logo.png =================================================================== (Binary files differ) Modified: XoopsModules/groups/trunk/groups/language/english/admin.php =================================================================== --- XoopsModules/groups/trunk/groups/language/english/admin.php 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/language/english/admin.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -39,4 +39,8 @@ define("_AM_GROUPS_MAIN","Main"); define("_AM_GROUPS_PERMISSIONS","Permissions"); -?> \ No newline at end of file + +//ModuleAdmin +define('_AM_GROUPS_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)'); +// Text for Admin footer +define("_AM_GROUPS_ADMIN_FOOTER", "<div class='center smallsmall italic pad5'>GroupsManager is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); \ No newline at end of file Added: XoopsModules/groups/trunk/groups/language/english/help/help.html =================================================================== --- XoopsModules/groups/trunk/groups/language/english/help/help.html (rev 0) +++ XoopsModules/groups/trunk/groups/language/english/help/help.html 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1,26 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/groups/admin/index.php" + title="Back to the administration of Group Manager"> Group Manager + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of Group Manager"/> + </a></h1> + + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + + <p class="even">Group Manager is a simple module to manage XOOPS Groups. + It allows you to easily add or remove users from groups. It also allows you to set which group can change each others users, through XOOPS permissions.</p> + <h4 class="odd">Install/uninstall</h4> + + <p>No special measures necessary, follow the standard installation process – extract the module folder into the + ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + + <p>Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a></p> + + <h4 class="odd">Tutorial</h4> + + <p class="even">Currently there is no tutorial</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Added: XoopsModules/groups/trunk/groups/language/english/help/index.html =================================================================== --- XoopsModules/groups/trunk/groups/language/english/help/index.html (rev 0) +++ XoopsModules/groups/trunk/groups/language/english/help/index.html 2012-03-22 09:58:12 UTC (rev 9171) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/language/english/modinfo.php =================================================================== --- XoopsModules/groups/trunk/groups/language/english/modinfo.php 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/language/english/modinfo.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -26,5 +26,10 @@ // ------------------------------------------------------------------------ // define("_MI_GROUPS_NAME","Group Manager"); define("_MI_GROUPS_DESC","Manage Groups"); +define("_MI_GROUPS_ADMIN0","Home"); +define("_MI_GROUPS_ADMIN1","Manage Groups"); +define("_MI_GROUPS_ADMIN2","Permissions"); +define("_MI_GROUPS_ABOUT","About"); + ?> \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/templates/gm_admin_navbar.html =================================================================== --- XoopsModules/groups/trunk/groups/templates/gm_admin_navbar.html 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/templates/gm_admin_navbar.html 2012-03-22 09:58:12 UTC (rev 9171) @@ -38,10 +38,11 @@ background: #ABAD85; color:#33FF99; } </style> - +<!-- <ul id="tabmenu"> - <li><a href="index.php"><{$smarty.const._AM_GROUPS_MAIN}></a></li> + <li><a href="main.php"><{$smarty.const._AM_GROUPS_MAIN}></a></li> <{ if $perallow eq 1}> <li><a href="perm.php"><{$smarty.const._AM_GROUPS_PERMISSIONS}></a></li> <{/if}> </ul> +--> \ No newline at end of file Modified: XoopsModules/groups/trunk/groups/templates/gm_main.html =================================================================== --- XoopsModules/groups/trunk/groups/templates/gm_main.html 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/templates/gm_main.html 2012-03-22 09:58:12 UTC (rev 9171) @@ -11,7 +11,7 @@ </tr> <{foreach item=grp from=$grpInfo}> - <form name="form<{$grp.id}>" method="POST" action="index.php"> + <form name="form<{$grp.id}>" method="POST" action="main.php"> <input name="groupid" type="hidden" value="<{$grp.id}>" /> <tr> <td id="grp1"><{$grp.name}></td> Modified: XoopsModules/groups/trunk/groups/xoops_version.php =================================================================== --- XoopsModules/groups/trunk/groups/xoops_version.php 2012-03-22 09:47:21 UTC (rev 9170) +++ XoopsModules/groups/trunk/groups/xoops_version.php 2012-03-22 09:58:12 UTC (rev 9171) @@ -7,14 +7,32 @@ // +--------------------------------------------------------------------------+ $modversion['name'] = _MI_GROUPS_NAME; -$modversion['version'] = 1.01; +$modversion['version'] = 1.02; $modversion['description'] = _MI_GROUPS_DESC; -$modversion['credits'] = "kaotik, GibaPhp"; -$modversion['license'] = "GPL see LICENSE"; +$modversion['author'] = "kaotik, GibaPhp"; +$modversion['help'] = 'page=help'; +$modversion['license'] = 'GNU GPL 2.0'; +$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; $modversion['official'] = 0; $modversion['image'] = "images/gm_logo.png"; $modversion['dirname'] = "groups"; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + +//about +$modversion["module_website_url"] = "http://www.xoops.org/"; +$modversion["module_website_name"] = "XOOPS"; +$modversion["release_date"] = "2012/03/21"; +$modversion["module_status"] = "Beta"; +$modversion["author_website_url"] = "http://www.xoops.org/"; +$modversion["author_website_name"] = "XOOPS"; +$modversion['min_php']='5.2'; +$modversion['min_xoops']='2.5'; +$modversion['min_admin']='1.1'; +$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); + // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) // All tables should not have any prefix! //$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; @@ -29,6 +47,7 @@ // Admin things $modversion['hasAdmin'] = 1; +$modversion['system_menu'] = 1; $modversion['adminindex'] = "admin/index.php"; $modversion['adminmenu'] = "admin/menu.php"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-22 09:47:30
|
Revision: 9170 http://xoops.svn.sourceforge.net/xoops/?rev=9170&view=rev Author: beckmi Date: 2012-03-22 09:47:21 +0000 (Thu, 22 Mar 2012) Log Message: ----------- changing folder structure Added Paths: ----------- XoopsModules/groups/releases/1.01/groups/admin/ XoopsModules/groups/releases/1.01/groups/groups.css XoopsModules/groups/releases/1.01/groups/images/ XoopsModules/groups/releases/1.01/groups/language/ XoopsModules/groups/releases/1.01/groups/templates/ XoopsModules/groups/releases/1.01/groups/xoops_version.php XoopsModules/groups/trunk/groups/admin/ XoopsModules/groups/trunk/groups/groups.css XoopsModules/groups/trunk/groups/images/ XoopsModules/groups/trunk/groups/language/ XoopsModules/groups/trunk/groups/templates/ XoopsModules/groups/trunk/groups/xoops_version.php Removed Paths: ------------- XoopsModules/groups/releases/1.01/admin/ XoopsModules/groups/releases/1.01/groups.css XoopsModules/groups/releases/1.01/images/ XoopsModules/groups/releases/1.01/language/ XoopsModules/groups/releases/1.01/templates/ XoopsModules/groups/releases/1.01/xoops_version.php XoopsModules/groups/trunk/admin/ XoopsModules/groups/trunk/groups.css XoopsModules/groups/trunk/images/ XoopsModules/groups/trunk/language/ XoopsModules/groups/trunk/templates/ XoopsModules/groups/trunk/xoops_version.php Copied: XoopsModules/groups/releases/1.01/groups/groups.css (from rev 9168, XoopsModules/groups/releases/1.01/groups.css) =================================================================== --- XoopsModules/groups/releases/1.01/groups/groups.css (rev 0) +++ XoopsModules/groups/releases/1.01/groups/groups.css 2012-03-22 09:47:21 UTC (rev 9170) @@ -0,0 +1,3 @@ +#grp1{ width:150px; font:Verdana, Arial, Helvetica, sans-serif; color:#990000; font-weight:bold;} +#grp2{ height:30px; font-weight:bold; color:#003399; font-size:18px;} +#grptble {text-align:center; width:500px;} \ No newline at end of file Copied: XoopsModules/groups/releases/1.01/groups/xoops_version.php (from rev 9168, XoopsModules/groups/releases/1.01/xoops_version.php) =================================================================== --- XoopsModules/groups/releases/1.01/groups/xoops_version.php (rev 0) +++ XoopsModules/groups/releases/1.01/groups/xoops_version.php 2012-03-22 09:47:21 UTC (rev 9170) @@ -0,0 +1,76 @@ +<?php +// +--------------------------------------------------------------------------+ +// | Group Manager +// | Module for Xoops +// | www.kaotik.biz +// | ka...@gm... +// +--------------------------------------------------------------------------+ + +$modversion['name'] = _MI_GROUPS_NAME; +$modversion['version'] = 1.01; +$modversion['description'] = _MI_GROUPS_DESC; +$modversion['credits'] = "kaotik, GibaPhp"; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 0; +$modversion['image'] = "images/gm_logo.png"; +$modversion['dirname'] = "groups"; + +// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) +// All tables should not have any prefix! +//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; + +// Tables created by sql file (without prefix!) +//$modversion['tables'][0] = "groups_categories"; +//----------------------*/ + +//Has Main Menu +$modversion['hasMain'] = 0; + + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; + + + +////////////////////////////////////////////////////////////////// +// Templates +$modversion['templates'][1]['file'] = 'gm_admin_navbar.html'; +$modversion['templates'][1]['description'] = ''; +$modversion['templates'][2]['file'] = 'gm_main.html'; +$modversion['templates'][2]['description'] = ''; + + +/* Blocks +$modversion['blocks'][1]['file'] = "shopping_cart.php"; +$modversion['blocks'][1]['name'] = 'Kshop Shopping Cart'; +$modversion['blocks'][1]['description'] = 'Displays the shopping cart as a block'; +$modversion['blocks'][1]['show_func'] = "shopping_cart"; +$modversion['blocks'][1]['template'] = 'shopping_cart.html'; +//----------------------*/ + + + +/* Config categories +$modversion['configcat'][1]['nameid'] = 'settings'; +$modversion['configcat'][1]['name'] = '_KSHOP_CAT_SETTINGS'; +$modversion['configcat'][1]['description'] = '_KSHOP_CAT_SETTINGS_DSC'; +//----------------------*/ + + + + +/*Preferences +$i=1; +$modversion['config'][$i]['name'] = 'debug'; +$modversion['config'][$i]['title'] = '_KS_DEBUG'; +$modversion['config'][$i]['description'] = '_KS_DEBUGDSC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; +$modversion['config'][$i]['category'] = 'settings'; +$i++; +//----------------------*/ + +?> \ No newline at end of file Deleted: XoopsModules/groups/releases/1.01/groups.css =================================================================== --- XoopsModules/groups/releases/1.01/groups.css 2012-03-22 09:45:07 UTC (rev 9169) +++ XoopsModules/groups/releases/1.01/groups.css 2012-03-22 09:47:21 UTC (rev 9170) @@ -1,3 +0,0 @@ -#grp1{ width:150px; font:Verdana, Arial, Helvetica, sans-serif; color:#990000; font-weight:bold;} -#grp2{ height:30px; font-weight:bold; color:#003399; font-size:18px;} -#grptble {text-align:center; width:500px;} \ No newline at end of file Deleted: XoopsModules/groups/releases/1.01/xoops_version.php =================================================================== --- XoopsModules/groups/releases/1.01/xoops_version.php 2012-03-22 09:45:07 UTC (rev 9169) +++ XoopsModules/groups/releases/1.01/xoops_version.php 2012-03-22 09:47:21 UTC (rev 9170) @@ -1,76 +0,0 @@ -<?php -// +--------------------------------------------------------------------------+ -// | Group Manager -// | Module for Xoops -// | www.kaotik.biz -// | ka...@gm... -// +--------------------------------------------------------------------------+ - -$modversion['name'] = _MI_GROUPS_NAME; -$modversion['version'] = 1.01; -$modversion['description'] = _MI_GROUPS_DESC; -$modversion['credits'] = "kaotik, GibaPhp"; -$modversion['license'] = "GPL see LICENSE"; -$modversion['official'] = 0; -$modversion['image'] = "images/gm_logo.png"; -$modversion['dirname'] = "groups"; - -// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) -// All tables should not have any prefix! -//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; - -// Tables created by sql file (without prefix!) -//$modversion['tables'][0] = "groups_categories"; -//----------------------*/ - -//Has Main Menu -$modversion['hasMain'] = 0; - - -// Admin things -$modversion['hasAdmin'] = 1; -$modversion['adminindex'] = "admin/index.php"; -$modversion['adminmenu'] = "admin/menu.php"; - - - -////////////////////////////////////////////////////////////////// -// Templates -$modversion['templates'][1]['file'] = 'gm_admin_navbar.html'; -$modversion['templates'][1]['description'] = ''; -$modversion['templates'][2]['file'] = 'gm_main.html'; -$modversion['templates'][2]['description'] = ''; - - -/* Blocks -$modversion['blocks'][1]['file'] = "shopping_cart.php"; -$modversion['blocks'][1]['name'] = 'Kshop Shopping Cart'; -$modversion['blocks'][1]['description'] = 'Displays the shopping cart as a block'; -$modversion['blocks'][1]['show_func'] = "shopping_cart"; -$modversion['blocks'][1]['template'] = 'shopping_cart.html'; -//----------------------*/ - - - -/* Config categories -$modversion['configcat'][1]['nameid'] = 'settings'; -$modversion['configcat'][1]['name'] = '_KSHOP_CAT_SETTINGS'; -$modversion['configcat'][1]['description'] = '_KSHOP_CAT_SETTINGS_DSC'; -//----------------------*/ - - - - -/*Preferences -$i=1; -$modversion['config'][$i]['name'] = 'debug'; -$modversion['config'][$i]['title'] = '_KS_DEBUG'; -$modversion['config'][$i]['description'] = '_KS_DEBUGDSC'; -$modversion['config'][$i]['formtype'] = 'yesno'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = 0; -$modversion['config'][$i]['category'] = 'settings'; -$i++; -//----------------------*/ - -?> \ No newline at end of file Copied: XoopsModules/groups/trunk/groups/groups.css (from rev 9168, XoopsModules/groups/trunk/groups.css) =================================================================== --- XoopsModules/groups/trunk/groups/groups.css (rev 0) +++ XoopsModules/groups/trunk/groups/groups.css 2012-03-22 09:47:21 UTC (rev 9170) @@ -0,0 +1,3 @@ +#grp1{ width:150px; font:Verdana, Arial, Helvetica, sans-serif; color:#990000; font-weight:bold;} +#grp2{ height:30px; font-weight:bold; color:#003399; font-size:18px;} +#grptble {text-align:center; width:500px;} \ No newline at end of file Copied: XoopsModules/groups/trunk/groups/xoops_version.php (from rev 9168, XoopsModules/groups/trunk/xoops_version.php) =================================================================== --- XoopsModules/groups/trunk/groups/xoops_version.php (rev 0) +++ XoopsModules/groups/trunk/groups/xoops_version.php 2012-03-22 09:47:21 UTC (rev 9170) @@ -0,0 +1,76 @@ +<?php +// +--------------------------------------------------------------------------+ +// | Group Manager +// | Module for Xoops +// | www.kaotik.biz +// | ka...@gm... +// +--------------------------------------------------------------------------+ + +$modversion['name'] = _MI_GROUPS_NAME; +$modversion['version'] = 1.01; +$modversion['description'] = _MI_GROUPS_DESC; +$modversion['credits'] = "kaotik, GibaPhp"; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 0; +$modversion['image'] = "images/gm_logo.png"; +$modversion['dirname'] = "groups"; + +// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) +// All tables should not have any prefix! +//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; + +// Tables created by sql file (without prefix!) +//$modversion['tables'][0] = "groups_categories"; +//----------------------*/ + +//Has Main Menu +$modversion['hasMain'] = 0; + + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; + + + +////////////////////////////////////////////////////////////////// +// Templates +$modversion['templates'][1]['file'] = 'gm_admin_navbar.html'; +$modversion['templates'][1]['description'] = ''; +$modversion['templates'][2]['file'] = 'gm_main.html'; +$modversion['templates'][2]['description'] = ''; + + +/* Blocks +$modversion['blocks'][1]['file'] = "shopping_cart.php"; +$modversion['blocks'][1]['name'] = 'Kshop Shopping Cart'; +$modversion['blocks'][1]['description'] = 'Displays the shopping cart as a block'; +$modversion['blocks'][1]['show_func'] = "shopping_cart"; +$modversion['blocks'][1]['template'] = 'shopping_cart.html'; +//----------------------*/ + + + +/* Config categories +$modversion['configcat'][1]['nameid'] = 'settings'; +$modversion['configcat'][1]['name'] = '_KSHOP_CAT_SETTINGS'; +$modversion['configcat'][1]['description'] = '_KSHOP_CAT_SETTINGS_DSC'; +//----------------------*/ + + + + +/*Preferences +$i=1; +$modversion['config'][$i]['name'] = 'debug'; +$modversion['config'][$i]['title'] = '_KS_DEBUG'; +$modversion['config'][$i]['description'] = '_KS_DEBUGDSC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; +$modversion['config'][$i]['category'] = 'settings'; +$i++; +//----------------------*/ + +?> \ No newline at end of file Deleted: XoopsModules/groups/trunk/groups.css =================================================================== --- XoopsModules/groups/trunk/groups.css 2012-03-22 09:45:07 UTC (rev 9169) +++ XoopsModules/groups/trunk/groups.css 2012-03-22 09:47:21 UTC (rev 9170) @@ -1,3 +0,0 @@ -#grp1{ width:150px; font:Verdana, Arial, Helvetica, sans-serif; color:#990000; font-weight:bold;} -#grp2{ height:30px; font-weight:bold; color:#003399; font-size:18px;} -#grptble {text-align:center; width:500px;} \ No newline at end of file Deleted: XoopsModules/groups/trunk/xoops_version.php =================================================================== --- XoopsModules/groups/trunk/xoops_version.php 2012-03-22 09:45:07 UTC (rev 9169) +++ XoopsModules/groups/trunk/xoops_version.php 2012-03-22 09:47:21 UTC (rev 9170) @@ -1,76 +0,0 @@ -<?php -// +--------------------------------------------------------------------------+ -// | Group Manager -// | Module for Xoops -// | www.kaotik.biz -// | ka...@gm... -// +--------------------------------------------------------------------------+ - -$modversion['name'] = _MI_GROUPS_NAME; -$modversion['version'] = 1.01; -$modversion['description'] = _MI_GROUPS_DESC; -$modversion['credits'] = "kaotik, GibaPhp"; -$modversion['license'] = "GPL see LICENSE"; -$modversion['official'] = 0; -$modversion['image'] = "images/gm_logo.png"; -$modversion['dirname'] = "groups"; - -// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) -// All tables should not have any prefix! -//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; - -// Tables created by sql file (without prefix!) -//$modversion['tables'][0] = "groups_categories"; -//----------------------*/ - -//Has Main Menu -$modversion['hasMain'] = 0; - - -// Admin things -$modversion['hasAdmin'] = 1; -$modversion['adminindex'] = "admin/index.php"; -$modversion['adminmenu'] = "admin/menu.php"; - - - -////////////////////////////////////////////////////////////////// -// Templates -$modversion['templates'][1]['file'] = 'gm_admin_navbar.html'; -$modversion['templates'][1]['description'] = ''; -$modversion['templates'][2]['file'] = 'gm_main.html'; -$modversion['templates'][2]['description'] = ''; - - -/* Blocks -$modversion['blocks'][1]['file'] = "shopping_cart.php"; -$modversion['blocks'][1]['name'] = 'Kshop Shopping Cart'; -$modversion['blocks'][1]['description'] = 'Displays the shopping cart as a block'; -$modversion['blocks'][1]['show_func'] = "shopping_cart"; -$modversion['blocks'][1]['template'] = 'shopping_cart.html'; -//----------------------*/ - - - -/* Config categories -$modversion['configcat'][1]['nameid'] = 'settings'; -$modversion['configcat'][1]['name'] = '_KSHOP_CAT_SETTINGS'; -$modversion['configcat'][1]['description'] = '_KSHOP_CAT_SETTINGS_DSC'; -//----------------------*/ - - - - -/*Preferences -$i=1; -$modversion['config'][$i]['name'] = 'debug'; -$modversion['config'][$i]['title'] = '_KS_DEBUG'; -$modversion['config'][$i]['description'] = '_KS_DEBUGDSC'; -$modversion['config'][$i]['formtype'] = 'yesno'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = 0; -$modversion['config'][$i]['category'] = 'settings'; -$i++; -//----------------------*/ - -?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-22 09:45:16
|
Revision: 9169 http://xoops.svn.sourceforge.net/xoops/?rev=9169&view=rev Author: beckmi Date: 2012-03-22 09:45:07 +0000 (Thu, 22 Mar 2012) Log Message: ----------- changing folder structure Added Paths: ----------- XoopsModules/groups/releases/1.01/groups/ XoopsModules/groups/trunk/groups/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-22 05:27:24
|
Revision: 9168 http://xoops.svn.sourceforge.net/xoops/?rev=9168&view=rev Author: wishcraft Date: 2012-03-22 05:27:18 +0000 (Thu, 22 Mar 2012) Log Message: ----------- TwitterBomb 1.28 - complete release final Modified Paths: -------------- XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/tweet.php Modified: XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/tweet.php =================================================================== --- XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/tweet.php 2012-03-22 05:14:54 UTC (rev 9167) +++ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/tweet.php 2012-03-22 05:27:18 UTC (rev 9168) @@ -515,7 +515,7 @@ $loopsb++; } break; - case "mentions": + case "mention": $items=0; $loop=0; $item=0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-22 05:15:05
|
Revision: 9167 http://xoops.svn.sourceforge.net/xoops/?rev=9167&view=rev Author: wishcraft Date: 2012-03-22 05:14:54 +0000 (Thu, 22 Mar 2012) Log Message: ----------- TwitterBomb 1.28 - complete release final Modified Paths: -------------- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/oauth.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/tweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/forms.twitterbomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/update.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/modinfo.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php Added Paths: ----------- XoopsModules/twitterbomb/releases/1.28/ XoopsModules/twitterbomb/releases/1.28/docs/ XoopsModules/twitterbomb/releases/1.28/docs/.htaccess XoopsModules/twitterbomb/releases/1.28/docs/INSTALL XoopsModules/twitterbomb/releases/1.28/docs/licence.txt XoopsModules/twitterbomb/releases/1.28/extras/ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.4.x/ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.4.x/htdocs/ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.4.x/htdocs/header.php XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.5.x/ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.5.x/htdocs/ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.5.x/htdocs/header.php XoopsModules/twitterbomb/releases/1.28/htdocs/ XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/ XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/ XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.logs.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.mentions.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.preferences.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.reply.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.retweet.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.scheduler.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.sentence.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.urls.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.usernames.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.campaigns.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.categories.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.keywords.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.logs.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.mentions.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.preferences.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.reply.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.retweet.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.scheduler.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.sentence.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.urls.png XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.usernames.png XoopsModules/twitterbomb/releases/1.28/htdocs/modules/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/tag/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/tag/plugin/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/tag/plugin/twitterbomb.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/admin/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/admin/header.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/admin/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/admin/index.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/admin/menu.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/backend.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_bomb.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_follow.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_mentions.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_retweet.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_scheduler.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_tag.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_topranked.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_tweet.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_usernames.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/blocks/twitterbomb_block_widget.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/callback/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/callback/index.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/base_matrix.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/campaign.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/category.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/following.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/keywords.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/log.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/myuploader.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/oauth.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/retweet.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/scheduler.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/urls.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/class/usernames.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/all.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/doit.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/follow.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/gather.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/cron/tweet.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/changelog.txt XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/credits.txt XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/install.txt XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/lang_diff.txt XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/licence.txt XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/docs/readme.txt XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/go.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/header.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/images/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/images/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/images/rss.png XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/images/twitterbomb_slogo.png XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/OAuth.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formcheckboxmentions.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formcheckboxreplies.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formcheckboxretweet.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formobjects.twitterbomb.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/forms.twitterbomb.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectbase.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectcampaigns.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectcategories.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectlanguage.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectlogtype.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectmeasurement.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectmode.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectoauthmode.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectretweettype.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselectscreenname.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselecttype.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/formselecturls.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/functions.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/install.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/twitteroauth.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/include/update.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/index.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/blocks.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/errors.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/help/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/help/help.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/help/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/main.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/english/modinfo.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/italian/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/italian/admin.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/italian/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/italian/main.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/language/italian/modinfo.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/list.tag.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/bomb.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/clause.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/direct.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/disabled.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/expired.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/filtered.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/filteredpregmatch.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/filteredpregmatchstrip.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/filteredstrip.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/filteredstrippregmatch.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/for.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/invalid.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/mirc.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/mixed.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/other.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/over.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/popular.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/pregmatch.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/pregmatchfiltered.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/pregmatchfilteredstrip.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/pregmatchstrip.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/pregmatchstripfiltered.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/recent.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/scheduler.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/strip.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/stripfiltered.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/stripfilteredpregmatch.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/strippregmatch.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/strippregmatchfiltered.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/their.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/then.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/there.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/under.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/valid.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/plugins/when.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/post.cache.end.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/post.common.end.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/post.footer.end.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/preloads/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/preloads/core.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/preloads/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/redirect.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/search.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/sql/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/sql/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/sql/mysql.sql XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/ XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_follow.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweet.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweets.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweets_ranked.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_usernames.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_widget.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_tag_block_cloud.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_tag_block_top.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_campaign_item.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_campaign_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_categories_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_category_item.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_base_matrix_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_base_matrix_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_campaign_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_campaign_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_category_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_category_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_keywords_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_keywords_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_log.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_retweet_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_retweet_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_scheduler_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_scheduler_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_urls_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_urls_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_usernames_edit.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_usernames_list.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_index.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_rss.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_trail.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/templates/twitterbomb_usernames.html XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/trail.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/view.tag.php XoopsModules/twitterbomb/releases/1.28/htdocs/modules/twitterbomb/xoops_version.php Added: XoopsModules/twitterbomb/releases/1.28/docs/.htaccess =================================================================== --- XoopsModules/twitterbomb/releases/1.28/docs/.htaccess (rev 0) +++ XoopsModules/twitterbomb/releases/1.28/docs/.htaccess 2012-03-22 05:14:54 UTC (rev 9167) @@ -0,0 +1,14 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^tweetbomb/([a-zA-Z0-9]+),([a-zA-Z0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]+).html$ modules/twitterbomb/index.php?op=$1&fct=$2&start=$3&limit=$4&cid=$5&catid=$6 +RewriteRule ^tweetbomb/rss,([0-9]+),([0-9]+),([a-zA-Z0-9]+).rss$ modules/twitterbomb/backend.php?cid=$1&catid=$2&cacheid=$3 +RewriteRule ^tweetbomb/go.html$ modules/twitterbomb/go.php +RewriteRule ^tweetbomb/index.php$ modules/twitterbomb/index.php + + + + + Added: XoopsModules/twitterbomb/releases/1.28/docs/INSTALL =================================================================== --- XoopsModules/twitterbomb/releases/1.28/docs/INSTALL (rev 0) +++ XoopsModules/twitterbomb/releases/1.28/docs/INSTALL 2012-03-22 05:14:54 UTC (rev 9167) @@ -0,0 +1,63 @@ ++-----------------------------------------------------------------------------------+ +| | +| TwitterBomb Version 1.18 | +| | ++--[ Installing Cron ]--------------------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once a minute, make sure it is within your | +| refresh time. This is the or unix based systems after it is for windows: | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/twitterbomb/cron/all.php | +| | +| -- For this method set the cron type in preferences to Unix Cron Job -- | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment: | +| | +| php.exe -q c:\htdocs\modules\twitterbomb\cron\all.php | +| | +| -- For this method set the cron type in preferences to Windows Scheduled Task -- | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Preloader Alternative to Installing Cron ]-------------------------------------+ +| | +| Replace the header.php file provided in the extras setting and set your cron | +| type in preferences to 'Preloader', alternatively you can include the files in | +| a hack of the files which are in the TwitterBomb Root. | +| | +| Line 91 - 94 of header.php in XOOPS 2.5/2.4 should read with this patch: | +| | +| if ($xoTheme->checkCache()) { | +| $xoopsPreload->triggerEvent('core.header.cache.end'); | +| exit(); | +| } | +| | ++--[ Include file Alternative to Installing Cron & Preloaders ]---------------------+ +| | +| the following lines can be included if your preloaders are not working, but | +| remember to delete the /twitterbomb/preloads folder so there are no conflict | +| when using the include method. Still set your cron type in preferences for this | +| method to 'preloaders'. | +| | | +| Step 1 - Last line of /include/common.php should read: | +| | +| include($GLOBALS['xoops']->path('/modules/twitterbomb/post.common.end.php')); | +| | +| Step 2 - Line 91 to 94 of /header.php should read: | +| | +| if ($xoTheme->checkCache()) { | +| include($GLOBALS['xoops']->path('/modules/twitterbomb/post.cache.end.php')); | +| exit(); | +| } | +| | +| Step 3 - Last line of /footer.php should read: | +| | +| include($GLOBALS['xoops']->path('/modules/twitterbomb/post.footer.end.php')); | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/twitterbomb/releases/1.28/docs/licence.txt =================================================================== --- XoopsModules/twitterbomb/releases/1.28/docs/licence.txt (rev 0) +++ XoopsModules/twitterbomb/releases/1.28/docs/licence.txt 2012-03-22 05:14:54 UTC (rev 9167) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + 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. + + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.4.x/htdocs/header.php =================================================================== --- XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.4.x/htdocs/header.php (rev 0) +++ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.4.x/htdocs/header.php 2012-03-22 05:14:54 UTC (rev 9167) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4897 2010-06-19 02:55:48Z phppp $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.5.x/htdocs/header.php =================================================================== --- XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/twitterbomb/releases/1.28/extras/XOOPS 2.5.x/htdocs/header.php 2012-03-22 05:14:54 UTC (rev 9167) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/releases/1.28/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/relea... [truncated message content] |
From: <wis...@us...> - 2012-03-22 03:50:41
|
Revision: 9166 http://xoops.svn.sourceforge.net/xoops/?rev=9166&view=rev Author: wishcraft Date: 2012-03-22 03:50:33 +0000 (Thu, 22 Mar 2012) Log Message: ----------- TwitterBomb 1.28 (Not Complete Only Backup) - New features, search & reply, mention & reply - Still to do cron Modified Paths: -------------- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/usernames.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/forms.twitterbomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/functions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/update.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/modinfo.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php Added Paths: ----------- XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.mentions.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.reply.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.mentions.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.reply.png XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_mentions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.mentions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.mentions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.reply.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.reply.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.mentions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.mentions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.reply.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.reply.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -32,9 +32,9 @@ $indexAdmin = new ModuleAdmin(); $indexAdmin->addInfoBox(_AM_TWEETBOMB_ADMIN_COUNTS); - $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_CAMPAIGNSBOMB."</label>", $campaign_handler->getCount(new Criteria('`type`', 'bomb', '=')), 'Green'); - $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_CAMPAIGNSSCHEDULER."</label>", $campaign_handler->getCount(new Criteria('`type`', 'scheduler', '=')), 'Green'); - $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_CAMPAIGNSRETWEET."</label>", $campaign_handler->getCount(new Criteria('`type`', 'retweet', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_REPLIESSBOMB."</label>", $campaign_handler->getCount(new Criteria('`type`', 'bomb', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_REPLIESSSCHEDULER."</label>", $campaign_handler->getCount(new Criteria('`type`', 'scheduler', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_REPLIESSRETWEET."</label>", $campaign_handler->getCount(new Criteria('`type`', 'retweet', '=')), 'Green'); $criteria_a = new CriteriaCompo(new Criteria('timed', '0')); $criteria_b = new CriteriaCompo(new Criteria('timed', '1')); @@ -43,8 +43,8 @@ $criteria = new CriteriaCompo($criteria_a); $criteria->add($criteria_b, 'OR'); - $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_CAMPAIGNSACTIVE."</label>", $campaign_handler->getCount($criteria), 'Orange'); - $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_CAMPAIGNSINACTIVE."</label>", ($campaign_handler->getCount(NULL)-$campaign_handler->getCount($criteria)), 'Orange'); + $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_REPLIESSACTIVE."</label>", $campaign_handler->getCount($criteria), 'Orange'); + $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_REPLIESSINACTIVE."</label>", ($campaign_handler->getCount(NULL)-$campaign_handler->getCount($criteria)), 'Orange'); $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_CATEGORIES."</label>", $category_handler->getCount(NULL), 'Green'); $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_KEYWORDS."</label>", $keywords_handler->getCount(NULL), 'Green'); $indexAdmin->addInfoBoxLine(_AM_TWEETBOMB_ADMIN_COUNTS, "<label>"._AM_TWEETBOMB_ADMIN_THEREARE_URLS."</label>", $urls_handler->getCount(NULL), 'Green'); @@ -227,10 +227,10 @@ $campaign->setVar('timed', FALSE); if (!$id=$campaign_handler->insert($campaign)) { - redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_CAMPAIGN_FAILEDTOSAVE); + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); exit(0); } else { - redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_CAMPAIGN_SAVEDOKEY); + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_REPLIES_SAVEDOKEY); exit(0); } break; @@ -245,11 +245,11 @@ if (empty($_POST[$id]['timed'])) $campaign->setVar('timed', FALSE); if (!$campaign_handler->insert($campaign)) { - redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_CAMPAIGN_FAILEDTOSAVE); + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); exit(0); } } - redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_CAMPAIGN_SAVEDOKEY); + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_SAVEDOKEY); exit(0); break; case "delete": @@ -259,15 +259,15 @@ if (isset($_POST['id'])&&$id=intval($_POST['id'])) { $campaign = $campaign_handler->get($id); if (!$campaign_handler->delete($campaign)) { - redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_CAMPAIGN_FAILEDTODELETE); + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTODELETE); exit(0); } else { - redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_CAMPAIGN_DELETED); + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_DELETED); exit(0); } } else { $campaign = $campaign_handler->get(intval($_REQUEST['id'])); - xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_CAMPAIGN_DELETE, $campaign->getVar('name'))); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_REPLIES_DELETE, $campaign->getVar('name'))); } break; } @@ -1200,7 +1200,255 @@ } break; } - break; + break; + case "mentions": + switch ($fct) + { + default: + case "list": + twitterbomb_adminMenu(11); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $mentions_handler =& xoops_getmodulehandler('mentions', 'twitterbomb'); + + $criteria = $mentions_handler->getFilterCriteria($filter); + $ttl = $mentions_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'cid','catid','mid','user','keywords','mentions','created','updated','mentioned','mentions') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mentions_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['xoopsModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $mentionss = $mentions_handler->getObjects($criteria, true); + foreach($mentionss as $cid => $mentions) { + $GLOBALS['xoopsTpl']->append('mentions', $mentions->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', tweetbomb_mentions_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:twitterbomb_cpanel_mentions_list.html'); + break; + + case "new": + case "edit": + + twitterbomb_adminMenu(11); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $mentions_handler =& xoops_getmodulehandler('mentions', 'twitterbomb'); + if (isset($_REQUEST['id'])) { + $mentions = $mentions_handler->get(intval($_REQUEST['id'])); + } else { + $mentions = $mentions_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $mentions->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:twitterbomb_cpanel_mentions_edit.html'); + break; + case "save": + + $mentions_handler =& xoops_getmodulehandler('mentions', 'twitterbomb'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $mentions = $mentions_handler->get($id); + } else { + $mentions = $mentions_handler->create(); + } + $mentions->setVars($_POST[$id]); + $mentions->setVar('start', strtotime($_POST[$id]['start'])); + $mentions->setVar('end', strtotime($_POST[$id]['end'])); + + if (empty($_POST[$id]['timed'])) + $mentions->setVar('timed', FALSE); + + if (!$id=$mentions_handler->insert($mentions)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_REPLIES_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $mentions_handler =& xoops_getmodulehandler('mentions', 'twitterbomb'); + foreach($_REQUEST['id'] as $id) { + $mentions = $mentions_handler->get($id); + $mentions->setVars($_POST[$id]); + $mentions->setVar('start', strtotime($_POST[$id]['start'])); + $mentions->setVar('end', strtotime($_POST[$id]['end'])); + if (empty($_POST[$id]['timed'])) + $mentions->setVar('timed', FALSE); + if (!$mentions_handler->insert($mentions)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $mentions_handler =& xoops_getmodulehandler('mentions', 'twitterbomb'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $mentions = $mentions_handler->get($id); + if (!$mentions_handler->delete($mentions)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_DELETED); + exit(0); + } + } else { + $mentions = $mentions_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_REPLIES_DELETE, $mentions->getVar('user'))); + } + break; + } + break; + case "replies": + switch ($fct) + { + default: + case "list": + twitterbomb_adminMenu(12); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $replies_handler =& xoops_getmodulehandler('replies', 'twitterbomb'); + + $criteria = $replies_handler->getFilterCriteria($filter); + $ttl = $replies_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'cid','catid','rpid','urlid','rcid','reply','keywords','uid','type','created','updated','replies','replied') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $replies_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['xoopsModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $repliess = $replies_handler->getObjects($criteria, true); + foreach($repliess as $cid => $replies) { + $GLOBALS['xoopsTpl']->append('replies', $replies->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', tweetbomb_replies_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:twitterbomb_cpanel_replies_list.html'); + break; + + case "new": + case "edit": + + twitterbomb_adminMenu(12); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $replies_handler =& xoops_getmodulehandler('replies', 'twitterbomb'); + if (isset($_REQUEST['id'])) { + $replies = $replies_handler->get(intval($_REQUEST['id'])); + } else { + $replies = $replies_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $replies->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:twitterbomb_cpanel_replies_edit.html'); + break; + case "save": + + $replies_handler =& xoops_getmodulehandler('replies', 'twitterbomb'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $replies = $replies_handler->get($id); + } else { + $replies = $replies_handler->create(); + } + $replies->setVars($_POST[$id]); + $replies->setVar('start', strtotime($_POST[$id]['start'])); + $replies->setVar('end', strtotime($_POST[$id]['end'])); + + if (empty($_POST[$id]['timed'])) + $replies->setVar('timed', FALSE); + + if (!$id=$replies_handler->insert($replies)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_REPLIES_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $replies_handler =& xoops_getmodulehandler('replies', 'twitterbomb'); + foreach($_REQUEST['id'] as $id) { + $replies = $replies_handler->get($id); + $replies->setVars($_POST[$id]); + $replies->setVar('start', strtotime($_POST[$id]['start'])); + $replies->setVar('end', strtotime($_POST[$id]['end'])); + if (empty($_POST[$id]['timed'])) + $replies->setVar('timed', FALSE); + if (!$replies_handler->insert($replies)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $replies_handler =& xoops_getmodulehandler('replies', 'twitterbomb'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $replies = $replies_handler->get($id); + if (!$replies_handler->delete($replies)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_DELETED); + exit(0); + } + } else { + $replies = $replies_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_REPLIES_DELETE, $replies->getVar('reply'))); + } + break; + } + break; } twitterbomb_footer_adminMenu(); Added: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_mentions.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_mentions.php (rev 0) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_mentions.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -0,0 +1,98 @@ +<?php + +function b_twitterbomb_block_mentions_show( $options ) +{ + if (empty($options[0])) + return false; + + $block['tweets']=array(); + $campaign_handler =& xoops_getmodulehandler('campaign', 'twitterbomb'); + $campaign = $campaign_handler->get($options[0]); + if (!is_object($campaign)) { + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_NO_CAMPAIGN, date('Y-m-d H:i:s', time())); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_NO_CAMPAIGN, date('Y-m-d H:i:s', time())); + return $block; + } + $cid = $campaign->getVar('cid'); + $catid = $campaign->getVar('catid'); + $cacheid = md5($cid.$catid); + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + + if ($campaign->getVar('timed')!=0) { + if ($campaign->getVar('start')<time()&&$campaign->getVar('end')>time()) { + if (!$block['tweets'] = XoopsCache::read('tweetbomb_mentions_'.$cacheid)) { + $log_handler =& xoops_getmodulehandler('log', 'twitterbomb'); + $criteria = new CriteriaCompo(new Criteria('cid', $cid)); + $criteria->setSort('`date`'); + $criteria->setOrder('DESC'); + $criteria->setLimit($options[1]); + if ($logs = $log_handler->getObjects($criteria, true)) { + foreach ($logs as $id => $log) { + $block['tweets'][$id]['title'] = $log->getVar('tweet'); + $block['tweets'][$id]['link'] = (strlen($log->getVar('url'))>0?$log->getVar('url'):XOOPS_URL); + $block['tweets'][$id]['description'] = $log->getVar('tweet'); + } + } else { + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + } + } + } else { + $block['tweets']=array(); + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_RSS_TIMED_TITLE, date('Y-m-d', $campaign->getVar('start')), date('Y-m-d', $campaign->getVar('end'))); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_RSS_TIMED_DESCRIPTION, date('Y-m-d', $campaign->getVar('start')), date('Y-m-d', $campaign->getVar('end'))); + } + } else { + if (!$block['tweets'] = XoopsCache::read('tweetbomb_mentions_'.$cacheid)) { + $log_handler =& xoops_getmodulehandler('log', 'twitterbomb'); + $criteria = new CriteriaCompo(new Criteria('cid', $cid)); + $criteria->setSort('`date`'); + $criteria->setOrder('DESC'); + $criteria->setLimit($options[1]); + if ($logs = $log_handler->getObjects($criteria, true)) { + foreach ($logs as $id => $log) { + $block['tweets'][$id]['title'] = $log->getVar('tweet'); + $block['tweets'][$id]['link'] = (strlen($log->getVar('url'))>0?$log->getVar('url'):XOOPS_URL); + $block['tweets'][$id]['description'] = $log->getVar('tweet'); + } + } else { + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + } + } + } + foreach($block['tweets'] as $key => $tweet) { + $i++; + if ($i>$options[1]) { + unset($block['tweets'][$key]); + } + } + return $block ; +} + + +function b_twitterbomb_block_mentions_edit( $options ) +{ + include_once($GLOBALS['xoops']->path('/modules/twitterbomb/include/formobjects.twitterbomb.php')); + + $campaign = new TwitterBombFormSelectCampaigns('', 'options[]', $options[0], 1, false, false, 'mentions'); + $form = ""._BL_TWITTERBOMB_CID." ".$campaign->render(); + $display = new XoopsFormText('', 'options[]', 10,15, $options[1]); + $form .= "<br/>"._BL_TWITTERBOMB_DISPLAY." ".$display->render(); + + return $form ; +} + +?> \ No newline at end of file Added: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php (rev 0) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -0,0 +1,98 @@ +<?php + +function b_twitterbomb_block_replies_show( $options ) +{ + if (empty($options[0])) + return false; + + $block['tweets']=array(); + $campaign_handler =& xoops_getmodulehandler('campaign', 'twitterbomb'); + $campaign = $campaign_handler->get($options[0]); + if (!is_object($campaign)) { + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_NO_CAMPAIGN, date('Y-m-d H:i:s', time())); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_NO_CAMPAIGN, date('Y-m-d H:i:s', time())); + return $block; + } + $cid = $campaign->getVar('cid'); + $catid = $campaign->getVar('catid'); + $cacheid = md5($cid.$catid); + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + + if ($campaign->getVar('timed')!=0) { + if ($campaign->getVar('start')<time()&&$campaign->getVar('end')>time()) { + if (!$block['tweets'] = XoopsCache::read('tweetbomb_replies_'.$cacheid)) { + $log_handler =& xoops_getmodulehandler('log', 'twitterbomb'); + $criteria = new CriteriaCompo(new Criteria('cid', $cid)); + $criteria->setSort('`date`'); + $criteria->setOrder('DESC'); + $criteria->setLimit($options[1]); + if ($logs = $log_handler->getObjects($criteria, true)) { + foreach ($logs as $id => $log) { + $block['tweets'][$id]['title'] = $log->getVar('tweet'); + $block['tweets'][$id]['link'] = (strlen($log->getVar('url'))>0?$log->getVar('url'):XOOPS_URL); + $block['tweets'][$id]['description'] = $log->getVar('tweet'); + } + } else { + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + } + } + } else { + $block['tweets']=array(); + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_RSS_TIMED_TITLE, date('Y-m-d', $campaign->getVar('start')), date('Y-m-d', $campaign->getVar('end'))); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_RSS_TIMED_DESCRIPTION, date('Y-m-d', $campaign->getVar('start')), date('Y-m-d', $campaign->getVar('end'))); + } + } else { + if (!$block['tweets'] = XoopsCache::read('tweetbomb_replies_'.$cacheid)) { + $log_handler =& xoops_getmodulehandler('log', 'twitterbomb'); + $criteria = new CriteriaCompo(new Criteria('cid', $cid)); + $criteria->setSort('`date`'); + $criteria->setOrder('DESC'); + $criteria->setLimit($options[1]); + if ($logs = $log_handler->getObjects($criteria, true)) { + foreach ($logs as $id => $log) { + $block['tweets'][$id]['title'] = $log->getVar('tweet'); + $block['tweets'][$id]['link'] = (strlen($log->getVar('url'))>0?$log->getVar('url'):XOOPS_URL); + $block['tweets'][$id]['description'] = $log->getVar('tweet'); + } + } else { + $block['tweets'][0]['title'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + $block['tweets'][0]['link'] = XOOPS_URL; + $block['tweets'][0]['description'] = sprintf(_BL_TWEETBOMB_NO_TWEETS, date('Y-m-d H:i:s', time())); + } + } + } + foreach($block['tweets'] as $key => $tweet) { + $i++; + if ($i>$options[1]) { + unset($block['tweets'][$key]); + } + } + return $block ; +} + + +function b_twitterbomb_block_replies_edit( $options ) +{ + include_once($GLOBALS['xoops']->path('/modules/twitterbomb/include/formobjects.twitterbomb.php')); + + $campaign = new TwitterBombFormSelectCampaigns('', 'options[]', $options[0], 1, false, false, 'reply'); + $form = ""._BL_TWITTERBOMB_CID." ".$campaign->render(); + $display = new XoopsFormText('', 'options[]', 10,15, $options[1]); + $form .= "<br/>"._BL_TWITTERBOMB_DISPLAY." ".$display->render(); + + return $form ; +} + +?> \ No newline at end of file Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -21,9 +21,10 @@ $this->initVar('rpids', XOBJ_DTYPE_ARRAY(), array(), false); $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, true, 500); $this->initVar('uid', XOBJ_DTYPE_INT, null, false); + $this->initVar('mentions', XOBJ_DTYPE_INT, null, false); $this->initVar('created', XOBJ_DTYPE_INT, null, false); $this->initVar('updated', XOBJ_DTYPE_INT, null, false); - $this->initVar('actioned', XOBJ_DTYPE_INT, null, false); + $this->initVar('mentioned', XOBJ_DTYPE_INT, null, false); } function getForm() { Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -23,9 +23,12 @@ $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, true, 500); $this->initVar('uid', XOBJ_DTYPE_INT, null, false); $this->initVar('type', XOBJ_DTYPE_ENUM, 'reply', false, false, false, array('bomb','reply')); + $this->initVar('replies', XOBJ_DTYPE_INT, null, false); $this->initVar('created', XOBJ_DTYPE_INT, null, false); $this->initVar('updated', XOBJ_DTYPE_INT, null, false); - $this->initVar('actioned', XOBJ_DTYPE_INT, null, false); + $this->initVar('actioned', XOBJ_DTYPE_INT, null, false); + $this->initVar('replied', XOBJ_DTYPE_INT, null, false); + } function getForm() { Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/usernames.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/usernames.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/usernames.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -29,7 +29,7 @@ $this->initVar('created', XOBJ_DTYPE_INT, null, false); $this->initVar('updated', XOBJ_DTYPE_INT, null, false); $this->initVar('actioned', XOBJ_DTYPE_INT, null, false); - $this->initVar('type', XOBJ_DTYPE_ENUM, 'bomb', false, false, false, array('bomb', 'scheduler')); + $this->initVar('type', XOBJ_DTYPE_ENUM, 'bomb', false, false, false, array('bomb', 'scheduler','reply','mentions')); $this->initVar('source_nick', XOBJ_DTYPE_TXTBOX, null, false, 64); $this->initVar('tweeted', XOBJ_DTYPE_INT, null, false); } Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/forms.twitterbomb.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/forms.twitterbomb.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/forms.twitterbomb.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -179,7 +179,7 @@ $ele['keywords'] = new XoopsFormTextArea(_AM_TWEETBOMB_FORM_KEYWORDS_REPLIES, $id.'[keywords]', $object->getVar('keywords'), 4, 26); $ele['keywords']->setDescription(_AM_TWEETBOMB_FORM_DESC_KEYWORDS_REPLIES); $ele['urlid'] = new TwitterBombFormSelectUrls(_AM_TWEETBOMB_FORM_URLS_REPLIES, $id.'[urlid]', $object->getVar('urlid')); - $ele['urlid']->setDescription(_AM_TWEETBOMB_FORM_DESC_urlid_REPLIES); + $ele['urlid']->setDescription(_AM_TWEETBOMB_FORM_DESC_URLS_REPLIES); $ele['rcid'] = new TwitterBombFormSelectCampaigns(_AM_TWEETBOMB_FORM_RCID_REPLIES, $id.'[rcid]', $object->getVar('rcid'), 1, false, 'bomb'); $ele['rcid']->setDescription(_AM_TWEETBOMB_FORM_DESC_RCID_REPLIES); @@ -195,7 +195,13 @@ } if ($object->getVar('updated')>0) { $ele['updated'] = new XoopsFormLabel(_AM_TWEETBOMB_FORM_UPDATED_REPLIES, date(_DATESTRING, $object->getVar('updated'))); + } + if ($object->getVar('replied')>0) { + $ele['replied'] = new XoopsFormLabel(_AM_TWEETBOMB_FORM_REPLIED_REPLIES, date(_DATESTRING, $object->getVar('replied'))); } + if ($object->getVar('replies')>0) { + $ele['replies'] = new XoopsFormLabel(_AM_TWEETBOMB_FORM_REPLIES_REPLIES, $object->getVar('replies')); + } $ele['submit'] = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); $required = array('catid', 'type'); @@ -251,7 +257,13 @@ } if ($object->getVar('updated')>0) { $ele['updated'] = new XoopsFormLabel(_AM_TWEETBOMB_FORM_UPDATED_MENTIONS, date(_DATESTRING, $object->getVar('updated'))); + } + if ($object->getVar('mentioned')>0) { + $ele['mentioned'] = new XoopsFormLabel(_AM_TWEETBOMB_FORM_MENTIONED_MENTIONS, date(_DATESTRING, $object->getVar('mentioned'))); } + if ($object->getVar('mentions')>0) { + $ele['mentions'] = new XoopsFormLabel(_AM_TWEETBOMB_FORM_MENTIONS_MENTIONS, $object->getVar('mentions')); + } $ele['submit'] = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); $required = array('name', 'catid', 'type'); Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/functions.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/functions.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/functions.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -473,6 +473,14 @@ $components = tweetbomb_getFilterURLComponents($filter, $field, $sort); include_once('formobjects.twitterbomb.php'); switch ($field) { + case 'urlid': + $ele = new TwitterBombFormSelectUrls('', 'filter_'.$field.'', $components['value']); + $ele->setExtra('onchange="window.open(\''.$_SERVER['PHP_SELF'].'?'.$components['extra'].'&filter='.$components['filter'].(!empty($components['filter'])?'|':'').$field.',\'+this.options[this.selectedIndex].value'.(!empty($components['operator'])?'+\','.$components['operator'].'\'':'').',\'_self\')"'); + break; + case 'rcid': + $ele = new TwitterBombFormSelectCampaigns('', 'filter_'.$field.'', $components['value'], 1, false, 'bomb'); + $ele->setExtra('onchange="window.open(\''.$_SERVER['PHP_SELF'].'?'.$components['extra'].'&filter='.$components['filter'].(!empty($components['filter'])?'|':'').$field.',\'+this.options[this.selectedIndex].value'.(!empty($components['operator'])?'+\','.$components['operator'].'\'':'').',\'_self\')"'); + break; case 'cid': $ele = new TwitterBombFormSelectCampaigns('', 'filter_'.$field.'', $components['value']); $ele->setExtra('onchange="window.open(\''.$_SERVER['PHP_SELF'].'?'.$components['extra'].'&filter='.$components['filter'].(!empty($components['filter'])?'|':'').$field.',\'+this.options[this.selectedIndex].value'.(!empty($components['operator'])?'+\','.$components['operator'].'\'':'').',\'_self\')"'); @@ -529,7 +537,12 @@ case 'search': case 'skip': case 'longitude': - case 'latitude': + case 'latitude': + case 'replies': + case 'mentions': + case 'user': + case 'reply': + case 'keywords': $ele = new XoopsFormElementTray(''); $ele->addElement(new XoopsFormText('', 'filter_'.$field.'', 11, 40, $components['value'])); $button = new XoopsFormButton('', 'button_'.$field.'', '[+]'); Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/update.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/update.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/update.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -18,7 +18,7 @@ $sql[] = "ALTER TABLE `".$GLOBALS['xoopsDB']->prefix('twitterbomb_scheduler')."` ADD COLUMN `pregmatch_replace` VARCHAR(500) DEFAULT NULL"; - $sql[] = "ALTER TABLE `".$GLOBALS['xoopsDB']->prefix('twitterbomb_usernames')."` ADD COLUMN `type` ENUM('bomb','secheduler') DEFAULT 'bomb'"; + $sql[] = "ALTER TABLE `".$GLOBALS['xoopsDB']->prefix('twitterbomb_usernames')."` ADD COLUMN `type` ENUM('bomb','secheduler','reply','mentions') DEFAULT 'bomb'"; $sql[] = "ALTER TABLE `".$GLOBALS['xoopsDB']->prefix('twitterbomb_usernames')."` ADD COLUMN `source_nick` VARCHAR(64) DEFAULT NULL"; $sql[] = "ALTER TABLE `".$GLOBALS['xoopsDB']->prefix('twitterbomb_usernames')."` ADD COLUMN `tweeted` INT(13) UNSIGNED DEFAULT '0'"; $sql[] = "ALTER TABLE `".$GLOBALS['xoopsDB']->prefix('twitterbomb_usernames')."` ADD COLUMN `id` VARCHAR(128) DEFAULT NULL"; @@ -259,9 +259,11 @@ `keywords` VARCHAR(500) DEFAULT NULL, `type` enum('bomb','reply') default 'reply', `uid` INT(13) UNSIGNED DEFAULT '0', + `replies` INT(13) UNSIGNED DEFAULT '0', `created` INT(13) UNSIGNED DEFAULT '0', `updated` INT(13) UNSIGNED DEFAULT '0', `actioned` INT(13) UNSIGNED DEFAULT '0', + `replied` INT(13) UNSIGNED DEFAULT '0', PRIMARY KEY (`rpid`), KEY `COMMON` (`cid`,`catid`,`keywords`(45),`type`,`uid`,`created`) ) ENGINE=INNODB DEFAULT CHARSET=utf8"; @@ -274,8 +276,10 @@ `keywords` VARCHAR(500) DEFAULT NULL, `rpids` VARCHAR(750) DEFAULT NULL, `uid` INT(13) UNSIGNED DEFAULT '0', + `mentions` INT(13) UNSIGNED DEFAULT '0', `created` INT(13) UNSIGNED DEFAULT '0', `updated` INT(13) UNSIGNED DEFAULT '0', + `mentioned` INT(13) UNSIGNED DEFAULT '0', PRIMARY KEY (`mid`), KEY `COMMON` (`cid`,`catid`,`keywords`(45),`type`,`uid`,`created`) ) ENGINE=INNODB DEFAULT CHARSET=utf8"; Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -366,6 +366,86 @@ // About define('_AM_TWITTERBOMB_ABOUT_MAKEDONATE', 'Make a donation to chronolabs co-op'); + + // Version 1.28 + // Table headers + define('_AM_TWEETBOMB_TH_MID', 'Mention ID'); + define('_AM_TWEETBOMB_TH_RPID', 'Reply ID'); + define('_AM_TWEETBOMB_TH_URLID', 'URL'); + define('_AM_TWEETBOMB_TH_REPLY', 'Reply'); + define('_AM_TWEETBOMB_TH_KEYWORDS', 'Keywords'); + define('_AM_TWEETBOMB_TH_USER', 'User/Hashtag'); + define('_AM_TWEETBOMB_TH_MENTIONS', 'Num. of Mentions'); + define('_AM_TWEETBOMB_TH_REPLIES', 'Num. of Replies'); + + // Smarty Template Constants + define('_AM_TWEETBOMB_EDITNEW_REPLIES_H1', 'Edit/New Reply'); + define('_AM_TWEETBOMB_EDITNEW_REPLIES_P', 'From here you can create or edit in full your campaign.'); + define('_AM_TWEETBOMB_REPLIES_H1', 'Replies'); + define('_AM_TWEETBOMB_REPLIES_P', 'From here you can browse and edit your replies paginated.'); + define('_AM_TWEETBOMB_NEW_REPLIES_H1', 'New Reply'); + define('_AM_TWEETBOMB_NEW_REPLIES_P', 'Create a new Reply'); + define('_AM_TWEETBOMB_EDITNEW_MENTIONS_H1', 'Edit/New Mention'); + define('_AM_TWEETBOMB_EDITNEW_MENTIONS_P', 'From here you can create or edit in full your campaign.'); + define('_AM_TWEETBOMB_MENTIONS_H1', 'Mentions'); + define('_AM_TWEETBOMB_MENTIONS_P', 'From here you can browse and edit your mentions paginated.'); + define('_AM_TWEETBOMB_NEW_MENTIONS_H1', 'New Mention'); + define('_AM_TWEETBOMB_NEW_MENTIONS_P', 'Create a new Mention'); + + // Admin redirection messages + define('_AM_MSG_REPLIES_FAILEDTOSAVE', 'Reply Failed to Save!'); + define('_AM_MSG_REPLIES_SAVEDOKEY', 'Reply Saved Okey!'); + define('_AM_MSG_REPLIES_FAILEDTODELETE', 'Reply Failed to Delete.'); + define('_AM_MSG_REPLIES_DELETED', 'Reply Deleted'); + define('_AM_MSG_REPLIES_DELETE', 'Do you wish to delete the reply "%s"?'); + define('_AM_MSG_MENTIONS_FAILEDTOSAVE', 'Mention Failed to Save!'); + define('_AM_MSG_MENTIONS_SAVEDOKEY', 'Mention Saved Okey!'); + define('_AM_MSG_MENTIONS_FAILEDTODELETE', 'Mention Failed to Delete.'); + define('_AM_MSG_MENTIONS_DELETED', 'Mention Deleted'); + define('_AM_MSG_MENTIONS_DELETE', 'Do you wish to delete the mention user/hashtag "%s"?'); + + //Forms Definitions + define('_AM_TWEETBOMB_FORM_ISNEW_REPLIES', 'New Search and Reply'); + define('_AM_TWEETBOMB_FORM_EDIT_REPLIES', 'Edit Search and Reply'); + define('_AM_TWEETBOMB_FORM_CID_REPLIES', 'Campaign'); + define('_AM_TWEETBOMB_FORM_DESC_CID_REPLIES', ''); + define('_AM_TWEETBOMB_FORM_CATID_REPLIES', 'Category'); + define('_AM_TWEETBOMB_FORM_DESC_CATID_REPLIES', ''); + define('_AM_TWEETBOMB_FORM_TYPE_REPLIES', 'Reply Type'); + define('_AM_TWEETBOMB_FORM_DESC_TYPE_REPLIES', ''); + define('_AM_TWEETBOMB_FORM_REPLY_REPLIES', 'Reply Tweet'); + define('_AM_TWEETBOMB_FORM_DESC_REPLY_REPLIES', ''); + define('_AM_TWEETBOMB_FORM_KEYWORDS_REPLIES', 'Keywords must have'); + define('_AM_TWEETBOMB_FORM_DESC_KEYWORDS_REPLIES', '"-keyword" will exclude and "keyword" will be inclusive and select.'); + define('_AM_TWEETBOMB_FORM_URLS_REPLIES', 'URL to Include'); + define('_AM_TWEETBOMB_FORM_DESC_URLS_REPLIES', ''); + define('_AM_TWEETBOMB_FORM_RCID_REPLIES', 'Reply Bomb to Use'); + define('_AM_TWEETBOMB_FORM_DESC_RCID_REPLIES', ''); + define('_AM_TWEETBOMB_FORM_UID_REPLIES', 'Owner'); + define('_AM_TWEETBOMB_FORM_CREATED_REPLIES', 'Created'); + define('_AM_TWEETBOMB_FORM_ACTIONED_REPLIES', 'Actioned'); + define('_AM_TWEETBOMB_FORM_UPDATED_REPLIES', 'Updated'); + define('_AM_TWEETBOMB_FORM_REPLIED_REPLIES', 'Last Replied'); + define('_AM_TWEETBOMB_FORM_REPLIES_REPLIES', 'Number of Replies'); + define('_AM_TWEETBOMB_FORM_ISNEW_MENTIONS', 'New Search and Mention'); + define('_AM_TWEETBOMB_FORM_EDIT_MENTIONS', 'Edit Search and Mention'); + define('_AM_TWEETBOMB_FORM_CID_MENTIONS', 'Campaign'); + define('_AM_TWEETBOMB_FORM_DESC_CID_MENTIONS', ''); + define('_AM_TWEETBOMB_FORM_CATID_MENTIONS', 'Category'); + define('_AM_TWEETBOMB_FORM_DESC_CATID_MENTIONS', ''); + define('_AM_TWEETBOMB_FORM_USER_MENTIONS', 'Twitter Username/Hashtag'); + define('_AM_TWEETBOMB_FORM_DESC_USER_MENTIONS', 'Must include @ or # at the front!'); + define('_AM_TWEETBOMB_FORM_KEYWORDS_MENTIONS', 'Keywords must have'); + define('_AM_TWEETBOMB_FORM_DESC_KEYWORDS_MENTIONS', '"-keyword" will exclude and "keyword" will be inclusive and select.'); + define('_AM_TWEETBOMB_FORM_RPIDS_MENTIONS', 'Replies to Use'); + define('_AM_TWEETBOMB_FORM_DESC_RPIDS_MENTIONS', ''); + define('_AM_TWEETBOMB_FORM_UID_MENTIONS', 'Owner'); + define('_AM_TWEETBOMB_FORM_CREATED_MENTIONS', 'Created'); + define('_AM_TWEETBOMB_FORM_ACTIONED_MENTIONS', 'Actioned'); + define('_AM_TWEETBOMB_FORM_UPDATED_MENTIONS', 'Updated'); + define('_AM_TWEETBOMB_FORM_MENTIONED_MENTIONS', 'Last Mentioned'); + define('_AM_TWEETBOMB_FORM_MENTIONS_MENTIONS', 'Number of Mentions'); + ?> \ No newline at end of file Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/modinfo.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/modinfo.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/modinfo.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -436,10 +436,10 @@ define('_MI_TWEETBOMB_LINK_ADMENU9', 'admin/index.php?op=retweet&fct=list'); define('_MI_TWEETBOMB_TITLE_ADMENU10', 'Search & Reply'); define('_MI_TWEETBOMB_ICON_ADMENU10', '../../'.$GLOBALS['twitterbombModule']->getInfo('icons32').'/twitterbomb.reply.png'); - define('_MI_TWEETBOMB_LINK_ADMENU10', 'admin/index.php?op=reply&fct=list'); + define('_MI_TWEETBOMB_LINK_ADMENU10', 'admin/index.php?op=replies&fct=list'); define('_MI_TWEETBOMB_TITLE_ADMENU11', 'Mention & Reply'); - define('_MI_TWEETBOMB_ICON_ADMENU11', '../../'.$GLOBALS['twitterbombModule']->getInfo('icons32').'/twitterbomb.mention.png'); - define('_MI_TWEETBOMB_LINK_ADMENU11', 'admin/index.php?op=mention&fct=list'); + define('_MI_TWEETBOMB_ICON_ADMENU11', '../../'.$GLOBALS['twitterbombModule']->getInfo('icons32').'/twitterbomb.mentions.png'); + define('_MI_TWEETBOMB_LINK_ADMENU11', 'admin/index.php?op=mentions&fct=list'); define('_MI_TWEETBOMB_TITLE_ADMENU12', 'Preferences'); define('_MI_TWEETBOMB_ICON_ADMENU12', '../../'.$GLOBALS['twitterbombModule']->getInfo('icons32').'/twitterbomb.preferences.png'); define('_MI_TWEETBOMB_LINK_ADMENU12', '../system/admin.php?fct=preferences&op=showmod&mod='.$GLOBALS['twitterbombModule']->getVar('mid')); Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql 2012-03-22 03:50:33 UTC (rev 9166) @@ -229,9 +229,11 @@ `keywords` VARCHAR(500) DEFAULT NULL, `type` enum('bomb','reply') default 'reply', `uid` INT(13) UNSIGNED DEFAULT '0', + `replies` INT(13) UNSIGNED DEFAULT '0', `created` INT(13) UNSIGNED DEFAULT '0', `updated` INT(13) UNSIGNED DEFAULT '0', `actioned` INT(13) UNSIGNED DEFAULT '0', + `replied` INT(13) UNSIGNED DEFAULT '0', PRIMARY KEY (`rpid`), KEY `COMMON` (`cid`,`catid`,`keywords`(45),`type`,`uid`,`created`) ) ENGINE=INNODB DEFAULT CHARSET=utf8; @@ -244,9 +246,10 @@ `keywords` VARCHAR(500) DEFAULT NULL, `rpids` VARCHAR(750) DEFAULT NULL, `uid` INT(13) UNSIGNED DEFAULT '0', + `mentions` INT(13) UNSIGNED DEFAULT '0', `created` INT(13) UNSIGNED DEFAULT '0', `updated` INT(13) UNSIGNED DEFAULT '0', - `actioned` INT(13) UNSIGNED DEFAULT '0', + `mentioned` INT(13) UNSIGNED DEFAULT '0', PRIMARY KEY (`mid`), KEY `COMMON` (`cid`,`catid`,`keywords`(45),`type`,`uid`,`created`) ) ENGINE=INNODB DEFAULT CHARSET=utf8; Added: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_edit.html =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_edit.html (rev 0) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_edit.html 2012-03-22 03:50:33 UTC (rev 9166) @@ -0,0 +1,3 @@ +<h1><{$smarty.const._AM_TWEETBOMB_EDITNEW_MENTIONS_H1}></h1> +<p><{$smarty.const._AM_TWEETBOMB_EDITNEW_MENTIONS_P}></p> +<{$form}> Added: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html (rev 0) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html 2012-03-22 03:50:33 UTC (rev 9166) @@ -0,0 +1,61 @@ +<h1><{$smarty.const._AM_TWEETBOMB_MENTIONS_H1}></h1> +<p><{$smarty.const._AM_TWEETBOMB_MENTIONS_P}></p> +<div style="clear:both; height:45px;"> + <div style="float:right; height:45px;"><{$pagenav}></div> +</div> + +<form action="<{$php_self}>" method='post'> +<table> + <tr class="head"> + <th><{$mid_th}></th> + <th><{$cid_th}></th> + <th><{$catid_th}></th> + <th><{$user_th}></th> + <th><{$keywords_th}></th> + <th><{$mentions_th}></th> + <th><{$uid_th}></th> + <th><{$created_th}></th> + <th><{$updated_th}></th> + <th><{$smarty.const._AM_TWEETBOMB_TH_ACTIONS}></th> + </tr> + <tr class="filter"> + <th> </th> + <th><{$filter_cid_th}></th> + <th><{$filter_catid_th}></th> + <th><{$filter_user_th}></th> + <th><{$filter_keywords_th}></th> + <th><{$filter_mentions_th}></th> + <th><{$filter_uid_th}></th> + <th><{$filter_created_th}></th> + <th><{$filter_updated_th}></th> + <th> </th> + </tr> + <{foreach item=item from=$mentions}> + <tr class="<{cycle values="even,odd"}>"> + <td align='center'><{$item.mid}><{$item.form.id}></td> + <td align='center'><{$item.form.cid}></td> + <td align='center'><{$item.form.catid}></td> + <td align='center'><{$item.form.user}></td> + <td align='center'><{$item.form.keywords}></td> + <td align='center'><{$item.form.mentions}></td> + <td align='center'><{$item.form.uid}></td> + <td align='center'><{$item.form.created}></td> + <td align='center'><{$item.form.updated}></td> + <td align='right'><a href="<{$php_self}>?op=mentions&fct=edit&id=<{$item.mid}>&start=<{$start}>&limit=<{$limit}>&order=<{$order}>&sort=<{$sort}>&filter=<{$filter}>"><{$smarty.const._EDIT}></a> | <a href="<{$php_self}>?op=mentions&fct=delete&id=<{$item.mid}>&start=<{$start}>&limit=<{$limit}>&order=<{$order}>&sort=<{$sort}>&filter=<{$filter}>"><{$smarty.const._DELETE}></a></td> + </tr> + <{/foreach}> + <tr class="foot"> + <td colspan="9"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> + </tr> +</table> +<input type='hidden' name='op' value='mentions'/> +<input type='hidden' name='fct' value='savelist'/> +<input type='hidden' name='start' value='<{$start}>'/> +<input type='hidden' name='limit' value='<{$limit}>'/> +<input type='hidden' name='order' value='<{$order}>'/> +<input type='hidden' name='sort' value='<{$sort}>'/> +<input type='hidden' name='filter' value='<{$filter}>'/> +</form> +<h1><{$smarty.const._AM_TWEETBOMB_NEW_MENTIONS_H1}></h1> +<p><{$smarty.const._AM_TWEETBOMB_NEW_MENTIONS_P}></p> +<{$form}> Added: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_edit.html =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_edit.html (rev 0) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_edit.html 2012-03-22 03:50:33 UTC (rev 9166) @@ -0,0 +1,3 @@ +<h1><{$smarty.const._AM_TWEETBOMB_EDITNEW_REPLIES_H1}></h1> +<p><{$smarty.const._AM_TWEETBOMB_EDITNEW_REPLIES_P}></p> +<{$form}> Added: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html (rev 0) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html 2012-03-22 03:50:33 UTC (rev 9166) @@ -0,0 +1,74 @@ +<h1><{$smarty.const._AM_TWEETBOMB_REPLIES_H1}></h1> +<p><{$smarty.const._AM_TWEETBOMB_REPLIES_P}></p> +<div style="clear:both; height:45px;"> + <div style="float:right; height:45px;"><{$pagenav}></div> +</div> + +<form action="<{$php_self}>" method='post'> +<table> + <tr class="head"> + <th><{$rpid_th}></th> + <th><{$cid_th}></th> + <th><{$catid_th}></th> + <th><{$urlid_th}></th> + <th><{$rcid_th}></th> + <th><{$reply_th}></th> + <th><{$keywords_th}></th> + <th><{$type_th}></th> + <th><{$uid_th}></th> + <th><{$replies_th}></th> + <th><{$created_th}></th> + <th><{$updated_th}></th> + <th><{$replied_th}></th> + <th><{$smarty.const._AM_TWEETBOMB_TH_ACTIONS}></th> + </tr> + <tr class="filter"> + <th> </th> + <th><{$filter_cid_th}></th> + <th><{$filter_catid_th}></th> + <th><{$filter_urlid_th}></th> + <th><{$filter_rcid_th}></th> + <th><{$filter_reply_th}></th> + <th><{$filter_keywords_th}></th> + <th><{$filter_type_th}></th> + <th><{$filter_uid_th}></th> + <th><{$filter_replies_th}></th> + <th><{$filter_created_th}></th> + <th><{$filter_updated_th}></th> + <th><{$filter_replied_th}></th> + <th> </th> + </tr> + <{foreach item=item from=$replies}> + <tr class="<{cycle values="even,odd"}>"> + <td align='center'><{$item.rpid}><{$item.form.id}></td> + <td align='center'><{$item.form.cid}></td> + <td align='center'><{$item.form.catid}></td> + <td align='center'><{$item.form.urlid}></td> + <td align='center'><{$item.form.rcid}></td> + <td align='center'><{$item.form.reply}></td> + <td align='center'><{$item.form.keywords}></td> + <td align='center'><{$item.form.type}></td> + <td align='center'><{$item.form.type}></td> + <td align='center'><{$item.form.uid}></td> + <td align='center'><{$item.replies}></td> + <td align='center'><{$item.form.created}></td> + <td align='center'><{$item.form.updated}></td> + <td align='center'><{$item.form.replied}></td> + <td align='right'><a href="<{$php_self}>?op=replies&fct=edit&id=<{$item.rpid}>&start=<{$start}>&limit=<{$limit}>&order=<{$order}>&sort=<{$sort}>&filter=<{$filter}>"><{$smarty.const._EDIT}></a> | <a href="<{$php_self}>?op=replies&fct=delete&id=<{$item.rpid}>&start=<{$start}>&limit=<{$limit}>&order=<{$order}>&sort=<{$sort}>&filter=<{$filter}>"><{$smarty.const._DELETE}></a></td> + </tr> + <{/foreach}> + <tr class="foot"> + <td colspan="9"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> + </tr> +</table> +<input type='hidden' name='op' value='replies'/> +<input type='hidden' name='fct' value='savelist'/> +<input type='hidden' name='start' value='<{$start}>'/> +<input type='hidden' name='limit' value='<{$limit}>'/> +<input type='hidden' name='order' value='<{$order}>'/> +<input type='hidden' name='sort' value='<{$sort}>'/> +<input type='hidden' name='filter' value='<{$filter}>'/> +</form> +<h1><{$smarty.const._AM_TWEETBOMB_NEW_REPLIES_H1}></h1> +<p><{$smarty.const._AM_TWEETBOMB_NEW_REPLIES_P}></p> +<{$form}> Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php 2012-03-21 23:35:27 UTC (rev 9165) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php 2012-03-22 03:50:33 UTC (rev 9166) @@ -96,6 +96,8 @@ $modversion['tables'][8] = "twitterbomb_following"; $modversion['tables'][9] = "twitterbomb_retweet"; $modversion['tables'][10] = "twitterbomb_log"; +$modversion['tables'][11] = "twitterbomb_replies"; +$modversion['tables'][12] = "twitterbomb_mentions"; // Blocks $modversion['blocks'][1]['file'] = "twitterbomb_block_bomb.php"; @@ -180,6 +182,22 @@ $modversion['blocks'][9]['options'] = "0|10"; $modversion['blocks'][9]['template'] = "twitterbomb_block_tweets.html" ; +$modversion['blocks'][10]['file'] = "twitterbomb_block_replies.php"; +$modversion['blocks'][10]['name'] = 'Recently Replied Tweets' ; +$modversion['blocks'][10]['description'] = "Shows recently replies items"; +$modversion['blocks'][10]['show_func'] = "b_twitterbomb_block_replies_show"; +$modversion['blocks'][10]['edit_func'] = "b_twitterbomb_block_replies_edit"; +$modversion['blocks'][10]['options'] = "0|10"; +$modversion['blocks'][10]['template'] = "twitterbomb_block_tweets.html" ; + +$modversion['blocks'][11]['file'] = "twitterbomb_block_mentions.php"; +$modversion['blocks'][11]['name'] = 'Recently Mentioned Tweets' ; +$modversion['blocks'][11]['description'] = "Shows recently mentioned items"; +$modversion['blocks'][11]['show_func'] = "b_twitterbomb_block_mentions_show"; +$modversion['blocks'][11]['edit_func'] = "b_twitterbomb_block_mentions_edit"; +$modversion['blocks'][11]['options'] = "0|10"; +$modversion['blocks'][11]['template'] = "twitterbomb_block_tweets.html" ; + // Templates $modversion['templates'][1]['file'] = 'twitterbomb_rss.html'; $modversion['templates'][1]['description'] = 'Main Twitter Bomb RSS Feed'; @@ -231,6 +249,14 @@ $modversion['templates'][24]['description'] = 'Main Control Panel Twitter Bomb Retweets Edit'; $modversion['templates'][25]['file'] = 'twitterbomb_cpanel_retweet_list.html'; $modversion['templates'][25]['description'] = 'Main Control Panel Twitter Bomb Retweets List'; +$modversion['templates'][26]['file'] = 'twitterbomb_cpanel_mentions_edit.html'; +$modversion['templates'][26]['description'] = 'Main Control Panel Twitter Bomb Mentions Edit'; +$modversion['templates'][27]['file'] = 'twitterbomb_cpanel_mentions_list.html'; +$modversion['templates'][27]['description'] = 'Main Control Panel Twitter Bomb Mentions List'; +$modversion['templates'][28]['file'] = 'twitterbomb_cpanel_replies_edit.html'; +$modversion['templates'][28]['description'] = 'Main Control Panel Twitter Bom... [truncated message content] |
From: <txm...@us...> - 2012-03-21 23:35:39
|
Revision: 9165 http://xoops.svn.sourceforge.net/xoops/?rev=9165&view=rev Author: txmodxoops Date: 2012-03-21 23:35:27 +0000 (Wed, 21 Mar 2012) Log Message: ----------- Updated alpha You can create a base theme Work in progress Added Paths: ----------- XoopsModules/xThCreator/releases/1.01a/ XoopsModules/xThCreator/releases/1.01a/xThCreator/ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/about.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_footer.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_header.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/building.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/includes.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/languages.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/layout.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/menu.php XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/themes.php XoopsModules/xThCreator/releases/1.01a/xThCreator/blocks/ XoopsModules/xThCreator/releases/1.01a/xThCreator/blocks/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/class/ XoopsModules/xThCreator/releases/1.01a/xThCreator/class/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/class/xthcreator_defaultff.php XoopsModules/xThCreator/releases/1.01a/xThCreator/class/xthcreator_languages.php XoopsModules/xThCreator/releases/1.01a/xThCreator/class/xthcreator_layout.php XoopsModules/xThCreator/releases/1.01a/xThCreator/class/xthcreator_themes.php XoopsModules/xThCreator/releases/1.01a/xThCreator/css/ XoopsModules/xThCreator/releases/1.01a/xThCreator/css/admin.css XoopsModules/xThCreator/releases/1.01a/xThCreator/css/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/css/style.css XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/ XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/changelog.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/credits.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/install.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/lang_diff.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/licence.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/docs/readme.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/header.php XoopsModules/xThCreator/releases/1.01a/xThCreator/images/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/16/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/16/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/addlanguage.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/addlayout.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/addtheme.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/dashboard.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/32/thbuild.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/bookmarks/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/bookmarks/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/deco/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/deco/arrow.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/images/deco/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/deco/off.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/images/deco/on.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/images/icons/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/icons/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/icons/off.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/icons/on.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/menu/ XoopsModules/xThCreator/releases/1.01a/xThCreator/images/menu/bg.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/menu/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/images/menu/left_both.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/menu/right_both.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/txmod_logo.png XoopsModules/xThCreator/releases/1.01a/xThCreator/images/xthcreator_slogo.png XoopsModules/xThCreator/releases/1.01a/xThCreator/include/ XoopsModules/xThCreator/releases/1.01a/xThCreator/include/configs.php XoopsModules/xThCreator/releases/1.01a/xThCreator/include/functions.php XoopsModules/xThCreator/releases/1.01a/xThCreator/include/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/include/install.php XoopsModules/xThCreator/releases/1.01a/xThCreator/index.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/ XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/ XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/admin.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/blocks.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/help/ XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/help/help.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/help/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/main.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/english/modinfo.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/ XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/admin.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/blocks.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/help/ XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/help/help.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/help/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/main.php XoopsModules/xThCreator/releases/1.01a/xThCreator/language/italian/modinfo.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/css.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/defolders.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/docs.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/images.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/languages.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/layout.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/css/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/css/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/css/layout.css XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/css/print.css XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/css/style.css XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/css/styles-ie7.css XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/14_layer_novisible.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/edit-block.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/feed1.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/feed2.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/friend.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/pagact.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/paginact.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/pagneutral.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/pdf.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/action/printable.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/favicon.ico XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/favicon.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/BR.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/CN.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/DE.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/ES.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/FR.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/IT.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/JP.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/PL.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/PR.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/RU.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/UK.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/US.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/flags/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/avatar_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/banners_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/blocks_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/comment_accept.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/comments_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/configure_shortcuts.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/edituser_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/filemanager_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/find.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/finduser_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/groups_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/home.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/images_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/logout.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/mail.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/mail_warning.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/mailuser_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/maintenance_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/modules_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/prefs_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/process.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/smilies_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/tpls_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/up.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/user.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/user_edit.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/userrank_small.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/footer/xoops.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/Ym.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/cog_go.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/edit_user.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/email.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/email_go.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/email_open.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/exit.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/find.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/identity.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/knotes.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/messagebox16x16.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/msn.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/noavatar.jpg XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/note_edit.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/organizer.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/password.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/profile.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/shutdown.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/vcard_edit.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/icons/users/web.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/await.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/dot.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/dot_blue.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/BR.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/CN.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/DE.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/ES.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/FR.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/IT.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/JP.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/PR.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/RU.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/UK.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/US.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/flags/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/magnifier.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/table-caption.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/table-caption_blue.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/throbber.gif XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/translate.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/img/wizard_bg.png XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/english/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/english/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/english/main.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/english/script.js XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/english/style.css XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/italian/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/italian/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/italian/main.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/italian/script.js XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/italian/style.css XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/leggimi.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/language/readme.txt XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/modules/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/modules/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/modules/system/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/modules/system/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/modules/system/system_redirect.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/modules/system/system_siteclosed.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/theme.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/ XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockcenter.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockcenter_c.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockcenter_l.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockcenter_r.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockleft.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockright.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/blockszone.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/centerblocks.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/footer.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/footerstatic.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/globalnav.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/header.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/metas.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/scripts.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/tpl/userbar.html XoopsModules/xThCreator/releases/1.01a/xThCreator/library/resource/xo-info.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/templates.php XoopsModules/xThCreator/releases/1.01a/xThCreator/library/themes.php XoopsModules/xThCreator/releases/1.01a/xThCreator/sql/ XoopsModules/xThCreator/releases/1.01a/xThCreator/sql/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/sql/mysql.sql XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/ XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/admin/ XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/admin/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/admin/xThCreator_admin_about.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/admin/xThCreator_admin_help.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/blocks/ XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/blocks/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/xthcreator_footer.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/xthcreator_header.html XoopsModules/xThCreator/releases/1.01a/xThCreator/templates/xthcreator_index.html XoopsModules/xThCreator/releases/1.01a/xThCreator/themes/ XoopsModules/xThCreator/releases/1.01a/xThCreator/xoops_version.php Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/about.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/about.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/about.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_footer.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_footer.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_footer.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,45 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : 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_XTHCREATOR_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb/' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_header.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_header.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/admin_header.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : 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'; +include_once 'includes.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_ERROR_NOFRAMEWORKS); + 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'); + +$themesHandler =& xoops_getModuleHandler('xthcreator_themes', $dirname); +$layoutHandler =& xoops_getModuleHandler('xthcreator_layout', $dirname); +$languagesHandler =& xoops_getModuleHandler('xthcreator_languages', $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); +//xoops_cp_header(); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/building.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/building.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/building.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH .'/modules/xThCreator/library/defolders.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('building.php'); +$op = xthcreator_CleanVars($_REQUEST, 'op', 'default', 'string'); +switch ($op) { + case "build": + $thms =& $themesHandler->get($_REQUEST['theme_name']); + $thms_name = $thms->getVar('theme_name'); + //Debut + echo '<table width="100%" cellspacing="1" style="background: #fff;"> + <tr class="marg2"> + <td class="ui-corner-all">'; + /************************************************/ + /*Structure*/ + /************************************************/ + //Creation of default folders & files + defaultff($thms_name); + /////////////////////////////////////////////////////////////////////// + echo '</td></tr></table>'; + break; + + case "default": + default: + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $action = $_SERVER['REQUEST_URI']; + + $form = new XoopsThemeForm(_AM_XTHCREATOR_BUILD_DEFAULT, 'form_creation', $action, 'post', true); + + $thms_select = new XoopsFormSelect(_AM_XTHCREATOR_BUILD_THEMES, 'theme_name', 'theme_name', 1); + $thms_select->addOptionArray($themesHandler->getList()); + $form->addElement($thms_select, true); + + $form->addElement(new XoopsFormHidden('op', 'build')); + $form->addElement(new XoopsFormButton('', 'submit', _AM_XTHCREATOR_BUILD, 'submit')); + $form->display(); + break; +} +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/includes.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/includes.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/includes.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,37 @@ +<?php +/** + * **************************************************************************** + * - Developers TEAM Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * 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. + * ------------------------------------------------------------------------ + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include '../../../include/cp_header.php'; +include_once("../include/functions.php"); + +$modPath = XOOPS_ROOT_PATH.'/modules/xThCreator'; +$cPath = $modPath.'/library'; + +include_once $cPath.'/css.php'; +include_once $cPath.'/defolders.php'; +include_once $cPath.'/docs.php'; +include_once $cPath.'/images.php'; +include_once $cPath.'/languages.php'; +include_once $cPath.'/layout.php'; +include_once $cPath.'/templates.php'; +include_once $cPath.'/themes.php'; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.html =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.html (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.html 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/index.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,90 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + //count "total" + $count_themes = $themesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("themes_online", 1)); + $themes_online = $themesHandler->getCount($criteria); + $criteria->add(new Criteria("themes_pending", 1)); + $themes_pending = $themesHandler->getCount($criteria); + + //count "total" + $count_layout = $layoutHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("layout_online", 1)); + $layout_online = $layoutHandler->getCount($criteria); + $criteria->add(new Criteria("layout_pending", 1)); + $layout_pending = $layoutHandler->getCount($criteria); + + //count "total" + $count_languages = $languagesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("languages_online", 1)); + $languages_online = $languagesHandler->getCount($criteria); + $criteria->add(new Criteria("languages_pending", 1)); + $languages_pending = $languagesHandler->getCount($criteria); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_THEMES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES, $count_themes); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_ONLINE, $themes_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_PENDING, $themes_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LAYOUT); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT, $count_layout); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_ONLINE, $layout_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_PENDING, $layout_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LANGUAGES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES, $count_languages); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_ONLINE, $languages_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_PENDING, $languages_pending); + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/languages.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/languages.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/languages.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,206 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +global $pathImageIcon; +$op = xthcreator_CleanVars($_REQUEST, 'op', 'list', 'string'); +$languagesAdmin = new ModuleAdmin(); +switch ($op) { + case "list": + default: + echo $languagesAdmin->addNavigation('languages.php'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + echo $languagesAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("lang_id ASC, lang_name"); + $criteria->setOrder("ASC"); + $numrows = $languagesHandler->getCount(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $document_tri = 1; + $document_order = 1; + if (isset($_REQUEST['document_order'])) { + if ($_REQUEST['document_order']==1){ + $criteria->setOrder('ASC'); + $document_order=1; + } + if ($_REQUEST['document_order']==2){ + $criteria->setOrder('DESC'); + $document_order=2; + } + } else { + $criteria->setOrder('DESC'); + } + $languages_arr = $languagesHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=default&limit=' . $limit . '&document_tri=' . $document_tri. '&document_order=' . $document_order); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + + //Table view + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align=\"center\" width=\"10%\">"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + $class = "odd"; + foreach (array_keys($languages_arr) as $i) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + + $themes =& $themesHandler->get($languages_arr[$i]->getVar("lang_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align=\"center\">".$title_themes."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_name")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_file")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_define")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_descript")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($languages_arr[$i]->getVar("languages_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($languages_arr[$i]->getVar("languages_date_created"),"S")."</td>"; + + echo "<td align=\"center\" width=\"10%\"> + <a href=\"languages.php?op=edit_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a> + <a href=\"languages.php?op=delete_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + + $obj =& $languagesHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_language": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["lang_id"])) { + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + } else { + $obj =& $languagesHandler->create(); + } + //Form lang_th_name + $obj->setVar("lang_th_name", $_REQUEST["lang_th_name"]); + //Form lang_file + $obj->setVar("lang_name", $_REQUEST["lang_name"]); + //Form lang_file + $obj->setVar("lang_file", $_REQUEST["lang_file"]); + //Form lang_define + $obj->setVar("lang_define", $_REQUEST["lang_define"]); + //Form lang_descript + $obj->setVar("lang_descript", $_REQUEST["lang_descript"]); + + if ($languagesHandler->insert($obj)) { + redirect_header("languages.php?op=list", 2, _AM_XTHCREATOR_FORMOK); + } + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + $obj = $languagesHandler->get($_REQUEST["lang_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_language": + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($languagesHandler->delete($obj)) { + redirect_header("languages.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "lang_id" => $_REQUEST["lang_id"], "op" => "delete_language"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("lang_name"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/layout.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/layout.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/layout.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,169 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +include_once "../include/functions.php"; +xoops_cp_header(); +global $xoopsModuleConfig, $pathImageIcon; +$op = xThCreator_CleanVars($_REQUEST, 'op', 'list_layout', 'string'); +$layoutAdmin = new ModuleAdmin(); +switch ($op) +{ + case "list_layout": + default: + echo $layoutAdmin->addNavigation('layout.php'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + echo $layoutAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("layout_id"); + $criteria->setOrder("ASC"); + $numrows = $layoutHandler->getCount(); + $layout_arr = $layoutHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($layout_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_name")."</td>"; + + $themes =& $themesHandler->get($layout_arr[$i]->getVar("layout_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align='center'>".$title_themes."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_description")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_weight")."</td>"; + + echo "<td align='center' width='10%'> + <a href='layout.php?op=edit_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='layout.php?op=delete_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + echo $layoutAdmin->renderButton(); + + $obj =& $layoutHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_layout": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["layout_id"])) { + $obj =& $layoutHandler->get($_REQUEST["layout_id"]); + } else { + $obj =& $layoutHandler->create(); + } + //Form layout_name + $obj->setVar("layout_name", $_REQUEST["layout_name"]); + //Form layout_th_name + $obj->setVar("layout_th_name", $_REQUEST["layout_th_name"]); + //Form layout_description + $obj->setVar("layout_description", $_REQUEST["layout_description"]); + //Form layout_weight + $obj->setVar("layout_weight", $_REQUEST["layout_weight"]); + + if ($layoutHandler->insert($obj)) { + redirect_header("layout.php?op=list_layout", 2, _AM_XTHCREATOR_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + echo $layoutAdmin->renderButton(); + $obj = $layoutHandler->get($_REQUEST["layout_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_layout": + $obj =& $layoutHandler->get($_REQUEST["layout_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($layoutHandler->delete($obj)) { + redirect_header("layout.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "layout_id" => $_REQUEST["layout_id"], "op" => "delete_layout"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("layout"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/menu.php =================================================================== --- XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/menu.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01a/xThCreator/admin/menu.php 2012-03-21 23:35:27 UTC (rev 9165) @@ -0,0 +1,57 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; + +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); + +$adminmenu = array... [truncated message content] |
From: <txm...@us...> - 2012-03-21 21:53:23
|
Revision: 9164 http://xoops.svn.sourceforge.net/xoops/?rev=9164&view=rev Author: txmodxoops Date: 2012-03-21 21:53:13 +0000 (Wed, 21 Mar 2012) Log Message: ----------- Updated more files trunk alpha 1 Only for testing Added Paths: ----------- XoopsModules/xpdf/trunk/class/ XoopsModules/xpdf/trunk/class/xoopslists.php XoopsModules/xpdf/trunk/language/ XoopsModules/xpdf/trunk/language/english/ XoopsModules/xpdf/trunk/language/english/global.php XoopsModules/xpdf/trunk/language/italian/ XoopsModules/xpdf/trunk/language/italian/global.php XoopsModules/xpdf/trunk/modules/ XoopsModules/xpdf/trunk/modules/xpdf/ XoopsModules/xpdf/trunk/modules/xpdf/admin/ XoopsModules/xpdf/trunk/modules/xpdf/admin/about.php XoopsModules/xpdf/trunk/modules/xpdf/admin/admin_footer.php XoopsModules/xpdf/trunk/modules/xpdf/admin/admin_header.php XoopsModules/xpdf/trunk/modules/xpdf/admin/broken.php XoopsModules/xpdf/trunk/modules/xpdf/admin/categories.php XoopsModules/xpdf/trunk/modules/xpdf/admin/documents.php XoopsModules/xpdf/trunk/modules/xpdf/admin/filesname.php XoopsModules/xpdf/trunk/modules/xpdf/admin/index.html XoopsModules/xpdf/trunk/modules/xpdf/admin/index.php XoopsModules/xpdf/trunk/modules/xpdf/admin/menu.php XoopsModules/xpdf/trunk/modules/xpdf/admin/modified.php XoopsModules/xpdf/trunk/modules/xpdf/admin/permissions.php XoopsModules/xpdf/trunk/modules/xpdf/blocks/ XoopsModules/xpdf/trunk/modules/xpdf/blocks/blocks_doc.php XoopsModules/xpdf/trunk/modules/xpdf/blocks/index.html XoopsModules/xpdf/trunk/modules/xpdf/brokendoc.php XoopsModules/xpdf/trunk/modules/xpdf/class/ XoopsModules/xpdf/trunk/modules/xpdf/class/index.html XoopsModules/xpdf/trunk/modules/xpdf/class/xpdf_broken.php XoopsModules/xpdf/trunk/modules/xpdf/class/xpdf_cat.php XoopsModules/xpdf/trunk/modules/xpdf/class/xpdf_doc.php XoopsModules/xpdf/trunk/modules/xpdf/class/xpdf_mod.php XoopsModules/xpdf/trunk/modules/xpdf/class/xpdf_purchase.php XoopsModules/xpdf/trunk/modules/xpdf/class/xpdf_viewlimit.php XoopsModules/xpdf/trunk/modules/xpdf/comment_delete.php XoopsModules/xpdf/trunk/modules/xpdf/comment_edit.php XoopsModules/xpdf/trunk/modules/xpdf/comment_new.php XoopsModules/xpdf/trunk/modules/xpdf/comment_post.php XoopsModules/xpdf/trunk/modules/xpdf/comment_reply.php XoopsModules/xpdf/trunk/modules/xpdf/css/ XoopsModules/xpdf/trunk/modules/xpdf/css/index.html XoopsModules/xpdf/trunk/modules/xpdf/css/style.css XoopsModules/xpdf/trunk/modules/xpdf/docs/ XoopsModules/xpdf/trunk/modules/xpdf/docs/changelog.txt XoopsModules/xpdf/trunk/modules/xpdf/docs/credits.txt XoopsModules/xpdf/trunk/modules/xpdf/docs/index.html XoopsModules/xpdf/trunk/modules/xpdf/docs/install.txt XoopsModules/xpdf/trunk/modules/xpdf/docs/lang_diff.txt XoopsModules/xpdf/trunk/modules/xpdf/docs/licence.txt XoopsModules/xpdf/trunk/modules/xpdf/docs/readme.txt XoopsModules/xpdf/trunk/modules/xpdf/header.php XoopsModules/xpdf/trunk/modules/xpdf/images/ XoopsModules/xpdf/trunk/modules/xpdf/images/16/ XoopsModules/xpdf/trunk/modules/xpdf/images/16/green_ball.png XoopsModules/xpdf/trunk/modules/xpdf/images/16/grey_ball.png XoopsModules/xpdf/trunk/modules/xpdf/images/16/index.html XoopsModules/xpdf/trunk/modules/xpdf/images/16/orange_ball.png XoopsModules/xpdf/trunk/modules/xpdf/images/16/red_ball.png XoopsModules/xpdf/trunk/modules/xpdf/images/32/ XoopsModules/xpdf/trunk/modules/xpdf/images/32/dashboard.png XoopsModules/xpdf/trunk/modules/xpdf/images/32/index.html XoopsModules/xpdf/trunk/modules/xpdf/images/32/pdf_broken.png XoopsModules/xpdf/trunk/modules/xpdf/images/32/pdf_category.png XoopsModules/xpdf/trunk/modules/xpdf/images/32/pdf_document.png XoopsModules/xpdf/trunk/modules/xpdf/images/32/pdf_file.png XoopsModules/xpdf/trunk/modules/xpdf/images/32/pdf_modified.png XoopsModules/xpdf/trunk/modules/xpdf/images/icons/ XoopsModules/xpdf/trunk/modules/xpdf/images/icons/index.html XoopsModules/xpdf/trunk/modules/xpdf/images/icons/off.png XoopsModules/xpdf/trunk/modules/xpdf/images/icons/on.png XoopsModules/xpdf/trunk/modules/xpdf/images/index.html XoopsModules/xpdf/trunk/modules/xpdf/images/menu/ XoopsModules/xpdf/trunk/modules/xpdf/images/menu/bg.png XoopsModules/xpdf/trunk/modules/xpdf/images/menu/index.html XoopsModules/xpdf/trunk/modules/xpdf/images/menu/left_both.png XoopsModules/xpdf/trunk/modules/xpdf/images/menu/right_both.png XoopsModules/xpdf/trunk/modules/xpdf/images/xpdf_slogo.png XoopsModules/xpdf/trunk/modules/xpdf/include/ XoopsModules/xpdf/trunk/modules/xpdf/include/configs.php XoopsModules/xpdf/trunk/modules/xpdf/include/functions.php XoopsModules/xpdf/trunk/modules/xpdf/include/index.html XoopsModules/xpdf/trunk/modules/xpdf/include/install.php XoopsModules/xpdf/trunk/modules/xpdf/include/makeimg.php XoopsModules/xpdf/trunk/modules/xpdf/include/makepdf.php XoopsModules/xpdf/trunk/modules/xpdf/include/notification.inc.php XoopsModules/xpdf/trunk/modules/xpdf/include/search.inc.php XoopsModules/xpdf/trunk/modules/xpdf/include/update.php XoopsModules/xpdf/trunk/modules/xpdf/index.php XoopsModules/xpdf/trunk/modules/xpdf/language/ XoopsModules/xpdf/trunk/modules/xpdf/language/english/ XoopsModules/xpdf/trunk/modules/xpdf/language/english/admin.php XoopsModules/xpdf/trunk/modules/xpdf/language/english/blank.gif XoopsModules/xpdf/trunk/modules/xpdf/language/english/blocks.php XoopsModules/xpdf/trunk/modules/xpdf/language/english/help/ XoopsModules/xpdf/trunk/modules/xpdf/language/english/help/help.html XoopsModules/xpdf/trunk/modules/xpdf/language/english/help/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/english/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/ XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/category_docsubmit_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/category_newdoc_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/doc_approve_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/global_docbroken_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/global_docmodify_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/global_docsubmit_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/global_newfile_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/english/mail_template/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/english/main.php XoopsModules/xpdf/trunk/modules/xpdf/language/english/modinfo.php XoopsModules/xpdf/trunk/modules/xpdf/language/english/new.png XoopsModules/xpdf/trunk/modules/xpdf/language/english/popular.png XoopsModules/xpdf/trunk/modules/xpdf/language/english/updated.png XoopsModules/xpdf/trunk/modules/xpdf/language/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/italian/ XoopsModules/xpdf/trunk/modules/xpdf/language/italian/admin.php XoopsModules/xpdf/trunk/modules/xpdf/language/italian/blank.gif XoopsModules/xpdf/trunk/modules/xpdf/language/italian/blocks.php XoopsModules/xpdf/trunk/modules/xpdf/language/italian/help/ XoopsModules/xpdf/trunk/modules/xpdf/language/italian/help/help.html XoopsModules/xpdf/trunk/modules/xpdf/language/italian/help/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/italian/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/ XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/category_docsubmit_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/category_newdoc_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/doc_approve_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/global_docbroken_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/global_docmodify_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/global_docsubmit_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/global_newcategory_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/global_newfile_notify.tpl XoopsModules/xpdf/trunk/modules/xpdf/language/italian/mail_template/index.html XoopsModules/xpdf/trunk/modules/xpdf/language/italian/main.php XoopsModules/xpdf/trunk/modules/xpdf/language/italian/modinfo.php XoopsModules/xpdf/trunk/modules/xpdf/language/italian/new.png XoopsModules/xpdf/trunk/modules/xpdf/language/italian/popular.png XoopsModules/xpdf/trunk/modules/xpdf/language/italian/updated.png XoopsModules/xpdf/trunk/modules/xpdf/list.tag.php XoopsModules/xpdf/trunk/modules/xpdf/makepdf.php XoopsModules/xpdf/trunk/modules/xpdf/moddoc.php XoopsModules/xpdf/trunk/modules/xpdf/notifyupdate.php XoopsModules/xpdf/trunk/modules/xpdf/print.php XoopsModules/xpdf/trunk/modules/xpdf/rss.php XoopsModules/xpdf/trunk/modules/xpdf/singledoc.php XoopsModules/xpdf/trunk/modules/xpdf/sql/ XoopsModules/xpdf/trunk/modules/xpdf/sql/index.html XoopsModules/xpdf/trunk/modules/xpdf/sql/mysql.sql XoopsModules/xpdf/trunk/modules/xpdf/submit.php XoopsModules/xpdf/trunk/modules/xpdf/templates/ XoopsModules/xpdf/trunk/modules/xpdf/templates/admin/ XoopsModules/xpdf/trunk/modules/xpdf/templates/admin/index.html XoopsModules/xpdf/trunk/modules/xpdf/templates/admin/xpdf_admin_about.html XoopsModules/xpdf/trunk/modules/xpdf/templates/admin/xpdf_admin_help.html XoopsModules/xpdf/trunk/modules/xpdf/templates/blocks/ XoopsModules/xpdf/trunk/modules/xpdf/templates/blocks/index.html XoopsModules/xpdf/trunk/modules/xpdf/templates/blocks/xpdf_doc_block_day.html XoopsModules/xpdf/trunk/modules/xpdf/templates/blocks/xpdf_doc_block_random.html XoopsModules/xpdf/trunk/modules/xpdf/templates/blocks/xpdf_doc_block_recent.html XoopsModules/xpdf/trunk/modules/xpdf/templates/index.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_brokendoc.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_footer.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_header.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_index.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_moddoc.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_rss.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_singledoc.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_submit.html XoopsModules/xpdf/trunk/modules/xpdf/templates/xpdf_viewcat.html XoopsModules/xpdf/trunk/modules/xpdf/view.tag.php XoopsModules/xpdf/trunk/modules/xpdf/viewcat.php XoopsModules/xpdf/trunk/modules/xpdf/xoops_version.php XoopsModules/xpdf/trunk/uploads/ XoopsModules/xpdf/trunk/uploads/xpdf/ XoopsModules/xpdf/trunk/uploads/xpdf/files/ XoopsModules/xpdf/trunk/uploads/xpdf/files/index.html XoopsModules/xpdf/trunk/uploads/xpdf/files/test.pdf XoopsModules/xpdf/trunk/uploads/xpdf/images/ XoopsModules/xpdf/trunk/uploads/xpdf/images/cat/ XoopsModules/xpdf/trunk/uploads/xpdf/images/cat/blank.gif XoopsModules/xpdf/trunk/uploads/xpdf/images/cat/cat_pdf01.png XoopsModules/xpdf/trunk/uploads/xpdf/images/cat/cat_pdf02.png XoopsModules/xpdf/trunk/uploads/xpdf/images/cat/index.html XoopsModules/xpdf/trunk/uploads/xpdf/images/doc/ XoopsModules/xpdf/trunk/uploads/xpdf/images/doc/blank.gif XoopsModules/xpdf/trunk/uploads/xpdf/images/doc/doc_pdf01.png XoopsModules/xpdf/trunk/uploads/xpdf/images/doc/doc_pdf02.png XoopsModules/xpdf/trunk/uploads/xpdf/images/doc/index.html XoopsModules/xpdf/trunk/uploads/xpdf/images/index.html XoopsModules/xpdf/trunk/uploads/xpdf/index.html Removed Paths: ------------- XoopsModules/xpdf/trunk/xpdf/ Added: XoopsModules/xpdf/trunk/class/xoopslists.php =================================================================== --- XoopsModules/xpdf/trunk/class/xoopslists.php (rev 0) +++ XoopsModules/xpdf/trunk/class/xoopslists.php 2012-03-21 21:53:13 UTC (rev 9164) @@ -0,0 +1,1365 @@ +<?php +/** + * XOOPS listing utilities + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @since 2.0.1 + * @version $Id: xoopslists.php 8066 2011-11-06 05:09:33Z beckmi $ + * @version $Id: xoopslists.php 9156 2012-03-19 13:48:28Z timgno $ + */ + + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +if (!defined('XOOPS_LISTS_INCLUDED')) { + define('XOOPS_LISTS_INCLUDED', 1); + + /** + * XoopsLists + * + * @author John Neill <cat...@xo...> + * @copyright copyright (c) XOOPS.org + * @package kernel + * @subpackage form + * @access public + */ + class XoopsLists + { + function getTimeZoneList() + { + xoops_loadLanguage('timezone'); + + $time_zone_list = array( + '-12' => _TZ_GMTM12 , + '-11' => _TZ_GMTM11 , + '-10' => _TZ_GMTM10 , + '-9' => _TZ_GMTM9 , + '-8' => _TZ_GMTM8 , + '-7' => _TZ_GMTM7 , + '-6' => _TZ_GMTM6 , + '-5' => _TZ_GMTM5 , + '-4' => _TZ_GMTM4 , + '-3.5' => _TZ_GMTM35 , + '-3' => _TZ_GMTM3 , + '-2' => _TZ_GMTM2 , + '-1' => _TZ_GMTM1 , + '0' => _TZ_GMT0 , + '1' => _TZ_GMTP1 , + '2' => _TZ_GMTP2 , + '3' => _TZ_GMTP3 , + '3.5' => _TZ_GMTP35 , + '4' => _TZ_GMTP4 , + '4.5' => _TZ_GMTP45 , + '5' => _TZ_GMTP5 , + '5.5' => _TZ_GMTP55 , + '6' => _TZ_GMTP6 , + '7' => _TZ_GMTP7 , + '8' => _TZ_GMTP8 , + '9' => _TZ_GMTP9 , + '9.5' => _TZ_GMTP95 , + '10' => _TZ_GMTP10 , + '11' => _TZ_GMTP11 , + '12' => _TZ_GMTP12); + + return $time_zone_list; + } + + /** + * gets list of themes folder from themes directory + */ + function getThemesList() + { + return XoopsLists::getDirListAsArray(XOOPS_THEME_PATH . '/'); + } + + /** + * gets a list of module folders from the modules directory + */ + function getModulesList() + { + return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/modules/'); + } + + /** + * gets list of editors folder from xoopseditor directory + */ + function getEditorList() + { + return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/class/xoopseditor/'); + } + + /** + * gets list of fonts folder from Frameworks/tcpdf/fonts directory + * @author TXMod Xoops <in...@tx...> + */ + function getFontList() + { + return XoopsLists::getFontListAsArray(XOOPS_ROOT_PATH . '/Frameworks/tcpdf/fonts/'); + } + + /** + * gets list of name of directories inside a directory + */ + function getDirListAsArray($dirname) + { + $ignored = array( + 'cvs' , + '_darcs'); + $list = array(); + if (substr($dirname, - 1) != '/') { + $dirname .= '/'; + } + if ($handle = opendir($dirname)) { + while ($file = readdir($handle)) { + if (substr($file, 0, 1) == '.' || in_array(strtolower($file), $ignored)) + continue; + if (is_dir($dirname . $file)) { + $list[$file] = $file; + } + } + closedir($handle); + asort($list); + reset($list); + } + return $list; + } + + /** + * gets list of all files in a directory + */ + function getFileListAsArray($dirname, $prefix = '') + { + $filelist = array(); + if (substr($dirname, - 1) == '/') { + $dirname = substr($dirname, 0, - 1); + } + if (is_dir($dirname) && $handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (! preg_match('/^[\.]{1,2}$/', $file) && is_file($dirname . '/' . $file)) { + $file = $prefix . $file; + $filelist[$file] = $file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /** + * gets list of image file names in a directory + */ + function getImgListAsArray($dirname, $prefix = '') + { + $filelist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (preg_match('/(\.gif|\.jpg|\.png)$/i', $file)) { + $file = $prefix . $file; + $filelist[$file] = $file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /** + * gets list of font file names in a directory + * @author TXMod Xoops <in...@tx...> + */ + function getFontListAsArray($dirname, $prefix = '') + { + $fontlist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($font = readdir($handle))) { + if (preg_match('/(\.php)$/i', $font)) { + $font = $prefix . $font; + $fontlist[$font] = substr($font, 0, strpos($font, '.')); + } + } + closedir($handle); + asort($fontlist); + reset($fontlist); + } + return $fontlist; + } + + /** + * gets list of html file names in a certain directory + */ + function getHtmlListAsArray($dirname, $prefix = '') + { + $filelist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if ((preg_match('/(\.htm|\.html|\.xhtml)$/i', $file) && ! is_dir($file))) { + $file = $prefix . $file; + $filelist[$file] = $prefix . $file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /** + * gets list of avatar file names in a certain directory + * if directory is not specified, default directory will be searched + */ + function getAvatarsList($avatar_dir = '') + { + $avatars = array(); + if ($avatar_dir != '') { + $avatars = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/' . $avatar_dir . '/', $avatar_dir . '/'); + } else { + $avatars = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/'); + } + return $avatars; + } + + /** + * gets list of all avatar image files inside default avatars directory + */ + function getAllAvatarsList() + { + $avatars = array(); + $dirlist = array(); + $dirlist = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/images/avatar/'); + if (count($dirlist) > 0) { + foreach($dirlist as $dir) { + $avatars[$dir] = &XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/' . $dir . '/', $dir . '/'); + } + } else { + return false; + } + return $avatars; + } + + /** + * gets list of subject icon image file names in a certain directory + * if directory is not specified, default directory will be searched + */ + function getSubjectsList($sub_dir = '') + { + $subjects = array(); + if ($sub_dir != '') { + $subjects = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/subject/' . $sub_dir, $sub_dir . '/'); + } else { + $subjects = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/subject/'); + } + return $subjects; + } + + /** + * gets list of language folders inside default language directory + */ + function getLangList() + { + $lang_list = array(); + $lang_list = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/language/'); + return $lang_list; + } + + /** + * XoopsLists::getCountryList() + * + * @return + */ + function getCountryList() + { + xoops_loadLanguage('countries'); + $country_list = array ( + "" => "-", + "AD" => _COUNTRY_AD, + "AE" => _COUNTRY_AE, + "AF" => _COUNTRY_AF, + "AG" => _COUNTRY_AG, + "AI" => _COUNTRY_AI, + "AL" => _COUNTRY_AL, + "AM" => _COUNTRY_AM, + "AN" => _COUNTRY_AN, + "AO" => _COUNTRY_AO, + "AQ" => _COUNTRY_AQ, + "AR" => _COUNTRY_AR, + "AS" => _COUNTRY_AS, + "AT" => _COUNTRY_AT, + "AU" => _COUNTRY_AU, + "AW" => _COUNTRY_AW, + "AX" => _COUNTRY_AX, + "AZ" => _COUNTRY_AZ, + "BA" => _COUNTRY_BA, + "BB" => _COUNTRY_BB, + "BD" => _COUNTRY_BD, + "BE" => _COUNTRY_BE, + "BF" => _COUNTRY_BF, + "BG" => _COUNTRY_BG, + "BH" => _COUNTRY_BH, + "BI" => _COUNTRY_BI, + "BJ" => _COUNTRY_BJ, + "BL" => _COUNTRY_BL, + "BM" => _COUNTRY_BM, + "BN" => _COUNTRY_BN, + "BO" => _COUNTRY_BO, + "BR" => _COUNTRY_BR, + "BS" => _COUNTRY_BS, + "BT" => _COUNTRY_BT, + "BV" => _COUNTRY_BV, + "BW" => _COUNTRY_BW, + "BY" => _COUNTRY_BY, + "BZ" => _COUNTRY_BZ, + "CA" => _COUNTRY_CA, + "CC" => _COUNTRY_CC, + "CD" => _COUNTRY_CD, + "CF" => _COUNTRY_CF, + "CG" => _COUNTRY_CG, + "CH" => _COUNTRY_CH, + "CI" => _COUNTRY_CI, + "CK" => _COUNTRY_CK, + "CL" => _COUNTRY_CL, + "CM" => _COUNTRY_CM, + "CN" => _COUNTRY_CN, + "CO" => _COUNTRY_CO, + "CR" => _COUNTRY_CR, + "CS" => _COUNTRY_CS, // Not listed in ISO 3166 + "CU" => _COUNTRY_CU, + "CV" => _COUNTRY_CV, + "CX" => _COUNTRY_CX, + "CY" => _COUNTRY_CY, + "CZ" => _COUNTRY_CZ, + "DE" => _COUNTRY_DE, + "DJ" => _COUNTRY_DJ, + "DK" => _COUNTRY_DK, + "DM" => _COUNTRY_DM, + "DO" => _COUNTRY_DO, + "DZ" => _COUNTRY_DZ, + "EC" => _COUNTRY_EC, + "EE" => _COUNTRY_EE, + "EG" => _COUNTRY_EG, + "EH" => _COUNTRY_EH, + "ER" => _COUNTRY_ER, + "ES" => _COUNTRY_ES, + "ET" => _COUNTRY_ET, + "FI" => _COUNTRY_FI, + "FJ" => _COUNTRY_FJ, + "FK" => _COUNTRY_FK, + "FM" => _COUNTRY_FM, + "FO" => _COUNTRY_FO, + "FR" => _COUNTRY_FR, + "FX" => _COUNTRY_FX, // Not listed in ISO 3166 + "GA" => _COUNTRY_GA, + "GB" => _COUNTRY_GB, + "GD" => _COUNTRY_GD, + "GE" => _COUNTRY_GE, + "GF" => _COUNTRY_GF, + "GG" => _COUNTRY_GG, + "GH" => _COUNTRY_GH, + "GI" => _COUNTRY_GI, + "GL" => _COUNTRY_GL, + "GM" => _COUNTRY_GM, + "GN" => _COUNTRY_GN, + "GP" => _COUNTRY_GP, + "GQ" => _COUNTRY_GQ, + "GR" => _COUNTRY_GR, + "GS" => _COUNTRY_GS, + "GT" => _COUNTRY_GT, + "GU" => _COUNTRY_GU, + "GW" => _COUNTRY_GW, + "GY" => _COUNTRY_GY, + "HK" => _COUNTRY_HK, + "HM" => _COUNTRY_HM, + "HN" => _COUNTRY_HN, + "HR" => _COUNTRY_HR, + "HT" => _COUNTRY_HT, + "HU" => _COUNTRY_HU, + "ID" => _COUNTRY_ID, + "IE" => _COUNTRY_IE, + "IL" => _COUNTRY_IL, + "IM" => _COUNTRY_IM, + "IN" => _COUNTRY_IN, + "IO" => _COUNTRY_IO, + "IQ" => _COUNTRY_IQ, + "IR" => _COUNTRY_IR, + "IS" => _COUNTRY_IS, + "IT" => _COUNTRY_IT, + "JM" => _COUNTRY_JM, + "JO" => _COUNTRY_JO, + "JP" => _COUNTRY_JP, + "KE" => _COUNTRY_KE, + "KG" => _COUNTRY_KG, + "KH" => _COUNTRY_KH, + "KI" => _COUNTRY_KI, + "KM" => _COUNTRY_KM, + "KN" => _COUNTRY_KN, + "KP" => _COUNTRY_KP, + "KR" => _COUNTRY_KR, + "KW" => _COUNTRY_KW, + "KY" => _COUNTRY_KY, + "KZ" => _COUNTRY_KZ, + "LA" => _COUNTRY_LA, + "LB" => _COUNTRY_LB, + "LC" => _COUNTRY_LC, + "LI" => _COUNTRY_LI, + "LK" => _COUNTRY_LK, + "LR" => _COUNTRY_LR, + "LS" => _COUNTRY_LS, + "LT" => _COUNTRY_LT, + "LU" => _COUNTRY_LU, + "LV" => _COUNTRY_LV, + "LY" => _COUNTRY_LY, + "MA" => _COUNTRY_MA, + "MC" => _COUNTRY_MC, + "MD" => _COUNTRY_MD, + "ME" => _COUNTRY_ME, + "MF" => _COUNTRY_MF, + "MG" => _COUNTRY_MG, + "MH" => _COUNTRY_MH, + "MK" => _COUNTRY_MK, + "ML" => _COUNTRY_ML, + "MM" => _COUNTRY_MM, + "MN" => _COUNTRY_MN, + "MO" => _COUNTRY_MO, + "MP" => _COUNTRY_MP, + "MQ" => _COUNTRY_MQ, + "MR" => _COUNTRY_MR, + "MS" => _COUNTRY_MS, + "MT" => _COUNTRY_MT, + "MU" => _COUNTRY_MU, + "MV" => _COUNTRY_MV, + "MW" => _COUNTRY_MW, + "MX" => _COUNTRY_MX, + "MY" => _COUNTRY_MY, + "MZ" => _COUNTRY_MZ, + "NA" => _COUNTRY_NA, + "NC" => _COUNTRY_NC, + "NE" => _COUNTRY_NE, + "NF" => _COUNTRY_NF, + "NG" => _COUNTRY_NG, + "NI" => _COUNTRY_NI, + "NL" => _COUNTRY_NL, + "NO" => _COUNTRY_NO, + "NP" => _COUNTRY_NP, + "NR" => _COUNTRY_NR, + "NT" => _COUNTRY_NT, // Not listed in ISO 3166 + "NU" => _COUNTRY_NU, + "NZ" => _COUNTRY_NZ, + "OM" => _COUNTRY_OM, + "PA" => _COUNTRY_PA, + "PE" => _COUNTRY_PE, + "PF" => _COUNTRY_PF, + "PG" => _COUNTRY_PG, + "PH" => _COUNTRY_PH, + "PK" => _COUNTRY_PK, + "PL" => _COUNTRY_PL, + "PM" => _COUNTRY_PM, + "PN" => _COUNTRY_PN, + "PR" => _COUNTRY_PR, + "PS" => _COUNTRY_PS, + "PT" => _COUNTRY_PT, + "PW" => _COUNTRY_PW, + "PY" => _COUNTRY_PY, + "QA" => _COUNTRY_QA, + "RE" => _COUNTRY_RE, + "RO" => _COUNTRY_RO, + "RS" => _COUNTRY_RS, + "RU" => _COUNTRY_RU, + "RW" => _COUNTRY_RW, + "SA" => _COUNTRY_SA, + "SB" => _COUNTRY_SB, + "SC" => _COUNTRY_SC, + "SD" => _COUNTRY_SD, + "SE" => _COUNTRY_SE, + "SG" => _COUNTRY_SG, + "SH" => _COUNTRY_SH, + "SI" => _COUNTRY_SI, + "SJ" => _COUNTRY_SJ, + "SK" => _COUNTRY_SK, + "SL" => _COUNTRY_SL, + "SM" => _COUNTRY_SM, + "SN" => _COUNTRY_SN, + "SO" => _COUNTRY_SO, + "SR" => _COUNTRY_SR, + "ST" => _COUNTRY_ST, + "SU" => _COUNTRY_SU, // Not listed in ISO 3166 + "SV" => _COUNTRY_SV, + "SY" => _COUNTRY_SY, + "SZ" => _COUNTRY_SZ, + "TC" => _COUNTRY_TC, + "TD" => _COUNTRY_TD, + "TF" => _COUNTRY_TF, + "TG" => _COUNTRY_TG, + "TH" => _COUNTRY_TH, + "TJ" => _COUNTRY_TJ, + "TK" => _COUNTRY_TK, + "TL" => _COUNTRY_TL, + "TM" => _COUNTRY_TM, + "TN" => _COUNTRY_TN, + "TO" => _COUNTRY_TO, + "TP" => _COUNTRY_TP, // Not listed in ISO 3166 + "TR" => _COUNTRY_TR, + "TT" => _COUNTRY_TT, + "TV" => _COUNTRY_TV, + "TW" => _COUNTRY_TW, + "TZ" => _COUNTRY_TZ, + "UA" => _COUNTRY_UA, + "UG" => _COUNTRY_UG, + "UK" => _COUNTRY_UK, // Not listed in ISO 3166 + "UM" => _COUNTRY_UM, + "US" => _COUNTRY_US, + "UY" => _COUNTRY_UY, + "UZ" => _COUNTRY_UZ, + "VA" => _COUNTRY_VA, + "VC" => _COUNTRY_VC, + "VE" => _COUNTRY_VE, + "VG" => _COUNTRY_VG, + "VI" => _COUNTRY_VI, + "VN" => _COUNTRY_VN, + "VU" => _COUNTRY_VU, + "WF" => _COUNTRY_WF, + "WS" => _COUNTRY_WS, + "YE" => _COUNTRY_YE, + "YT" => _COUNTRY_YT, + "YU" => _COUNTRY_YU, // Not listed in ISO 3166 + "ZA" => _COUNTRY_ZA, + "ZM" => _COUNTRY_ZM, + "ZR" => _COUNTRY_ZR, // Not listed in ISO 3166 + "ZW" => _COUNTRY_ZW + ); + asort($country_list); + reset($country_list); + return $country_list; + } + + /** + * XoopsLists::getHtmlList() + * + * This Function is no longer being used by the core + * + * @return + */ + function getHtmlList() + { + $html_list = array( + 'a' => '<a>', + 'abbr' => '<abbr>', + 'acronym' => '<acronym>', + 'address' => '<address>', + 'b' => '<b>', + 'bdo' => '<bdo>', + 'big' => '<big>', + 'blockquote' => '<blockquote>', + 'br' => '<br>', + 'caption' => '<caption>', + 'cite' => '<cite>', + 'code' => '<code>', + 'col' => '<col>', + 'colgroup' => '<colgroup>', + 'dd' => '<dd>', + 'del' => '<del>', + 'dfn' => '<dfn>', + 'div' => '<div>', + 'dl' => '<dl>', + 'dt' => '<dt>', + 'em' => '<em>', + 'font' => '<font>', + 'h1' => '<h1>', + 'h2' => '<h2>', + 'h3' => '<h3>', + 'h4' => '<h4>', + 'h5' => '<h5>', + 'h6' => '<h6>', + 'hr' => '<hr>', + 'i' => '<i>', + 'img' => '<img>', + 'ins' => '<ins>', + 'kbd' => '<kbd>', + 'li' => '<li>', + 'map' => '<map>', + 'object' => '<object>', + 'ol' => '<ol>', + 'p' => '<p>', + 'pre' => '<pre>', + 's' => '<s>', + 'samp' => '<samp>', + 'small' => '<small>', + 'span' => '<span>', + 'strike' => '<strike>', + 'strong' => '<strong>', + 'sub' => '<sub>', + 'sup' => '<sup>', + 'table' => '<table>', + 'tbody' => '<tbody>', + 'td' => '<td>', + 'tfoot' => '<tfoot>', + 'th' => '<th>', + 'thead' => '<thead>', + 'tr' => '<tr>', + 'tt' => '<tt>', + 'u' => '<u>', + 'ul' => '<ul>', + 'var' => '<var>'); + asort($html_list); + reset($html_list); + return $html_list; + } + + /** + * XoopsLists::getUserRankList() + * + * @return + */ + function getUserRankList() + { + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $myts =& MyTextSanitizer::getInstance(); + $sql = sprintf('SELECT rank_id, rank_title FROM ' . $db->prefix('ranks') . ' WHERE rank_special = %u', 1); + $ret = array(); + $result = $db->query($sql); + while ($myrow = $db->fetchArray($result)) { + $ret[$myrow['rank_id']] = $myts->htmlspecialchars($myrow['rank_title']); + } + return $ret; + } + + /** + * XoopsLists::getCurrencyList() + * + * @return + */ + function getCurrencyList() + { + $currency_list = array('AUD' => 'AUD', 'BRL' => 'BRL', 'CAD' => 'CAD', 'CHF' => 'CHF', + 'CZK' => 'CZK', 'DKK' => 'DKK', 'EUR' => 'EUR', 'GBP' => 'GBP', + 'HKD' => 'HKD', 'HUF' => 'HUF', 'ILS' => 'ILS', 'JPY' => 'JPY', + 'MXN' => 'MXN', 'NOK' => 'NOK', 'NZD' => 'NZD', 'PHP' => 'PHP', + 'PLN' => 'PLN', 'SEK' => 'SEK', 'SGD' => 'SGD', 'THB' => 'THB', + 'TWD' => 'TWD', 'USD' => 'USD'); + asort($currency_list); + reset($currency_list); + return $currency_list; + } + + /** + * XoopsLists::getMimetypesList() + * + * @return + */ + function getMimetypesList() + { + $mimetypes_list = array( + '3dm' => 'x-world/x-3dmf', + '3dmf' => 'x-world/x-3dmf', + 'a' => 'application/octet-stream', + 'aab' => 'application/x-authorware-bin', + 'aam' => 'application/x-authorware-map', + 'aas' => 'application/x-authorware-seg', + 'abc' => 'text/vnd.abc', + 'acgi' => 'text/html', + 'afl' => 'video/animaflex', + 'ai' => 'application/postscript', + 'aif' => 'audio/aiff', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/aiff', + 'aiff' => 'audio/x-aiff', + 'aim' => 'application/x-aim', + 'aip' => 'text/x-audiosoft-intra', + 'ani' => 'application/x-navi-animation', + 'aos' => 'application/x-nokia-9000-communicator-add-on-software', + 'aps' => 'application/mime', + 'arc' => 'application/octet-stream', + 'arj' => 'application/arj', + 'arj' => 'application/octet-stream', + 'art' => 'image/x-jg', + 'asf' => 'video/x-ms-asf', + 'asm' => 'text/x-asm', + 'asp' => 'text/asp', + 'asx' => 'application/x-mplayer2', + 'asx' => 'video/x-ms-asf', + 'asx' => 'video/x-ms-asf-plugin', + 'au' => 'audio/basic', + 'au' => 'audio/x-au', + 'avi' => 'application/x-troff-msvideo', + 'avi' => 'video/avi', + 'avi' => 'video/msvideo', + 'avi' => 'video/x-msvideo', + 'avs' => 'video/avs-video', + 'bcpio' => 'application/x-bcpio', + 'bin' => 'application/mac-binary', + 'bin' => 'application/macbinary', + 'bin' => 'application/octet-stream', + 'bin' => 'application/x-binary', + 'bin' => 'application/x-macbinary', + 'bm' => 'image/bmp', + 'bmp' => 'image/bmp', + 'bmp' => 'image/x-windows-bmp', + 'boo' => 'application/book', + 'book' => 'application/book', + 'boz' => 'application/x-bzip2', + 'bsh' => 'application/x-bsh', + 'bz' => 'application/x-bzip', + 'bz2' => 'application/x-bzip2', + 'c' => 'text/plain', + 'c' => 'text/x-c', + 'c++' => 'text/plain', + 'cat' => 'application/vnd.ms-pki.seccat', + 'cc' => 'text/plain', + 'cc' => 'text/x-c', + 'ccad' => 'application/clariscad', + 'cco' => 'application/x-cocoa', + 'cdf' => 'application/cdf', + 'cdf' => 'application/x-cdf', + 'cdf' => 'application/x-netcdf', + 'cer' => 'application/pkix-cert', + 'cer' => 'application/x-x509-ca-cert', + 'cha' => 'application/x-chat', + 'chat' => 'application/x-chat', + 'class' => 'application/java', + 'class' => 'application/java-byte-code', + 'class' => 'application/x-java-class', + 'com' => 'application/octet-stream', + 'com' => 'text/plain', + 'conf' => 'text/plain', + 'cpio' => 'application/x-cpio', + 'cpp' => 'text/x-c', + 'cpt' => 'application/mac-compactpro', + 'cpt' => 'application/x-compactpro', + 'cpt' => 'application/x-cpt', + 'crl' => 'application/pkcs-crl', + 'crl' => 'application/pkix-crl', + 'crt' => 'application/pkix-cert', + 'crt' => 'application/x-x509-ca-cert', + 'crt' => 'application/x-x509-user-cert', + 'csh' => 'application/x-csh', + 'csh' => 'text/x-script.csh', + 'css' => 'application/x-pointplus', + 'css' => 'text/css', + 'cxx' => 'text/plain', + 'dcr' => 'application/x-director', + 'deepv' => 'application/x-deepv', + 'def' => 'text/plain', + 'der' => 'application/x-x509-ca-cert', + 'dif' => 'video/x-dv', + 'dir' => 'application/x-director', + 'dl' => 'video/dl', + 'dl' => 'video/x-dl', + 'doc' => 'application/msword', + 'dot' => 'application/msword', + 'dp' => 'application/commonground', + 'drw' => 'application/drafting', + 'dump' => 'application/octet-stream', + 'dv' => 'video/x-dv', + 'dvi' => 'application/x-dvi', + 'dwf' => 'model/vnd.dwf', + 'dwg' => 'application/acad', + 'dwg' => 'image/vnd.dwg', + 'dwg' => 'image/x-dwg', + 'dxf' => 'application/dxf', + 'dxf' => 'image/vnd.dwg', + 'dxf' => 'image/x-dwg', + 'dxr' => 'application/x-director', + 'el' => 'text/x-script.elisp', + 'elc' => 'application/x-bytecode.elisp', + 'elc' => 'application/x-elc', + 'env' => 'application/x-envoy', + 'eps' => 'application/postscript', + 'es' => 'application/x-esrehber', + 'etx' => 'text/x-setext', + 'evy' => 'application/envoy', + 'evy' => 'application/x-envoy', + 'exe' => 'application/octet-stream', + 'f' => 'text/plain', + 'f' => 'text/x-fortran', + 'f77' => 'text/x-fortran', + 'f90' => 'text/plain', + 'f90' => 'text/x-fortran', + 'fdf' => 'application/vnd.fdf', + 'fif' => 'application/fractals', + 'fif' => 'image/fif', + 'fli' => 'video/fli', + 'fli' => 'video/x-fli', + 'flo' => 'image/florian', + 'flx' => 'text/vnd.fmi.flexstor', + 'fmf' => 'video/x-atomic3d-feature', + 'for' => 'text/plain', + 'for' => 'text/x-fortran', + 'fpx' => 'image/vnd.fpx', + 'fpx' => 'image/vnd.net-fpx', + 'frl' => 'application/freeloader', + 'funk' => 'audio/make', + 'g' => 'text/plain', + 'g3' => 'image/g3fax', + 'gif' => 'image/gif', + 'gl' => 'video/gl', + 'gl' => 'video/x-gl', + 'gsd' => 'audio/x-gsm', + 'gsm' => 'audio/x-gsm', + 'gsp' => 'application/x-gsp', + 'gss' => 'application/x-gss', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-compressed', + 'gz' => 'application/x-gzip', + 'gzip' => 'application/x-gzip', + 'gzip' => 'multipart/x-gzip', + 'h' => 'text/plain', + 'h' => 'text/x-h', + 'hdf' => 'application/x-hdf', + 'help' => 'application/x-helpfile', + 'hgl' => 'application/vnd.hp-hpgl', + 'hh' => 'text/plain', + 'hh' => 'text/x-h', + 'hlb' => 'text/x-script', + 'hlp' => 'application/hlp', + 'hlp' => 'application/x-helpfile', + 'hlp' => 'application/x-winhelp', + 'hpg' => 'application/vnd.hp-hpgl', + 'hpgl' => 'application/vnd.hp-hpgl', + 'hqx' => 'application/binhex', + 'hqx' => 'application/binhex4', + 'hqx' => 'application/mac-binhex', + 'hqx' => 'application/mac-binhex40', + 'hqx' => 'application/x-binhex40', + 'hqx' => 'application/x-mac-binhex40', + 'hta' => 'application/hta', + 'htc' => 'text/x-component', + 'htm' => 'text/html', + 'html' => 'text/html', + 'htmls' => 'text/html', + 'htt' => 'text/webviewhtml', + 'htx' => 'text/html', + 'ice' => 'x-conference/x-cooltalk', + 'ico' => 'image/x-icon', + 'idc' => 'text/plain', + 'ief' => 'image/ief', + 'iefs' => 'image/ief', + 'iges' => 'application/iges', + 'iges' => 'model/iges', + 'igs' => 'application/iges', + 'igs' => 'model/iges', + 'ima' => 'application/x-ima', + 'imap' => 'application/x-httpd-imap', + 'inf' => 'application/inf', + 'ins' => 'application/x-internett-signup', + 'ip' => 'application/x-ip2', + 'isu' => 'video/x-isvideo', + 'it' => 'audio/it', + 'iv' => 'application/x-inventor', + 'ivr' => 'i-world/i-vrml', + 'ivy' => 'application/x-livescreen', + 'jam' => 'audio/x-jam', + 'jav' => 'text/plain', + 'jav' => 'text/x-java-source', + 'java' => 'text/plain', + 'java' => 'text/x-java-source', + 'jcm' => 'application/x-java-commerce', + 'jfif' => 'image/jpeg', + 'jfif' => 'image/pjpeg', + 'jfif-tbnl' => 'image/jpeg', + 'jpe' => 'image/jpeg', + 'jpe' => 'image/pjpeg', + 'jpeg' => 'image/jpeg', + 'jpeg' => 'image/pjpeg', + 'jpg' => 'image/jpeg', + 'jpg' => 'image/pjpeg', + 'jps' => 'image/x-jps', + 'js' => 'application/x-javascript', + 'jut' => 'image/jutvision', + 'kar' => 'audio/midi', + 'kar' => 'music/x-karaoke', + 'ksh' => 'application/x-ksh', + 'ksh' => 'text/x-script.ksh', + 'la' => 'audio/nspaudio', + 'la' => 'audio/x-nspaudio', + 'lam' => 'audio/x-liveaudio', + 'latex' => 'application/x-latex', + 'lha' => 'application/lha', + 'lha' => 'application/octet-stream', + 'lha' => 'application/x-lha', + 'lhx' => 'application/octet-stream', + 'list' => 'text/plain', + 'lma' => 'audio/nspaudio', + 'lma' => 'audio/x-nspaudio', + 'log' => 'text/plain', + 'lsp' => 'application/x-lisp', + 'lsp' => 'text/x-script.lisp', + 'lst' => 'text/plain', + 'lsx' => 'text/x-la-asf', + 'ltx' => 'application/x-latex', + 'lzh' => 'application/octet-stream', + 'lzh' => 'application/x-lzh', + 'lzx' => 'application/lzx', + 'lzx' => 'application/octet-stream', + 'lzx' => 'application/x-lzx', + 'm' => 'text/plain', + 'm' => 'text/x-m', + 'm1v' => 'video/mpeg', + 'm2a' => 'audio/mpeg', + 'm2v' => 'video/mpeg', + 'm3u' => 'audio/x-mpequrl', + 'man' => 'application/x-troff-man', + 'map' => 'application/x-navimap', + 'mar' => 'text/plain', + 'mbd' => 'application/mbedlet', + 'mc$' => 'application/x-magic-cap-package-1.0', + 'mcd' => 'application/mcad', + 'mcd' => 'application/x-mathcad', + 'mcf' => 'image/vasa', + 'mcf' => 'text/mcf', + 'mcp' => 'application/netmc', + 'me' => 'application/x-troff-me', + 'mht' => 'message/rfc822', + 'mhtml' => 'message/rfc822', + 'mid' => 'application/x-midi', + 'mid' => 'audio/midi', + 'mid' => 'audio/x-mid', + 'mid' => 'audio/x-midi', + 'mid' => 'music/crescendo', + 'mid' => 'x-music/x-midi', + 'midi' => 'application/x-midi', + 'midi' => 'audio/midi', + 'midi' => 'audio/x-mid', + 'midi' => 'audio/x-midi', + 'midi' => 'music/crescendo', + 'midi' => 'x-music/x-midi', + 'mif' => 'application/x-frame', + 'mif' => 'application/x-mif', + 'mime' => 'message/rfc822', + 'mime' => 'www/mime', + 'mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile', + 'mjpg' => 'video/x-motion-jpeg', + 'mm' => 'application/base64', + 'mm' => 'application/x-meme', + 'mme' => 'application/base64', + 'mod' => 'audio/mod', + 'mod' => 'audio/x-mod', + 'moov' => 'video/quicktime', + 'mov' => 'video/quicktime', + 'movie' => 'video/x-sgi-movie', + 'mp2' => 'audio/mpeg', + 'mp2' => 'audio/x-mpeg', + 'mp2' => 'video/mpeg', + 'mp2' => 'video/x-mpeg', + 'mp2' => 'video/x-mpeq2a', + 'mp3' => 'audio/mpeg3', + 'mp3' => 'audio/x-mpeg-3', + 'mp3' => 'video/mpeg', + 'mp3' => 'video/x-mpeg', + 'mpa' => 'audio/mpeg', + 'mpa' => 'video/mpeg', + 'mpc' => 'application/x-project', + 'mpe' => 'video/mpeg', + 'mpeg' => 'video/mpeg', + 'mpg' => 'audio/mpeg', + 'mpg' => 'video/mpeg', + 'mpga' => 'audio/mpeg', + 'mpp' => 'application/vnd.ms-project', + 'mpt' => 'application/x-project', + 'mpv' => 'application/x-project', + 'mpx' => 'application/x-project', + 'mrc' => 'application/marc', + 'ms' => 'application/x-troff-ms', + 'mv' => 'video/x-sgi-movie', + 'my' => 'audio/make', + 'mzz' => 'application/x-vnd.audioexplosion.mzz', + 'nap' => 'image/naplps', + 'naplps' => 'image/naplps', + 'nc' => 'application/x-netcdf', + 'ncm' => 'application/vnd.nokia.configuration-message', + 'nif' => 'image/x-niff', + 'niff' => 'image/x-niff', + 'nix' => 'application/x-mix-transfer', + 'nsc' => 'application/x-conference', + 'nvd' => 'application/x-navidoc', + 'o' => 'application/octet-stream', + 'oda' => 'application/oda', + 'omc' => 'application/x-omc', + 'omcd' => 'application/x-omcdatamaker', + 'omcr' => 'application/x-omcregerator', + 'p' => 'text/x-pascal', + 'p10' => 'application/pkcs10', + 'p10' => 'application/x-pkcs10', + 'p12' => 'application/pkcs-12', + 'p12' => 'application/x-pkcs12', + 'p7a' => 'application/x-pkcs7-signature', + 'p7c' => 'application/pkcs7-mime', + 'p7c' => 'application/x-pkcs7-mime', + 'p7m' => 'application/pkcs7-mime', + 'p7m' => 'application/x-pkcs7-mime', + 'p7r' => 'application/x-pkcs7-certreqresp', + 'p7s' => 'application/pkcs7-signature', + 'part' => 'application/pro_eng', + 'pas' => 'text/pascal', + 'pbm' => 'image/x-portable-bitmap', + 'pcl' => 'application/vnd.hp-pcl', + 'pcl' => 'application/x-pcl', + 'pct' => 'image/x-pict', + 'pcx' => 'image/x-pcx', + 'pdb' => 'chemical/x-pdb', + 'pdf' => 'application/pdf', + 'pfunk' => 'audio/make', + 'pfunk' => 'audio/make.my.funk', + 'pgm' => 'image/x-portable-graymap', + 'pgm' => 'image/x-portable-greymap', + 'pic' => 'image/pict', + 'pict' => 'image/pict', + 'pkg' => 'application/x-newton-compatible-pkg', + 'pko' => 'application/vnd.ms-pki.pko', + 'pl' => 'text/plain', + 'pl' => 'text/x-script.perl', + 'plx' => 'application/x-pixclscript', + 'pm' => 'image/x-xpixmap', + 'pm' => 'text/x-script.perl-module', + 'pm4' => 'application/x-pagemaker', + 'pm5' => 'application/x-pagemaker', + 'png' => 'image/png', + 'pnm' => 'application/x-portable-anymap', + 'pnm' => 'image/x-portable-anymap', + 'pot' => 'application/mspowerpoint', + 'pot' => 'application/vnd.ms-powerpoint', + 'pov' => 'model/x-pov', + 'ppa' => 'application/vnd.ms-powerpoint', + 'ppm' => 'image/x-portable-pixmap', + 'pps' => 'application/mspowerpoint', + 'pps' => 'application/vnd.ms-powerpoint', + 'ppt' => 'application/mspowerpoint', + 'ppt' => 'application/powerpoint', + 'ppt' => 'application/vnd.ms-powerpoint', + 'ppt' => 'application/x-mspowerpoint', + 'ppz' => 'application/mspowerpoint', + 'pre' => 'application/x-freelance', + 'prt' => 'application/pro_eng', + 'ps' => 'application/postscript', + 'psd' => 'application/octet-stream', + 'pvu' => 'paleovu/x-pv', + 'pwz' => 'application/vnd.ms-powerpoint', + 'py' => 'text/x-script.phyton', + 'pyc' => 'applicaiton/x-bytecode.python', + 'qcp' => 'audio/vnd.qcelp', + 'qd3' => 'x-world/x-3dmf', + 'qd3d' => 'x-world/x-3dmf', + 'qif' => 'image/x-quicktime', + 'qt' => 'video/quicktime', + 'qtc' => 'video/x-qtc', + 'qti' => 'image/x-quicktime', + 'qtif' => 'image/x-quicktime', + 'ra' => 'audio/x-pn-realaudio', + 'ra' => 'audio/x-pn-realaudio-plugin', + 'ra' => 'audio/x-realaudio', + 'ram' => 'audio/x-pn-realaudio', + 'ras' => 'application/x-cmu-raster', + 'ras' => 'image/cmu-raster', + 'ras' => 'image/x-cmu-raster', + 'rast' => 'image/cmu-raster', + 'rexx' => 'text/x-script.rexx', + 'rf' => 'image/vnd.rn-realflash', + 'rgb' => 'image/x-rgb', + 'rm' => 'application/vnd.rn-realmedia', + 'rm' => 'audio/x-pn-realaudio', + 'rmi' => 'audio/mid', + 'rmm' => 'audio/x-pn-realaudio', + 'rmp' => 'audio/x-pn-realaudio', + 'rmp' => 'audio/x-pn-realaudio-plugin', + 'rng' => 'application/ringing-tones', + 'rng' => 'application/vnd.nokia.ringing-tone', + 'rnx' => 'application/vnd.rn-realplayer', + 'roff' => 'application/x-troff', + 'rp' => 'image/vnd.rn-realpix', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'rt' => 'text/richtext', + 'rt' => 'text/vnd.rn-realtext', + 'rtf' => 'application/rtf', + 'rtf' => 'application/x-rtf', + 'rtf' => 'text/richtext', + 'rtx' => 'application/rtf', + 'rtx' => 'text/richtext', + 'rv' => 'video/vnd.rn-realvideo', + 's' => 'text/x-asm', + 's3m' => 'audio/s3m', + 'saveme' => 'application/octet-stream', + 'sbk' => 'application/x-tbook', + 'scm' => 'application/x-lotusscreencam', + 'scm' => 'text/x-script.guile', + 'scm' => 'text/x-script.scheme', + 'scm' => 'video/x-scm', + 'sdml' => 'text/plain', + 'sdp' => 'application/sdp', + 'sdp' => 'application/x-sdp', + 'sdr' => 'application/sounder', + 'sea' => 'application/sea', + 'sea' => 'application/x-sea', + 'set' => 'application/set', + 'sgm' => 'text/sgml', + 'sgm' => 'text/x-sgml', + 'sgml' => 'text/sgml', + 'sgml' => 'text/x-sgml', + 'sh' => 'application/x-bsh', + 'sh' => 'application/x-sh', + 'sh' => 'application/x-shar', + 'sh' => 'text/x-script.sh', + 'shar' => 'application/x-bsh', + 'shar' => 'application/x-shar', + 'shtml' => 'text/html', + 'shtml' => 'text/x-server-parsed-html', + 'sid' => 'audio/x-psid', + 'sit' => 'application/x-sit', + 'sit' => 'application/x-stuffit', + 'skd' => 'application/x-koan', + 'skm' => 'application/x-koan', + 'skp' => 'application/x-koan', + 'skt' => 'application/x-koan', + 'sl' => 'application/x-seelogo', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'snd' => 'audio/basic', + 'snd' => 'audio/x-adpcm', + 'sol' => 'application/solids', + 'spc' => 'application/x-pkcs7-certificates', + 'spc' => 'text/x-speech', + 'spl' => 'application/futuresplash', + 'spr' => 'application/x-sprite', + 'sprite' => 'application/x-sprite', + 'src' => 'application/x-wais-source', + 'ssi' => 'text/x-server-parsed-html', + 'ssm' => 'application/streamingmedia', + 'sst' => 'application/vnd.ms-pki.certstore', + 'step' => 'application/step', + 'stl' => 'application/sla', + 'stl' => 'application/vnd.ms-pki.stl', + 'stl' => 'application/x-navistyle', + 'stp' => 'application/step', + 'sv4cpio'=> 'application/x-sv4cpio', + 'sv4crc' => 'application/x-sv4crc', + 'svf' => 'image/vnd.dwg', + 'svf' => 'image/x-dwg', + 'svr' => 'application/x-world', + 'svr' => 'x-world/x-svr', + 'swf' => 'application/x-shockwave-flash', + 't' => 'application/x-troff', + 'talk' => 'text/x-speech', + 'tar' => 'application/x-tar', + 'tbk' => 'application/toolbook', + 'tbk' => 'application/x-tbook', + 'tcl' => 'application/x-tcl', + 'tcl' => 'text/x-script.tcl', + 'tcsh' => 'text/x-script.tcsh', + 'tex' => 'application/x-tex', + 'texi' => 'application/x-texinfo', + 'texinfo'=> 'application/x-texinfo', + 'text' => 'application/plain', + 'text' => 'text/plain', + 'tgz' => 'application/gnutar', + 'tgz' => 'application/x-compressed', + 'tif' => 'image/tiff', + 'tif' => 'image/x-tiff', + 'tiff' => 'image/tiff', + 'tiff' => 'image/x-tiff', + 'tr' => 'application/x-troff', + 'tsi' => 'audio/tsp-audio', + 'tsp' => 'application/dsptype', + 'tsp' => 'audio/tsplayer', + 'tsv' => 'text/tab-separated-values', + 'turbot' => 'image/florian', + 'txt' => 'text/plain', + 'uil' => 'text/x-uil', + 'uni' => 'text/uri-list', + 'unis' => 'text/uri-list', + 'unv' => 'application/i-deas', + 'uri' => 'text/uri-list', + 'uris' => 'text/uri-list', + 'ustar' => 'application/x-ustar', + 'ustar' => 'multipart/x-ustar', + 'uu' => 'application/octet-stream', + 'uu' => 'text/x-uuencode', + 'uue' => 'text/x-uuencode', + 'vcd' => 'application/x-cdlink', + 'vcs' => 'text/x-vcalendar', + 'vda' => 'application/vda', + 'vdo' => 'video/vdo', + 'vew' => 'application/groupwise', + 'viv' => 'video/vivo', + 'viv' => 'video/vnd.vivo', + 'vivo' => 'video/vivo', + 'vivo' => 'video/vnd.vivo', + 'vmd' => 'application/vocaltec-media-desc', + 'vmf' => 'application/vocaltec-media-file', + 'voc' => 'audio/voc', + 'voc' => 'audio/x-voc', + 'vos' => 'video/vosaic', + 'vox' => 'audio/voxware', + 'vqe' => 'audio/x-twinvq-plugin', + 'vqf' => 'audio/x-twinvq', + 'vql' => 'audio/x-twinvq-plugin', + 'vrml' => 'application/x-vrml', + 'vrml' => 'model/vrml', + 'vrml' => 'x-world/x-vrml', + 'vrt' => 'x-world/x-vrt', + 'vsd' => 'application/x-visio', + 'vst' => 'application/x-visio', + 'vsw' => 'application/x-visio', + 'w60' => 'application/wordperfect6.0', + 'w61' => 'application/wordperfect6.1', + 'w6w' => 'application/msword', + 'wav' => 'audio/wav', + 'wav' => 'audio/x-wav', + 'wb1' => 'application/x-qpro', + 'wbmp' => 'image/vnd.wap.wbmp', + 'web' => 'application/vnd.xara', + 'wiz' => 'application/msword', + 'wk1' => 'application/x-123', + 'wmf' => 'windows/metafile', + 'wml' => 'text/vnd.wap.wml', + 'wmlc' => 'application/vnd.wap.wmlc', + 'wmls' => 'text/vnd.wap.wmlscript', + 'wmlsc' => 'application/vnd.wap.wmlscriptc', + 'word' => 'application/msword', + 'wp' => 'application/wordperfect', + 'wp5' => 'application/wordperfect', + 'wp5' => 'application/wordperfect6.0', + 'wp6' => 'application/wordperfect', + 'wpd' => 'application/wordperfect', + 'wpd' => 'application/x-wpwin', + 'wq1' => 'application/x-lotus', + 'wri' => 'application/mswrite', + 'wri' => 'application/x-wri', + 'wrl' => 'application/x-world', + 'wrl' => 'model/vrml', + 'wrl' => 'x-world/x-vrml', + 'wrz' => 'model/vrml', + 'wrz' => 'x-world/x-vrml', + 'wsc' => 'text/scriplet', + 'wsrc' => 'application/x-wais-source', + 'wtk' => 'application/x-wintalk', + 'xbm' => 'image/x-xbitmap', + 'xbm' => 'image/x-xbm', + 'xbm' => 'image/xbm', + 'xdr' => 'video/x-amt-demorun', + 'xgz' => 'xgl/drawing', + 'xif' => 'image/vnd.xiff', + 'xl' => 'application/excel', + 'xla' => 'application/excel', + 'xla' => 'application/x-excel', + 'xla' => 'application/x-msexcel', + 'xlb' => 'application/excel', + 'xlb' => 'application/vnd.ms-excel', + 'xlb' => 'application/x-excel', + 'xlc' => 'application/excel', + 'xlc' => 'application/vnd.ms-excel', + 'xlc' => 'application/x-excel', + 'xld' => 'application/excel', + 'xld' => 'application/x-excel', + 'xlk' => 'application/excel', + 'xlk' => 'applic... [truncated message content] |
From: <txm...@us...> - 2012-03-21 21:42:19
|
Revision: 9163 http://xoops.svn.sourceforge.net/xoops/?rev=9163&view=rev Author: txmodxoops Date: 2012-03-21 21:42:07 +0000 (Wed, 21 Mar 2012) Log Message: ----------- Updated more files trunk alpha 1 Only for testing Added Paths: ----------- XoopsModules/xThCreator/trunk/xThCreator/admin/ XoopsModules/xThCreator/trunk/xThCreator/admin/about.php XoopsModules/xThCreator/trunk/xThCreator/admin/admin_footer.php XoopsModules/xThCreator/trunk/xThCreator/admin/admin_header.php XoopsModules/xThCreator/trunk/xThCreator/admin/building.php XoopsModules/xThCreator/trunk/xThCreator/admin/includes.php XoopsModules/xThCreator/trunk/xThCreator/admin/index.html XoopsModules/xThCreator/trunk/xThCreator/admin/index.php XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php XoopsModules/xThCreator/trunk/xThCreator/admin/menu.php XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php XoopsModules/xThCreator/trunk/xThCreator/blocks/ XoopsModules/xThCreator/trunk/xThCreator/blocks/index.html XoopsModules/xThCreator/trunk/xThCreator/class/ XoopsModules/xThCreator/trunk/xThCreator/class/index.html XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_defaultff.php XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_languages.php XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_layout.php XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_themes.php XoopsModules/xThCreator/trunk/xThCreator/css/ XoopsModules/xThCreator/trunk/xThCreator/css/admin.css XoopsModules/xThCreator/trunk/xThCreator/css/index.html XoopsModules/xThCreator/trunk/xThCreator/css/style.css XoopsModules/xThCreator/trunk/xThCreator/docs/ XoopsModules/xThCreator/trunk/xThCreator/docs/changelog.txt XoopsModules/xThCreator/trunk/xThCreator/docs/credits.txt XoopsModules/xThCreator/trunk/xThCreator/docs/index.html XoopsModules/xThCreator/trunk/xThCreator/docs/install.txt XoopsModules/xThCreator/trunk/xThCreator/docs/lang_diff.txt XoopsModules/xThCreator/trunk/xThCreator/docs/licence.txt XoopsModules/xThCreator/trunk/xThCreator/docs/readme.txt XoopsModules/xThCreator/trunk/xThCreator/header.php XoopsModules/xThCreator/trunk/xThCreator/images/ XoopsModules/xThCreator/trunk/xThCreator/images/16/ XoopsModules/xThCreator/trunk/xThCreator/images/16/index.html XoopsModules/xThCreator/trunk/xThCreator/images/32/ XoopsModules/xThCreator/trunk/xThCreator/images/32/addlanguage.png XoopsModules/xThCreator/trunk/xThCreator/images/32/addlayout.png XoopsModules/xThCreator/trunk/xThCreator/images/32/addtheme.png XoopsModules/xThCreator/trunk/xThCreator/images/32/dashboard.png XoopsModules/xThCreator/trunk/xThCreator/images/32/index.html XoopsModules/xThCreator/trunk/xThCreator/images/32/thbuild.png XoopsModules/xThCreator/trunk/xThCreator/images/bookmarks/ XoopsModules/xThCreator/trunk/xThCreator/images/bookmarks/index.html XoopsModules/xThCreator/trunk/xThCreator/images/deco/ XoopsModules/xThCreator/trunk/xThCreator/images/deco/arrow.gif XoopsModules/xThCreator/trunk/xThCreator/images/deco/index.html XoopsModules/xThCreator/trunk/xThCreator/images/deco/off.gif XoopsModules/xThCreator/trunk/xThCreator/images/deco/on.gif XoopsModules/xThCreator/trunk/xThCreator/images/icons/ XoopsModules/xThCreator/trunk/xThCreator/images/icons/index.html XoopsModules/xThCreator/trunk/xThCreator/images/icons/off.png XoopsModules/xThCreator/trunk/xThCreator/images/icons/on.png XoopsModules/xThCreator/trunk/xThCreator/images/index.html XoopsModules/xThCreator/trunk/xThCreator/images/menu/ XoopsModules/xThCreator/trunk/xThCreator/images/menu/bg.png XoopsModules/xThCreator/trunk/xThCreator/images/menu/index.html XoopsModules/xThCreator/trunk/xThCreator/images/menu/left_both.png XoopsModules/xThCreator/trunk/xThCreator/images/menu/right_both.png XoopsModules/xThCreator/trunk/xThCreator/images/txmod_logo.png XoopsModules/xThCreator/trunk/xThCreator/images/xthcreator_slogo.png XoopsModules/xThCreator/trunk/xThCreator/include/ XoopsModules/xThCreator/trunk/xThCreator/include/configs.php XoopsModules/xThCreator/trunk/xThCreator/include/functions.php XoopsModules/xThCreator/trunk/xThCreator/include/index.html XoopsModules/xThCreator/trunk/xThCreator/include/install.php XoopsModules/xThCreator/trunk/xThCreator/index.php XoopsModules/xThCreator/trunk/xThCreator/language/ XoopsModules/xThCreator/trunk/xThCreator/language/english/ XoopsModules/xThCreator/trunk/xThCreator/language/english/admin.php XoopsModules/xThCreator/trunk/xThCreator/language/english/blocks.php XoopsModules/xThCreator/trunk/xThCreator/language/english/help/ XoopsModules/xThCreator/trunk/xThCreator/language/english/help/help.html XoopsModules/xThCreator/trunk/xThCreator/language/english/help/index.html XoopsModules/xThCreator/trunk/xThCreator/language/english/index.html XoopsModules/xThCreator/trunk/xThCreator/language/english/main.php XoopsModules/xThCreator/trunk/xThCreator/language/english/modinfo.php XoopsModules/xThCreator/trunk/xThCreator/language/index.html XoopsModules/xThCreator/trunk/xThCreator/language/italian/ XoopsModules/xThCreator/trunk/xThCreator/language/italian/admin.php XoopsModules/xThCreator/trunk/xThCreator/language/italian/blocks.php XoopsModules/xThCreator/trunk/xThCreator/language/italian/help/ XoopsModules/xThCreator/trunk/xThCreator/language/italian/help/help.html XoopsModules/xThCreator/trunk/xThCreator/language/italian/help/index.html XoopsModules/xThCreator/trunk/xThCreator/language/italian/index.html XoopsModules/xThCreator/trunk/xThCreator/language/italian/main.php XoopsModules/xThCreator/trunk/xThCreator/language/italian/modinfo.php XoopsModules/xThCreator/trunk/xThCreator/library/ XoopsModules/xThCreator/trunk/xThCreator/library/css.php XoopsModules/xThCreator/trunk/xThCreator/library/defolders.php XoopsModules/xThCreator/trunk/xThCreator/library/docs.php XoopsModules/xThCreator/trunk/xThCreator/library/images.php XoopsModules/xThCreator/trunk/xThCreator/library/index.html XoopsModules/xThCreator/trunk/xThCreator/library/languages.php XoopsModules/xThCreator/trunk/xThCreator/library/layout.php XoopsModules/xThCreator/trunk/xThCreator/library/resource/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/css/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/css/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/css/layout.css XoopsModules/xThCreator/trunk/xThCreator/library/resource/css/print.css XoopsModules/xThCreator/trunk/xThCreator/library/resource/css/style.css XoopsModules/xThCreator/trunk/xThCreator/library/resource/css/styles-ie7.css XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/14_layer_novisible.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/edit-block.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/feed1.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/feed2.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/friend.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/pagact.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/paginact.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/pagneutral.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/pdf.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/action/printable.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/favicon.ico XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/favicon.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/BR.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/CN.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/DE.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/ES.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/FR.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/IT.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/JP.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/PL.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/PR.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/RU.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/UK.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/US.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/flags/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/avatar_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/banners_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/blocks_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/comment_accept.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/comments_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/configure_shortcuts.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/edituser_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/filemanager_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/find.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/finduser_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/groups_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/home.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/images_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/logout.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/mail.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/mail_warning.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/mailuser_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/maintenance_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/modules_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/prefs_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/process.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/smilies_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/tpls_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/up.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/user.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/user_edit.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/userrank_small.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/footer/xoops.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/Ym.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/cog_go.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/edit_user.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/email.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/email_go.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/email_open.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/exit.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/find.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/identity.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/knotes.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/messagebox16x16.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/msn.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/noavatar.jpg XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/note_edit.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/organizer.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/password.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/profile.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/shutdown.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/vcard_edit.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/icons/users/web.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/await.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/dot.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/dot_blue.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/BR.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/CN.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/DE.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/ES.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/FR.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/IT.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/JP.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/PR.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/RU.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/UK.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/US.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/flags/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/magnifier.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/table-caption.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/table-caption_blue.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/throbber.gif XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/translate.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/img/wizard_bg.png XoopsModules/xThCreator/trunk/xThCreator/library/resource/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/english/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/english/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/english/main.php XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/english/script.js XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/english/style.css XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/italian/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/italian/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/italian/main.php XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/italian/script.js XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/italian/style.css XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/leggimi.txt XoopsModules/xThCreator/trunk/xThCreator/library/resource/language/readme.txt XoopsModules/xThCreator/trunk/xThCreator/library/resource/modules/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/modules/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/modules/system/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/modules/system/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/modules/system/system_redirect.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/modules/system/system_siteclosed.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/theme.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockcenter.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockcenter_c.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockcenter_l.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockcenter_r.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockleft.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockright.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/blockszone.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/centerblocks.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/footer.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/footerstatic.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/globalnav.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/header.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/index.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/metas.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/scripts.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/userbar.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/xo-info.php XoopsModules/xThCreator/trunk/xThCreator/library/templates.php XoopsModules/xThCreator/trunk/xThCreator/library/themes.php XoopsModules/xThCreator/trunk/xThCreator/sql/ XoopsModules/xThCreator/trunk/xThCreator/sql/index.html XoopsModules/xThCreator/trunk/xThCreator/sql/mysql.sql XoopsModules/xThCreator/trunk/xThCreator/templates/ XoopsModules/xThCreator/trunk/xThCreator/templates/admin/ XoopsModules/xThCreator/trunk/xThCreator/templates/admin/index.html XoopsModules/xThCreator/trunk/xThCreator/templates/admin/xThCreator_admin_about.html XoopsModules/xThCreator/trunk/xThCreator/templates/admin/xThCreator_admin_help.html XoopsModules/xThCreator/trunk/xThCreator/templates/blocks/ XoopsModules/xThCreator/trunk/xThCreator/templates/blocks/index.html XoopsModules/xThCreator/trunk/xThCreator/templates/index.html XoopsModules/xThCreator/trunk/xThCreator/templates/xthcreator_footer.html XoopsModules/xThCreator/trunk/xThCreator/templates/xthcreator_header.html XoopsModules/xThCreator/trunk/xThCreator/templates/xthcreator_index.html XoopsModules/xThCreator/trunk/xThCreator/themes/ XoopsModules/xThCreator/trunk/xThCreator/xoops_version.php Added: XoopsModules/xThCreator/trunk/xThCreator/admin/about.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/about.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/about.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/admin_footer.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/admin_footer.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/admin_footer.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,45 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : 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_XTHCREATOR_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb/' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/xThCreator/trunk/xThCreator/admin/admin_header.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/admin_header.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/admin_header.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : 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'; +include_once 'includes.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_ERROR_NOFRAMEWORKS); + 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'); + +$themesHandler =& xoops_getModuleHandler('xthcreator_themes', $dirname); +$layoutHandler =& xoops_getModuleHandler('xthcreator_layout', $dirname); +$languagesHandler =& xoops_getModuleHandler('xthcreator_languages', $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); +//xoops_cp_header(); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/xThCreator/trunk/xThCreator/admin/building.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/building.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/building.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH .'/modules/xThCreator/library/defolders.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('building.php'); +$op = xthcreator_CleanVars($_REQUEST, 'op', 'default', 'string'); +switch ($op) { + case "build": + $thms =& $themesHandler->get($_REQUEST['theme_name']); + $thms_name = $thms->getVar('theme_name'); + //Debut + echo '<table width="100%" cellspacing="1" style="background: #fff;"> + <tr class="marg2"> + <td class="ui-corner-all">'; + /************************************************/ + /*Structure*/ + /************************************************/ + //Creation of default folders & files + defaultff($thms_name); + /////////////////////////////////////////////////////////////////////// + echo '</td></tr></table>'; + break; + + case "default": + default: + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $action = $_SERVER['REQUEST_URI']; + + $form = new XoopsThemeForm(_AM_XTHCREATOR_BUILD_DEFAULT, 'form_creation', $action, 'post', true); + + $thms_select = new XoopsFormSelect(_AM_XTHCREATOR_BUILD_THEMES, 'theme_name', 'theme_name', 1); + $thms_select->addOptionArray($themesHandler->getList()); + $form->addElement($thms_select, true); + + $form->addElement(new XoopsFormHidden('op', 'build')); + $form->addElement(new XoopsFormButton('', 'submit', _AM_XTHCREATOR_BUILD, 'submit')); + $form->display(); + break; +} +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/includes.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/includes.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/includes.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,37 @@ +<?php +/** + * **************************************************************************** + * - Developers TEAM Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * 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. + * ------------------------------------------------------------------------ + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include '../../../include/cp_header.php'; +include_once("../include/functions.php"); + +$modPath = XOOPS_ROOT_PATH.'/modules/xThCreator'; +$cPath = $modPath.'/library'; + +include_once $cPath.'/css.php'; +include_once $cPath.'/defolders.php'; +include_once $cPath.'/docs.php'; +include_once $cPath.'/images.php'; +include_once $cPath.'/languages.php'; +include_once $cPath.'/layout.php'; +include_once $cPath.'/templates.php'; +include_once $cPath.'/themes.php'; +?> \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/index.html =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/index.html (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/index.html 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/index.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/index.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/index.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,90 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + //count "total" + $count_themes = $themesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("themes_online", 1)); + $themes_online = $themesHandler->getCount($criteria); + $criteria->add(new Criteria("themes_pending", 1)); + $themes_pending = $themesHandler->getCount($criteria); + + //count "total" + $count_layout = $layoutHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("layout_online", 1)); + $layout_online = $layoutHandler->getCount($criteria); + $criteria->add(new Criteria("layout_pending", 1)); + $layout_pending = $layoutHandler->getCount($criteria); + + //count "total" + $count_languages = $languagesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("languages_online", 1)); + $languages_online = $languagesHandler->getCount($criteria); + $criteria->add(new Criteria("languages_pending", 1)); + $languages_pending = $languagesHandler->getCount($criteria); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_THEMES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES, $count_themes); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_ONLINE, $themes_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_PENDING, $themes_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LAYOUT); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT, $count_layout); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_ONLINE, $layout_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_PENDING, $layout_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LANGUAGES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES, $count_languages); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_ONLINE, $languages_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_PENDING, $languages_pending); + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,206 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +global $pathImageIcon; +$op = xthcreator_CleanVars($_REQUEST, 'op', 'list', 'string'); +$languagesAdmin = new ModuleAdmin(); +switch ($op) { + case "list": + default: + echo $languagesAdmin->addNavigation('languages.php'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + echo $languagesAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("lang_id ASC, lang_name"); + $criteria->setOrder("ASC"); + $numrows = $languagesHandler->getCount(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $document_tri = 1; + $document_order = 1; + if (isset($_REQUEST['document_order'])) { + if ($_REQUEST['document_order']==1){ + $criteria->setOrder('ASC'); + $document_order=1; + } + if ($_REQUEST['document_order']==2){ + $criteria->setOrder('DESC'); + $document_order=2; + } + } else { + $criteria->setOrder('DESC'); + } + $languages_arr = $languagesHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=default&limit=' . $limit . '&document_tri=' . $document_tri. '&document_order=' . $document_order); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + + //Table view + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align=\"center\" width=\"10%\">"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + $class = "odd"; + foreach (array_keys($languages_arr) as $i) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + + $themes =& $themesHandler->get($languages_arr[$i]->getVar("lang_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align=\"center\">".$title_themes."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_name")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_file")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_define")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_descript")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($languages_arr[$i]->getVar("languages_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($languages_arr[$i]->getVar("languages_date_created"),"S")."</td>"; + + echo "<td align=\"center\" width=\"10%\"> + <a href=\"languages.php?op=edit_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a> + <a href=\"languages.php?op=delete_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + + $obj =& $languagesHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_language": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["lang_id"])) { + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + } else { + $obj =& $languagesHandler->create(); + } + //Form lang_th_name + $obj->setVar("lang_th_name", $_REQUEST["lang_th_name"]); + //Form lang_file + $obj->setVar("lang_name", $_REQUEST["lang_name"]); + //Form lang_file + $obj->setVar("lang_file", $_REQUEST["lang_file"]); + //Form lang_define + $obj->setVar("lang_define", $_REQUEST["lang_define"]); + //Form lang_descript + $obj->setVar("lang_descript", $_REQUEST["lang_descript"]); + + if ($languagesHandler->insert($obj)) { + redirect_header("languages.php?op=list", 2, _AM_XTHCREATOR_FORMOK); + } + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + $obj = $languagesHandler->get($_REQUEST["lang_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_language": + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($languagesHandler->delete($obj)) { + redirect_header("languages.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "lang_id" => $_REQUEST["lang_id"], "op" => "delete_language"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("lang_name"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,169 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +include_once "../include/functions.php"; +xoops_cp_header(); +global $xoopsModuleConfig, $pathImageIcon; +$op = xThCreator_CleanVars($_REQUEST, 'op', 'list_layout', 'string'); +$layoutAdmin = new ModuleAdmin(); +switch ($op) +{ + case "list_layout": + default: + echo $layoutAdmin->addNavigation('layout.php'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + echo $layoutAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("layout_id"); + $criteria->setOrder("ASC"); + $numrows = $layoutHandler->getCount(); + $layout_arr = $layoutHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($layout_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_name")."</td>"; + + $themes =& $themesHandler->get($layout_arr[$i]->getVar("layout_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align='center'>".$title_themes."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_description")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_weight")."</td>"; + + echo "<td align='center' width='10%'> + <a href='layout.php?op=edit_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='layout.php?op=delete_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + echo $layoutAdmin->renderButton(); + + $obj =& $layoutHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_layout": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["layout_id"])) { + $obj =& $layoutHandler->get($_REQUEST["layout_id"]); + } else { + $obj =& $layoutHandler->create(); + } + //Form layout_name + $obj->setVar("layout_name", $_REQUEST["layout_name"]); + //Form layout_th_name + $obj->setVar("layout_th_name", $_REQUEST["layout_th_name"]); + //Form layout_description + $obj->setVar("layout_description", $_REQUEST["layout_description"]); + //Form layout_weight + $obj->setVar("layout_weight", $_REQUEST["layout_weight"]); + + if ($layoutHandler->insert($obj)) { + redirect_header("layout.php?op=list_layout", 2, _AM_XTHCREATOR_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + echo $layoutAdmin->renderButton(); + $obj = $layoutHandler->get($_REQUEST["layout_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_layout": + $obj =& $layoutHandler->get($_REQUEST["layout_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($layoutHandler->delete($obj)) { + redirect_header("layout.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "layout_id" => $_REQUEST["layout_id"], "op" => "delete_layout"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("layout"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/menu.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/menu.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/menu.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,57 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; + +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = "images/32/dashboard.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU2; +$adminmenu[$i]["link"] = "admin/themes.php"; +$adminmenu[$i]["icon"] = "images/32/addtheme.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU3; +$adminmenu[$i]["link"] = "admin/layout.php"; +$adminmenu[$i]["icon"] = "images/32/addlayout.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU4; +$adminmenu[$i]["link"] = "admin/languages.php"; +$adminmenu[$i]["icon"] = "images/32/addlanguage.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU5; +$adminmenu[$i]["link"] = "admin/building.php"; +$adminmenu[$i]["icon"] = "images/32/thbuild.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU6; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; +unset( $i ); +?> \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php 2012-03-21 21:42:07 UTC (rev 9163) @@ -0,0 +1,254 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 (... [truncated message content] |
From: <wis...@us...> - 2012-03-21 15:51:47
|
Revision: 9162 http://xoops.svn.sourceforge.net/xoops/?rev=9162&view=rev Author: wishcraft Date: 2012-03-21 15:51:36 +0000 (Wed, 21 Mar 2012) Log Message: ----------- Karioki Songlist Manifest (Backup Only - Incomplete) - Still to do, user search, class filler, language, bug testing - Prealpha 1.03 Modified Paths: -------------- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlists.form.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_alpha_browse.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html Added Paths: ----------- XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_search.html Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -36,7 +36,9 @@ define ("_CHARSET","UTF-8"); if (!defined('_CHARSET_ISO')) define ("_CHARSET_ISO","ISO-8859-1"); - + + $GLOBALS['songlistAdmin'] = true; + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); $module_handler = xoops_gethandler('module'); @@ -84,7 +86,7 @@ include_once XOOPS_ROOT_PATH."/modules/".$GLOBALS['songlistModule']->getVar("dirname")."/include/songlist.objects.php"; include_once XOOPS_ROOT_PATH."/modules/".$GLOBALS['songlistModule']->getVar("dirname")."/include/songlist.forms.php"; - xoops_loadLanguage('main', 'songlist'); + xoops_loadLanguage('admin', 'songlist'); $GLOBALS['songlistModule'] = $module_handler->getByDirname('songlist'); ?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,203 @@ +<?php + + include (dirname(__FILE__).'/header.php'); + + $category_handler = xoops_getmodulehandler('category', 'handler'); + $criteria_cat = new CriteriaCompo(); + foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { + $criteria_cat->add(new Criteria('`cid`', $cid, '='), 'OR'); + } + $criteria_cat->setSort('`created`'); + $criteria_cat->setOrder('ASC'); + + $criteria = new Criteria('pid', $_SESSION['cid']); + $criteria->setSort('`weight`'); + $criteria->setOrder('ASC'); + $categories = $category_handler->getObjects($criteria, false); + + $cat = array(); + $col = 1; + $row = 1; + foreach($categories as $category) { + $cat[$row][$col] = $category->toArray(true); + $cat[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $cat[$row][$j][$category_handler->keyName] = 0; + $cat[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $albums_handler = xoops_getmodulehandler('albums', 'handler'); + switch ($op) { + default: + case "item": + switch ($fct) { + default: + case "list": + break; + $pagenav = new XoopsPageNav($albums_handler->getCount($criteria_cat), $limit, $start, 'start', "?op=$op&fct=$fct&id=$id&value=$value&limit=$limit"); + + $criteria_cat->setLimit($limit); + $criteria_cat->setStart($start); + + $albums = $albums_handler->getObjects($criteria_cat, false); + + $ret = array(); + $col = 1; + $row = 1; + foreach($albums as $album) { + $ret[$row][$col] = $album->toArray(true); + $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $ret[$row][$j][$albums_handler->keyName] = 0; + $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $url = $albums_handler->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_albums_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('albums', $ret); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + if ($_SESSION['cid']!=0) { + $category = $category_handler->get($_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('category', $category->getVar('name')); + } + include($GLOBALS['xoops']->path('/footer.php')); + break; + case "item": + $album = $albums_handler->get($id); + + $url = $album->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_albums_item.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('album', $album->toArray()); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + include($GLOBALS['xoops']->path('/footer.php')); + break; + } + break; + case "browseby": + switch ($fct) { + default: + case "title": + case "lyrics": + case "albums": + case "albums": + + $browse_criteria = new CriteriaCompo(); + switch ($value) { + case '0': + for($u=0;$u<10;$u++) { + $browse_criteria->add(new Criteria('`name`', $u.'%', 'LIKE'), 'OR'); + } + break; + default: + $browse_criteria->add(new Criteria('`name`', strtoupper($value).'%', 'LIKE'), 'OR'); + $browse_criteria->add(new Criteria('`name`', strtolower($value).'%', 'LIKE'), 'OR'); + break; + } + $criteria = CriteriaCompo($criteria_cat, 'AND'); + $criteria->add($browse_criteria); + + } + + $pagenav = new XoopsPageNav($albums_handler->getCount($criteria), $limit, $start, 'start', "?op=$op&fct=$fct&id=$id&value=$value&limit=$limit"); + + $criteria->setLimit($limit); + $criteria->setStart($start); + + $albums = $albums_handler->getObjects($criteria, false); + + $ret = array(); + $col = 1; + $row = 1; + foreach($albums as $album) { + $ret[$row][$col] = $album->toArray(true); + $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $ret[$row][$j][$albums_handler->keyName] = 0; + $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $url = $albums_handler->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_albums_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('albums', $ret); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + if ($_SESSION['cid']!=0) { + $category = $category_handler->get($_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('category', $category->getVar('name')); + } + include($GLOBALS['xoops']->path('/footer.php')); + break; + + break; + + case "category": + switch ($fct) { + default: + case "set": + $_SESSION['cid'] = $id; + break; + case "home": + $_SESSION['cid'] = 0; + break; + } + redirect($_SERVER["PHP_SELF"]."?op=item&fct=list&id=$id&value=$value&start=$start&limit=$limit", 10, _MN_SONGLIST_MSG_CATEGORYCHANGED); + exit; + } +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,203 @@ +<?php + + include (dirname(__FILE__).'/header.php'); + + $category_handler = xoops_getmodulehandler('category', 'handler'); + $criteria_cat = new CriteriaCompo(); + foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { + $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); + } + $criteria_cat->setSort('`created`'); + $criteria_cat->setOrder('ASC'); + + $criteria = new Criteria('pid', $_SESSION['cid']); + $criteria->setSort('`weight`'); + $criteria->setOrder('ASC'); + $categories = $category_handler->getObjects($criteria, false); + + $cat = array(); + $col = 1; + $row = 1; + foreach($categories as $category) { + $cat[$row][$col] = $category->toArray(true); + $cat[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $cat[$row][$j][$category_handler->keyName] = 0; + $cat[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $artists_handler = xoops_getmodulehandler('artists', 'handler'); + switch ($op) { + default: + case "item": + switch ($fct) { + default: + case "list": + break; + $pagenav = new XoopsPageNav($artists_handler->getCount($criteria_cat), $limit, $start, 'start', "?op=$op&fct=$fct&id=$id&value=$value&limit=$limit"); + + $criteria_cat->setLimit($limit); + $criteria_cat->setStart($start); + + $artists = $artists_handler->getObjects($criteria_cat, false); + + $ret = array(); + $col = 1; + $row = 1; + foreach($artists as $artist) { + $ret[$row][$col] = $artist->toArray(true); + $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $ret[$row][$j][$artists_handler->keyName] = 0; + $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $url = $artists_handler->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_artists_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('artists', $ret); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + if ($_SESSION['cid']!=0) { + $category = $category_handler->get($_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('category', $category->getVar('name')); + } + include($GLOBALS['xoops']->path('/footer.php')); + break; + case "item": + $artist = $artists_handler->get($id); + + $url = $artist->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_artists_item.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('artist', $artist->toArray()); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + include($GLOBALS['xoops']->path('/footer.php')); + break; + } + break; + case "browseby": + switch ($fct) { + default: + case "title": + case "lyrics": + case "artists": + case "albums": + + $browse_criteria = new CriteriaCompo(); + switch ($value) { + case '0': + for($u=0;$u<10;$u++) { + $browse_criteria->add(new Criteria('`name`', $u.'%', 'LIKE'), 'OR'); + } + break; + default: + $browse_criteria->add(new Criteria('`name`', strtoupper($value).'%', 'LIKE'), 'OR'); + $browse_criteria->add(new Criteria('`name`', strtolower($value).'%', 'LIKE'), 'OR'); + break; + } + $criteria = CriteriaCompo($criteria_cat, 'AND'); + $criteria->add($browse_criteria); + + } + + $pagenav = new XoopsPageNav($artists_handler->getCount($criteria), $limit, $start, 'start', "?op=$op&fct=$fct&id=$id&value=$value&limit=$limit"); + + $criteria->setLimit($limit); + $criteria->setStart($start); + + $artists = $artists_handler->getObjects($criteria, false); + + $ret = array(); + $col = 1; + $row = 1; + foreach($artists as $artist) { + $ret[$row][$col] = $artist->toArray(true); + $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $ret[$row][$j][$artists_handler->keyName] = 0; + $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $url = $artists_handler->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_artists_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('artists', $ret); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + if ($_SESSION['cid']!=0) { + $category = $category_handler->get($_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('category', $category->getVar('name')); + } + include($GLOBALS['xoops']->path('/footer.php')); + break; + + break; + + case "category": + switch ($fct) { + default: + case "set": + $_SESSION['cid'] = $id; + break; + case "home": + $_SESSION['cid'] = 0; + break; + } + redirect($_SERVER["PHP_SELF"]."?op=item&fct=list&id=$id&value=$value&start=$start&limit=$limit", 10, _MN_SONGLIST_MSG_CATEGORYCHANGED); + exit; + } +?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -163,5 +163,30 @@ return parent::insert($obj, $force); } + function get($id, $fields = '*') { + $ret = parent::get($id, $fields); + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` = '.$ret->getVar($this->keyName); + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } + + function getObjects($criteria = NULL, $id_as_key = false, $as_object = true) { + $ret = parent::getObjects($criteria, $id_as_key, $as_object); + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } else { + $id[$data[$this->keyName]] = $data[$this->keyName]; + } + } + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } } ?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -142,6 +142,31 @@ return parent::insert($obj, $force); } + function get($id, $fields = '*') { + $ret = parent::get($id, $fields); + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` = '.$ret->getVar($this->keyName); + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } + function getObjects($criteria = NULL, $id_as_key = false, $as_object = true) { + $ret = parent::getObjects($criteria, $id_as_key, $as_object); + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } else { + $id[$data[$this->keyName]] = $data[$this->keyName]; + } + } + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } + } ?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -106,6 +106,24 @@ return ' '; } + function GetCatAndSubCat($pid=0){ + $categories = $this->getObjects(new Criteria('pid', $pid), true); + $langs_array = $this->TreeIDs(array(), $categories, -1); + return $langs_array; + } + + private function TreeIDs($langs_array, $categories, $level) { + foreach($categories as $catid => $category) { + if ($catid!=$ownid) { + $langs_array[$catid] = $catid; + if ($categoriesb = $this->getObjects(new Criteria('pid', $catid), true)){ + $langs_array = $this->TreeIDs($langs_array, $categoriesb, $level); + } + } + } + return ($langs_array); + } + function insert($obj, $force=true) { if ($obj->isNew()) { $obj->setVar('created', time()); @@ -115,5 +133,30 @@ return parent::insert($obj, $force); } + function get($id, $fields = '*') { + $ret = parent::get($id, $fields); + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` = '.$ret->getVar($this->keyName); + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } + + function getObjects($criteria = NULL, $id_as_key = false, $as_object = true) { + $ret = parent::getObjects($criteria, $id_as_key, $as_object); + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } else { + $id[$data[$this->keyName]] = $data[$this->keyName]; + } + } + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } } ?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -99,5 +99,30 @@ return parent::insert($obj, $force); } + function get($id, $fields = '*') { + $ret = parent::get($id, $fields); + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` = '.$ret->getVar($this->keyName); + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } + + function getObjects($criteria = NULL, $id_as_key = false, $as_object = true) { + $ret = parent::getObjects($criteria, $id_as_key, $as_object); + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } else { + $id[$data[$this->keyName]] = $data[$this->keyName]; + } + } + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } } ?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -188,5 +188,30 @@ return $sid; } + function get($id, $fields = '*') { + $ret = parent::get($id, $fields); + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` = '.$ret->getVar($this->keyName); + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } + + function getObjects($criteria = NULL, $id_as_key = false, $as_object = true) { + $ret = parent::getObjects($criteria, $id_as_key, $as_object); + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } else { + $id[$data[$this->keyName]] = $data[$this->keyName]; + } + } + if (!isset($GLOBALS['songlistAdmin'])) { + $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; + $GLOBALS['xoopsDB']->queryF($sql); + } + return $ret; + } } ?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css 2012-03-21 15:51:36 UTC (rev 9162) @@ -60,4 +60,60 @@ #sl_resulttable thead { -} \ No newline at end of file +} + +#sl_mainartist { + font-size:1.23em; + clear:both; +} + +#sl_subartist { + margin-left:13px; + font-size:0.90em; + clear:both; +} + +#sl_mainalbum { + font-size:1.23em; + clear:both; +} + +#sl_subalbum { + margin-left:13px; + font-size:0.90em; + clear:both; +} + +#sl_artalbum { + margin:5px 5px 5px 5px; + font-size:0.75em; + border-style: dotted; + border-width: 1px; + clear:both; +} + +#sl_subtitle { + font-size:1.15em; + font-weight: bold; +} + +#sl_mainsong { + font-size:1.23em; + clear:both; + margin-left: 7px; + margin-top: 3px; +} + +#sl_subsong { + margin-left:13px; + font-size:0.90em; + clear:both; +} + +#sl_artsong { + margin:5px 5px 5px 5px; + font-size:0.75em; + border-style: dotted; + border-width: 1px; + clear:both; +} Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,60 @@ +<?php + +// $Id: admin_header.php,v 4.03 2008/06/05 15:35:32 wishcraft Exp $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.chronolabs.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License 2.0 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. // +// // +// 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/, http://www.chronolabs.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + require_once (dirname(dirname(__FILE__)).'/mainfile.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['songlistModule'] = $module_handler->getByDirname('songlist'); + $GLOBALS['songlistModuleConfig'] = $config_handler->getConfigList($GLOBALS['songlistModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + + xoops_loadLanguage('user'); + + include_once XOOPS_ROOT_PATH."/modules/".$GLOBALS['songlistModule']->getVar("dirname")."/include/functions.php"; + include_once XOOPS_ROOT_PATH."/modules/".$GLOBALS['songlistModule']->getVar("dirname")."/include/songlist.objects.php"; + include_once XOOPS_ROOT_PATH."/modules/".$GLOBALS['songlistModule']->getVar("dirname")."/include/songlist.forms.php"; + + xoops_loadLanguage('main', 'songlist'); + +?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlists.form.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlists.form.php 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlists.form.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -450,7 +450,7 @@ $ele['title']->setDescription(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_TITLE_DESC:'')); $ele['image'] = new XoopsFormFile(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_UPLOAD_POSTER:''), 'image', $GLOBALS['songlistModuleConfig']['filesize_upload']); $ele['image']->setDescription(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_UPLOAD_POSTER_DESC:'')); - if (strlen($object->getVar('image'))>0&&file_exists($GLOBALS['xoops']->path($object->getVar('path').$object->getVar('poster')))) { + if (strlen($object->getVar('image'))>0&&file_exists($GLOBALS['xoops']->path($object->getVar('path').$object->getVar('image')))) { $ele['image_preview'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_POSTER:''), '<img src="'.$object->getImage('image').'" width="340px" />' ); $ele['image_preview']->setDescription(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_POSTER_DESC:'')); } @@ -599,7 +599,7 @@ $ele['description']->setDescription(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_DESCRIPTION_DESC:'')); $ele['image'] = new XoopsFormFile(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_UPLOAD_POSTER:''), 'image', $GLOBALS['songlistModuleConfig']['filesize_upload']); $ele['image']->setDescription(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_UPLOAD_POSTER_DESC:'')); - if (strlen($object->getVar('image'))>0&&file_exists($GLOBALS['xoops']->path($object->getVar('path').$object->getVar('poster')))) { + if (strlen($object->getVar('image'))>0&&file_exists($GLOBALS['xoops']->path($object->getVar('path').$object->getVar('image')))) { $ele['image_preview'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_POSTER:''), '<img src="'.$object->getImage('image').'" width="340px" />' ); $ele['image_preview']->setDescription(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_POSTER_DESC:'')); } Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,203 @@ +<?php + + include (dirname(__FILE__).'/header.php'); + + $category_handler = xoops_getmodulehandler('category', 'handler'); + $criteria_cat = new CriteriaCompo(); + foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { + $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); + } + $criteria_cat->setSort('`created`'); + $criteria_cat->setOrder('ASC'); + + $criteria = new Criteria('pid', $_SESSION['cid']); + $criteria->setSort('`weight`'); + $criteria->setOrder('ASC'); + $categories = $category_handler->getObjects($criteria, false); + + $cat = array(); + $col = 1; + $row = 1; + foreach($categories as $category) { + $cat[$row][$col] = $category->toArray(true); + $cat[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $cat[$row][$j][$category_handler->keyName] = 0; + $cat[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $artists_handler = xoops_getmodulehandler('artists', 'handler'); + switch ($op) { + default: + case "item": + switch ($fct) { + default: + case "list": + break; + $pagenav = new XoopsPageNav($artists_handler->getCount($criteria_cat), $limit, $start, 'start', "?op=$op&fct=$fct&id=$id&value=$value&limit=$limit"); + + $criteria_cat->setLimit($limit); + $criteria_cat->setStart($start); + + $artists = $artists_handler->getObjects($criteria, false); + + $ret = array(); + $col = 1; + $row = 1; + foreach($artists as $artist) { + $ret[$row][$col] = $artist->toArray(true); + $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $ret[$row][$j][$artists_handler->keyName] = 0; + $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $url = $artists_handler->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_artists_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('artists', $ret); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + if ($_SESSION['cid']!=0) { + $category = $category_handler->get($_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('category', $category->getVar('name')); + } + include($GLOBALS['xoops']->path('/footer.php')); + break; + case "item": + $artist = $artists_handler->get($id); + + $url = $artist->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_artists_item.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('artist', $artist->toArray()); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + include($GLOBALS['xoops']->path('/footer.php')); + break; + } + break; + case "browseby": + switch ($fct) { + default: + case "title": + case "lyrics": + case "artists": + case "albums": + + $browse_criteria = new CriteriaCompo(); + switch ($value) { + case '0': + for($u=0;$u<10;$u++) { + $browse_criteria->add(new Criteria('`name`', $u.'%', 'LIKE'), 'OR'); + } + break; + default: + $browse_criteria->add(new Criteria('`name`', strtoupper($value).'%', 'LIKE'), 'OR'); + $browse_criteria->add(new Criteria('`name`', strtolower($value).'%', 'LIKE'), 'OR'); + break; + } + $criteria = CriteriaCompo($criteria_cat, 'AND'); + $criteria->add($browse_criteria); + + } + + $pagenav = new XoopsPageNav($artists_handler->getCount($criteria), $limit, $start, 'start', "?op=$op&fct=$fct&id=$id&value=$value&limit=$limit"); + + $criteria->setLimit($limit); + $criteria->setStart($start); + + $artists = $artists_handler->getObjects($criteria, false); + + $ret = array(); + $col = 1; + $row = 1; + foreach($artists as $artist) { + $ret[$row][$col] = $artist->toArray(true); + $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + $col++; + if ($col>$GLOBALS['songlistModuleConfig']['cols']) { + $row++; + $col=1; + } + } + if ($col!=1) { + $col--; + for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { + $ret[$row][$j][$artists_handler->keyName] = 0; + $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; + } + } + + $url = $artists_handler->getURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + $xoopsOption['template_main'] = 'songlist_artists_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->assign('artists', $ret); + $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('categories', $cat); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + if ($_SESSION['cid']!=0) { + $category = $category_handler->get($_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('category', $category->getVar('name')); + } + include($GLOBALS['xoops']->path('/footer.php')); + break; + + break; + + case "category": + switch ($fct) { + default: + case "set": + $_SESSION['cid'] = $id; + break; + case "home": + $_SESSION['cid'] = 0; + break; + } + redirect($_SERVER["PHP_SELF"]."?op=item&fct=list&id=$id&value=$value&start=$start&limit=$limit", 10, _MN_SONGLIST_MSG_CATEGORYCHANGED); + exit; + } +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_index.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_index.html (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_index.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,3 @@ +<{includeq file="db:songlist_category_list.html"}> +<{includeq file="db:songlist_alpha_browse.html"}> +<{includeq file="db:songlist_albums_list.html"}> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,32 @@ +<div class="sl_mainalbum"> + <a href="<{$album.url}>"><{$album.name}></a> +</div> +<{if $album.image}> +<div class="sl_artalbum"> + <a href="<{$album.url}>"><img src='<{$album.image}>' width="95%" border="0" /></a> +</div> +<{/if}> +<{if $album.songs}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_SONGS}> +</div> +<div class="sl_subalbum"> + <{assign item=songs value=0}> + <{foreach from=$album.songs item=song}> + <{assign item=songs value=$songs+1}> + <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($album.songs)}>, <{/if}> + <{/foreach}> +</div> +<{/if}> +<{if $album.artists}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_ARTISTS}> +</div> +<div class="sl_subartist"> + <{assign item=artists value=0}> + <{foreach from=$album.artists item=artist}> + <{assign item=artists value=$artists+1}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($album.artists)}>, <{/if}> + <{/foreach}> +</div> +<{/if}> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_list.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_list.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_list.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,27 @@ +<{if $albums}> +<{if not $albums.pagenav eq ''}> +<div style='width:100%; clear:both; height:25px;'> + <div style='float:right;'> + <{$albums.pagenav}> + </div> +</div> +<{/if}> +<table> + <{foreach from=$albums key=$rowkey item=row}> + <{if not $rowkey eq 'pagenav'}> + <tr> + <{foreach from=$row item=album}> + <td width="<{$album.width}>%"><{includeq file="db:songlist_albums_item.html" album=$album}></td> + <{/foreach}> + </tr> + <{/if}> + <{/foreach}> +</table> +<{/if}> +<{if not $albums.pagenav eq ''}> +<div style='width:100%; clear:both; height:25px;'> + <div style='float:left;'> + <{$albums.pagenav}> + </div> +</div> +<{/if} \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_alpha_browse.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_alpha_browse.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_alpha_browse.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -3,11 +3,13 @@ <div class="sl_alphasubdiva"> <select id='browsetype' name='browsetype'> <option value="title"<{if $smarty.get.fct eq 'title' or $smarty.get.fct eq ''}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_SELECTBY_TITLE}></option> + <{if $songs}> <option value="lyrics"<{if $smarty.get.fct eq 'lyrics'}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_SELECTBY_LYRICS}></option> <option value="artist"<{if $smarty.get.fct eq 'artist'}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_SELECTBY_ARTIST}></option> <{if $xoConfig.album}> <option value="album"<{if $smarty.get.fct eq 'album'}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_SELECTBY_ALBUM}></option> <{/if}> + <{/if}> </select> </div> <div class="sl_alphasubdivb"> Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_index.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_index.html (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_index.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,3 @@ +<{includeq file="db:songlist_category_list.html"}> +<{includeq file="db:songlist_alpha_browse.html"}> +<{includeq file="db:songlist_artists_list.html"}> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,27 @@ +<div class="sl_mainartist"> + <a href="<{$artist.url}>"><{$artist.name}></a> +</div> +<{if $artist.songs}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_SONGS}> +</div> +<div class="sl_subartist"> + <{assign item=songs value=0}> + <{foreach from=$artist.songs item=song}> + <{assign item=songs value=$songs+1}> + <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($artist.songs)}>, <{/if}> + <{/foreach}> +</div> +<{/if}> +<{if $artist.albums}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_ALBUMS}> +</div> +<div class="sl_subartist"> + <{assign item=albums value=0}> + <{foreach from=$artist.albums item=album}> + <{assign item=albums value=$albums+1}> + <a href="<{$album.url}>"><{$album.name}></a><{if not $albums < count($artist.albums)}>, <{/if}> + <{/foreach}> +</div> +<{/if}> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,27 @@ +<{if $artists}> +<{if not $artists.pagenav eq ''}> +<div style='width:100%; clear:both; height:25px;'> + <div style='float:right;'> + <{$artists.pagenav}> + </div> +</div> +<{/if}> +<table> + <{foreach from=$artists key=$rowkey item=row}> + <{if not $rowkey eq 'pagenav'}> + <tr> + <{foreach from=$row item=artist}> + <td width="<{$artist.width}>%"><{includeq file="db:songlist_artists_item.html" artist=$artist}></td> + <{/foreach}> + </tr> + <{/if}> + <{/foreach}> +</table> +<{/if}> +<{if not $artists.pagenav eq ''}> +<div style='width:100%; clear:both; height:25px;'> + <div style='float:left;'> + <{$artists.pagenav}> + </div> +</div> +<{/if} \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -1,5 +1,5 @@ <div class="sl_maincat"> - <a href="<{$category.url}>"><{$category.name}></a> + <a href="<{$category.url}>"><{$category.name}></a><{if $category.parenturl}> <a href="<{$category.parenturl}>"><em><{$smarty.const._MN_SONGLIST_GOTOPARENT}></em></a><{/if}> </div> <{if $category.subcategories}> <div class="sl_subcat"> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_list.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_list.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_list.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -3,7 +3,7 @@ <{foreach from=$categories item=row}> <tr> <{foreach from=$row item=category}> - <td><{includeq file="db:songlist_category_item.html" category=$category}></td> + <td width="<{$category.width}>%"><{includeq file="db:songlist_category_item.html" category=$category}></td> <{/foreach}> </tr> <{/foreach}> Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_index.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_index.html (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_index.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,4 @@ +<{includeq file="db:songlist_category_list.html"}> +<{includeq file="db:songlist_alpha_browse.html"}> +<{includeq file="db:songlist_search.html"}> +<{includeq file="db:songlist_songs_list.html"}> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,45 @@ +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_ALBUM}> +</div> +<div class="sl_mainsong"> + <{$song.album.name}> +</div> +<{if $song.album.image}> +<div class="sl_artsong"> + <img src='<{$song.album.image}>' width="95%" border="0" /> +</div> +<{/if}> +<div class="sl_subtitle"> + <{if count($song.album.artists) > 1}> + <{$smarty.const._MN_SONGLIST_ARTISTS}> + <{else}> + <{$smarty.const._MN_SONGLIST_ARTIST}> + <{/if}> +</div> +<div class="sl_mainsong"> + <{assign item=artists value=0}> + <{foreach from=$song.album.artists item=artist}> + <{assign item=artists value=$artists+1}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($song.album.artists)}>, <{/if}> + <{/foreach}> +</div> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_TITLE}> +</div> +<div class="sl_mainsong"> + <{$song.title}> +</div> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_SONGID}> +</div> +<div class="sl_mainsong"> + <{$song.songid}> +</div> +<{foreach from=$song.fields item=field}> +<div class="sl_subtitle"> + <{$field.name}> +</div> +<div class="sl_mainsong"> + <{$field.value}> +</div> +<{/foreach}> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html 2012-03-21 08:34:54 UTC (rev 9161) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,72 @@ +<{if $results}> +<div class="sl_pagenav"> + <{$pagenav}> +</div> +<h2><{$smarty.const._MN_SONGLIST_RESULTS}></h2> +<table class="sl_resulttable" cellpadding="3"> + <thead> + <tr> + <td><{$smarty.const._MN_SONGLIST_RESULTS_ARTIST}></td> + <{if not $wurlf_mobile}> + <{if $xoConfig.album}> + <td><{$smarty.const._MN_SONGLIST_RESULTS_ALBUM}></td> + <{/if}> + <{if $xoConfig.genre}> + <td><{$smarty.const._MN_SONGLIST_RESULTS_GENRE}></td> + <{/if}> + <{if $xoConfig.singer}> + <td><{$smarty.const._MN_SONGLIST_RESULTS_SINGER}></td> + <{/if}> + <{/if}> + <td><{$smarty.const._MN_SONGLIST_RESULTS_TITLE}></td> + <td><{$smarty.const._MN_SONGLIST_RESULTS_SONGID}></td> + <td><{$smarty.const._MN_SONGLIST_RESULTS_ACTIONS}></td> + </tr> + </thead> + <tbody> + <{foreach item=result from=$results}> + <tr class="<{cycle values="even,odd"}>"> + <td><a href="<{$result.url}>"><{$result.artist}></a></td> + <{if not $wurlf_mobile}> + <{if $xoConfig.album}> + <td><a href="<{$result.url}>"><{$result.album}></a></td> + <{/if}> + <{if $xoConfig.genre}> + <td><a href="<{$result.url}>"><{$result.genre}></a></td> + <{/if}> + <{if $xoConfig.singer}> + <td><a href="<{$result.url}>"><{$result.singer}></a></td> + <{/if}> + <{/if}> + <td><a href="<{$result.url}>"><{$result.title}></a></td> + <td><a href="<{$result.url}>"><{$result.songid}></a></td> + <td><form action="<{$php_self}>?op=vote&id=<{$result.id}>&uri=<{$uri}>" method='post'> + <select name='value' id='value'> + <option value="10"><{$smarty.const._MN_SONGLIST_10STARS}></option> + <option value="9"><{$smarty.const._MN_SONGLIST_9STARS}></option> + <option value="8"><{$smarty.const._MN_SONGLIST_8STARS}></option> + <option value="7"><{$smarty.const._MN_SONGLIST_7STARS}></option> + <option value="6"><{$smarty.const._MN_SONGLIST_6STARS}></option> + <option value="5"><{$smarty.const._MN_SONGLIST_5STARS}></option> + <option value="6"><{$smarty.const._MN_SONGLIST_6STARS}></option> + <option value="5"><{$smarty.const._MN_SONGLIST_5STARS}></option> + <option value="4"><{$smarty.const._MN_SONGLIST_4STARS}></option> + <option value="3"><{$smarty.const._MN_SONGLIST_3STARS}></option> + <option value="2"><{$smarty.const._MN_SONGLIST_2STARS}></option> + <option value="1"><{$smarty.const._MN_SONGLIST_1STARS}></option> + </select> + &nsbp;<input type="submit" name='vote' value="<{$smarty.const._MN_SONGLIST_VOTE}>"/> + </form> + </td> + </tr> + <{if not $wurlf_mobile}> + <{if $xoConfig.lyrics}> + <tr class="<{cycle values="even,odd"}>"> + <td colspan='7'><{$result.lyrics}></td> + </tr> + <{/if}> + <{/if}> + <{/foreach}> + </tbody> +</table> +<{/if}> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_search.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_search.html (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_search.html 2012-03-21 15:51:36 UTC (rev 9162) @@ -0,0 +1,47 @@ +<h2><{$smarty.const._MN_SONGLIST_SEARCH}></h2> +<div class="sl_search"> + <div class="sl_searchdiv"> + <form action="<{$php_self}>" method='get'> + <input type="hidden" name="op" value="search" /> + <table width="38%" border='0' cellpadding="5"> + <tr> + <td class="head"><{$smarty.const._MN_SONGLIST_FILTER_KEYWORD}>: </td> + <td class="foot"><input type="textbox" max="128" size="35" name="value" id="value" value="<{$smarty.get.keywords}>" /></td> + </tr> + <tr> + <td class="head"><{$smarty.const._MN_SONGLIST_FILTER_SEARCHBY}>: </td> + <td class="foot"> + <select id='fct' name='fct'> + <option value="title"<{if $smarty.get.fct eq 'title' or $smarty.get.fct eq ''}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_FILTER_TITLE}></option> + <option value="lyrics"<{if $smarty.get.fct eq 'lyrics'}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_FILTER_LYRICS}></option> + <option value="titleandlyrics"<{if $smarty.get.fct eq 'titleandlyrics'}> selected="selected"<{/if}>><{$smarty.const._MN_SONGLIST_FILTER_ARTISTANDLYRICS}></option> + </select> + </td> + </tr> + <tr> + <td class="head"><{$smarty.const._MN_SONGLIST_FILTER_CATEGORY}>: </td> + <td class="foot"><{$category_element}></td> + </tr> + <{if $xoConfig.genre}> + <tr> + <td class="head"><{$smarty.const._MN_SONGLIST_FILTER_GENRE}>: </td> + <td class="foot"><{$genre_element}></td> + </tr> + <{else}> + <input type="hidden" name="genre" value="0" /> + <{/if}> + <{if $xoConfig.singer}> + <tr> + <td class="head"><{$smarty.const._MN_SONGLIST_FILTER_SINGER}>: </td> + <td class="foot"><{$singer_element}></td> + </tr> + <{else}> + <input type="hidden" name="singer" value="0" /> + <{/if}> + <tr> + <td colspan="2" class="foot"><input type="submit" name="submit" value="<{$smarty.const._SUBMIT}>" /></td> + </tr> + </table> + </form> + </div> +</div> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-21 08:35:05
|
Revision: 9161 http://xoops.svn.sourceforge.net/xoops/?rev=9161&view=rev Author: txmodxoops Date: 2012-03-21 08:34:54 +0000 (Wed, 21 Mar 2012) Log Message: ----------- Updated Modified Paths: -------------- XoopsModules/xpdf/releases/1.01a/class/xoopslists.php Modified: XoopsModules/xpdf/releases/1.01a/class/xoopslists.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/class/xoopslists.php 2012-03-21 08:34:25 UTC (rev 9160) +++ XoopsModules/xpdf/releases/1.01a/class/xoopslists.php 2012-03-21 08:34:54 UTC (rev 9161) @@ -12,9 +12,9 @@ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package kernel - * @since 2.0.0 + * @since 2.0.1 * @version $Id: xoopslists.php 8066 2011-11-06 05:09:33Z beckmi $ - * @version $Id: xoopslists.php 9146 2012-03-16 12:09:53Z timgno $ + * @version $Id: xoopslists.php 9156 2012-03-19 13:48:28Z timgno $ */ @@ -634,6 +634,731 @@ } return $ret; } + + /** + * XoopsLists::getCurrencyList() + * + * @return + */ + function getCurrencyList() + { + $currency_list = array('AUD' => 'AUD', 'BRL' => 'BRL', 'CAD' => 'CAD', 'CHF' => 'CHF', + 'CZK' => 'CZK', 'DKK' => 'DKK', 'EUR' => 'EUR', 'GBP' => 'GBP', + 'HKD' => 'HKD', 'HUF' => 'HUF', 'ILS' => 'ILS', 'JPY' => 'JPY', + 'MXN' => 'MXN', 'NOK' => 'NOK', 'NZD' => 'NZD', 'PHP' => 'PHP', + 'PLN' => 'PLN', 'SEK' => 'SEK', 'SGD' => 'SGD', 'THB' => 'THB', + 'TWD' => 'TWD', 'USD' => 'USD'); + asort($currency_list); + reset($currency_list); + return $currency_list; + } + + /** + * XoopsLists::getMimetypesList() + * + * @return + */ + function getMimetypesList() + { + $mimetypes_list = array( + '3dm' => 'x-world/x-3dmf', + '3dmf' => 'x-world/x-3dmf', + 'a' => 'application/octet-stream', + 'aab' => 'application/x-authorware-bin', + 'aam' => 'application/x-authorware-map', + 'aas' => 'application/x-authorware-seg', + 'abc' => 'text/vnd.abc', + 'acgi' => 'text/html', + 'afl' => 'video/animaflex', + 'ai' => 'application/postscript', + 'aif' => 'audio/aiff', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/aiff', + 'aiff' => 'audio/x-aiff', + 'aim' => 'application/x-aim', + 'aip' => 'text/x-audiosoft-intra', + 'ani' => 'application/x-navi-animation', + 'aos' => 'application/x-nokia-9000-communicator-add-on-software', + 'aps' => 'application/mime', + 'arc' => 'application/octet-stream', + 'arj' => 'application/arj', + 'arj' => 'application/octet-stream', + 'art' => 'image/x-jg', + 'asf' => 'video/x-ms-asf', + 'asm' => 'text/x-asm', + 'asp' => 'text/asp', + 'asx' => 'application/x-mplayer2', + 'asx' => 'video/x-ms-asf', + 'asx' => 'video/x-ms-asf-plugin', + 'au' => 'audio/basic', + 'au' => 'audio/x-au', + 'avi' => 'application/x-troff-msvideo', + 'avi' => 'video/avi', + 'avi' => 'video/msvideo', + 'avi' => 'video/x-msvideo', + 'avs' => 'video/avs-video', + 'bcpio' => 'application/x-bcpio', + 'bin' => 'application/mac-binary', + 'bin' => 'application/macbinary', + 'bin' => 'application/octet-stream', + 'bin' => 'application/x-binary', + 'bin' => 'application/x-macbinary', + 'bm' => 'image/bmp', + 'bmp' => 'image/bmp', + 'bmp' => 'image/x-windows-bmp', + 'boo' => 'application/book', + 'book' => 'application/book', + 'boz' => 'application/x-bzip2', + 'bsh' => 'application/x-bsh', + 'bz' => 'application/x-bzip', + 'bz2' => 'application/x-bzip2', + 'c' => 'text/plain', + 'c' => 'text/x-c', + 'c++' => 'text/plain', + 'cat' => 'application/vnd.ms-pki.seccat', + 'cc' => 'text/plain', + 'cc' => 'text/x-c', + 'ccad' => 'application/clariscad', + 'cco' => 'application/x-cocoa', + 'cdf' => 'application/cdf', + 'cdf' => 'application/x-cdf', + 'cdf' => 'application/x-netcdf', + 'cer' => 'application/pkix-cert', + 'cer' => 'application/x-x509-ca-cert', + 'cha' => 'application/x-chat', + 'chat' => 'application/x-chat', + 'class' => 'application/java', + 'class' => 'application/java-byte-code', + 'class' => 'application/x-java-class', + 'com' => 'application/octet-stream', + 'com' => 'text/plain', + 'conf' => 'text/plain', + 'cpio' => 'application/x-cpio', + 'cpp' => 'text/x-c', + 'cpt' => 'application/mac-compactpro', + 'cpt' => 'application/x-compactpro', + 'cpt' => 'application/x-cpt', + 'crl' => 'application/pkcs-crl', + 'crl' => 'application/pkix-crl', + 'crt' => 'application/pkix-cert', + 'crt' => 'application/x-x509-ca-cert', + 'crt' => 'application/x-x509-user-cert', + 'csh' => 'application/x-csh', + 'csh' => 'text/x-script.csh', + 'css' => 'application/x-pointplus', + 'css' => 'text/css', + 'cxx' => 'text/plain', + 'dcr' => 'application/x-director', + 'deepv' => 'application/x-deepv', + 'def' => 'text/plain', + 'der' => 'application/x-x509-ca-cert', + 'dif' => 'video/x-dv', + 'dir' => 'application/x-director', + 'dl' => 'video/dl', + 'dl' => 'video/x-dl', + 'doc' => 'application/msword', + 'dot' => 'application/msword', + 'dp' => 'application/commonground', + 'drw' => 'application/drafting', + 'dump' => 'application/octet-stream', + 'dv' => 'video/x-dv', + 'dvi' => 'application/x-dvi', + 'dwf' => 'model/vnd.dwf', + 'dwg' => 'application/acad', + 'dwg' => 'image/vnd.dwg', + 'dwg' => 'image/x-dwg', + 'dxf' => 'application/dxf', + 'dxf' => 'image/vnd.dwg', + 'dxf' => 'image/x-dwg', + 'dxr' => 'application/x-director', + 'el' => 'text/x-script.elisp', + 'elc' => 'application/x-bytecode.elisp', + 'elc' => 'application/x-elc', + 'env' => 'application/x-envoy', + 'eps' => 'application/postscript', + 'es' => 'application/x-esrehber', + 'etx' => 'text/x-setext', + 'evy' => 'application/envoy', + 'evy' => 'application/x-envoy', + 'exe' => 'application/octet-stream', + 'f' => 'text/plain', + 'f' => 'text/x-fortran', + 'f77' => 'text/x-fortran', + 'f90' => 'text/plain', + 'f90' => 'text/x-fortran', + 'fdf' => 'application/vnd.fdf', + 'fif' => 'application/fractals', + 'fif' => 'image/fif', + 'fli' => 'video/fli', + 'fli' => 'video/x-fli', + 'flo' => 'image/florian', + 'flx' => 'text/vnd.fmi.flexstor', + 'fmf' => 'video/x-atomic3d-feature', + 'for' => 'text/plain', + 'for' => 'text/x-fortran', + 'fpx' => 'image/vnd.fpx', + 'fpx' => 'image/vnd.net-fpx', + 'frl' => 'application/freeloader', + 'funk' => 'audio/make', + 'g' => 'text/plain', + 'g3' => 'image/g3fax', + 'gif' => 'image/gif', + 'gl' => 'video/gl', + 'gl' => 'video/x-gl', + 'gsd' => 'audio/x-gsm', + 'gsm' => 'audio/x-gsm', + 'gsp' => 'application/x-gsp', + 'gss' => 'application/x-gss', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-compressed', + 'gz' => 'application/x-gzip', + 'gzip' => 'application/x-gzip', + 'gzip' => 'multipart/x-gzip', + 'h' => 'text/plain', + 'h' => 'text/x-h', + 'hdf' => 'application/x-hdf', + 'help' => 'application/x-helpfile', + 'hgl' => 'application/vnd.hp-hpgl', + 'hh' => 'text/plain', + 'hh' => 'text/x-h', + 'hlb' => 'text/x-script', + 'hlp' => 'application/hlp', + 'hlp' => 'application/x-helpfile', + 'hlp' => 'application/x-winhelp', + 'hpg' => 'application/vnd.hp-hpgl', + 'hpgl' => 'application/vnd.hp-hpgl', + 'hqx' => 'application/binhex', + 'hqx' => 'application/binhex4', + 'hqx' => 'application/mac-binhex', + 'hqx' => 'application/mac-binhex40', + 'hqx' => 'application/x-binhex40', + 'hqx' => 'application/x-mac-binhex40', + 'hta' => 'application/hta', + 'htc' => 'text/x-component', + 'htm' => 'text/html', + 'html' => 'text/html', + 'htmls' => 'text/html', + 'htt' => 'text/webviewhtml', + 'htx' => 'text/html', + 'ice' => 'x-conference/x-cooltalk', + 'ico' => 'image/x-icon', + 'idc' => 'text/plain', + 'ief' => 'image/ief', + 'iefs' => 'image/ief', + 'iges' => 'application/iges', + 'iges' => 'model/iges', + 'igs' => 'application/iges', + 'igs' => 'model/iges', + 'ima' => 'application/x-ima', + 'imap' => 'application/x-httpd-imap', + 'inf' => 'application/inf', + 'ins' => 'application/x-internett-signup', + 'ip' => 'application/x-ip2', + 'isu' => 'video/x-isvideo', + 'it' => 'audio/it', + 'iv' => 'application/x-inventor', + 'ivr' => 'i-world/i-vrml', + 'ivy' => 'application/x-livescreen', + 'jam' => 'audio/x-jam', + 'jav' => 'text/plain', + 'jav' => 'text/x-java-source', + 'java' => 'text/plain', + 'java' => 'text/x-java-source', + 'jcm' => 'application/x-java-commerce', + 'jfif' => 'image/jpeg', + 'jfif' => 'image/pjpeg', + 'jfif-tbnl' => 'image/jpeg', + 'jpe' => 'image/jpeg', + 'jpe' => 'image/pjpeg', + 'jpeg' => 'image/jpeg', + 'jpeg' => 'image/pjpeg', + 'jpg' => 'image/jpeg', + 'jpg' => 'image/pjpeg', + 'jps' => 'image/x-jps', + 'js' => 'application/x-javascript', + 'jut' => 'image/jutvision', + 'kar' => 'audio/midi', + 'kar' => 'music/x-karaoke', + 'ksh' => 'application/x-ksh', + 'ksh' => 'text/x-script.ksh', + 'la' => 'audio/nspaudio', + 'la' => 'audio/x-nspaudio', + 'lam' => 'audio/x-liveaudio', + 'latex' => 'application/x-latex', + 'lha' => 'application/lha', + 'lha' => 'application/octet-stream', + 'lha' => 'application/x-lha', + 'lhx' => 'application/octet-stream', + 'list' => 'text/plain', + 'lma' => 'audio/nspaudio', + 'lma' => 'audio/x-nspaudio', + 'log' => 'text/plain', + 'lsp' => 'application/x-lisp', + 'lsp' => 'text/x-script.lisp', + 'lst' => 'text/plain', + 'lsx' => 'text/x-la-asf', + 'ltx' => 'application/x-latex', + 'lzh' => 'application/octet-stream', + 'lzh' => 'application/x-lzh', + 'lzx' => 'application/lzx', + 'lzx' => 'application/octet-stream', + 'lzx' => 'application/x-lzx', + 'm' => 'text/plain', + 'm' => 'text/x-m', + 'm1v' => 'video/mpeg', + 'm2a' => 'audio/mpeg', + 'm2v' => 'video/mpeg', + 'm3u' => 'audio/x-mpequrl', + 'man' => 'application/x-troff-man', + 'map' => 'application/x-navimap', + 'mar' => 'text/plain', + 'mbd' => 'application/mbedlet', + 'mc$' => 'application/x-magic-cap-package-1.0', + 'mcd' => 'application/mcad', + 'mcd' => 'application/x-mathcad', + 'mcf' => 'image/vasa', + 'mcf' => 'text/mcf', + 'mcp' => 'application/netmc', + 'me' => 'application/x-troff-me', + 'mht' => 'message/rfc822', + 'mhtml' => 'message/rfc822', + 'mid' => 'application/x-midi', + 'mid' => 'audio/midi', + 'mid' => 'audio/x-mid', + 'mid' => 'audio/x-midi', + 'mid' => 'music/crescendo', + 'mid' => 'x-music/x-midi', + 'midi' => 'application/x-midi', + 'midi' => 'audio/midi', + 'midi' => 'audio/x-mid', + 'midi' => 'audio/x-midi', + 'midi' => 'music/crescendo', + 'midi' => 'x-music/x-midi', + 'mif' => 'application/x-frame', + 'mif' => 'application/x-mif', + 'mime' => 'message/rfc822', + 'mime' => 'www/mime', + 'mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile', + 'mjpg' => 'video/x-motion-jpeg', + 'mm' => 'application/base64', + 'mm' => 'application/x-meme', + 'mme' => 'application/base64', + 'mod' => 'audio/mod', + 'mod' => 'audio/x-mod', + 'moov' => 'video/quicktime', + 'mov' => 'video/quicktime', + 'movie' => 'video/x-sgi-movie', + 'mp2' => 'audio/mpeg', + 'mp2' => 'audio/x-mpeg', + 'mp2' => 'video/mpeg', + 'mp2' => 'video/x-mpeg', + 'mp2' => 'video/x-mpeq2a', + 'mp3' => 'audio/mpeg3', + 'mp3' => 'audio/x-mpeg-3', + 'mp3' => 'video/mpeg', + 'mp3' => 'video/x-mpeg', + 'mpa' => 'audio/mpeg', + 'mpa' => 'video/mpeg', + 'mpc' => 'application/x-project', + 'mpe' => 'video/mpeg', + 'mpeg' => 'video/mpeg', + 'mpg' => 'audio/mpeg', + 'mpg' => 'video/mpeg', + 'mpga' => 'audio/mpeg', + 'mpp' => 'application/vnd.ms-project', + 'mpt' => 'application/x-project', + 'mpv' => 'application/x-project', + 'mpx' => 'application/x-project', + 'mrc' => 'application/marc', + 'ms' => 'application/x-troff-ms', + 'mv' => 'video/x-sgi-movie', + 'my' => 'audio/make', + 'mzz' => 'application/x-vnd.audioexplosion.mzz', + 'nap' => 'image/naplps', + 'naplps' => 'image/naplps', + 'nc' => 'application/x-netcdf', + 'ncm' => 'application/vnd.nokia.configuration-message', + 'nif' => 'image/x-niff', + 'niff' => 'image/x-niff', + 'nix' => 'application/x-mix-transfer', + 'nsc' => 'application/x-conference', + 'nvd' => 'application/x-navidoc', + 'o' => 'application/octet-stream', + 'oda' => 'application/oda', + 'omc' => 'application/x-omc', + 'omcd' => 'application/x-omcdatamaker', + 'omcr' => 'application/x-omcregerator', + 'p' => 'text/x-pascal', + 'p10' => 'application/pkcs10', + 'p10' => 'application/x-pkcs10', + 'p12' => 'application/pkcs-12', + 'p12' => 'application/x-pkcs12', + 'p7a' => 'application/x-pkcs7-signature', + 'p7c' => 'application/pkcs7-mime', + 'p7c' => 'application/x-pkcs7-mime', + 'p7m' => 'application/pkcs7-mime', + 'p7m' => 'application/x-pkcs7-mime', + 'p7r' => 'application/x-pkcs7-certreqresp', + 'p7s' => 'application/pkcs7-signature', + 'part' => 'application/pro_eng', + 'pas' => 'text/pascal', + 'pbm' => 'image/x-portable-bitmap', + 'pcl' => 'application/vnd.hp-pcl', + 'pcl' => 'application/x-pcl', + 'pct' => 'image/x-pict', + 'pcx' => 'image/x-pcx', + 'pdb' => 'chemical/x-pdb', + 'pdf' => 'application/pdf', + 'pfunk' => 'audio/make', + 'pfunk' => 'audio/make.my.funk', + 'pgm' => 'image/x-portable-graymap', + 'pgm' => 'image/x-portable-greymap', + 'pic' => 'image/pict', + 'pict' => 'image/pict', + 'pkg' => 'application/x-newton-compatible-pkg', + 'pko' => 'application/vnd.ms-pki.pko', + 'pl' => 'text/plain', + 'pl' => 'text/x-script.perl', + 'plx' => 'application/x-pixclscript', + 'pm' => 'image/x-xpixmap', + 'pm' => 'text/x-script.perl-module', + 'pm4' => 'application/x-pagemaker', + 'pm5' => 'application/x-pagemaker', + 'png' => 'image/png', + 'pnm' => 'application/x-portable-anymap', + 'pnm' => 'image/x-portable-anymap', + 'pot' => 'application/mspowerpoint', + 'pot' => 'application/vnd.ms-powerpoint', + 'pov' => 'model/x-pov', + 'ppa' => 'application/vnd.ms-powerpoint', + 'ppm' => 'image/x-portable-pixmap', + 'pps' => 'application/mspowerpoint', + 'pps' => 'application/vnd.ms-powerpoint', + 'ppt' => 'application/mspowerpoint', + 'ppt' => 'application/powerpoint', + 'ppt' => 'application/vnd.ms-powerpoint', + 'ppt' => 'application/x-mspowerpoint', + 'ppz' => 'application/mspowerpoint', + 'pre' => 'application/x-freelance', + 'prt' => 'application/pro_eng', + 'ps' => 'application/postscript', + 'psd' => 'application/octet-stream', + 'pvu' => 'paleovu/x-pv', + 'pwz' => 'application/vnd.ms-powerpoint', + 'py' => 'text/x-script.phyton', + 'pyc' => 'applicaiton/x-bytecode.python', + 'qcp' => 'audio/vnd.qcelp', + 'qd3' => 'x-world/x-3dmf', + 'qd3d' => 'x-world/x-3dmf', + 'qif' => 'image/x-quicktime', + 'qt' => 'video/quicktime', + 'qtc' => 'video/x-qtc', + 'qti' => 'image/x-quicktime', + 'qtif' => 'image/x-quicktime', + 'ra' => 'audio/x-pn-realaudio', + 'ra' => 'audio/x-pn-realaudio-plugin', + 'ra' => 'audio/x-realaudio', + 'ram' => 'audio/x-pn-realaudio', + 'ras' => 'application/x-cmu-raster', + 'ras' => 'image/cmu-raster', + 'ras' => 'image/x-cmu-raster', + 'rast' => 'image/cmu-raster', + 'rexx' => 'text/x-script.rexx', + 'rf' => 'image/vnd.rn-realflash', + 'rgb' => 'image/x-rgb', + 'rm' => 'application/vnd.rn-realmedia', + 'rm' => 'audio/x-pn-realaudio', + 'rmi' => 'audio/mid', + 'rmm' => 'audio/x-pn-realaudio', + 'rmp' => 'audio/x-pn-realaudio', + 'rmp' => 'audio/x-pn-realaudio-plugin', + 'rng' => 'application/ringing-tones', + 'rng' => 'application/vnd.nokia.ringing-tone', + 'rnx' => 'application/vnd.rn-realplayer', + 'roff' => 'application/x-troff', + 'rp' => 'image/vnd.rn-realpix', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'rt' => 'text/richtext', + 'rt' => 'text/vnd.rn-realtext', + 'rtf' => 'application/rtf', + 'rtf' => 'application/x-rtf', + 'rtf' => 'text/richtext', + 'rtx' => 'application/rtf', + 'rtx' => 'text/richtext', + 'rv' => 'video/vnd.rn-realvideo', + 's' => 'text/x-asm', + 's3m' => 'audio/s3m', + 'saveme' => 'application/octet-stream', + 'sbk' => 'application/x-tbook', + 'scm' => 'application/x-lotusscreencam', + 'scm' => 'text/x-script.guile', + 'scm' => 'text/x-script.scheme', + 'scm' => 'video/x-scm', + 'sdml' => 'text/plain', + 'sdp' => 'application/sdp', + 'sdp' => 'application/x-sdp', + 'sdr' => 'application/sounder', + 'sea' => 'application/sea', + 'sea' => 'application/x-sea', + 'set' => 'application/set', + 'sgm' => 'text/sgml', + 'sgm' => 'text/x-sgml', + 'sgml' => 'text/sgml', + 'sgml' => 'text/x-sgml', + 'sh' => 'application/x-bsh', + 'sh' => 'application/x-sh', + 'sh' => 'application/x-shar', + 'sh' => 'text/x-script.sh', + 'shar' => 'application/x-bsh', + 'shar' => 'application/x-shar', + 'shtml' => 'text/html', + 'shtml' => 'text/x-server-parsed-html', + 'sid' => 'audio/x-psid', + 'sit' => 'application/x-sit', + 'sit' => 'application/x-stuffit', + 'skd' => 'application/x-koan', + 'skm' => 'application/x-koan', + 'skp' => 'application/x-koan', + 'skt' => 'application/x-koan', + 'sl' => 'application/x-seelogo', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'snd' => 'audio/basic', + 'snd' => 'audio/x-adpcm', + 'sol' => 'application/solids', + 'spc' => 'application/x-pkcs7-certificates', + 'spc' => 'text/x-speech', + 'spl' => 'application/futuresplash', + 'spr' => 'application/x-sprite', + 'sprite' => 'application/x-sprite', + 'src' => 'application/x-wais-source', + 'ssi' => 'text/x-server-parsed-html', + 'ssm' => 'application/streamingmedia', + 'sst' => 'application/vnd.ms-pki.certstore', + 'step' => 'application/step', + 'stl' => 'application/sla', + 'stl' => 'application/vnd.ms-pki.stl', + 'stl' => 'application/x-navistyle', + 'stp' => 'application/step', + 'sv4cpio'=> 'application/x-sv4cpio', + 'sv4crc' => 'application/x-sv4crc', + 'svf' => 'image/vnd.dwg', + 'svf' => 'image/x-dwg', + 'svr' => 'application/x-world', + 'svr' => 'x-world/x-svr', + 'swf' => 'application/x-shockwave-flash', + 't' => 'application/x-troff', + 'talk' => 'text/x-speech', + 'tar' => 'application/x-tar', + 'tbk' => 'application/toolbook', + 'tbk' => 'application/x-tbook', + 'tcl' => 'application/x-tcl', + 'tcl' => 'text/x-script.tcl', + 'tcsh' => 'text/x-script.tcsh', + 'tex' => 'application/x-tex', + 'texi' => 'application/x-texinfo', + 'texinfo'=> 'application/x-texinfo', + 'text' => 'application/plain', + 'text' => 'text/plain', + 'tgz' => 'application/gnutar', + 'tgz' => 'application/x-compressed', + 'tif' => 'image/tiff', + 'tif' => 'image/x-tiff', + 'tiff' => 'image/tiff', + 'tiff' => 'image/x-tiff', + 'tr' => 'application/x-troff', + 'tsi' => 'audio/tsp-audio', + 'tsp' => 'application/dsptype', + 'tsp' => 'audio/tsplayer', + 'tsv' => 'text/tab-separated-values', + 'turbot' => 'image/florian', + 'txt' => 'text/plain', + 'uil' => 'text/x-uil', + 'uni' => 'text/uri-list', + 'unis' => 'text/uri-list', + 'unv' => 'application/i-deas', + 'uri' => 'text/uri-list', + 'uris' => 'text/uri-list', + 'ustar' => 'application/x-ustar', + 'ustar' => 'multipart/x-ustar', + 'uu' => 'application/octet-stream', + 'uu' => 'text/x-uuencode', + 'uue' => 'text/x-uuencode', + 'vcd' => 'application/x-cdlink', + 'vcs' => 'text/x-vcalendar', + 'vda' => 'application/vda', + 'vdo' => 'video/vdo', + 'vew' => 'application/groupwise', + 'viv' => 'video/vivo', + 'viv' => 'video/vnd.vivo', + 'vivo' => 'video/vivo', + 'vivo' => 'video/vnd.vivo', + 'vmd' => 'application/vocaltec-media-desc', + 'vmf' => 'application/vocaltec-media-file', + 'voc' => 'audio/voc', + 'voc' => 'audio/x-voc', + 'vos' => 'video/vosaic', + 'vox' => 'audio/voxware', + 'vqe' => 'audio/x-twinvq-plugin', + 'vqf' => 'audio/x-twinvq', + 'vql' => 'audio/x-twinvq-plugin', + 'vrml' => 'application/x-vrml', + 'vrml' => 'model/vrml', + 'vrml' => 'x-world/x-vrml', + 'vrt' => 'x-world/x-vrt', + 'vsd' => 'application/x-visio', + 'vst' => 'application/x-visio', + 'vsw' => 'application/x-visio', + 'w60' => 'application/wordperfect6.0', + 'w61' => 'application/wordperfect6.1', + 'w6w' => 'application/msword', + 'wav' => 'audio/wav', + 'wav' => 'audio/x-wav', + 'wb1' => 'application/x-qpro', + 'wbmp' => 'image/vnd.wap.wbmp', + 'web' => 'application/vnd.xara', + 'wiz' => 'application/msword', + 'wk1' => 'application/x-123', + 'wmf' => 'windows/metafile', + 'wml' => 'text/vnd.wap.wml', + 'wmlc' => 'application/vnd.wap.wmlc', + 'wmls' => 'text/vnd.wap.wmlscript', + 'wmlsc' => 'application/vnd.wap.wmlscriptc', + 'word' => 'application/msword', + 'wp' => 'application/wordperfect', + 'wp5' => 'application/wordperfect', + 'wp5' => 'application/wordperfect6.0', + 'wp6' => 'application/wordperfect', + 'wpd' => 'application/wordperfect', + 'wpd' => 'application/x-wpwin', + 'wq1' => 'application/x-lotus', + 'wri' => 'application/mswrite', + 'wri' => 'application/x-wri', + 'wrl' => 'application/x-world', + 'wrl' => 'model/vrml', + 'wrl' => 'x-world/x-vrml', + 'wrz' => 'model/vrml', + 'wrz' => 'x-world/x-vrml', + 'wsc' => 'text/scriplet', + 'wsrc' => 'application/x-wais-source', + 'wtk' => 'application/x-wintalk', + 'xbm' => 'image/x-xbitmap', + 'xbm' => 'image/x-xbm', + 'xbm' => 'image/xbm', + 'xdr' => 'video/x-amt-demorun', + 'xgz' => 'xgl/drawing', + 'xif' => 'image/vnd.xiff', + 'xl' => 'application/excel', + 'xla' => 'application/excel', + 'xla' => 'application/x-excel', + 'xla' => 'application/x-msexcel', + 'xlb' => 'application/excel', + 'xlb' => 'application/vnd.ms-excel', + 'xlb' => 'application/x-excel', + 'xlc' => 'application/excel', + 'xlc' => 'application/vnd.ms-excel', + 'xlc' => 'application/x-excel', + 'xld' => 'application/excel', + 'xld' => 'application/x-excel', + 'xlk' => 'application/excel', + 'xlk' => 'application/x-excel', + 'xll' => 'application/excel', + 'xll' => 'application/vnd.ms-excel', + 'xll' => 'application/x-excel', + 'xlm' => 'application/excel', + 'xlm' => 'application/vnd.ms-excel', + 'xlm' => 'application/x-excel', + 'xls' => 'application/excel', + 'xls' => 'application/vnd.ms-excel', + 'xls' => 'application/x-excel', + 'xls' => 'application/x-msexcel', + 'xlt' => 'application/excel', + 'xlt' => 'application/x-excel', + 'xlv' => 'application/excel', + 'xlv' => 'application/x-excel', + 'xlw' => 'application/excel', + 'xlw' => 'application/vnd.ms-excel', + 'xlw' => 'application/x-excel', + 'xlw' => 'application/x-msexcel', + 'xm' => 'audio/xm', + 'xml' => 'application/xml', + 'xml' => 'text/xml', + 'xmz' => 'xgl/movie', + 'xpix' => 'application/x-vnd.ls-xpix', + 'xpm' => 'image/x-xpixmap', + 'xpm' => 'image/xpm', + 'x-png' => 'image/png', + 'xsr' => 'video/x-amt-showrun', + 'xwd' => 'image/x-xwd', + 'xwd' => 'image/x-xwindowdump', + 'xyz' => 'chemical/x-pdb', + 'z' => 'application/x-compress', + 'z' => 'application/x-compressed', + 'zip' => 'application/x-compressed', + 'zip' => 'application/x-zip-compressed', + 'zip' => 'application/zip', + 'zip' => 'multipart/x-zip', + 'zoo' => 'application/octet-stream', + 'zsh' => 'text/x-script.zsh', + 'txt' => 'text/plain', + 'htm' => 'text/html', + 'html' => 'text/html', + 'php' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-phps', + 'css' => 'text/css', + 'js' => 'application/javascript', + 'json' => 'application/json', + 'xml' => 'application/xml', + 'swf' => 'application/x-shockwave-flash', + 'flv' => 'video/x-flv', + 'asc' => 'text/plain', + 'atom' => 'application/atom+xml', + 'bcpio' => 'application/x-bcpio', + 'png' => 'image/png', + 'jpe' => 'image/jpeg', + 'jpeg' => 'image/jpeg', + 'jpg' => 'image/jpeg', + 'gif' => 'image/gif', + 'bmp' => 'image/bmp', + 'ico' => 'image/vnd.microsoft.icon', + 'tiff' => 'image/tiff', + 'tif' => 'image/tiff', + 'svg' => 'image/svg+xml', + 'svgz' => 'image/svg+xml', + 'zip' => 'application/zip', + 'rar' => 'application/x-rar-compressed', + 'exe' => 'application/x-msdownload', + 'msi' => 'application/x-msdownload', + 'cab' => 'application/vnd.ms-cab-compressed', + 'mp3' => 'audio/mpeg', + 'qt' => 'video/quicktime', + 'mov' => 'video/quicktime', + 'au' => 'audio/basic', + 'avi' => 'video/x-msvideo', + 'pdf' => 'application/pdf', + 'psd' => 'image/vnd.adobe.photoshop', + 'ai' => 'application/postscript', + 'eps' => 'application/postscript', + 'ps' => 'application/postscript', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'doc' => 'application/msword', + 'rtf' => 'application/rtf', + 'xls' => 'application/vnd.ms-excel', + 'ppt' => 'application/vnd.ms-powerpoint', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'swf' => 'application/x-shockwave-flash', + 'swf' => 'application/x-shockwave-flash2-preview', + 'swf' => 'application/futuresplash', + 'swf' => 'image/vnd.rn-realflash' ); + asort($mimetypes_list); + reset($mimetypes_list); + return $mimetypes_list; + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-21 08:34:34
|
Revision: 9160 http://xoops.svn.sourceforge.net/xoops/?rev=9160&view=rev Author: txmodxoops Date: 2012-03-21 08:34:25 +0000 (Wed, 21 Mar 2012) Log Message: ----------- Updated Modified Paths: -------------- XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql 2012-03-20 21:38:03 UTC (rev 9159) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql 2012-03-21 08:34:25 UTC (rev 9160) @@ -40,10 +40,10 @@ `doc_filename` varchar (50) NOT NULL default '', `doc_title` varchar (255) NOT NULL default '', `doc_description` text NOT NULL , -`doc_image` varchar (30) NOT NULL default '', +`doc_image` varchar (50) NOT NULL default '', `doc_subject` varchar (255) NOT NULL default '', +`doc_font` varchar (50) NOT NULL default '', `doc_keywords` varchar (255) NOT NULL default '', -`doc_font` int (10) NOT NULL default '0', `doc_submitter` int (10) NOT NULL default '0', `doc_created` int (10) NOT NULL default '0', `doc_published` int (10) NOT NULL default '0', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-20 21:38:14
|
Revision: 9159 http://xoops.svn.sourceforge.net/xoops/?rev=9159&view=rev Author: txmodxoops Date: 2012-03-20 21:38:03 +0000 (Tue, 20 Mar 2012) Log Message: ----------- Module Themes Creator v1.01 alpha Initial structure Alpha 1 Only for testing Added Paths: ----------- XoopsModules/xThCreator/ XoopsModules/xThCreator/branches/ XoopsModules/xThCreator/releases/ XoopsModules/xThCreator/releases/1.0/ XoopsModules/xThCreator/releases/1.0/xThCreator/ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/about.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_footer.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_header.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/building.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/includes.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/languages.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/layout.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/menu.php XoopsModules/xThCreator/releases/1.0/xThCreator/admin/themes.php XoopsModules/xThCreator/releases/1.0/xThCreator/blocks/ XoopsModules/xThCreator/releases/1.0/xThCreator/blocks/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/class/ XoopsModules/xThCreator/releases/1.0/xThCreator/class/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/class/xthcreator_defaultff.php XoopsModules/xThCreator/releases/1.0/xThCreator/class/xthcreator_languages.php XoopsModules/xThCreator/releases/1.0/xThCreator/class/xthcreator_layout.php XoopsModules/xThCreator/releases/1.0/xThCreator/class/xthcreator_themes.php XoopsModules/xThCreator/releases/1.0/xThCreator/css/ XoopsModules/xThCreator/releases/1.0/xThCreator/css/admin.css XoopsModules/xThCreator/releases/1.0/xThCreator/css/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/css/style.css XoopsModules/xThCreator/releases/1.0/xThCreator/docs/ XoopsModules/xThCreator/releases/1.0/xThCreator/docs/changelog.txt XoopsModules/xThCreator/releases/1.0/xThCreator/docs/credits.txt XoopsModules/xThCreator/releases/1.0/xThCreator/docs/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/docs/install.txt XoopsModules/xThCreator/releases/1.0/xThCreator/docs/lang_diff.txt XoopsModules/xThCreator/releases/1.0/xThCreator/docs/licence.txt XoopsModules/xThCreator/releases/1.0/xThCreator/docs/readme.txt XoopsModules/xThCreator/releases/1.0/xThCreator/header.php XoopsModules/xThCreator/releases/1.0/xThCreator/images/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/16/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/16/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/addlanguage.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/addlayout.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/addtheme.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/dashboard.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/32/thbuild.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/bookmarks/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/bookmarks/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/deco/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/deco/arrow.gif XoopsModules/xThCreator/releases/1.0/xThCreator/images/deco/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/deco/off.gif XoopsModules/xThCreator/releases/1.0/xThCreator/images/deco/on.gif XoopsModules/xThCreator/releases/1.0/xThCreator/images/icons/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/icons/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/icons/off.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/icons/on.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/menu/ XoopsModules/xThCreator/releases/1.0/xThCreator/images/menu/bg.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/menu/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/images/menu/left_both.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/menu/right_both.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/txmod_logo.png XoopsModules/xThCreator/releases/1.0/xThCreator/images/xthcreator_slogo.png XoopsModules/xThCreator/releases/1.0/xThCreator/include/ XoopsModules/xThCreator/releases/1.0/xThCreator/include/configs.php XoopsModules/xThCreator/releases/1.0/xThCreator/include/functions.php XoopsModules/xThCreator/releases/1.0/xThCreator/include/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/include/install.php XoopsModules/xThCreator/releases/1.0/xThCreator/index.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/ XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/ XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/admin.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/blocks.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/help/ XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/help/help.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/help/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/main.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/english/modinfo.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/ XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/admin.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/blocks.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/help/ XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/help/help.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/help/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/main.php XoopsModules/xThCreator/releases/1.0/xThCreator/language/italian/modinfo.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/css.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/defolders.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/docs.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/images.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/languages.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/layout.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/css/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/css/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/css/layout.css XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/css/print.css XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/css/style.css XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/css/styles-ie7.css XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/14_layer_novisible.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/edit-block.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/feed1.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/feed2.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/friend.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/pagact.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/paginact.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/pagneutral.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/pdf.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/action/printable.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/favicon.ico XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/favicon.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/BR.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/CN.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/DE.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/ES.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/FR.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/IT.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/JP.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/PL.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/PR.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/RU.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/UK.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/US.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/flags/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/avatar_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/banners_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/blocks_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/comment_accept.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/comments_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/configure_shortcuts.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/edituser_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/filemanager_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/find.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/finduser_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/groups_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/home.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/images_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/logout.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/mail.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/mail_warning.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/mailuser_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/maintenance_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/modules_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/prefs_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/process.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/smilies_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/tpls_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/up.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/user.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/user_edit.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/userrank_small.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/footer/xoops.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/Ym.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/cog_go.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/edit_user.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/email.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/email_go.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/email_open.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/exit.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/find.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/identity.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/knotes.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/messagebox16x16.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/msn.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/noavatar.jpg XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/note_edit.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/organizer.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/password.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/profile.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/shutdown.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/vcard_edit.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/icons/users/web.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/await.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/dot.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/dot_blue.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/BR.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/CN.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/DE.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/ES.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/FR.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/IT.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/JP.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/PR.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/RU.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/UK.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/US.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/flags/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/magnifier.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/table-caption.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/table-caption_blue.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/throbber.gif XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/translate.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/img/wizard_bg.png XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/english/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/english/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/english/main.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/english/script.js XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/english/style.css XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/italian/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/italian/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/italian/main.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/italian/script.js XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/italian/style.css XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/leggimi.txt XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/language/readme.txt XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/modules/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/modules/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/modules/system/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/modules/system/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/modules/system/system_redirect.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/modules/system/system_siteclosed.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/theme.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/ XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockcenter.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockcenter_c.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockcenter_l.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockcenter_r.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockleft.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockright.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/blockszone.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/centerblocks.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/footer.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/footerstatic.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/globalnav.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/header.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/metas.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/scripts.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/tpl/userbar.html XoopsModules/xThCreator/releases/1.0/xThCreator/library/resource/xo-info.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/templates.php XoopsModules/xThCreator/releases/1.0/xThCreator/library/themes.php XoopsModules/xThCreator/releases/1.0/xThCreator/sql/ XoopsModules/xThCreator/releases/1.0/xThCreator/sql/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/sql/mysql.sql XoopsModules/xThCreator/releases/1.0/xThCreator/templates/ XoopsModules/xThCreator/releases/1.0/xThCreator/templates/admin/ XoopsModules/xThCreator/releases/1.0/xThCreator/templates/admin/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/admin/xThCreator_admin_about.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/admin/xThCreator_admin_help.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/blocks/ XoopsModules/xThCreator/releases/1.0/xThCreator/templates/blocks/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/index.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/xthcreator_footer.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/xthcreator_header.html XoopsModules/xThCreator/releases/1.0/xThCreator/templates/xthcreator_index.html XoopsModules/xThCreator/releases/1.0/xThCreator/themes/ XoopsModules/xThCreator/releases/1.0/xThCreator/xoops_version.php XoopsModules/xThCreator/trunk/ XoopsModules/xThCreator/trunk/xThCreator/ Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/about.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/about.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/about.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_footer.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_footer.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_footer.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,45 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : 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_XTHCREATOR_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb/' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_header.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_header.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/admin_header.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : 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'; +include_once 'includes.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_ERROR_NOFRAMEWORKS); + 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'); + +$themesHandler =& xoops_getModuleHandler('xthcreator_themes', $dirname); +$layoutHandler =& xoops_getModuleHandler('xthcreator_layout', $dirname); +$languagesHandler =& xoops_getModuleHandler('xthcreator_languages', $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); +//xoops_cp_header(); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/building.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/building.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/building.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH .'/modules/xThCreator/library/defolders.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('building.php'); +$op = xthcreator_CleanVars($_REQUEST, 'op', 'default', 'string'); +switch ($op) { + case "build": + $thms =& $themesHandler->get($_REQUEST['theme_name']); + $thms_name = $thms->getVar('theme_name'); + //Debut + echo '<table width="100%" cellspacing="1" style="background: #fff;"> + <tr class="marg2"> + <td class="ui-corner-all">'; + /************************************************/ + /*Structure*/ + /************************************************/ + //Creation of default folders & files + defaultff($thms_name); + /////////////////////////////////////////////////////////////////////// + echo '</td></tr></table>'; + break; + + case "default": + default: + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $action = $_SERVER['REQUEST_URI']; + + $form = new XoopsThemeForm(_AM_XTHCREATOR_BUILD_DEFAULT, 'form_creation', $action, 'post', true); + + $thms_select = new XoopsFormSelect(_AM_XTHCREATOR_BUILD_THEMES, 'theme_name', 'theme_name', 1); + $thms_select->addOptionArray($themesHandler->getList()); + $form->addElement($thms_select, true); + + $form->addElement(new XoopsFormHidden('op', 'build')); + $form->addElement(new XoopsFormButton('', 'submit', _AM_XTHCREATOR_BUILD, 'submit')); + $form->display(); + break; +} +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/includes.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/includes.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/includes.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,37 @@ +<?php +/** + * **************************************************************************** + * - Developers TEAM Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * 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. + * ------------------------------------------------------------------------ + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include '../../../include/cp_header.php'; +include_once("../include/functions.php"); + +$modPath = XOOPS_ROOT_PATH.'/modules/xThCreator'; +$cPath = $modPath.'/library'; + +include_once $cPath.'/css.php'; +include_once $cPath.'/defolders.php'; +include_once $cPath.'/docs.php'; +include_once $cPath.'/images.php'; +include_once $cPath.'/languages.php'; +include_once $cPath.'/layout.php'; +include_once $cPath.'/templates.php'; +include_once $cPath.'/themes.php'; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.html =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.html (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.html 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/index.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,90 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + //count "total" + $count_themes = $themesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("themes_online", 1)); + $themes_online = $themesHandler->getCount($criteria); + $criteria->add(new Criteria("themes_pending", 1)); + $themes_pending = $themesHandler->getCount($criteria); + + //count "total" + $count_layout = $layoutHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("layout_online", 1)); + $layout_online = $layoutHandler->getCount($criteria); + $criteria->add(new Criteria("layout_pending", 1)); + $layout_pending = $layoutHandler->getCount($criteria); + + //count "total" + $count_languages = $languagesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("languages_online", 1)); + $languages_online = $languagesHandler->getCount($criteria); + $criteria->add(new Criteria("languages_pending", 1)); + $languages_pending = $languagesHandler->getCount($criteria); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_THEMES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES, $count_themes); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_ONLINE, $themes_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_PENDING, $themes_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LAYOUT); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT, $count_layout); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_ONLINE, $layout_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_PENDING, $layout_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LANGUAGES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES, $count_languages); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_ONLINE, $languages_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_PENDING, $languages_pending); + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/languages.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/languages.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/languages.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,206 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +global $pathImageIcon; +$op = xthcreator_CleanVars($_REQUEST, 'op', 'list', 'string'); +$languagesAdmin = new ModuleAdmin(); +switch ($op) { + case "list": + default: + echo $languagesAdmin->addNavigation('languages.php'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + echo $languagesAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("lang_id ASC, lang_name"); + $criteria->setOrder("ASC"); + $numrows = $languagesHandler->getCount(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $document_tri = 1; + $document_order = 1; + if (isset($_REQUEST['document_order'])) { + if ($_REQUEST['document_order']==1){ + $criteria->setOrder('ASC'); + $document_order=1; + } + if ($_REQUEST['document_order']==2){ + $criteria->setOrder('DESC'); + $document_order=2; + } + } else { + $criteria->setOrder('DESC'); + } + $languages_arr = $languagesHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=default&limit=' . $limit . '&document_tri=' . $document_tri. '&document_order=' . $document_order); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + + //Table view + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align=\"center\" width=\"10%\">"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + $class = "odd"; + foreach (array_keys($languages_arr) as $i) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + + $themes =& $themesHandler->get($languages_arr[$i]->getVar("lang_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align=\"center\">".$title_themes."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_name")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_file")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_define")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_descript")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($languages_arr[$i]->getVar("languages_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($languages_arr[$i]->getVar("languages_date_created"),"S")."</td>"; + + echo "<td align=\"center\" width=\"10%\"> + <a href=\"languages.php?op=edit_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a> + <a href=\"languages.php?op=delete_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + + $obj =& $languagesHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_language": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["lang_id"])) { + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + } else { + $obj =& $languagesHandler->create(); + } + //Form lang_th_name + $obj->setVar("lang_th_name", $_REQUEST["lang_th_name"]); + //Form lang_file + $obj->setVar("lang_name", $_REQUEST["lang_name"]); + //Form lang_file + $obj->setVar("lang_file", $_REQUEST["lang_file"]); + //Form lang_define + $obj->setVar("lang_define", $_REQUEST["lang_define"]); + //Form lang_descript + $obj->setVar("lang_descript", $_REQUEST["lang_descript"]); + + if ($languagesHandler->insert($obj)) { + redirect_header("languages.php?op=list", 2, _AM_XTHCREATOR_FORMOK); + } + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + $obj = $languagesHandler->get($_REQUEST["lang_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_language": + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($languagesHandler->delete($obj)) { + redirect_header("languages.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "lang_id" => $_REQUEST["lang_id"], "op" => "delete_language"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("lang_name"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/layout.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/layout.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/layout.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,169 @@ +<?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) + * **************************************************************************** + * XTHCREATOR - 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 xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +include_once "../include/functions.php"; +xoops_cp_header(); +global $xoopsModuleConfig, $pathImageIcon; +$op = xThCreator_CleanVars($_REQUEST, 'op', 'list_layout', 'string'); +$layoutAdmin = new ModuleAdmin(); +switch ($op) +{ + case "list_layout": + default: + echo $layoutAdmin->addNavigation('layout.php'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + echo $layoutAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("layout_id"); + $criteria->setOrder("ASC"); + $numrows = $layoutHandler->getCount(); + $layout_arr = $layoutHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($layout_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_name")."</td>"; + + $themes =& $themesHandler->get($layout_arr[$i]->getVar("layout_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align='center'>".$title_themes."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_description")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_weight")."</td>"; + + echo "<td align='center' width='10%'> + <a href='layout.php?op=edit_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='layout.php?op=delete_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + echo $layoutAdmin->renderButton(); + + $obj =& $layoutHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_layout": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["layout_id"])) { + $obj =& $layoutHandler->get($_REQUEST["layout_id"]); + } else { + $obj =& $layoutHandler->create(); + } + //Form layout_name + $obj->setVar("layout_name", $_REQUEST["layout_name"]); + //Form layout_th_name + $obj->setVar("layout_th_name", $_REQUEST["layout_th_name"]); + //Form layout_description + $obj->setVar("layout_description", $_REQUEST["layout_description"]); + //Form layout_weight + $obj->setVar("layout_weight", $_REQUEST["layout_weight"]); + + if ($layoutHandler->insert($obj)) { + redirect_header("layout.php?op=list_layout", 2, _AM_XTHCREATOR_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + echo $layoutAdmin->renderButton(); + $obj = $layoutHandler->get($_REQUEST["layout_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_layout": + $obj =& $layoutHandler->get($_REQUEST["layout_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($layoutHandler->delete($obj)) { + redirect_header("layout.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "layout_id" => $_REQUEST["layout_id"], "op" => "delete_layout"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("layout"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.0/xThCreator/admin/menu.php =================================================================== --- XoopsModules/xThCreator/releases/1.0/xThCreator/admin/menu.php (rev 0) +++ XoopsModules/xThCreator/releases/1.0/xThCreator/admin/menu.php 2012-03-20 21:38:03 UTC (rev 9159) @@ -0,0 +1,57 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; + +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = "images/32/dashboard.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU2; +$adminmenu[$i]["link"] = "admin/themes.php"; +$adminmenu[$i]["icon"] = "images/32/addtheme.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XTHCREATOR_ADMENU3; +$adminmenu[$i]["... [truncated message content] |
From: <wis...@us...> - 2012-03-20 21:04:04
|
Revision: 9158 http://xoops.svn.sourceforge.net/xoops/?rev=9158&view=rev Author: wishcraft Date: 2012-03-20 21:03:55 +0000 (Tue, 20 Mar 2012) Log Message: ----------- Karioki Songlist Manifest (Backup Only - Incomplete) - Still to do, templates, user interface, language, bug testing - Prealpha 1.02 Added Paths: ----------- XoopsModules/songlist/ XoopsModules/songlist/trunk/ XoopsModules/songlist/trunk/docs/ XoopsModules/songlist/trunk/htdocs/ XoopsModules/songlist/trunk/htdocs/modules/ XoopsModules/songlist/trunk/htdocs/modules/songlist/ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/category.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/dashboard.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/export.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field_permissions.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field_visibility.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/menu.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/permissions.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/requests.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/utf8map.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/votes.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/ XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_album.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_artist.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_genres.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_song.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/extras.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/field.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/utf8map.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/visibility.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/votes.php XoopsModules/songlist/trunk/htdocs/modules/songlist/css/ XoopsModules/songlist/trunk/htdocs/modules/songlist/css/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/ XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/SonglistRequirement.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/changelog.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/credits.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/install.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/lang_diff.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/licence.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/readme.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/images/ XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/ XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/ XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/accept.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/cancel.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.albums.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.artists.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.category.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.field.permissions.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.fields.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.genre.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.import.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.permissions.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.requests.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.songs.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.utf8map.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/songlist.votes.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/ XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.albums.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.artists.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.category.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.field.permissions.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.fields.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.genre.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.import.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.permissions.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.requests.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.songs.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.utf8map.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/32/songlist.votes.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/images/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/images/left_both.gif XoopsModules/songlist/trunk/htdocs/modules/songlist/images/no.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/right_both.gif XoopsModules/songlist/trunk/htdocs/modules/songlist/images/songlist_slogo.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/xoopsxf_slogo.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/yes.png XoopsModules/songlist/trunk/htdocs/modules/songlist/include/ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/JSON.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectcategory.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsinger.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlists.form.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlists.object.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/uploader.php XoopsModules/songlist/trunk/htdocs/modules/songlist/js/ XoopsModules/songlist/trunk/htdocs/modules/songlist/js/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/language/ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/blocks.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/enum.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/ XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.htm XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_alpha_browse.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_albums_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_albums_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_artists_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_artists_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_category_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_category_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_fieldlist.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_genre_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_genre_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_requests_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_requests_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_visibility.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_votes_edit.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_votes_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_results.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_search.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_rank.html XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/trunk/htdocs/modules/tag/ XoopsModules/songlist/trunk/htdocs/modules/tag/plugin/ XoopsModules/songlist/trunk/htdocs/modules/tag/plugin/songlist.php Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php 2012-03-20 21:03:55 UTC (rev 9158) @@ -0,0 +1,77 @@ +<?php +// $Id: about.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.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. // +// // +// 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: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + $aboutAdmin = new ModuleAdmin(); + $paypalitemno='SONGLIST'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_SONGLIST_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xforumModule']->getVar('dirname')), strtoupper($GLOBALS['xforumModule']->getVar('dirname')). ' '.$GLOBALS['xforumModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + + xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/albums.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/albums.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/albums.php 2012-03-20 21:03:55 UTC (rev 9158) @@ -0,0 +1,183 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "albums": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basetitle(__FILE__)); + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + + $criteria = $albums_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $albums_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($albums_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $albums_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $albumss = $albums_handler->getObjects($criteria, true); + foreach($albumss as $cid => $albums) { + if (is_object($albums)) + $GLOBALS['xoopsTpl']->append('albums', $albums->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_albums_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_albums_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basetitle(__FILE__)); + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + if (isset($_REQUEST['id'])) { + $albums = $albums_handler->get(intval($_REQUEST['id'])); + } else { + $albums = $albums_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $albums->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_albums_edit.html'); + break; + case "save": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $albums = $albums_handler->get($id); + } else { + $albums = $albums_handler->create(); + } + $albums->setVars($_POST[$id]); + + if (!$id=$albums_handler->insert($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTOSAVE); + exit(0); + } else { + + if (isset($_FILES['image'])&&!empty($_FILES['image']['title'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $albums = $albums_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), explode('|', $GLOBALS['songlistModuleConfig']['allowed_mimetype']), $GLOBALS['songlistModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['songlistModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($albums->getVar('image'))) + unlink($GLOBALS['xoops']->path($albums->getVar('path')).$albums->getVar('image')); + + $albums->setVar('path', $GLOBALS['songlistModuleConfig']['upload_areas']); + $albums->setVar('image', $uploader->getSavedFileName()); + @$albums_handler->insert($albums); + + } + } else { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $albums = $albums_handler->get($id); + $albums->setVars($_POST[$id]); + if (!$albums_handler->insert($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $albums = $albums_handler->get($id); + if (!$albums_handler->delete($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_DELETED); + exit(0); + } + } else { + $albums = $albums_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_ALBUMS_DELETE, $albums->getVar('title'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php 2012-03-20 21:03:55 UTC (rev 9158) @@ -0,0 +1,139 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "artists": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + + $criteria = $artists_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $artists_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($artists_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $artists_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $artistss = $artists_handler->getObjects($criteria, true); + foreach($artistss as $cid => $artists) { + if (is_object($artists)) + $GLOBALS['xoopsTpl']->append('artists', $artists->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_artists_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_artists_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + if (isset($_REQUEST['id'])) { + $artists = $artists_handler->get(intval($_REQUEST['id'])); + } else { + $artists = $artists_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $artists->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_artists_edit.html'); + break; + case "save": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $artists = $artists_handler->get($id); + } else { + $artists = $artists_handler->create(); + } + $artists->setVars($_POST[$id]); + + if (!$id=$artists_handler->insert($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTOSAVE); + exit(0); + } else { + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $artists = $artists_handler->get($id); + $artists->setVars($_POST[$id]); + if (!$artists_handler->insert($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $artists = $artists_handler->get($id); + if (!$artists_handler->delete($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_DELETED); + exit(0); + } + } else { + $artists = $artists_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_ARTISTS_DELETE, $artists->getVar('name'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/category.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/category.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/category.php 2012-03-20 21:03:55 UTC (rev 9158) @@ -0,0 +1,183 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "category": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + + $criteria = $category_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $category_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($category_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $category_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $categorys = $category_handler->getObjects($criteria, true); + foreach($categorys as $cid => $category) { + if (is_object($category)) + $GLOBALS['xoopsTpl']->append('categories', $category->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_category_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_category_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + if (isset($_REQUEST['id'])) { + $category = $category_handler->get(intval($_REQUEST['id'])); + } else { + $category = $category_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $category->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_category_edit.html'); + break; + case "save": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $category = $category_handler->get($id); + } else { + $category = $category_handler->create(); + } + $category->setVars($_POST[$id]); + + if (!$id=$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } else { + + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $category = $category_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), explode('|', $GLOBALS['songlistModuleConfig']['allowed_mimetype']), $GLOBALS['songlistModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['songlistModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($category->getVar('image'))) + unlink($GLOBALS['xoops']->path($category->getVar('path')).$category->getVar('image')); + + $category->setVar('path', $GLOBALS['songlistModuleConfig']['upload_areas']); + $category->setVar('image', $uploader->getSavedFileName()); + @$category_handler->insert($category); + + } + } else { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $category = $category_handler->get($id); + $category->setVars($_POST[$id]); + if (!$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY); + exit(0); + break; + case "delete": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $category = $category_handler->get($id); + if (!$category_handler->delete($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_DELETED); + exit(0); + } + } else { + $category = $category_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_CATEGORY_DELETE, $category->getVar('name'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/dashboard.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/dashboard.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/dashboard.php 2012-03-20 21:03:55 UTC (rev 9158) @@ -0,0 +1,116 @@ +<?php +// $Id: directory.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.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. // +// // +// 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: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = (!empty($_GET['op']) ? $_GET['op'] : (!empty($_POST['op']) ? $_POST['op'] : "default")); + + switch ($op) { + case "default": + default: + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_SONGLIST_PREFERENCES); + + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_POLLMODULE."</label>", ($isOK)?_AM_SONGLIST_AVAILABLE:_AM_SONGLIST_NOTAVAILABLE, ($isOK)?'Green':'Red'); + + if(array_key_exists('imagemagick',$imageLibs)) { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_IMAGEMAGICK."</label>", _AM_SONGLIST_AUTODETECTED.$imageLibs['imagemagick'], 'Green'); + } else { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_IMAGEMAGICK."</label>", _AM_SONGLIST_NOTAVAILABLE, 'Red'); + } + if(array_key_exists('netpbm',$imageLibs)) { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_NETPDM."</label>", _AM_SONGLIST_AUTODETECTED.$imageLibs['netpbm'], 'Green'); + } else { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_NETPDM."</label>", _AM_SONGLIST_NOTAVAILABLE, 'Red'); + } + if(array_key_exists('gd1',$imageLibs)) { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_GDLIB1."</label>", _AM_SONGLIST_AUTODETECTED.$imageLibs['gd1'], 'Green'); + } else { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_GDLIB1."</label>", _AM_SONGLIST_NOTAVAILABLE, 'Red'); + } + if(array_key_exists('gd2',$imageLibs)) { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_GDLIB2."</label>", _AM_SONGLIST_AUTODETECTED.$imageLibs['gd2'], 'Green'); + } else { + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PREFERENCES, "<label>"._AM_SONGLIST_GDLIB2."</label>", _AM_SONGLIST_NOTAVAILABLE, 'Red'); + } + + $attach_path = XOOPS_ROOT_PATH . '/' . $GLOBALS['xforumModuleConfig']['dir_attachments'] . '/'; + $path_status = forum_getPathStatus($attach_path); + $indexAdmin->addInfoBox(_AM_SONGLIST_PATHS); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PATHS, "<label>"._AM_SONGLIST_ATTACHPATH."</label>", $attach_path . ' ( ' . $path_status . ' )', 'Green'); + $thumb_path = $attach_path . 'thumbs/'; // be careful + $path_status = forum_getPathStatus($thumb_path); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_PATHS, "<label>"._AM_SONGLIST_THUMBPATH."</label>", $thumb_path . ' ( ' . $path_status . ' )', 'Green'); + + $indexAdmin->addInfoBox(_AM_SONGLIST_BOARDSUMMARY); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_BOARDSUMMARY, "<label>"._AM_SONGLIST_TOTALTOPICS."</label>", get_total_topics(), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_BOARDSUMMARY, "<label>"._AM_SONGLIST_TOTALPOSTS."</label>", get_total_posts(), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_BOARDSUMMARY, "<label>"._AM_SONGLIST_TOTALVIEWS."</label>", get_total_views(), 'Green'); + $criteria = new Criteria('approved', 0); + $post_handler = xoops_getmodulehandler('post', 'xforum'); + $topic_handler = xoops_getmodulehandler('topic', 'xforum'); + + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_BOARDSUMMARY, "<label>"._AM_SONGLIST_POSTSWAITINGAPPROVAL."</label>", $post_handler->getCount($criteria), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_BOARDSUMMARY, "<label>"._AM_SONGLIST_TOPICWAITINGAPPROVAL."</label>", $topic_handler->getCount($criteria), 'Green'); + + $report_handler = xoops_getmodulehandler('report', 'xforum'); + $indexAdmin->addInfoBox(_AM_SONGLIST_REPORT); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_REPORT, "<label>"._AM_SONGLIST_REPORT_PENDING."</label>", $report_handler->getCount(new Criteria("report_result", 0)), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_REPORT, "<label>"._AM_SONGLIST_REPORT_PROCESSED."</label>", $report_handler->getCount(new Criteria("report_result", 1)), 'Green'); + + if ($GLOBALS['xforumModuleConfig']['email_digest'] > 0) { + $digest_handler = xoops_getmodulehandler('digest', 'xforum'); + $due = ($digest_handler->checkStatus()) / 60; // minutes + $prompt = ($due > 0)? sprintf(_AM_SONGLIST_DIGEST_PAST, $due):sprintf(_AM_SONGLIST_DIGEST_NEXT, abs($due)); + $indexAdmin->addInfoBox(_AM_SONGLIST_DIGEST); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_DIGEST, "<label>"._AM_SONGLIST_DIGEST_SEND."</label>", $prompt, 'Green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_DIGEST, "<label>"._AM_SONGLIST_DIGEST_ARCHIVE."</label>", $digest_handler->getDigestCount(), 'Green'); + } + + if (!empty($GLOBALS['xforumModuleConfig']['enable_usermoderate'])){ + $moderate_handler = xoops_getmodulehandler('moderate', 'xforum'); + $moderate_handler->clearGarbage(); + } + echo $indexAdmin->renderIndex(); + + echo chronolabs_inline(false); + xoops_cp_footer(); + break; + } + +?> \ No newline at end of file Added: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/export.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/export.php (rev 0) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/export.php 2012-03-20 21:03:55 UTC (rev 9158) @@ -0,0 +1,280 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "import": + switch ($fct) + { + default: + case "actiona": + + if (isset($_SESSION['xmlfile'])) { + redirect_header($_SERVER['PHP_SELF'].'?file='.$_SESSION['xmlfile'].'&op=import&fct=actionb', 10, _AM_SONGLIST_XMLFILE_UPLOADED); + exit; + } + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $GLOBALS['xoopsTpl']->assign('form', songlist_import_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_import_actiona.html'); + break; + + case "upload": + + if (isset($_FILES['xmlfile'])&&!empty($_FILES['xmlfile']['title'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $albums = $albums_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), array('application/xml', 'application/xml-dtd', 'application/xml-external-parsed-entity', 'text/xml xml xsl', 'text/xml-external-parsed-entity'), 1024*1024*32, 0, 0, array('xml')); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('xmlfile')) { + if (!$uploader->upload()) { + + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + $_SESSION['xmlfile'] = $uploader->getSavedFileName(); + redirect_header($_SERVER['PHP_SELF'].'?file='.$uploader->getSavedFileName().'&op=import&fct=actionb', 10, _AM_SONGLIST_XMLFILE_UPLOADED); + exit; + } + } else { + + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + break; + case "action... [truncated message content] |
From: <wis...@us...> - 2012-03-20 20:58:54
|
Revision: 9157 http://xoops.svn.sourceforge.net/xoops/?rev=9157&view=rev Author: wishcraft Date: 2012-03-20 20:58:40 +0000 (Tue, 20 Mar 2012) Log Message: ----------- TwitterBomb 1.28 (Not Complete Only Backup) - New features, search & reply, mention & reply - Still to do language, admin, templates & cron Added Paths: ----------- XoopsModules/twitterbomb/trunk/ XoopsModules/twitterbomb/trunk/docs/ XoopsModules/twitterbomb/trunk/docs/.htaccess XoopsModules/twitterbomb/trunk/docs/INSTALL XoopsModules/twitterbomb/trunk/docs/licence.txt XoopsModules/twitterbomb/trunk/extras/ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.4.x/ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.4.x/htdocs/ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.4.x/htdocs/header.php XoopsModules/twitterbomb/trunk/extras/XOOPS 2.5.x/ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.5.x/htdocs/ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.5.x/htdocs/header.php XoopsModules/twitterbomb/trunk/htdocs/ XoopsModules/twitterbomb/trunk/htdocs/Frameworks/ XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/ XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.logs.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.preferences.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.retweet.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.scheduler.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.sentence.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.urls.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.usernames.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.campaigns.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.categories.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.keywords.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.logs.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.preferences.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.retweet.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.scheduler.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.sentence.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.urls.png XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.usernames.png XoopsModules/twitterbomb/trunk/htdocs/modules/ XoopsModules/twitterbomb/trunk/htdocs/modules/tag/ XoopsModules/twitterbomb/trunk/htdocs/modules/tag/plugin/ XoopsModules/twitterbomb/trunk/htdocs/modules/tag/plugin/twitterbomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/header.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/menu.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/backend.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_bomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_follow.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_retweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_scheduler.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_tag.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_topranked.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_tweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_usernames.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/blocks/twitterbomb_block_widget.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/callback/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/callback/index.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/base_matrix.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/campaign.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/category.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/following.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/keywords.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/log.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/myuploader.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/oauth.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/retweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/scheduler.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/urls.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/usernames.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/all.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/doit.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/follow.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/gather.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/tweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/changelog.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/credits.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/install.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/lang_diff.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/licence.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/readme.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/go.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/header.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/images/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/images/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/images/rss.png XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/images/twitterbomb_slogo.png XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/OAuth.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formcheckboxmentions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formcheckboxreplies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formcheckboxretweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formobjects.twitterbomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/forms.twitterbomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectbase.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectcampaigns.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectcategories.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectlanguage.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectlogtype.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectmeasurement.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectmode.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectoauthmode.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectretweettype.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselectscreenname.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselecttype.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/formselecturls.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/functions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/install.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/twitteroauth.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/include/update.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/index.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/blocks.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/errors.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/help/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/help/help.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/help/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/main.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/modinfo.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/italian/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/italian/admin.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/italian/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/italian/main.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/italian/modinfo.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/list.tag.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/bomb.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/clause.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/direct.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/disabled.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/expired.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/filtered.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/filteredpregmatch.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/filteredpregmatchstrip.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/filteredstrip.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/filteredstrippregmatch.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/for.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/invalid.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/mirc.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/mixed.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/other.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/over.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/popular.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/pregmatch.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/pregmatchfiltered.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/pregmatchfilteredstrip.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/pregmatchstrip.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/pregmatchstripfiltered.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/recent.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/scheduler.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/strip.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/stripfiltered.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/stripfilteredpregmatch.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/strippregmatch.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/strippregmatchfiltered.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/their.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/then.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/there.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/under.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/valid.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/plugins/when.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/post.cache.end.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/post.common.end.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/post.footer.end.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/preloads/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/preloads/core.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/preloads/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/redirect.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/search.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_follow.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweet.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweets.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweets_ranked.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_usernames.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_widget.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_tag_block_cloud.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_tag_block_top.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_campaign_item.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_campaign_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_categories_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_category_item.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_base_matrix_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_base_matrix_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_campaign_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_campaign_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_category_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_category_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_keywords_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_keywords_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_log.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_reply_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_reply_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_retweet_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_retweet_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_scheduler_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_scheduler_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_urls_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_urls_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_usernames_edit.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_usernames_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_index.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_rss.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_trail.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_usernames.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/trail.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/view.tag.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php Added: XoopsModules/twitterbomb/trunk/docs/.htaccess =================================================================== --- XoopsModules/twitterbomb/trunk/docs/.htaccess (rev 0) +++ XoopsModules/twitterbomb/trunk/docs/.htaccess 2012-03-20 20:58:40 UTC (rev 9157) @@ -0,0 +1,14 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^tweetbomb/([a-zA-Z0-9]+),([a-zA-Z0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]+).html$ modules/twitterbomb/index.php?op=$1&fct=$2&start=$3&limit=$4&cid=$5&catid=$6 +RewriteRule ^tweetbomb/rss,([0-9]+),([0-9]+),([a-zA-Z0-9]+).rss$ modules/twitterbomb/backend.php?cid=$1&catid=$2&cacheid=$3 +RewriteRule ^tweetbomb/go.html$ modules/twitterbomb/go.php +RewriteRule ^tweetbomb/index.php$ modules/twitterbomb/index.php + + + + + Added: XoopsModules/twitterbomb/trunk/docs/INSTALL =================================================================== --- XoopsModules/twitterbomb/trunk/docs/INSTALL (rev 0) +++ XoopsModules/twitterbomb/trunk/docs/INSTALL 2012-03-20 20:58:40 UTC (rev 9157) @@ -0,0 +1,63 @@ ++-----------------------------------------------------------------------------------+ +| | +| TwitterBomb Version 1.18 | +| | ++--[ Installing Cron ]--------------------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once a minute, make sure it is within your | +| refresh time. This is the or unix based systems after it is for windows: | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/twitterbomb/cron/all.php | +| | +| -- For this method set the cron type in preferences to Unix Cron Job -- | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment: | +| | +| php.exe -q c:\htdocs\modules\twitterbomb\cron\all.php | +| | +| -- For this method set the cron type in preferences to Windows Scheduled Task -- | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Preloader Alternative to Installing Cron ]-------------------------------------+ +| | +| Replace the header.php file provided in the extras setting and set your cron | +| type in preferences to 'Preloader', alternatively you can include the files in | +| a hack of the files which are in the TwitterBomb Root. | +| | +| Line 91 - 94 of header.php in XOOPS 2.5/2.4 should read with this patch: | +| | +| if ($xoTheme->checkCache()) { | +| $xoopsPreload->triggerEvent('core.header.cache.end'); | +| exit(); | +| } | +| | ++--[ Include file Alternative to Installing Cron & Preloaders ]---------------------+ +| | +| the following lines can be included if your preloaders are not working, but | +| remember to delete the /twitterbomb/preloads folder so there are no conflict | +| when using the include method. Still set your cron type in preferences for this | +| method to 'preloaders'. | +| | | +| Step 1 - Last line of /include/common.php should read: | +| | +| include($GLOBALS['xoops']->path('/modules/twitterbomb/post.common.end.php')); | +| | +| Step 2 - Line 91 to 94 of /header.php should read: | +| | +| if ($xoTheme->checkCache()) { | +| include($GLOBALS['xoops']->path('/modules/twitterbomb/post.cache.end.php')); | +| exit(); | +| } | +| | +| Step 3 - Last line of /footer.php should read: | +| | +| include($GLOBALS['xoops']->path('/modules/twitterbomb/post.footer.end.php')); | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/twitterbomb/trunk/docs/licence.txt =================================================================== --- XoopsModules/twitterbomb/trunk/docs/licence.txt (rev 0) +++ XoopsModules/twitterbomb/trunk/docs/licence.txt 2012-03-20 20:58:40 UTC (rev 9157) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + 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. + + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/twitterbomb/trunk/extras/XOOPS 2.4.x/htdocs/header.php =================================================================== --- XoopsModules/twitterbomb/trunk/extras/XOOPS 2.4.x/htdocs/header.php (rev 0) +++ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.4.x/htdocs/header.php 2012-03-20 20:58:40 UTC (rev 9157) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4897 2010-06-19 02:55:48Z phppp $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/twitterbomb/trunk/extras/XOOPS 2.5.x/htdocs/header.php =================================================================== --- XoopsModules/twitterbomb/trunk/extras/XOOPS 2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/twitterbomb/trunk/extras/XOOPS 2.5.x/htdocs/header.php 2012-03-20 20:58:40 UTC (rev 9157) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.logs.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.logs.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.preferences.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.preferences.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.retweet.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.retweet.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.scheduler.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.scheduler.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.sentence.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.sentence.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.urls.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.urls.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.usernames.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.usernames.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/trunk/htdocs/Frameworks/moduleclasses/icons/32/twi... [truncated message content] |
From: <txm...@us...> - 2012-03-19 10:34:12
|
Revision: 9156 http://xoops.svn.sourceforge.net/xoops/?rev=9156&view=rev Author: txmodxoops Date: 2012-03-19 10:34:01 +0000 (Mon, 19 Mar 2012) Log Message: ----------- xLanguage Module Italian Translation Added Paths: ----------- XoopsLanguages/italian/modules/xlanguage/ XoopsLanguages/italian/modules/xlanguage/language/ XoopsLanguages/italian/modules/xlanguage/language/italian/ XoopsLanguages/italian/modules/xlanguage/language/italian/admin.php XoopsLanguages/italian/modules/xlanguage/language/italian/blocks.php XoopsLanguages/italian/modules/xlanguage/language/italian/help/ XoopsLanguages/italian/modules/xlanguage/language/italian/help/help.html XoopsLanguages/italian/modules/xlanguage/language/italian/help/index.html XoopsLanguages/italian/modules/xlanguage/language/italian/index.html XoopsLanguages/italian/modules/xlanguage/language/italian/modinfo.php Added: XoopsLanguages/italian/modules/xlanguage/language/italian/admin.php =================================================================== --- XoopsLanguages/italian/modules/xlanguage/language/italian/admin.php (rev 0) +++ XoopsLanguages/italian/modules/xlanguage/language/italian/admin.php 2012-03-19 10:34:01 UTC (rev 9156) @@ -0,0 +1,64 @@ +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// 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. // +// // +// 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: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // + +define("_AM_XLANG_CONFIG", "Configurazione xLanguage"); +define("_AM_XLANG_DELETE_CFM", "Sei sicuro di voler eliminare la lingua?"); +define("_AM_XLANG_DELETED", "Il linguaggio è stato eliminato"); +define("_AM_XLANG_SAVED", "Il linguaggio è stato salvato"); +define("_AM_XLANG_EDITLANG", "Lingua"); +define("_AM_XLANG_ADDLANG", "Aggiungi lingua"); +define("_AM_XLANG_CREATED", "Il file di configurazione è stato creato"); +define("_AM_XLANG_CONFIGOK", "File di configurazione disponibile"); +define("_AM_XLANG_CONFIGNOTOK", "File di configurazione non disponibile"); +define("_AM_XLANG_ADDBASE", "Aggiungi lingua di base"); +define("_AM_XLANG_ADDEXT", "Aggiungi lingua estesa"); +define("_AM_XLANG_CREATECONFIG", "Crea configurazione"); +define("_AM_XLANG_ABOUT", "Informazioni su questo modulo"); +define("_AM_XLANG_LANGLIST", "Lingua"); +define("_AM_XLANG_DESC", "Descrizione"); +define("_AM_XLANG_NAME", "Nome"); +define("_AM_XLANG_CHARSET", "Codifica dei caratteri"); +define("_AM_XLANG_CODE", "Codice"); +define("_AM_XLANG_IMAGE", "Immagine"); +define("_AM_XLANG_WEIGHT", "Peso"); +define("_AM_XLANG_BASE", "Protolingua"); +// 3.03 +define("_AM_XLANG_ACTION", "Azione"); + +//ModuleAdmin +define("_AM_MODULEADMIN_MISSING", "Errore: La classe ModuleAdmin manca. Si prega di installare la classe ModuleAdmin in /Frameworks (vedi / docs/readme.txt)"); + +// Text for Admin footer +define("_AM_XLANG_FOOTER", "<div class='center smallsmall italic pad5'> xLanguage è mantenuta dalla <a class='tooltip' rel='external' href='http://xoops.org/' title="Visita Community XOOPS">community di Xoops</a> </div>"); + +// Translation done by XTransam & admin (in...@tx...) +// XTransam 1.2 is written by Chronolabs Co-op & The XOOPS Project - File Dumped on 2012-03-19 09:48 + +?> \ No newline at end of file Added: XoopsLanguages/italian/modules/xlanguage/language/italian/blocks.php =================================================================== --- XoopsLanguages/italian/modules/xlanguage/language/italian/blocks.php (rev 0) +++ XoopsLanguages/italian/modules/xlanguage/language/italian/blocks.php 2012-03-19 10:34:01 UTC (rev 9156) @@ -0,0 +1,16 @@ +<?php +// $Id$ +// Blocks +define("_MB_XLANGUAGE_SELECT", "Fare clic per selezionare la lingua"); +define("_MB_XLANGUAGE_DISPLAY_METHOD", "Visualizza metodo"); +define("_MB_XLANGUAGE_DISPLAY_FLAGLIST", "Lista Immagine"); +define("_MB_XLANGUAGE_DISPLAY_TEXTLIST", "Lista Testo"); +define("_MB_XLANGUAGE_DISPLAY_DROPDOWNLIST", "Elenco a discesa"); +define("_MB_XLANGUAGE_IMAGE_SEPARATOR", "Separatore Immagine"); +define("_MB_XLANGUAGE_IMAGE_PERROW", "Immagini per riga"); +define("_MB_XLANGUAGE_OPTIONAL", "Facoltativa"); + +// Translation done by XTransam & admin (in...@tx...) +// XTransam 1.2 is written by Chronolabs Co-op & The XOOPS Project - File Dumped on 2012-03-19 09:48 + +?> \ No newline at end of file Added: XoopsLanguages/italian/modules/xlanguage/language/italian/help/help.html =================================================================== --- XoopsLanguages/italian/modules/xlanguage/language/italian/help/help.html (rev 0) +++ XoopsLanguages/italian/modules/xlanguage/language/italian/help/help.html 2012-03-19 10:34:01 UTC (rev 9156) @@ -0,0 +1,81 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/xlanguage/admin/index.php" + title="Back to the administration of xLanguage"> xLanguage <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of xLanguage"/> + </a></h1> + <!-- -----Help Content ---------- --> + + <h4 class="odd">Description</h4> + + <p class="even"> + Un eXtensible Multi-language contenuto e la codifica dei caratteri di gestione plug-in +Gestione multilingua gestisce la visualizzazione del contenuto di diverse lingue, come inglese, francese e cinese +La codifica dei caratteri di gestione gestisce il contenuto di diversi set di codifica per una lingua, come GB2312 (cinese semplificato) e BIG5 (cinese tradizionale) per il cinese. <br /><br /> + + + <h4 class="odd">Cosa può fare xlanguage</h4> + +1 visualizzare il contenuto del linguaggio specificato in base alla scelta dinamica dell'utente <br /><br /> +2 convertire il contenuto da un set di caratteri codificato ad un'altro<br /><br /> </p> + + <h4 class="odd">Cosa non può fare xlanguage</h4> + +1 xLanguage non ha la capacità di tradurre i contenuti da una lingua ad un'altra. Devi inserire contenuti di lingue diverse manualmente<br /><br /> +2 xLanguage non funziona senza l'aggiunta di una riga a XOOPS/include/common.php (vedere guida sotto) <br /><br /> +3 xLanguage non ha la possibilità di convertire i contenuti da una codifica dei caratteri ad un altro se nessuno dei "iconv", "mb_string" o "xconv" è disponibile. <br /><br /></p> + +<h4 class="odd">Caratteristiche</h4> + +1 rilevamento automatico della lingua del visitatore dal suo primo visitatore <br /><br /> +2 memorizzare le preferenze di lingua degli utenti<br /><br /> +3 commutazione contenuto di diverse lingue/set di codifica on-fly <br /><br /> +4 sostenere modalità di M-S-M per il gestore codifica dei caratteri<br /><br /> +Nota:<br /><br /> +M-S-M: Codifica di input multipli, storage singola codifica, codifica di output multipli. M-S-M consente un sito per adattarsi vari utenti con diversi usi linguistici codifica dei caratteri. Ad esempio, un sito con xLanguage porperly implementato consente agli utenti di contenuti in ingresso sia con GB2312, con BIG5 o codifica UTF-8 e per memorizzare il contenuto in DB con codifica specificata, per dire GB2312, e di visualizzare il contenuto o con GB2312, con BIG5 o con codifica UTF-8. +<br /><br /> +<h4 class="odd">Installa/Disinstalla</h4> + +Non sono necessarie misure particolari, seguire il processo di installazione standard estrarre la cartella xLanguage nelle directory .. /moduli.<br /> Installare il modulo con Admin -> Sistema -> Modulo Moduli. <br /><br /> +Istruzioni dettagliate su come installare i moduli sono disponibili nella <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> </p> + + <h4 class="odd">Istruzioni per l'uso</h4> + <p class="even"> + + +1 installa "xLanguage" come un normale modulo<br /><br /> + +2 selezionare le lingue di base (da un elenco di lingue disponibili) e aggiungere le lingue (estesi su una lingua selezionata di base) dalla pagina del modulo admin <br /> +per esempio, per rendere Cambia lingua tra: inglese, cinese semplificato (GB2312), cinese tradizionale (big5) e UTF-8 cinese: <br /> +base 1: Nome: inglese; descrizione (opzionale): inglese; charset: ISO-8859-1, codice: en (o ogni altro tipo "Xen", non un codice di lingua vera, solo il tag per indicare contenuti in inglese) <br / > +base 2: nome: schinese; descrizione (opzionale): cinese semplificato, charset: GB2312, codice: zh (o ogni altro come "sc", non un codice di lingua vera, solo il tag per indicare il contenuto cinese) <br /> +esteso lang di schinese 1: Nome: tchinese; descrizione (opzionale): Tradizionale Cinese; charset: big5 codice: zh-TW (il codice vero linguaggio di cinese tradizionale) base: schinese <br /> +esteso lang di schinese 2: nome: utf8; descrizione (opzionale): cinese semplificato UTF-8; charset: utf-8 code: ZH-CN (il codice del linguaggio vero Cinese Semplificato) base: schinese +<br /><br /> + +3 fai la "selezione della lingua" blocco visibile<br /><br /> + +4 aggiungere contenuti multilingue con tag secondo specificati per ogni lingua base (al punto 3) per i moduli, template o temi [Saltare questo punto se non si utilizza multi-lingua per visualizzazione dei contenuti, ma utilizzare solo la codifica charset]: <br /> +avvolgere il contenuto di ogni lingua con tag rispettivi specificata nel passaggio 3: <br /> +[langcode1] Contenuto della language1[/langcode1][langcode2]Contenuto della language2[/langcode2][langcode3] Contenuto della language3 [/langcode3] ... <br /> +se due o più lingue hanno gli stessi contenuti, non è necessario aggiungere uno per uno, ma usare delimitatore "|": <br /> +[langcode1|langcode2] Contenuto condiviso da language1 & 2 [/langcode1|langcode2][langcode3] Contenuto della language3[/langcode3]... <br /> +un vero esempio (si supponga che i lang_codes specificate al punto 4 sono: inglese-en; francese-fr; SimplifiedChiense-sc): <br /> +[en]My XOOPS[/en][fr]XOOPS Moi[/fr][SC] \xE6'\xE7\x9A "XOOPS[/sc]<br /> +OR: <br /> +[inglese | francese] Questo è il mio contenuto in inglese e<br /><br /> + +5 conversione automatica di contenuti da un charset (lingua estesa) ad un altro [In realtà sulle azioni necessarie in questa fase]<br /><br /> + +6 __if__ volete inserire gli script codificati per l'interruttore della lingua nel tuo tema o qualsiasi modello, oltre la finestra di selezione della lingua: <br /> + 1) modificare /modules/xLanguage/api.php "$xlanguage_theme_enable = true;" <br /> + 2) le opzioni di configurazione "$ options = array (" immagini "," ", 5); // display mode, delimitor, il numero per riga"; <br /> + 3) inserire <{$smarty.const.XLANGUAGE_SWITCH_CODE}> nel tuo tema o template ovunque si preferisce lo presenta <br /><br /> + +<h4 class="odd">Tutorial</h4> + <p class="even"> + Non c'è nessun tutorial disponibile al momento. + + <!-- -----Help Content ---------- --> + +</div> \ No newline at end of file Added: XoopsLanguages/italian/modules/xlanguage/language/italian/help/index.html =================================================================== --- XoopsLanguages/italian/modules/xlanguage/language/italian/help/index.html (rev 0) +++ XoopsLanguages/italian/modules/xlanguage/language/italian/help/index.html 2012-03-19 10:34:01 UTC (rev 9156) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/italian/modules/xlanguage/language/italian/index.html =================================================================== --- XoopsLanguages/italian/modules/xlanguage/language/italian/index.html (rev 0) +++ XoopsLanguages/italian/modules/xlanguage/language/italian/index.html 2012-03-19 10:34:01 UTC (rev 9156) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/italian/modules/xlanguage/language/italian/modinfo.php =================================================================== --- XoopsLanguages/italian/modules/xlanguage/language/italian/modinfo.php (rev 0) +++ XoopsLanguages/italian/modules/xlanguage/language/italian/modinfo.php 2012-03-19 10:34:01 UTC (rev 9156) @@ -0,0 +1,33 @@ +<?php +// $Id$ +// Module Info + +define("_MI_XLANGUAGE_NAME", "xLanguage"); +define("_MI_XLANGUAGE_DESC", "Gestione Estensibile per multi-lingua"); + +define("_MI_XLANGUAGE_BNAME", "Selezione della lingua"); + +define("_MI_XLANGUAGE_ADMENU0", "Gestione Lingue"); +define("_MI_XLANGUAGE_ADMENU1", "Lingua Base"); +define("_MI_XLANGUAGE_ADMENU2", "Lingua Estesa"); +define("_MI_XLANGUAGE_ADMENU3", "Informazioni"); + +define("_MI_XLANG_AUTHOR_INFO", "Informazioni per gli sviluppatori"); +define("_MI_XLANG_AUTHOR_NAME", "Sviluppatore"); +define("_MI_XLANG_AUTHOR_WEBSITE", "Sito Sviluppatore"); +define("_MI_XLANG_AUTHOR_EMAIL", "Email Sviluppatore"); +define("_MI_XLANG_AUTHOR_CREDITS", "Crediti"); +define("_MI_XLANG_MODULE_INFO", "Informazioni Sviluppatore Modulo"); +define("_MI_XLANG_MODULE_STATUS", "Stato dello sviluppo"); +define("_MI_XLANG_MODULE_DEMO", "Demo"); +define("_MI_XLANG_MODULE_SUPPORT", "Sito di supporto ufficiale"); +define("_MI_XLANG_RELEASE", "Data release"); +define("_MI_XLANG_AUTHOR_BUGFIXES", "Storia Bug fix"); +define("_MI_XLANG_MODULE_XOOPSVERSION", "Versione Xoops"); +//3.03 +define("_MI_XLANGUAGE_ADMENU_HOME", "Home page"); + +// Translation done by XTransam & admin (in...@tx...) +// XTransam 1.2 is written by Chronolabs Co-op & The XOOPS Project - File Dumped on 2012-03-19 09:48 + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-19 02:34:21
|
Revision: 9155 http://xoops.svn.sourceforge.net/xoops/?rev=9155&view=rev Author: beckmi Date: 2012-03-19 02:34:15 +0000 (Mon, 19 Mar 2012) Log Message: ----------- Bug #3494895: When changing the # of visible entries, it goes to Admin Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin_menu.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin_menu.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin_menu.php 2012-03-18 21:40:44 UTC (rev 9154) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin_menu.php 2012-03-19 02:34:15 UTC (rev 9155) @@ -24,16 +24,19 @@ array( 'title' => constant( $constpref.'_ADMININDEX' ) , 'link' => 'admin/center.php?page=center' , + //'link' => 'admin/center.php' , 'icon' => '../../'.$pathIcon32.'/firewall.png', ) , array( 'title' => constant( $constpref.'_ADVISORY' ) , - 'link' => 'admin/center.php?page=advisory' , + //'link' => 'admin/center.php?page=advisory' , + 'link' => 'admin/advisory.php' , 'icon' => '../../'.$pathIcon32.'/security.png', ) , array( 'title' => constant( $constpref.'_PREFIXMANAGER' ) , - 'link' => 'admin/center.php?page=prefix_manager' , + //'link' => 'admin/center.php?page=prefix_manager' , + 'link' => 'admin/prefix_manager.php' , 'icon' => '../../'.$pathIcon32.'/manage.png', ) , array( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-18 21:40:53
|
Revision: 9154 http://xoops.svn.sourceforge.net/xoops/?rev=9154&view=rev Author: txmodxoops Date: 2012-03-18 21:40:44 +0000 (Sun, 18 Mar 2012) Log Message: ----------- Updated Created tutorials in the help file, see table guide Added other files Modified existing files Adding table, list management, control files saved in uploads/xpdf/Files Revision files Modified Paths: -------------- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/about.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_footer.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_header.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/broken.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/documents.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/menu.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/modified.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_cat.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_doc.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/functions.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/notification.inc.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/admin.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/help/help.html XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/modinfo.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/admin.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/help/help.html XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/modinfo.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/xoops_version.php Added Paths: ----------- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/filesname.php XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/blank.gif XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_docsubmit_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_newdoc_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/doc_approve_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docbroken_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docmodify_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docsubmit_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newfile_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/index.html XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/new.png XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/popular.png XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/updated.png XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/blank.gif XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/category_docsubmit_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/category_newdoc_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/doc_approve_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/global_docbroken_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/global_docmodify_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/global_docsubmit_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/global_newcategory_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/global_newfile_notify.tpl XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/mail_template/index.html XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/new.png XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/popular.png XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/updated.png Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/about.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/about.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/about.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -26,5 +26,5 @@ xoops_cp_header(); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation("about.php"); -echo $aboutAdmin->renderabout('25J998Y3QEDZW', false); +echo $aboutAdmin->renderabout('25J998Y3QEDZW ', false); include "admin_footer.php"; \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_footer.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_footer.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_footer.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -26,6 +26,6 @@ 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_XPDF_MAINTAINEDBY." + <strong>" .$xoopsModule->getVar('name'). "</strong> "._AM_XPDF_MAINTAINEDBY." <a href='http://www.txmodxoops.org/modules/newbb/' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; xoops_cp_footer(); Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_header.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_header.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/admin_header.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -24,6 +24,7 @@ */ include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; include_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; +include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; include_once '../include/functions.php'; $pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); @@ -43,6 +44,10 @@ $catHandler=& xoops_getModuleHandler('xpdf_cat', $dirname); $docHandler=& xoops_getModuleHandler('xpdf_doc', $dirname); +//$brokHandler=& xoops_getModuleHandler('xpdf_broken', $dirname); +//$modHandler=& xoops_getModuleHandler('xpdf_mod', $dirname); +$purHandler=& xoops_getModuleHandler('xpdf_purchase', $dirname); +$vlimHandler=& xoops_getModuleHandler('xpdf_viewlimit', $dirname); $myts =& MyTextSanitizer::getInstance(); @@ -67,4 +72,4 @@ //Load languages xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); -xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/broken.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/broken.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/broken.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -51,11 +51,11 @@ $criteria->setSort('reportid'); $criteria->setOrder('ASC'); //pour faire une jointure de table - $docsbroken_Handler->table_link = $docsbroken_Handler->db->prefix("xpdf_doc"); // Nom de la table en jointure - $docsbroken_Handler->field_link = "lid"; // champ de la table en jointure - $docsbroken_Handler->field_object = "lid"; // champ de la table courante - $docsbroken_arr = $docsbroken_Handler->getByLink($criteria); - $numrows = $docsbroken_Handler->getCount($criteria); + $docsbroken_Handler->table_link = $docHandler->db->prefix("xpdf_doc"); // Nom de la table en jointure + $docsbroken_Handler->field_link = "doc_id"; // champ de la table en jointure + $docsbroken_Handler->field_object = "doc_id"; // champ de la table courante + $docsbroken_arr = $docHandler->getByLink($criteria); + $numrows = $docHandler->getCount($criteria); if ( $numrows > $limit ) { $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit); $pagenav = $pagenav->renderNav(4); Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/documents.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/documents.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/documents.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -83,9 +83,9 @@ echo "<td class='center'>".formatTimeStamp($doc_arr[$i]->getVar("doc_published"),"S")."</td>"; if ( $doc_arr[$i]->getVar("doc_status") == 1 ) { - echo "<td class='center'><a href='./documents.php?op=delete_pdf_file&doc_id='".$doc_arr[$i]->getVar("doc_id")."&doc_status=0' title='"._AM_XPDF_DELETEPDF."'><img src=".$pathImageIcon."/green_ball.png border='0' alt='"._AM_XPDF_DELETEPDF."' /></a></td>"; + echo "<td class='center'><a href='./documents.php?op=delete_pdf_documento&doc_id='".$doc_arr[$i]->getVar("doc_id")."&doc_status=0' title='"._AM_XPDF_DELETEPDF."'><img src=".$pathImageIcon."/green_ball.png border='0' alt='"._AM_XPDF_DELETEPDF."' /></a></td>"; } else { - echo "<td class='center'><a href='./documents.php?op=create_pdf_file&doc_id='".$doc_arr[$i]->getVar("doc_id")."&doc_status=1' title='"._AM_XPDF_CREATEPDF."'><img src=".$pathImageIcon."/red_ball.png border='0' alt='"._AM_XPDF_CREATEPDF."' /></a></td>"; + echo "<td class='center'><a href='./documents.php?op=create_pdf_documento&doc_id='".$doc_arr[$i]->getVar("doc_id")."&doc_status=1' title='"._AM_XPDF_CREATEPDF."'><img src=".$pathImageIcon."/red_ball.png border='0' alt='"._AM_XPDF_CREATEPDF."' /></a></td>"; } if ( $doc_arr[$i]->getVar("doc_waiting") == 1 ) { @@ -132,14 +132,30 @@ } //Form doc_cid $obj->setVar("doc_cid", $_REQUEST["doc_cid"]); - //Form doc_filename + //Form doc_documentoname $obj->setVar("doc_filename", strtolower($_REQUEST["doc_filename"])); //Form doc_title $obj->setVar("doc_title", $_REQUEST["doc_title"]); //Form doc_description + $obj->setVar("doc_slogan", $_REQUEST["doc_slogan"]); + //Form doc_description $obj->setVar("doc_description", $_REQUEST["doc_description"]); - //Form doc_image - $obj->setVar("doc_image", $_REQUEST["doc_image"]); + //Form doc_image + include_once XOOPS_ROOT_PATH."/class/uploader.php"; + $uploaddir = XOOPS_UPLOAD_PATH."/xpdf/images/doc/"; + $uploader = new XoopsMediaUploader($uploaddir, "gif|jpeg|pjpeg|png", 104857600, null, null); + if ($uploader->fetchMedia($_POST['xoops_upload_documento'][0])) { + $uploader->setPrefix("doc_image_"); + $uploader->fetchMedia($_POST['xoops_upload_documento'][0]); + if (!$uploader->upload()) { + $errors = $uploader->getErrors(); + redirect_header("javascript:history.go(-1)",3, $errors); + } else { + $obj->setVar("doc_image", $uploader->getSavedFileName()); + } + } else { + $obj->setVar("doc_image", $_REQUEST["doc_image"]); + } //Form doc_subject $obj->setVar("doc_subject", $_REQUEST["doc_subject"]); //Form doc_fontname @@ -151,15 +167,15 @@ //Form doc_submitter $obj->setVar("doc_submitter", $_REQUEST["doc_submitter"]); //Form doc_created - $obj->setVar("doc_created", strtotime($_REQUEST["doc_created"])); + $obj->setVar("doc_created", xpdf_convertDate($_REQUEST["doc_created"])); //Form doc_created - $obj->setVar("doc_published", strtotime($_REQUEST["doc_published"])); + $obj->setVar("doc_published", xpdf_convertDate($_REQUEST["doc_published"])); //Form doc_paypal - $obj->setVar("doc_paypal", $_REQUEST["doc_paypal"]); - //Form doc_paypal $obj->setVar("doc_view", $_REQUEST["doc_view"]); //Form doc_weight $obj->setVar("doc_comments", $_REQUEST["doc_comments"]); + //Form doc_weight + $obj->setVar("doc_weight", $_REQUEST["doc_weight"]); //Form doc_status $verif_doc_status = ($_REQUEST["doc_status"] == 1) ? "1" : "0"; $obj->setVar("doc_status", $verif_doc_status); @@ -170,7 +186,13 @@ $verif_doc_online = ($_REQUEST["doc_online"] == 1) ? "1" : "0"; $obj->setVar("doc_online", $verif_doc_online); //Form doc_paypal - $obj->setVar("doc_paypal", $_REQUEST["doc_paypal"]); + $obj->setVar("doc_paypal", $_REQUEST["doc_paypal"]); + //Form doc_price + $obj->setVar("doc_price", $_REQUEST["doc_price"]); + //Form doc_currency + $obj->setVar("doc_currency", $_REQUEST["doc_currency"]); + //Form doc_catalogue_number + $obj->setVar("doc_catalogue_number", $_REQUEST["doc_catalogue_number"]); if ($docHandler->insert($obj)) { redirect_header("documents.php?op=list_doc", 2, _AM_XPDF_FORMOK); @@ -181,7 +203,7 @@ $form->display(); break; - case "create_pdf_file": + case "create_pdf_doc": if (isset($_REQUEST["doc_id"])) { $obj =& $docHandler->get($_REQUEST["doc_id"]); } @@ -192,16 +214,16 @@ echo $obj->getHtmlErrors(); //include_once XOOPS_URL.'/Frameworks/tcpdf/tcpdf.php'; require_once XOOPS_ROOT_PATH.'/Frameworks/tcpdf/tcpdf.php'; - $filename = XOOPS_ROOT_PATH.'/Frameworks/tcpdf/config/lang/'._LANGCODE.'.php'; - if(file_exists($filename)) { - require_once $filename; + $documentoname = XOOPS_ROOT_PATH.'/Frameworks/tcpdf/config/lang/'._LANGCODE.'.php'; + if(documento_exists($documentoname)) { + require_once $documentoname; } else { require_once XOOPS_ROOT_PATH.'/Frameworks/tcpdf/config/lang/en.php'; } $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('doc_status', 0, '!=')); $criteria->add(new Criteria('doc_id', $_REQUEST['doc_id'])); - $criteria->add(new Criteria('doc_cid', $_REQUEST['doc_cid'])); - $criteria->add(new Criteria('doc_status', 0, '>')); + $criteria->add(new Criteria('doc_cid', $_REQUEST['doc_cid'])); $doc_all = $docHandler->getall($criteria); foreach($doc_all as $doc) { @@ -272,27 +294,27 @@ $pdf->AddPage(); $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $content, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); // Pdf Filename - $pdf_file = XOOPS_UPLOAD_PATH."/xpdf/doc/".strtolower($pdf_data['filename']).".pdf"; + $pdf_documento = XOOPS_UPLOAD_PATH."/xpdf/doc/".strtolower($pdf_data['filename']).".pdf"; // Output - $pdf->Output($pdf_file, 'F'); + $pdf->Output($pdf_documento, 'F'); break; - case "delete_pdf_file": + case "delete_pdf_doc": if (isset($_REQUEST["doc_id"])) { $obj =& $docHandler->get($_REQUEST["doc_id"]); } $obj->setVar("doc_status", $_REQUEST["doc_status"]); - $filename = XOOPS_UPLOAD_PATH."/xpdf/doc/".strtolower($obj->getVar("doc_filename")).".pdf"; + $documentoname = XOOPS_UPLOAD_PATH."/xpdf/doc/".strtolower($obj->getVar("doc_documentoname")).".pdf"; if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { if (!$GLOBALS['xoopsSecurity']->check()) { redirect_header('documents.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); - if(is_file($filename)){ - chmod($filename, 0777); - unlink($filename); + if(is_documento($documentoname)){ + chmod($documentoname, 0777); + unlink($documentoname); } } } else { - xoops_confirm(array('ok' => 1, 'doc_id' => $_REQUEST['doc_id'], 'op' => 'delete_pdf_file'), $_SERVER['REQUEST_URI'], sprintf(_AM_XPDF_FORMSUREDEL, $obj->getVar('doc_filename'))); + xoops_confirm(array('ok' => 1, 'doc_id' => $_REQUEST['doc_id'], 'op' => 'delete_pdf_doc'), $_SERVER['REQUEST_URI'], sprintf(_AM_XPDF_FORMSUREDEL, $obj->getVar('doc_filename'))); } break; Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/filesname.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/filesname.php (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/filesname.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,118 @@ +<?php +/** + * **************************************************************************** + * - A project for the Xoops CMS - (http://www.xoops.org) + * **************************************************************************** + * XPDF - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * 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. + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xpdf + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Sun 2012/02/05 1:04:25 : Timgno Exp $ + * **************************************************************************** + */ +include 'admin_header.php'; +xoops_cp_header(); +$op = xpdf_CleanVars($_REQUEST, 'op', 'list', 'string'); +$filesnameAdmin = new ModuleAdmin(); +//Options +switch ($op) +{ + // Vue liste + case "list": + //Affichage de la partie haute de l'administration de Xoops + echo $filesnameAdmin->addNavigation('filesname.php'); + $criteria = new CriteriaCompo(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $criteria->setSort('doc_id'); + $criteria->setOrder('ASC'); + $docsfilesname_arr = $docHandler->getByLink($criteria); + $numrows = $docHandler->getCount($criteria); + if ( $numrows > $limit ) { + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + //Affichage du tableau des téléchargements brisés + if ($numrows > 0) { + echo '<table width="100%" cellspacing="1" class="outer">'; + echo '<tr>'; + echo '<th align="center" width="10%">' . _AM_XPDF_FILESNAME_ID . '</th>'; + echo '<th align="center">'._AM_XPDF_FILESNAME_TITLE.'</th>'; + echo '<th align="center" width="20%">' . _AM_XPDF_FILESNAME_STATUS . '</th>'; + echo '<th align="center" width="15%">'._AM_XPDF_FORMACTION.'</th>'; + echo '</tr>'; + $class = 'odd'; + foreach (array_keys($docsfilesname_arr) as $i) { + $class = ($class == 'even') ? 'odd' : 'even'; + $doc_id = $docsfilesname_arr[$i]->getVar('lid'); + $docs_reportid = $docsfilesname_arr[$i]->getVar('reportid'); + $docs_title = $docsfilesname_arr[$i]->getVar('title'); + $docs_cid = $docsfilesname_arr[$i]->getVar('cid'); + $docs_poster = XoopsUser::getUnameFromId($docsfilesname_arr[$i]->getVar('sender')); + $docs_poster_ip = $docsfilesname_arr[$i]->getVar('ip'); + echo '<tr class="'.$class.'">'; + echo '<td align="center">'; + echo '<a href="../visit.php?cid=' . $docs_cid . '&lid=' . $doc_id . '" target="_blank"><img src="../images/icon/download.png" alt="Download ' . $docs_title . '" title="Download ' . $docs_title . '"></a>'; + echo '</td>'; + echo '<td align="center">' . $docs_title . '</td>'; + echo '<td align="center"><b>' . $docs_poster . '</b> (' . $docs_poster_ip . ')</td>'; + echo '<td align="center" width="15%">'; + echo '<a href="documents.php?op=view_docs&doc_id=' . $doc_id . '"><img src="../images/icon/view_mini.png" alt="' . _AM_XPDF_FORMDISPLAY . '" title="' . _AM_XPDF_FORMDISPLAY . '"></a> '; + echo '<a href="documents.php?op=edit_docs&doc_id=' . $doc_id . '"><img src="../images/icon/edit.png" alt="' . _AM_XPDF_FORMEDIT . '" title="' . _AM_XPDF_FORMEDIT . '"></a> '; + echo '<a href="filesname.php?op=del_filesname&doc_id=' . $docs_reportid . '"><img src="../images/icon/ignore_mini.png" alt="' . _AM_XPDF_FORMIGNORE . '" title="' . _AM_XPDF_FORMIGNORE . '"></a>'; + echo '</td>'; + } + echo '</table><br />'; + echo '<br /><div align=right>' . $pagenav . '</div><br />'; + }else{ + echo '<div class="errorMsg" style="text-align: center;">' . _AM_XPDF_ERREUR_NOBROKENDOWNLOADS . '</div>'; + } + break; + + // permet de suprimmer le rapport de téléchargment brisé + case "del_filename": + $obj =& $docsfilesname_Handler->get($_REQUEST['doc_id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('documents.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($docsfilesname_Handler->delete($obj)) { + redirect_header('filesname.php', 1, _AM_XPDF_REDIRECT_DELOK); + } + echo $objvotedata->getHtmlErrors(); + } else { + $filesnameAdmin->addItemButton(_MI_XPDF_ADMENU4, 'filesname.php', 'list'); + echo $filesnameAdmin->renderButton(); + + xoops_confirm(array('ok' => 1, 'doc_id' => $_REQUEST['doc_id'], 'op' => 'del_filename'), $_SERVER['REQUEST_URI'], _AM_XPDF_BROKEN_SURDEL . '<br />'); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/menu.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/menu.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/menu.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -50,10 +50,14 @@ $adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/pdf_broken.png"; $i++; $adminmenu[$i]["title"] = _MI_XPDF_ADMENU6; +$adminmenu[$i]["link"] = "admin/filesname.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/pdf_file.png"; +$i++; +$adminmenu[$i]["title"] = _MI_XPDF_ADMENU7; $adminmenu[$i]["link"] = "admin/permissions.php"; $adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/permissions.png"; $i++; -$adminmenu[$i]["title"] =_MI_XPDF_ADMENU7; +$adminmenu[$i]["title"] =_MI_XPDF_ADMENU8; $adminmenu[$i]["link"] = "admin/about.php"; $adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; unset( $i ); Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/modified.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/modified.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/admin/modified.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -50,14 +50,14 @@ } $criteria->setSort('requestid'); $criteria->setOrder('ASC'); - $docsmod_arr = $docsmod_Handler->getall($criteria); - $numrows = $docsmod_Handler->getCount($criteria); + $docsmod_arr = $docHandler->getall($criteria); + $numrows = $docHandler->getCount($criteria); if ( $numrows > $limit ) { $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit); $pagenav = $pagenav->renderNav(4); - } else { + } else { $pagenav = ''; - } + } //Affichage du tableau des téléchargements modifiés if ($numrows > 0) { echo '<table width="100%" cellspacing="1" class="outer">'; Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_cat.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_cat.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_cat.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -81,10 +81,10 @@ $imageselect->setExtra( "onchange='showImgSelected(\"image\", \"cat_image\", \"".$uploadirectory."\", \"\", \"".XOOPS_URL."\")'" ); $imgtray->addElement($imageselect, false); $imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadirectory."/".$cat_image."' name='image' id='image' alt='' />" ) ); - $fileseltray = new XoopsFormElementTray('','<br />'); - $fileseltray->addElement(new XoopsFormFile(_FORMUPLOAD , "cat_image", $GLOBALS['xoopsModuleConfig']['size']), false); - $fileseltray->addElement(new XoopsFormLabel(''), false); - $imgtray->addElement($fileseltray); + $documentoseltray = new XoopsFormElementTray('','<br />'); + $documentoseltray->addElement(new XoopsFormFile(_FORMUPLOAD , "cat_image", $GLOBALS['xoopsModuleConfig']['size']), false); + $documentoseltray->addElement(new XoopsFormLabel(''), false); + $imgtray->addElement($documentoseltray); $form->addElement($imgtray); // Description $editor_configs=array(); @@ -94,7 +94,7 @@ $editor_configs["cols"] = 80; $editor_configs["width"] = "100%"; $editor_configs["height"] = "400px"; - $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']["xpdf_editor"]; + $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']["editor"]; $form->addElement( new XoopsFormEditor(_DESCRIPTION, "cat_description", $editor_configs), false ); // Weight $form->addElement(new XoopsFormText(_WEIGHT, "cat_weight", 10, 25, $this->getVar("cat_weight")), true); Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_doc.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_doc.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/class/xpdf_doc.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -114,7 +114,7 @@ $font_tray->addElement($fontnameselect); // Font Size $array_fontsize = array('8' => 8, '10' => 10, '12' => 12, '14' => 14, '16' => 16, '18' => 18, '20' => 20, '22' => 22); - $doc_fontsize = $this->getVar('doc_fontsize') ? $this->getVar('doc_fontsize') : 10; + $doc_fontsize = $this->getVar('doc_fontsize') ? $this->getVar('doc_fontsize') : '10'; $fontsizeselect = new XoopsFormSelect(_AM_XPDF_FONTSIZE, 'doc_font', $doc_fontsize); $fontsizeselect->addOptionArray($array_fontsize); $font_tray->addElement($fontsizeselect); @@ -127,7 +127,7 @@ $editor_configs["cols"] = 100; $editor_configs["width"] = "100%"; $editor_configs["height"] = "400px"; - $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['xpdf_editor']; + $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['editor']; $form->addElement( new XoopsFormEditor(_AM_XPDF_DOC_SLOGAN, "doc_slogan", $editor_configs), true); // Name description $editor_configs=array(); @@ -137,7 +137,7 @@ $editor_configs["cols"] = 100; $editor_configs["width"] = "100%"; $editor_configs["height"] = "400px"; - $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['xpdf_editor']; + $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['editor']; $form->addElement( new XoopsFormEditor(_AM_XPDF_DOC_DESCRIPTION, "doc_description", $editor_configs), true); // doc_image $uploaddir = XOOPS_ROOT_PATH . '/uploads/xpdf/images/doc/' .$this->getVar('doc_image'); @@ -147,7 +147,7 @@ $docs_img = 'blank.gif'; } $imgtray = new XoopsFormElementTray(_IMAGE,'<br />'); - $imgpath=sprintf(_AM_XPDF_FORMPATH, ".".$uploadirectory ); + $imgpath=sprintf(_AM_XPDF_FORMIMAGE_PATH, ".".$uploadirectory ); $imageselect= new XoopsFormSelect($imgpath, 'doc_img',$docs_img); $topics_array = XoopsLists::getImgListAsArray( XOOPS_ROOT_PATH . $uploadirectory ); foreach( $topics_array as $image ) { @@ -156,11 +156,11 @@ $imageselect->setExtra( "onchange='showImgSelected(\"image3\", \"doc_img\", \"" . $uploadirectory . "\", \"\", \"" . XOOPS_URL . "\")'" ); $imgtray->addElement($imageselect,false); $imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='" . XOOPS_URL . "/" . $uploadirectory . "/" . $docs_img . "' name='image3' id='image3' alt='' />" ) ); - $fileseltray= new XoopsFormElementTray('','<br />'); + $documentoseltray= new XoopsFormElementTray('','<br />'); if ($perm_upload == true) { - $fileseltray->addElement(new XoopsFormFile(_AM_XPDF_FORMUPLOAD , 'attachedimage', $GLOBALS['xoopsModuleConfig']['size']), false); + $documentoseltray->addElement(new XoopsFormFile(_AM_XPDF_FORMUPLOAD , 'attachedimage', $GLOBALS['xoopsModuleConfig']['size']), false); } - $imgtray->addElement($fileseltray); + $imgtray->addElement($documentoseltray); $form->addElement($imgtray); // doc_submitter $form->addElement(new XoopsFormSelectUser(_SUBMITTER, "doc_submitter", false, $this->getVar("doc_submitter"), 1, false), true); @@ -200,6 +200,9 @@ $check_doc_online->addOption(1, _ONLINE); $option_tray->addElement($check_doc_online); $form->addElement($option_tray); + + // Groups + $form->addElement(new XoopsFormSelectGroup( _AM_XPDF_DOC_GROUP, 'groups', true, $groups, 5, true) ); // captcha $form->addElement(new XoopsFormCaptcha(), true); // pour passer "lid" si on modifie la cat\xE9gorie @@ -207,9 +210,9 @@ $form->addElement(new XoopsFormHidden('doc_id', $this->getVar('doc_id'))); $form->addElement(new XoopsFormHidden('documents_modified', true)); } - if($this->getVar("doc_status") == 0) { - $form->addElement(new XoopsFormHidden("op", "create_pdf_file")); - } + //if($this->getVar("doc_status") != 0) { + $form->addElement(new XoopsFormHidden("op", "create_pdf_doc")); + //} $form->addElement(new XoopsFormHidden("op", "save_doc")); $form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); return $form; Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/functions.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/functions.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/functions.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -140,7 +140,7 @@ return $pop; } -function xoops_meta_keywords($content) +function xpdf_meta_keywords($content) { global $xoopsTpl, $xoTheme; $myts =& MyTextSanitizer::getInstance(); @@ -152,7 +152,7 @@ } } -function xoops_meta_description($content) +function xpdf_meta_description($content) { global $xoopsTpl, $xoTheme; $myts =& MyTextSanitizer::getInstance(); @@ -163,4 +163,19 @@ $xoopsTpl->assign('xoops_meta_description', strip_tags($content)); } } + +/** + * Convert StringToTime Date + * + * @param mixed $date + * @return + */ +function xpdf_convertDate($date) +{ + if (strpos(_SHORTDATESTRING, "/")) + { + $date=str_replace("/", "-", $date); + } + return strtotime($date); +} ?> \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/notification.inc.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/notification.inc.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/include/notification.inc.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -45,21 +45,21 @@ global $xoopsDB; if ($category == 'category') { // Assume we have a valid category id - $sql = 'SELECT cat_title FROM ' . $xoopsDB->prefix('xpdf_cat') . ' WHERE cat_id = '.$item_id; + $sql = 'SELECT cat_title FROM ' . $xoopsDB->prefix('xpdf_cat').' WHERE cat_id = '.$item_id; $result = $xoopsDB->query($sql); // TODO: error check $result_array = $xoopsDB->fetchArray($result); $item['name'] = $result_array['cat_title']; - $item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/viewcat.php?cid=' . $item_id; + $item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname').'/viewcat.php?cid='.$item_id; return $item; } if ($category=='document') { // Assume we have a valid document id - $sql = 'SELECT doc_cid, doc_title FROM '.$xoopsDB->prefix('xpdf_doc') . ' WHERE doc_id = ' . $item_id; + $sql = 'SELECT doc_cid, doc_title FROM '.$xoopsDB->prefix('xpdf_doc').' WHERE doc_id ='.$item_id; $result = $xoopsDB->query($sql); // TODO: error check $result_array = $xoopsDB->fetchArray($result); $item['name'] = $result_array['doc_title']; - $item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/singledoc.php?cid=' . $result_array['doc_cid'] . '&doc_id=' . $item_id; + $item['url'] = XOOPS_URL.'/modules/'.$module->getVar('dirname').'/singledoc.php?cid='.$result_array['doc_cid'].'&doc_id='.$item_id; return $item; } } Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/admin.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/admin.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/admin.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -26,9 +26,11 @@ define("_AM_XPDF_STATISTICS","Statistics"); define("_AM_XPDF_THEREARE_CAT","There are <span class='bold'>%s</span> Categories in the Database"); define("_AM_XPDF_THEREARE_DOC","There are <span class='bold'>%s</span> Documents in the Database"); +define("_AM_XPDF_THEREARE_DOC_BROKEN","There are <span class='bold'>%s</span> broken Documents reports"); define("_AM_XPDF_THEREARE_DOC_STATUS","There are <span class='bold'>%s</span> Documents activated"); define("_AM_XPDF_THEREARE_DOC_WAITING","There are <span class='bold'>%s</span> Documents waiting"); define("_AM_XPDF_THEREARE_DOC_ONLINE","There are <span class='bold'>%s</span> Documents online"); +define("_AM_XPDF_THEREARE_DOC_MODIFIED","There are <span class='bold'>%s</span> Documents info modification requests"); //Buttons define("_AM_XPDF_NEWCAT","Add New Category"); define("_AM_XPDF_CATLIST","Category List"); @@ -42,8 +44,8 @@ define("_AM_XPDF_FORMSURERENEW", "Are you sure you want renew: <b><span style=\"color : Red\"> %s </span></b>"); define("_AM_XPDF_FORMUPLOAD","Upload"); define("_AM_XPDF_FORMIMAGE_PATH","File presents in %s"); -define("_AM_XPDF_CREATEPDF","Create pdf file"); -define("_AM_XPDF_DELETEPDF","Delete pdf file"); +define("_AM_XPDF_CREATEPDF","Create pdf documento"); +define("_AM_XPDF_DELETEPDF","Delete pdf documento"); define("_AM_XPDF_FILECREATEDOK","Pdf File Created Successfully"); define("_AM_XPDF_FILEDELETEDOK","Pdf File Deleted Successfully"); define("_AM_XPDF_FORMACTION","Action"); @@ -72,7 +74,7 @@ define("_AM_XPDF_DOC_SUBMITTER","Submitter"); define("_AM_XPDF_DOC_CREATED","Created"); define("_AM_XPDF_DOC_WEIGHT","Weight"); -define("_AM_XPDF_DOC_STATUS","Status pdf file"); +define("_AM_XPDF_DOC_STATUS","Status pdf documento"); define("_AM_XPDF_DOC_WAITING","Waiting"); define("_AM_XPDF_DOC_ONLINE","Online"); @@ -85,6 +87,15 @@ define("_AM_XPDF_DOC_BLOCK_RANDOM","Docs random"); define("_AM_XPDF_DOC_BLOCK_RECENT","Docs recents"); +//broken.php +define("_AM_XPDF_BROKEN_SENDER","Report Author"); +define("_AM_XPDF_BROKEN_SURDEL","Are you sure you want to delete this report?"); + +//modified.php +define("_AM_XPDF_MODIFIED_MOD","Submited by;"); +define("_AM_XPDF_MODIFIED_ORIGINAL","Original"); +define("_AM_XPDF_MODIFIED_SURDEL","Are you sure you want to delete this document modification request?"); + //Permissions define("_AM_XPDF_PERMISSIONS_ACCESS","Permissions to access"); define("_AM_XPDF_PERMISSIONS_VIEW","Permissions to view"); @@ -99,12 +110,12 @@ define("_AM_XPDF_DOWNFORM_DESC","Permissions to download the document"); define("_AM_XPDF_ACCESSFORM","Permissions to extra access"); define("_AM_XPDF_ACCESSFORM_DESC","Permissions to extra access at the documents"); - define("_AM_XPDF_PERMISSIONS_4","Submit a document"); define("_AM_XPDF_PERMISSIONS_8","Submit a modification"); define("_AM_XPDF_PERMISSIONS_16","View a document"); define("_AM_XPDF_PERMISSIONS_32","Upload documents"); define("_AM_XPDF_PERMISSIONS_64","Auto approve proposals documents"); +define("_AM_XPDF_DOC_GROUP","Group(s)"); //Error NoFrameworks define("_AM_ERROR_NOFRAMEWORKS","Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/blank.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/blank.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/help/help.html =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/help/help.html 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/help/help.html 2012-03-18 21:40:44 UTC (rev 9154) @@ -7,16 +7,35 @@ <!-- -----Help Content ---------- --> <h4 class="odd">Description</h4> <p class="even"> - xpdf is a module to create a pdf documents<br /><br /> + Xpdf or better documentations, is a module to create pdf documents and display them directly on screen, after they have been cataloged in a list ordered by categories.<br />How it works and what features does this module?<br />Let's find out with a description.<br /><br /> + <span>These four icons <img src="<{xoModuleIcons16 green_ball.png}>" /> <img src="<{xoModuleIcons16 grey_ball.png}>" /> <img src="<{xoModuleIcons16 orange_ball.png}>" /> <img src="<{xoModuleIcons16 red_ball.png}>" /> are used to see when you send a new document if the user has permission to send, or not if you create a pdf file that is saved in the directory uploads/xpdf/files.<br /> + For more details on how to create categories and documents with all the necessary settings, go to the tutorial section below.</span> </p> <h4 class="odd">Install/uninstall</h4> <p class="even"> No special measures necessary, follow the standard installation process - extract the /xpdf folder into the - ../modules directory. Install the module through Admin -> System Module -> Modules. If you need detailed + ../modules directory.<br />Install the module through Admin -> System Module -> Modules.<br />If you need detailed instructions on how to install a module, please see the <a href="http://goo.gl/adT2i">XOOPS Operations - Manual</a>.<br/><br/></p> + Manual</a>.<br /><br /></p> <h4 class="odd">Tutorial</h4> <p class="even"> - A detailed tutorial coming soon...</p> + After following the above description, we begin by constructing a categria and enter<br /><br /> ° <b>Title</b><br />, ° <b>Subcategory</b>, if necessary,<br />° <b>Description</b> (Optional)<br />° <b>Weight</b></b><br />Save, and we create a new document by going to the Documents tab.<br /><br /> + In the documents section, we have a form with basic functionality to build presentation and the text for that then we will open the pdf file. We start by creating a new file and then filling in the remaining fields of the form:<br /><br /> +<b>° File name<br /> +° Title<br /> +° Category<br /> +° Subject<br /> +° Character<br /> +° Slogan<br /> +° Text of document<br /> +° Image<br /> +° Author<br /> +° Keywords<br /> +° Weight<br /> +° Options for Dates, State and Online.<br /> +° Group Permissions<br /> +<br /><br /> +<span class="red">NOTE: Fields marked with red asterisk are required</span> + </p> <!-- -----Help Content ---------- --> </div> Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_docsubmit_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_docsubmit_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_docsubmit_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,21 @@ +Hello {X_UNAME}, + +A new file "{FILE_NAME}" has been submitted in the category "{CATEGORY_NAME}" at {X_SITENAME} and is awaiting approval. + +You can view this file submission here (note this page shows waiting files in ALL categories): +{WAITINGFILES_URL} + +----------- + +You are receiving this message because you selected to be notified when new files are submitted in this category. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_newdoc_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_newdoc_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/category_newdoc_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,24 @@ +Hello {X_UNAME}, + +A new file "{FILE_NAME}" has been added in category "{CATEGORY_NAME}" at {X_SITENAME}. + +You can view this file here: +{FILE_URL} + +You can view the whole category here: +{CATEGORY_URL} + +----------- + +You are receiving this message because you selected to be notified when new files are added in this category. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/doc_approve_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/doc_approve_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/doc_approve_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,21 @@ +Hello {X_UNAME}, + +The submitted file "{FILE_NAME}" has been approved at {X_SITENAME}. + +You can view this file here: +{FILE_URL} + +----------- + +You are receiving this message because you selected to be notified when this file was approved. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docbroken_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docbroken_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docbroken_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,21 @@ +Hello {X_UNAME}, + +A broken file report has been submitted and is awaiting approval. + +You can view this request here: +{BROKENREPORTS_URL} + +----------- + +You are receiving this message because you selected to be notified when broken file reports are submitted. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docmodify_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docmodify_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docmodify_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,21 @@ +Hello {X_UNAME}, + +A file modification request has been submitted and is awaiting approval. + +You can view this request here: +{MODIFYREPORTS_URL} + +----------- + +You are receiving this message because you selected to be notified when new file modification requests are submitted. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docsubmit_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docsubmit_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_docsubmit_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,21 @@ +Hello {X_UNAME}, + +A new file "{FILE_NAME}" has been submitted at {X_SITENAME} and is awaiting approval. + +You can view this link submission here: +{WAITINGFILES_URL} + +----------- + +You are receiving this message because you selected to be notified when new files are submitted to our site. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newcategory_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newcategory_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newcategory_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,24 @@ +Hello {X_UNAME}, + +A new file category "{CATEGORY_NAME}" has been created at {X_SITENAME}. + +Follow this link to view this file category: +{CATEGORY_URL} + +Follow this link to view the category index: +{X_MODULE_URL} + +----------- + +You are receiving this message because you selected to be notified when new file categories are added to our site. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newfile_notify.tpl =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newfile_notify.tpl (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/global_newfile_notify.tpl 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1,21 @@ +Hello {X_UNAME}, + +A new file "{FILE_NAME}" has been added at {X_SITENAME}. + +You can view this file here: +{FILE_URL} + +----------- + +You are receiving this message because you selected to be notified when new files are added to our site. + +If this is an error or you wish not to receive further such notifications, please update your subscriptions by visiting the link below: +{X_UNSUBSCRIBE_URL} + +Please do not reply to this message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +webmaster +{X_ADMINMAIL} Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/index.html =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/index.html (rev 0) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/mail_template/index.html 2012-03-18 21:40:44 UTC (rev 9154) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/modinfo.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/modinfo.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/modinfo.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -32,8 +32,9 @@ define("_MI_XPDF_ADMENU3","Documents"); define("_MI_XPDF_ADMENU4","Modified"); define("_MI_XPDF_ADMENU5","Broken"); -define("_MI_XPDF_ADMENU6","Permissions"); -define("_MI_XPDF_ADMENU7","About"); +define("_MI_XPDF_ADMENU6","Files List"); +define("_MI_XPDF_ADMENU7","Permissions"); +define("_MI_XPDF_ADMENU8","About"); //Blocks define("_MI_XPDF_CAT_BLOCK_RECENT","Categories recents"); @@ -94,42 +95,42 @@ // Notifications define("_MI_XPDF_GLOBAL_NOTIFY", "Global"); -define("_MI_XPDF_GLOBAL_NOTIFYDSC", "Global downloads notification options."); +define("_MI_XPDF_GLOBAL_NOTIFY_DESC", "Global downloads notification options."); define("_MI_XPDF_CATEGORY_NOTIFY", "Category"); -define("_MI_XPDF_CATEGORY_NOTIFYDSC", "Notification options that apply to the current document category."); +define("_MI_XPDF_CATEGORY_NOTIFY_DESC", "Notification options that apply to the current document category."); define("_MI_XPDF_DOC_NOTIFY", "Document"); -define("_MI_XPDF_DOC_NOTIFYDSC", "Notification options that apply to the current document."); +define("_MI_XPDF_DOC_NOTIFY_DESC", "Notification options that apply to the current document."); define("_MI_XPDF_GLOBAL_NEWCATEGORY_NOTIFY", "New Category"); define("_MI_XPDF_GLOBAL_NEWCATEGORY_NOTIFYCAP", "Notify me when a new document category is created."); -define("_MI_XPDF_GLOBAL_NEWCATEGORY_NOTIFYDSC", "Receive notification when a new document category is created"); +define("_MI_XPDF_GLOBAL_NEWCATEGORY_NOTIFY_DESC", "Receive notification when a new document category is created"); define("_MI_XPDF_GLOBAL_NEWCATEGORY_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New document category"); define("_MI_XPDF_GLOBAL_DOCMODIFY_NOTIFY", "Modify Document Requested"); define("_MI_XPDF_GLOBAL_DOCMODIFY_NOTIFYCAP", "Notify me of any document modification request."); -define("_MI_XPDF_GLOBAL_DOCMODIFY_NOTIFYDSC", "Receive notification when any document modification request is submitted."); +define("_MI_XPDF_GLOBAL_DOCMODIFY_NOTIFY_DESC", "Receive notification when any document modification request is submitted."); define("_MI_XPDF_GLOBAL_DOCMODIFY_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : Document Modification Requested"); define("_MI_XPDF_GLOBAL_DOCBROKEN_NOTIFY", "Broken Document Submitted"); define("_MI_XPDF_GLOBAL_DOCBROKEN_NOTIFYCAP", "Notify me of any broken document report."); -define("_MI_XPDF_GLOBAL_DOCBROKEN_NOTIFYDSC", "Receive notification when any broken document report is submitted."); +define("_MI_XPDF_GLOBAL_DOCBROKEN_NOTIFY_DESC", "Receive notification when any broken document report is submitted."); define("_MI_XPDF_GLOBAL_DOCBROKEN_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : Broken Document Reported"); define("_MI_XPDF_GLOBAL_DOCSUBMIT_NOTIFY", "Document Submitted"); define("_MI_XPDF_GLOBAL_DOCSUBMIT_NOTIFYCAP", "Notify me when any new document is submitted (awaiting approval)."); -define("_MI_XPDF_GLOBAL_DOCSUBMIT_NOTIFYDSC", "Receive notification when any new document is submitted (awaiting approval)."); +define("_MI_XPDF_GLOBAL_DOCSUBMIT_NOTIFY_DESC", "Receive notification when any new document is submitted (awaiting approval)."); define("_MI_XPDF_GLOBAL_DOCSUBMIT_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} notification automatique : New document submitted"); define("_MI_XPDF_GLOBAL_NEWDOC_NOTIFY", "New Document"); define("_MI_XPDF_GLOBAL_NEWDOC_NOTIFYCAP", "Notify me when any new document is posted."); -define("_MI_XPDF_GLOBAL_NEWDOC_NOTIFYDSC", "Receive notification when any new document is posted."); +define("_MI_XPDF_GLOBAL_NEWDOC_NOTIFY_DESC", "Receive notification when any new document is posted."); define("_MI_XPDF_GLOBAL_NEWDOC_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New document"); define("_MI_XPDF_CATEGORY_DOCSUBMIT_NOTIFY", "Document Submitted"); define("_MI_XPDF_CATEGORY_DOCSUBMIT_NOTIFYCAP", "Notify me when a new document is submitted (awaiting approval) to the current category."); -define("_MI_XPDF_CATEGORY_DOCSUBMIT_NOTIFYDSC", "Receive notification when a new document is submitted (awaiting approval) to the current category."); +define("_MI_XPDF_CATEGORY_DOCSUBMIT_NOTIFY_DESC", "Receive notification when a new document is submitted (awaiting approval) to the current category."); define("_MI_XPDF_CATEGORY_DOCSUBMIT_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New document submitted in category"); define("_MI_XPDF_CATEGORY_NEWDOC_NOTIFY", "New Document"); define("_MI_XPDF_CATEGORY_NEWDOC_NOTIFYCAP", "Notify me when a new document is posted to the current category."); -define("_MI_XPDF_CATEGORY_NEWDOC_NOTIFYDSC", "Receive notification when a new document is posted to the current category."); +define("_MI_XPDF_CATEGORY_NEWDOC_NOTIFY_DESC", "Receive notification when a new document is posted to the current category."); define("_MI_XPDF_CATEGORY_NEWDOC_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} New document in category"); define("_MI_XPDF_DOC_APPROVE_NOTIFY", "Document Approved"); define("_MI_XPDF_DOC_APPROVE_NOTIFYCAP", "Notify me when this document is approved."); -define("_MI_XPDF_DOC_APPROVE_NOTIFYDSC", "Receive notification when this document is approved."); +define("_MI_XPDF_DOC_APPROVE_NOTIFY_DESC", "Receive notification when this document is approved."); define("_MI_XPDF_DOC_APPROVE_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : Document Approved"); ?> \ No newline at end of file Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/new.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/popular.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/popular.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/updated.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/english/updated.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/admin.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/admin.php 2012-03-18 09:31:22 UTC (rev 9153) +++ XoopsModules/xpdf/releases/1.01a/modules/xpdf/language/italian/admin.php 2012-03-18 21:40:44 UTC (rev 9154) @@ -26,9 +26,11 @@ define("_AM_XPDF_STATISTICS","Statistiche"); define("_AM_XPDF_THEREARE_CAT","Ci sono <span class='bold'>%s</span> Categorie nel Database"); define("_AM_XPDF_THEREARE_DOC","Ci sono <span class='bold'>%s</span> Documenti nel Database"); +define("_AM_XPDF_THEREARE_DOC_BROKEN","Ci sono <span class='bold'>%s</span> Documenti da riparare"); define("_AM_XPDF_THEREARE_DOC_STATUS","Ci sono <span class='bold'>%s</span> Documenti attivi"); define("_AM_XPDF_THEREARE_DOC_WAITING","Ci sono <span class='bold'>%s</span> Documenti in attesa"); define("_AM_XPDF_THEREARE_DOC_ONLINE","Ci sono <span class='bold'>%s</span> Documenti online"); +define("_AM_XPDF_THEREARE_DOC_MODIFIED","Ci sono <span class='bold'>%s</span> richieste di Documenti da modificare"); //Buttons define("_AM_XPDF_NEWCAT","Aggiungi Categoria"); define("_AM_XPDF_CATLIST","Lista Categorie"); @@ -42,8 +44,8 @@ define("_AM_XPDF_FORMSURERENEW", "Are you sure you want renew: <b><span style=\"color : Red\"> %s </span></b>"); define("_AM_XPDF_FORMUPLOAD","Upload"); define("_AM_XPDF_FORMIMAGE_PATH","File presenti in %s"); -define("_AM_XPDF_CREATEPDF","Create pdf file"); -define("_AM_XPDF_DELETEPDF","Delete pdf file"); +define("_AM_XPDF_CREATEPDF","Create pdf documento"); +define("_AM_XPDF_DELETEPDF","Delete pdf documento"); define("_AM_XPDF_FILECREATEDOK","Pdf File Created Successfully"); define("_AM_XPDF_FILEDELETEDOK","Pdf File Deleted Successfully"); define("_AM_XPDF_FORMACTION","Azione"); @@ -73,13 +75,13 @@ define("_AM_XPDF_DOC_SUBMITTER","Submitter"); define("_AM_XPDF_DOC_CREATED","Creato il"); define("_AM_XPDF_DOC_WEIGHT","Peso"); -define("_AM_XPDF_DOC_STATUS","Stato file pdf"); +define("_AM_XPDF_DOC_STATUS","Stato documento pdf"); define("_AM_XPDF_DOC_WAITING","In attesa"); define("_AM_XPDF_DOC_ONLINE","Online"); define("_AM_XPDF_FONTNAME","Nome: "); define("_AM_XPDF_FONTSIZE","Grandezza: "); -define("_AM_XPDF_FORMPATH","Percorso per i file immagine nella cartella: "); +define("_AM_XPDF_FORMPATH","Percorso per i documento immagine nella cartella: "); //Blocks.php define("_AM_XPDF_CAT_BLOCK_DAY","Cats of today"); @@ -90,6 +92,15 @@ define("_AM_XPDF_DOC_BLOCK_RANDOM","Docs random"); define("_AM_XPDF_DOC_BLOCK_RECENT","Docs recents"); +//broken.php +define("_AM_XPDF_BROKEN_SENDER","Report Author"); +define("_AM_XPDF_BROKEN_SURDEL","Are you sure you want to delete this report?"); + +//modified.php +define("_AM_XPDF_MODIFIED_MOD","Submited by;"); +define("_AM_XPDF_MODIFIED_ORIGINAL","Original"); +define("_AM_XPDF_MODIFIED_SURDEL","Are you sure you want to delete this document modification request?"); ... [truncated message content] |
From: <be...@us...> - 2012-03-18 09:31:32
|
Revision: 9153 http://xoops.svn.sourceforge.net/xoops/?rev=9153&view=rev Author: beckmi Date: 2012-03-18 09:31:22 +0000 (Sun, 18 Mar 2012) Log Message: ----------- Updated HTML Purifier to 4.4.0 Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/FontFamily.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/URI.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Color.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/ID.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI/Host.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/ImgRequired.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/SafeParam.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTypes.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Bootstrap.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/CSSDefinition.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/Table.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Config.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Core.ColorKeywords.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Filter.YouTube.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.Allowed.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedElements.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeEmbed.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeObject.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.Trusted.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/URI.AllowedSchemes.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/URI.DisableResources.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema.ser XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Definition.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ElementDef.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Encoder.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/EntityLookup/entities.ser XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Filter/ExtractStyleBlocks.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Filter/YouTube.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Generator.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLDefinition.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Forms.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Legacy.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/List.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/SafeEmbed.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/SafeObject.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Tables.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModuleManager.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Injector/AutoParagraph.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Injector/SafeObject.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Language/messages/en.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/DOMLex.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/DirectLex.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/PH5P.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Strategy/Composite.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Strategy/MakeWellFormed.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Strategy/RemoveForeignElements.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/TagTransform/Font.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Token/Tag.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URI.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIDefinition.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIFilter/HostBlacklist.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIFilter/Munge.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIFilter.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/ftp.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/http.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/https.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/mailto.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/news.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/nntp.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/VarParser/Flexible.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier.autoload.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier.includes.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier.safe-includes.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/INSTALL XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/NEWS Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Ident.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/Clone.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/Nofollow.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/TargetBlank.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/List.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveSpansWithoutAttributes.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowedFonts.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/CSS.ForbiddenProperties.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/CSS.Trusted.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Cache.SerializerPermissions.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Core.EnableIDNA.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Core.NormalizeNewlines.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveProcessingInstructions.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedComments.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedCommentsRegexp.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.FlashAllowFullScreen.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.Nofollow.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeIframe.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/HTML.TargetBlank.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Output.FixInnerHTML.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/Output.FlashCompat.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigSchema/schema/URI.SafeIframeRegexp.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Iframe.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Nofollow.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/TargetBlank.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Injector/RemoveSpansWithoutAttributes.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIFilter/DisableResources.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIFilter/SafeIframe.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/data.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIScheme/file.php Removed Paths: ------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigDef/ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ConfigDef.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/CSS/ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/HTML/ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/Test/ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/DefinitionCache/Serializer/URI/ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Error.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLModule/Tidy/XHTMLStrict.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/PEARSax3.php Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-18 09:31:22 UTC (rev 9153) @@ -5,11 +5,14 @@ =============================== Bugfixes: - adding missing check for local timezone (XavierS) - - ID: 3494895: When changing the # of visible entries, it goes to Admin + - ID: 3494895: When changing the # of visible entries, it goes to Admin (jcweb/mamba) Improved: - replacing "msnbot" with "bingbot" in Protector (mamba) +Updated: + - HTML Purifier to 4.4.0 (mamba) + =============================== 2011/02/19: Version 2.5.5 Beta =============================== Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -59,7 +59,8 @@ $keywords = array(); $keywords['h'] = false; // left, right $keywords['v'] = false; // top, bottom - $keywords['c'] = false; // center + $keywords['ch'] = false; // center (first word) + $keywords['cv'] = false; // center (second word) $measures = array(); $i = 0; @@ -79,6 +80,13 @@ $lbit = ctype_lower($bit) ? $bit : strtolower($bit); if (isset($lookup[$lbit])) { $status = $lookup[$lbit]; + if ($status == 'c') { + if ($i == 0) { + $status = 'ch'; + } else { + $status = 'cv'; + } + } $keywords[$status] = $lbit; $i++; } @@ -101,20 +109,19 @@ if (!$i) return false; // no valid values were caught - $ret = array(); // first keyword if ($keywords['h']) $ret[] = $keywords['h']; + elseif ($keywords['ch']) { + $ret[] = $keywords['ch']; + $keywords['cv'] = false; // prevent re-use: center = center center + } elseif (count($measures)) $ret[] = array_shift($measures); - elseif ($keywords['c']) { - $ret[] = $keywords['c']; - $keywords['c'] = false; // prevent re-use: center = center center - } if ($keywords['v']) $ret[] = $keywords['v']; + elseif ($keywords['cv']) $ret[] = $keywords['cv']; elseif (count($measures)) $ret[] = array_shift($measures); - elseif ($keywords['c']) $ret[] = $keywords['c']; if (empty($ret)) return false; return implode(' ', $ret); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/FontFamily.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/FontFamily.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/FontFamily.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -2,11 +2,43 @@ /** * Validates a font family list according to CSS spec - * @todo whitelisting allowed fonts would be nice */ class HTMLPurifier_AttrDef_CSS_FontFamily extends HTMLPurifier_AttrDef { + protected $mask = null; + + public function __construct() { + $this->mask = '- '; + for ($c = 'a'; $c <= 'z'; $c++) $this->mask .= $c; + for ($c = 'A'; $c <= 'Z'; $c++) $this->mask .= $c; + for ($c = '0'; $c <= '9'; $c++) $this->mask .= $c; // cast-y, but should be fine + // special bytes used by UTF-8 + for ($i = 0x80; $i <= 0xFF; $i++) { + // We don't bother excluding invalid bytes in this range, + // because the our restriction of well-formed UTF-8 will + // prevent these from ever occurring. + $this->mask .= chr($i); + } + + /* + PHP's internal strcspn implementation is + O(length of string * length of mask), making it inefficient + for large masks. However, it's still faster than + preg_match 8) + for (p = s1;;) { + spanp = s2; + do { + if (*spanp == c || p == s1_end) { + return p - s1; + } + } while (spanp++ < (s2_end - 1)); + c = *++p; + } + */ + // possible optimization: invert the mask. + } + public function validate($string, $config, $context) { static $generic_names = array( 'serif' => true, @@ -15,6 +47,7 @@ 'fantasy' => true, 'cursive' => true ); + $allowed_fonts = $config->get('CSS.AllowedFonts'); // assume that no font names contain commas in them $fonts = explode(',', $string); @@ -24,7 +57,9 @@ if ($font === '') continue; // match a generic name if (isset($generic_names[$font])) { - $final .= $font . ', '; + if ($allowed_fonts === null || isset($allowed_fonts[$font])) { + $final .= $font . ', '; + } continue; } // match a quoted name @@ -34,50 +69,122 @@ $quote = $font[0]; if ($font[$length - 1] !== $quote) continue; $font = substr($font, 1, $length - 2); + } - $new_font = ''; - for ($i = 0, $c = strlen($font); $i < $c; $i++) { - if ($font[$i] === '\\') { - $i++; - if ($i >= $c) { - $new_font .= '\\'; - break; - } - if (ctype_xdigit($font[$i])) { - $code = $font[$i]; - for ($a = 1, $i++; $i < $c && $a < 6; $i++, $a++) { - if (!ctype_xdigit($font[$i])) break; - $code .= $font[$i]; - } - // We have to be extremely careful when adding - // new characters, to make sure we're not breaking - // the encoding. - $char = HTMLPurifier_Encoder::unichr(hexdec($code)); - if (HTMLPurifier_Encoder::cleanUTF8($char) === '') continue; - $new_font .= $char; - if ($i < $c && trim($font[$i]) !== '') $i--; - continue; - } - if ($font[$i] === "\n") continue; - } - $new_font .= $font[$i]; - } + $font = $this->expandCSSEscape($font); - $font = $new_font; - } // $font is a pure representation of the font name + if ($allowed_fonts !== null && !isset($allowed_fonts[$font])) { + continue; + } + if (ctype_alnum($font) && $font !== '') { // very simple font, allow it in unharmed $final .= $font . ', '; continue; } - // complicated font, requires quoting + // bugger out on whitespace. form feed (0C) really + // shouldn't show up regardless + $font = str_replace(array("\n", "\t", "\r", "\x0C"), ' ', $font); - // armor single quotes and new lines - $font = str_replace("\\", "\\\\", $font); - $font = str_replace("'", "\\'", $font); + // Here, there are various classes of characters which need + // to be treated differently: + // - Alphanumeric characters are essentially safe. We + // handled these above. + // - Spaces require quoting, though most parsers will do + // the right thing if there aren't any characters that + // can be misinterpreted + // - Dashes rarely occur, but they fairly unproblematic + // for parsing/rendering purposes. + // The above characters cover the majority of Western font + // names. + // - Arbitrary Unicode characters not in ASCII. Because + // most parsers give little thought to Unicode, treatment + // of these codepoints is basically uniform, even for + // punctuation-like codepoints. These characters can + // show up in non-Western pages and are supported by most + // major browsers, for example: "MS 明朝" is a + // legitimate font-name + // <http://ja.wikipedia.org/wiki/MS_明朝>. See + // the CSS3 spec for more examples: + // <http://www.w3.org/TR/2011/WD-css3-fonts-20110324/localizedfamilynames.png> + // You can see live samples of these on the Internet: + // <http://www.google.co.jp/search?q=font-family+MS+明朝|ゴシック> + // However, most of these fonts have ASCII equivalents: + // for example, 'MS Mincho', and it's considered + // professional to use ASCII font names instead of + // Unicode font names. Thanks Takeshi Terada for + // providing this information. + // The following characters, to my knowledge, have not been + // used to name font names. + // - Single quote. While theoretically you might find a + // font name that has a single quote in its name (serving + // as an apostrophe, e.g. Dave's Scribble), I haven't + // been able to find any actual examples of this. + // Internet Explorer's cssText translation (which I + // believe is invoked by innerHTML) normalizes any + // quoting to single quotes, and fails to escape single + // quotes. (Note that this is not IE's behavior for all + // CSS properties, just some sort of special casing for + // font-family). So a single quote *cannot* be used + // safely in the font-family context if there will be an + // innerHTML/cssText translation. Note that Firefox 3.x + // does this too. + // - Double quote. In IE, these get normalized to + // single-quotes, no matter what the encoding. (Fun + // fact, in IE8, the 'content' CSS property gained + // support, where they special cased to preserve encoded + // double quotes, but still translate unadorned double + // quotes into single quotes.) So, because their + // fixpoint behavior is identical to single quotes, they + // cannot be allowed either. Firefox 3.x displays + // single-quote style behavior. + // - Backslashes are reduced by one (so \\ -> \) every + // iteration, so they cannot be used safely. This shows + // up in IE7, IE8 and FF3 + // - Semicolons, commas and backticks are handled properly. + // - The rest of the ASCII punctuation is handled properly. + // We haven't checked what browsers do to unadorned + // versions, but this is not important as long as the + // browser doesn't /remove/ surrounding quotes (as IE does + // for HTML). + // + // With these results in hand, we conclude that there are + // various levels of safety: + // - Paranoid: alphanumeric, spaces and dashes(?) + // - International: Paranoid + non-ASCII Unicode + // - Edgy: Everything except quotes, backslashes + // - NoJS: Standards compliance, e.g. sod IE. Note that + // with some judicious character escaping (since certain + // types of escaping doesn't work) this is theoretically + // OK as long as innerHTML/cssText is not called. + // We believe that international is a reasonable default + // (that we will implement now), and once we do more + // extensive research, we may feel comfortable with dropping + // it down to edgy. + + // Edgy: alphanumeric, spaces, dashes and Unicode. Use of + // str(c)spn assumes that the string was already well formed + // Unicode (which of course it is). + if (strspn($font, $this->mask) !== strlen($font)) { + continue; + } + + // Historical: + // In the absence of innerHTML/cssText, these ugly + // transforms don't pose a security risk (as \\ and \" + // might--these escapes are not supported by most browsers). + // We could try to be clever and use single-quote wrapping + // when there is a double quote present, but I have choosen + // not to implement that. (NOTE: you can reduce the amount + // of escapes by one depending on what quoting style you use) + // $font = str_replace('\\', '\\5C ', $font); + // $font = str_replace('"', '\\22 ', $font); + // $font = str_replace("'", '\\27 ', $font); + + // font possibly with spaces, requires quoting $final .= "'$font', "; } $final = rtrim($final, ', '); Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Ident.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Ident.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Ident.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -0,0 +1,24 @@ +<?php + +/** + * Validates based on {ident} CSS grammar production + */ +class HTMLPurifier_AttrDef_CSS_Ident extends HTMLPurifier_AttrDef +{ + + public function validate($string, $config, $context) { + + $string = trim($string); + + // early abort: '' and '0' (strings that convert to false) are invalid + if (!$string) return false; + + $pattern = '/^(-?[A-Za-z_][A-Za-z_\-0-9]*)$/'; + if (!preg_match($pattern, $string)) return false; + return $string; + + } + +} + +// vim: et sw=4 sts=4 Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/URI.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/URI.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/URI.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -34,21 +34,26 @@ $uri = substr($uri, 1, $new_length - 1); } - $keys = array( '(', ')', ',', ' ', '"', "'"); - $values = array('\\(', '\\)', '\\,', '\\ ', '\\"', "\\'"); - $uri = str_replace($values, $keys, $uri); + $uri = $this->expandCSSEscape($uri); $result = parent::validate($uri, $config, $context); if ($result === false) return false; - // escape necessary characters according to CSS spec - // except for the comma, none of these should appear in the - // URI at all - $result = str_replace($keys, $values, $result); + // extra sanity check; should have been done by URI + $result = str_replace(array('"', "\\", "\n", "\x0c", "\r"), "", $result); - return "url($result)"; + // suspicious characters are ()'; we're going to percent encode + // them for safety. + $result = str_replace(array('(', ')', "'"), array('%28', '%29', '%27'), $result); + // there's an extra bug where ampersands lose their escaping on + // an innerHTML cycle, so a very unlucky query parameter could + // then change the meaning of the URL. Unfortunately, there's + // not much we can do about that... + + return "url(\"$result\")"; + } } Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/Clone.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/Clone.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/Clone.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -0,0 +1,28 @@ +<?php + +/** + * Dummy AttrDef that mimics another AttrDef, BUT it generates clones + * with make. + */ +class HTMLPurifier_AttrDef_Clone extends HTMLPurifier_AttrDef +{ + /** + * What we're cloning + */ + protected $clone; + + public function __construct($clone) { + $this->clone = $clone; + } + + public function validate($v, $config, $context) { + return $this->clone->validate($v, $config, $context); + } + + public function make($string) { + return clone $this->clone; + } + +} + +// vim: et sw=4 sts=4 Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Color.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Color.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Color.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -14,7 +14,7 @@ $string = trim($string); if (empty($string)) return false; - if (isset($colors[$string])) return $colors[$string]; + if (isset($colors[strtolower($string)])) return $colors[$string]; if ($string[0] === '#') $hex = substr($string, 1); else $hex = $string; Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/ID.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/ID.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/ID.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -12,12 +12,22 @@ class HTMLPurifier_AttrDef_HTML_ID extends HTMLPurifier_AttrDef { - // ref functionality disabled, since we also have to verify - // whether or not the ID it refers to exists + // selector is NOT a valid thing to use for IDREFs, because IDREFs + // *must* target IDs that exist, whereas selector #ids do not. + /** + * Determines whether or not we're validating an ID in a CSS + * selector context. + */ + protected $selector; + + public function __construct($selector = false) { + $this->selector = $selector; + } + public function validate($id, $config, $context) { - if (!$config->get('Attr.EnableID')) return false; + if (!$this->selector && !$config->get('Attr.EnableID')) return false; $id = trim($id); // trim it first @@ -33,10 +43,10 @@ '%Attr.IDPrefix is set', E_USER_WARNING); } - //if (!$this->ref) { + if (!$this->selector) { $id_accumulator =& $context->get('IDAccumulator'); if (isset($id_accumulator->ids[$id])) return false; - //} + } // we purposely avoid using regex, hopefully this is faster @@ -56,7 +66,7 @@ return false; } - if (/*!$this->ref && */$result) $id_accumulator->add($id); + if (!$this->selector && $result) $id_accumulator->add($id); // if no change was made to the ID, return the result // else, return the new id if stripping whitespace made it Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI/Host.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI/Host.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI/Host.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -23,6 +23,12 @@ public function validate($string, $config, $context) { $length = strlen($string); + // empty hostname is OK; it's usually semantically equivalent: + // the default host as defined by a URI scheme is used: + // + // If the URI scheme defines a default for host, then that + // default applies when the host subcomponent is undefined + // or when the registered name is empty (zero length). if ($string === '') return ''; if ($length > 1 && $string[0] === '[' && $string[$length-1] === ']') { //IPv6 @@ -38,9 +44,8 @@ // A regular domain name. - // This breaks I18N domain names, but we don't have proper IRI support, - // so force users to insert Punycode. If there's complaining we'll - // try to fix things into an international friendly form. + // This doesn't match I18N domain names, but we don't have proper IRI support, + // so force users to insert Punycode. // The productions describing this are: $a = '[a-z]'; // alpha @@ -51,10 +56,44 @@ // toplabel = alpha | alpha *( alphanum | "-" ) alphanum $toplabel = "$a($and*$an)?"; // hostname = *( domainlabel "." ) toplabel [ "." ] - $match = preg_match("/^($domainlabel\.)*$toplabel\.?$/i", $string); - if (!$match) return false; + if (preg_match("/^($domainlabel\.)*$toplabel\.?$/i", $string)) { + return $string; + } - return $string; + // If we have Net_IDNA2 support, we can support IRIs by + // punycoding them. (This is the most portable thing to do, + // since otherwise we have to assume browsers support + + if ($config->get('Core.EnableIDNA')) { + $idna = new Net_IDNA2(array('encoding' => 'utf8', 'overlong' => false, 'strict' => true)); + // we need to encode each period separately + $parts = explode('.', $string); + try { + $new_parts = array(); + foreach ($parts as $part) { + $encodable = false; + for ($i = 0, $c = strlen($part); $i < $c; $i++) { + if (ord($part[$i]) > 0x7a) { + $encodable = true; + break; + } + } + if (!$encodable) { + $new_parts[] = $part; + } else { + $new_parts[] = $idna->encode($part); + } + } + $string = implode('.', $new_parts); + if (preg_match("/^($domainlabel\.)*$toplabel\.?$/i", $string)) { + return $string; + } + } catch (Exception $e) { + // XXX error reporting + } + } + + return false; } } Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -19,7 +19,7 @@ } public function make($string) { - $embeds = (bool) $string; + $embeds = ($string === 'embedded'); return new HTMLPurifier_AttrDef_URI($embeds); } Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -82,6 +82,42 @@ return preg_replace('/rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\)/', 'rgb(\1,\2,\3)', $string); } + /** + * Parses a possibly escaped CSS string and returns the "pure" + * version of it. + */ + protected function expandCSSEscape($string) { + // flexibly parse it + $ret = ''; + for ($i = 0, $c = strlen($string); $i < $c; $i++) { + if ($string[$i] === '\\') { + $i++; + if ($i >= $c) { + $ret .= '\\'; + break; + } + if (ctype_xdigit($string[$i])) { + $code = $string[$i]; + for ($a = 1, $i++; $i < $c && $a < 6; $i++, $a++) { + if (!ctype_xdigit($string[$i])) break; + $code .= $string[$i]; + } + // We have to be extremely careful when adding + // new characters, to make sure we're not breaking + // the encoding. + $char = HTMLPurifier_Encoder::unichr(hexdec($code)); + if (HTMLPurifier_Encoder::cleanUTF8($char) === '') continue; + $ret .= $char; + if ($i < $c && trim($string[$i]) !== '') $i--; + continue; + } + if ($string[$i] === "\n") continue; + } + $ret .= $string[$i]; + } + return $ret; + } + } // vim: et sw=4 sts=4 Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/ImgRequired.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/ImgRequired.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/ImgRequired.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -24,7 +24,8 @@ if ($src) { $alt = $config->get('Attr.DefaultImageAlt'); if ($alt === null) { - $attr['alt'] = basename($attr['src']); + // truncate if the alt is too long + $attr['alt'] = substr(basename($attr['src']),0,40); } else { $attr['alt'] = $alt; } Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/Nofollow.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/Nofollow.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/Nofollow.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -0,0 +1,45 @@ +<?php + +// must be called POST validation + +/** + * Adds rel="nofollow" to all outbound links. This transform is + * only attached if Attr.Nofollow is TRUE. + */ +class HTMLPurifier_AttrTransform_Nofollow extends HTMLPurifier_AttrTransform +{ + private $parser; + + public function __construct() { + $this->parser = new HTMLPurifier_URIParser(); + } + + public function transform($attr, $config, $context) { + + if (!isset($attr['href'])) { + return $attr; + } + + // XXX Kind of inefficient + $url = $this->parser->parse($attr['href']); + $scheme = $url->getSchemeObj($config, $context); + + if ($scheme->browsable && !$url->isLocal($config, $context)) { + if (isset($attr['rel'])) { + $rels = explode(' ', $attr); + if (!in_array('nofollow', $rels)) { + $rels[] = 'nofollow'; + } + $attr['rel'] = implode(' ', $rels); + } else { + $attr['rel'] = 'nofollow'; + } + } + + return $attr; + + } + +} + +// vim: et sw=4 sts=4 Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/SafeParam.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/SafeParam.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/SafeParam.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -19,6 +19,7 @@ public function __construct() { $this->uri = new HTMLPurifier_AttrDef_URI(true); // embedded + $this->wmode = new HTMLPurifier_AttrDef_Enum(array('window', 'opaque', 'transparent')); } public function transform($attr, $config, $context) { @@ -33,12 +34,25 @@ case 'allowNetworking': $attr['value'] = 'internal'; break; + case 'allowFullScreen': + if ($config->get('HTML.FlashAllowFullScreen')) { + $attr['value'] = ($attr['value'] == 'true') ? 'true' : 'false'; + } else { + $attr['value'] = 'false'; + } + break; case 'wmode': - $attr['value'] = 'window'; + $attr['value'] = $this->wmode->validate($attr['value'], $config, $context); break; case 'movie': + case 'src': + $attr['name'] = "movie"; $attr['value'] = $this->uri->validate($attr['value'], $config, $context); break; + case 'flashvars': + // we're going to allow arbitrary inputs to the SWF, on + // the reasoning that it could only hack the SWF, not us. + break; // add other cases to support other param name/value pairs default: $attr['name'] = $attr['value'] = null; Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/TargetBlank.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/TargetBlank.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTransform/TargetBlank.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -0,0 +1,38 @@ +<?php + +// must be called POST validation + +/** + * Adds target="blank" to all outbound links. This transform is + * only attached if Attr.TargetBlank is TRUE. This works regardless + * of whether or not Attr.AllowedFrameTargets + */ +class HTMLPurifier_AttrTransform_TargetBlank extends HTMLPurifier_AttrTransform +{ + private $parser; + + public function __construct() { + $this->parser = new HTMLPurifier_URIParser(); + } + + public function transform($attr, $config, $context) { + + if (!isset($attr['href'])) { + return $attr; + } + + // XXX Kind of inefficient + $url = $this->parser->parse($attr['href']); + $scheme = $url->getSchemeObj($config, $context); + + if ($scheme->browsable && !$url->isBenign($config, $context)) { + $attr['target'] = 'blank'; + } + + return $attr; + + } + +} + +// vim: et sw=4 sts=4 Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTypes.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTypes.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrTypes.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -15,6 +15,13 @@ * types. */ public function __construct() { + // XXX This is kind of poor, since we don't actually /clone/ + // instances; instead, we use the supplied make() attribute. So, + // the underlying class must know how to deal with arguments. + // With the old implementation of Enum, that ignored its + // arguments when handling a make dispatch, the IAlign + // definition wouldn't work. + // pseudo-types, must be instantiated via shorthand $this->info['Enum'] = new HTMLPurifier_AttrDef_Enum(); $this->info['Bool'] = new HTMLPurifier_AttrDef_HTML_Bool(); @@ -29,6 +36,9 @@ $this->info['URI'] = new HTMLPurifier_AttrDef_URI(); $this->info['LanguageCode'] = new HTMLPurifier_AttrDef_Lang(); $this->info['Color'] = new HTMLPurifier_AttrDef_HTML_Color(); + $this->info['IAlign'] = self::makeEnum('top,middle,bottom,left,right'); + $this->info['LAlign'] = self::makeEnum('top,bottom,left,right'); + $this->info['FrameTarget'] = new HTMLPurifier_AttrDef_HTML_FrameTarget(); // unimplemented aliases $this->info['ContentType'] = new HTMLPurifier_AttrDef_Text(); @@ -44,6 +54,10 @@ $this->info['Number'] = new HTMLPurifier_AttrDef_Integer(false, false, true); } + private static function makeEnum($in) { + return new HTMLPurifier_AttrDef_Clone(new HTMLPurifier_AttrDef_Enum(explode(',', $in))); + } + /** * Retrieves a type * @param $type String type name Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Bootstrap.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Bootstrap.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Bootstrap.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -37,7 +37,12 @@ public static function autoload($class) { $file = HTMLPurifier_Bootstrap::getPath($class); if (!$file) return false; - require HTMLPURIFIER_PREFIX . '/' . $file; + // Technically speaking, it should be ok and more efficient to + // just do 'require', but Antonio Parraga reports that with + // Zend extensions such as Zend debugger and APC, this invariant + // may be broken. Since we have efficient alternatives, pay + // the cost here and avoid the bug. + require_once HTMLPURIFIER_PREFIX . '/' . $file; return true; } @@ -65,10 +70,11 @@ if ( ($funcs = spl_autoload_functions()) === false ) { spl_autoload_register($autoload); } elseif (function_exists('spl_autoload_unregister')) { + $buggy = version_compare(PHP_VERSION, '5.2.11', '<'); $compat = version_compare(PHP_VERSION, '5.1.2', '<=') && version_compare(PHP_VERSION, '5.1.0', '>='); foreach ($funcs as $func) { - if (is_array($func)) { + if ($buggy && is_array($func)) { // :TRICKY: There are some compatibility issues and some // places where we need to error out $reflector = new ReflectionMethod($func[0], $func[1]); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/CSSDefinition.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/CSSDefinition.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/CSSDefinition.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -219,6 +219,10 @@ $this->doSetupTricky($config); } + if ($config->get('CSS.Trusted')) { + $this->doSetupTrusted($config); + } + $allow_important = $config->get('CSS.AllowImportant'); // wrap all attr-defs with decorator that handles !important foreach ($this->info as $k => $v) { @@ -260,6 +264,23 @@ $this->info['overflow'] = new HTMLPurifier_AttrDef_Enum(array('visible', 'hidden', 'auto', 'scroll')); } + protected function doSetupTrusted($config) { + $this->info['position'] = new HTMLPurifier_AttrDef_Enum(array( + 'static', 'relative', 'absolute', 'fixed' + )); + $this->info['top'] = + $this->info['left'] = + $this->info['right'] = + $this->info['bottom'] = new HTMLPurifier_AttrDef_CSS_Composite(array( + new HTMLPurifier_AttrDef_CSS_Length(), + new HTMLPurifier_AttrDef_CSS_Percentage(), + new HTMLPurifier_AttrDef_Enum(array('auto')), + )); + $this->info['z-index'] = new HTMLPurifier_AttrDef_CSS_Composite(array( + new HTMLPurifier_AttrDef_Integer(), + new HTMLPurifier_AttrDef_Enum(array('auto')), + )); + } /** * Performs extra config-based processing. Based off of @@ -272,20 +293,29 @@ // setup allowed elements $support = "(for information on implementing this, see the ". "support forums) "; - $allowed_attributes = $config->get('CSS.AllowedProperties'); - if ($allowed_attributes !== null) { + $allowed_properties = $config->get('CSS.AllowedProperties'); + if ($allowed_properties !== null) { foreach ($this->info as $name => $d) { - if(!isset($allowed_attributes[$name])) unset($this->info[$name]); - unset($allowed_attributes[$name]); + if(!isset($allowed_properties[$name])) unset($this->info[$name]); + unset($allowed_properties[$name]); } // emit errors - foreach ($allowed_attributes as $name => $d) { + foreach ($allowed_properties as $name => $d) { // :TODO: Is this htmlspecialchars() call really necessary? $name = htmlspecialchars($name); trigger_error("Style attribute '$name' is not supported $support", E_USER_WARNING); } } + $forbidden_properties = $config->get('CSS.ForbiddenProperties'); + if ($forbidden_properties !== null) { + foreach ($this->info as $name => $d) { + if (isset($forbidden_properties[$name])) { + unset($this->info[$name]); + } + } + } + } } Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/List.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/List.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/List.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -0,0 +1,120 @@ +<?php + +/** + * Definition for list containers ul and ol. + */ +class HTMLPurifier_ChildDef_List extends HTMLPurifier_ChildDef +{ + public $type = 'list'; + // lying a little bit, so that we can handle ul and ol ourselves + // XXX: This whole business with 'wrap' is all a bit unsatisfactory + public $elements = array('li' => true, 'ul' => true, 'ol' => true); + public function validateChildren($tokens_of_children, $config, $context) { + // Flag for subclasses + $this->whitespace = false; + + // if there are no tokens, delete parent node + if (empty($tokens_of_children)) return false; + + // the new set of children + $result = array(); + + // current depth into the nest + $nesting = 0; + + // a little sanity check to make sure it's not ALL whitespace + $all_whitespace = true; + + $seen_li = false; + $need_close_li = false; + + foreach ($tokens_of_children as $token) { + if (!empty($token->is_whitespace)) { + $result[] = $token; + continue; + } + $all_whitespace = false; // phew, we're not talking about whitespace + + if ($nesting == 1 && $need_close_li) { + $result[] = new HTMLPurifier_Token_End('li'); + $nesting--; + $need_close_li = false; + } + + $is_child = ($nesting == 0); + + if ($token instanceof HTMLPurifier_Token_Start) { + $nesting++; + } elseif ($token instanceof HTMLPurifier_Token_End) { + $nesting--; + } + + if ($is_child) { + if ($token->name === 'li') { + // good + $seen_li = true; + } elseif ($token->name === 'ul' || $token->name === 'ol') { + // we want to tuck this into the previous li + $need_close_li = true; + $nesting++; + if (!$seen_li) { + // create a new li element + $result[] = new HTMLPurifier_Token_Start('li'); + } else { + // backtrack until </li> found + while(true) { + $t = array_pop($result); + if ($t instanceof HTMLPurifier_Token_End) { + // XXX actually, these invariants could very plausibly be violated + // if we are doing silly things with modifying the set of allowed elements. + // FORTUNATELY, it doesn't make a difference, since the allowed + // elements are hard-coded here! + if ($t->name !== 'li') { + trigger_error("Only li present invariant violated in List ChildDef", E_USER_ERROR); + return false; + } + break; + } elseif ($t instanceof HTMLPurifier_Token_Empty) { // bleagh + if ($t->name !== 'li') { + trigger_error("Only li present invariant violated in List ChildDef", E_USER_ERROR); + return false; + } + // XXX this should have a helper for it... + $result[] = new HTMLPurifier_Token_Start('li', $t->attr, $t->line, $t->col, $t->armor); + break; + } else { + if (!$t->is_whitespace) { + trigger_error("Only whitespace present invariant violated in List ChildDef", E_USER_ERROR); + return false; + } + } + } + } + } else { + // start wrapping (this doesn't precisely mimic + // browser behavior, but what browsers do is kind of + // hard to mimic in a standards compliant way + // XXX Actually, this has no impact in practice, + // because this gets handled earlier. Arguably, + // we should rip out all of that processing + $result[] = new HTMLPurifier_Token_Start('li'); + $nesting++; + $seen_li = true; + $need_close_li = true; + } + } + $result[] = $token; + } + if ($need_close_li) { + $result[] = new HTMLPurifier_Token_End('li'); + } + if (empty($result)) return false; + if ($all_whitespace) { + return false; + } + if ($tokens_of_children == $result) return true; + return $result; + } +} + +// vim: et sw=4 sts=4 Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/Table.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/Table.php 2012-03-18 09:15:30 UTC (rev 9152) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/Table.php 2012-03-18 09:31:22 UTC (rev 9153) @@ -1,7 +1,33 @@ <?php /** - * Definition for tables + * Definition for tables. The general idea is to extract out all of the + * essential bits, and then reconstruct it later. + * + * This is a bit confusing, because the DTDs and the W3C + * validators seem to disagree on the appropriate definition. The + * DTD claims: + * + * (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+) + * + * But actually, the HTML4 spec then has this to say: + * + * The TBODY start tag is always required except when the table + * contains only one table body and no table head or foot sections. + * The TBODY end tag may always be safely omitted. + * + * So the DTD is kind of wrong. The validator is, unfortunately, kind + * of on crack. + * + * The definition changed again in XHTML1.1; and in my opinion, this + * formulation makes the m... [truncated message content] |
From: <be...@us...> - 2012-03-18 09:15:36
|
Revision: 9152 http://xoops.svn.sourceforge.net/xoops/?rev=9152&view=rev Author: beckmi Date: 2012-03-18 09:15:30 +0000 (Sun, 18 Mar 2012) Log Message: ----------- Bug #3494895: When changing the # of visible entries, it goes to Admin Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/center.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/advisory.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/center.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/mymenu.php XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/prefix_manager.php Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/advisory.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/prefix_manager.php Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-18 06:09:54 UTC (rev 9151) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-18 09:15:30 UTC (rev 9152) @@ -5,6 +5,7 @@ =============================== Bugfixes: - adding missing check for local timezone (XavierS) + - ID: 3494895: When changing the # of visible entries, it goes to Admin Improved: - replacing "msnbot" with "bingbot" in Protector (mamba) Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/advisory.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/advisory.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/advisory.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -0,0 +1,12 @@ +<?php + +require '../../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin/advisory.php' ; + +?> \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/center.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/center.php 2012-03-18 06:09:54 UTC (rev 9151) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/center.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -7,6 +7,7 @@ $mydirpath = dirname( dirname( __FILE__ ) ) ; require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname -require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ; +//require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ; +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin/center.php' ; ?> \ No newline at end of file Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/prefix_manager.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/prefix_manager.php (rev 0) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/protector/admin/prefix_manager.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -0,0 +1,12 @@ +<?php + +require '../../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin/prefix_manager.php' ; + +?> \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/advisory.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/advisory.php 2012-03-18 06:09:54 UTC (rev 9151) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/advisory.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -1,5 +1,6 @@ <?php - +include '../../../include/cp_header.php'; +include 'admin_header.php'; $db =& XoopsDatabaseFactory::getDatabaseConnection(); // beggining of Output Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/center.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/center.php 2012-03-18 06:09:54 UTC (rev 9151) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/center.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -1,9 +1,9 @@ <?php +//require_once XOOPS_ROOT_PATH.'/include/cp_header.php' ; +include_once 'admin_header.php'; //mb problem: it shows always the same "Center" tab require_once XOOPS_ROOT_PATH.'/class/pagenav.php' ; require_once dirname(dirname(__FILE__)).'/class/gtickets.php' ; -//include_once 'admin_header.php'; //mb problem: it shows always the - //dirty trick to get navigation working with system menus if(isset($_GET['num'])) { $_SERVER['REQUEST_URI'] = 'admin/center.php?page=center'; Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/mymenu.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/mymenu.php 2012-03-18 06:09:54 UTC (rev 9151) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/mymenu.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -1,9 +1,10 @@ <?php - // Skip for ORETEKI XOOPS if( defined( 'XOOPS_ORETEKI' ) ) return ; -global $xoopsModule ; +global $xoopsModule; +$mydirpath = dirname( dirname( __FILE__ ) ) ; + if( ! is_object( $xoopsModule ) ) die( '$xoopsModule is not set' ) ; // language files (modinfo.php) @@ -17,6 +18,8 @@ } else { // fallback english include_once "$mytrustdirpath/language/english/modinfo.php" ; + + } include dirname(dirname(__FILE__)).'/admin_menu.php' ; Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/prefix_manager.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/prefix_manager.php 2012-03-18 06:09:54 UTC (rev 9151) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/admin/prefix_manager.php 2012-03-18 09:15:30 UTC (rev 9152) @@ -1,5 +1,6 @@ <?php - +include '../../../include/cp_header.php'; +include 'admin_header.php'; require_once dirname(dirname(__FILE__)).'/class/gtickets.php' ; $db =& XoopsDatabaseFactory::getDatabaseConnection(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-18 06:10:04
|
Revision: 9151 http://xoops.svn.sourceforge.net/xoops/?rev=9151&view=rev Author: beckmi Date: 2012-03-18 06:09:54 +0000 (Sun, 18 Mar 2012) Log Message: ----------- Adding Google Maps, converted to X 2.5.x Admin GUI Modified Paths: -------------- XoopsModules/news/branches/mamba/news/admin/about.php XoopsModules/news/branches/mamba/news/admin/admin_footer.php XoopsModules/news/branches/mamba/news/admin/admin_header.php XoopsModules/news/branches/mamba/news/admin/index.php XoopsModules/news/branches/mamba/news/admin/menu.php XoopsModules/news/branches/mamba/news/class/class.newsstory.php XoopsModules/news/branches/mamba/news/docs/lang.diff XoopsModules/news/branches/mamba/news/language/english/admin.php XoopsModules/news/branches/mamba/news/xoops_version.php Added Paths: ----------- XoopsModules/googlemaps/ XoopsModules/googlemaps/branches/ XoopsModules/googlemaps/releases/ XoopsModules/googlemaps/trunk/ XoopsModules/googlemaps/trunk/googlemaps/ XoopsModules/googlemaps/trunk/googlemaps/admin/ XoopsModules/googlemaps/trunk/googlemaps/admin/about.php XoopsModules/googlemaps/trunk/googlemaps/admin/admin_footer.php XoopsModules/googlemaps/trunk/googlemaps/admin/admin_header.php XoopsModules/googlemaps/trunk/googlemaps/admin/index.html XoopsModules/googlemaps/trunk/googlemaps/admin/index.php XoopsModules/googlemaps/trunk/googlemaps/admin/main.php XoopsModules/googlemaps/trunk/googlemaps/admin/menu.php XoopsModules/googlemaps/trunk/googlemaps/admin/sqlupdate.php XoopsModules/googlemaps/trunk/googlemaps/admin/sqlupdate2.php XoopsModules/googlemaps/trunk/googlemaps/docs/ XoopsModules/googlemaps/trunk/googlemaps/docs/UPGRADE.txt XoopsModules/googlemaps/trunk/googlemaps/docs/changelog.txt XoopsModules/googlemaps/trunk/googlemaps/docs/credits.txt XoopsModules/googlemaps/trunk/googlemaps/docs/index.html XoopsModules/googlemaps/trunk/googlemaps/docs/install.txt XoopsModules/googlemaps/trunk/googlemaps/docs/lang_diff.txt XoopsModules/googlemaps/trunk/googlemaps/docs/license.txt XoopsModules/googlemaps/trunk/googlemaps/docs/readme.txt XoopsModules/googlemaps/trunk/googlemaps/googlemaps.css XoopsModules/googlemaps/trunk/googlemaps/images/ XoopsModules/googlemaps/trunk/googlemaps/images/icons/ XoopsModules/googlemaps/trunk/googlemaps/images/icons/32/ XoopsModules/googlemaps/trunk/googlemaps/images/icons/32/categorysort.png XoopsModules/googlemaps/trunk/googlemaps/images/icons/32/index.html XoopsModules/googlemaps/trunk/googlemaps/images/icons/index.html XoopsModules/googlemaps/trunk/googlemaps/images/index.html XoopsModules/googlemaps/trunk/googlemaps/images/location.png XoopsModules/googlemaps/trunk/googlemaps/images/logo.png XoopsModules/googlemaps/trunk/googlemaps/images/meet.png XoopsModules/googlemaps/trunk/googlemaps/images/profil.png XoopsModules/googlemaps/trunk/googlemaps/index.php XoopsModules/googlemaps/trunk/googlemaps/language/ XoopsModules/googlemaps/trunk/googlemaps/language/english/ XoopsModules/googlemaps/trunk/googlemaps/language/english/admin.php XoopsModules/googlemaps/trunk/googlemaps/language/english/help/ XoopsModules/googlemaps/trunk/googlemaps/language/english/help/help.html XoopsModules/googlemaps/trunk/googlemaps/language/english/help/index.html XoopsModules/googlemaps/trunk/googlemaps/language/english/index.html XoopsModules/googlemaps/trunk/googlemaps/language/english/main.php XoopsModules/googlemaps/trunk/googlemaps/language/english/modinfo.php XoopsModules/googlemaps/trunk/googlemaps/language/french/ XoopsModules/googlemaps/trunk/googlemaps/language/french/admin.php XoopsModules/googlemaps/trunk/googlemaps/language/french/changelog_fr.txt XoopsModules/googlemaps/trunk/googlemaps/language/french/help/ XoopsModules/googlemaps/trunk/googlemaps/language/french/help/help.html XoopsModules/googlemaps/trunk/googlemaps/language/french/help/index.html XoopsModules/googlemaps/trunk/googlemaps/language/french/index.html XoopsModules/googlemaps/trunk/googlemaps/language/french/main.php XoopsModules/googlemaps/trunk/googlemaps/language/french/modinfo.php XoopsModules/googlemaps/trunk/googlemaps/language/german/ XoopsModules/googlemaps/trunk/googlemaps/language/german/admin.php XoopsModules/googlemaps/trunk/googlemaps/language/german/help/ XoopsModules/googlemaps/trunk/googlemaps/language/german/help/help.html XoopsModules/googlemaps/trunk/googlemaps/language/german/help/index.html XoopsModules/googlemaps/trunk/googlemaps/language/german/index.html XoopsModules/googlemaps/trunk/googlemaps/language/german/main.php XoopsModules/googlemaps/trunk/googlemaps/language/german/modinfo.php XoopsModules/googlemaps/trunk/googlemaps/language/index.html XoopsModules/googlemaps/trunk/googlemaps/language/schinese/ XoopsModules/googlemaps/trunk/googlemaps/language/schinese/admin.php XoopsModules/googlemaps/trunk/googlemaps/language/schinese/help/ XoopsModules/googlemaps/trunk/googlemaps/language/schinese/help/help.html XoopsModules/googlemaps/trunk/googlemaps/language/schinese/help/index.html XoopsModules/googlemaps/trunk/googlemaps/language/schinese/index.html XoopsModules/googlemaps/trunk/googlemaps/language/schinese/main.php XoopsModules/googlemaps/trunk/googlemaps/language/schinese/modinfo.php XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/ XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/admin.php XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/help/ XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/help/help.html XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/help/index.html XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/index.html XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/main.php XoopsModules/googlemaps/trunk/googlemaps/language/tchinese/modinfo.php XoopsModules/googlemaps/trunk/googlemaps/managepoint.php XoopsModules/googlemaps/trunk/googlemaps/sql/ XoopsModules/googlemaps/trunk/googlemaps/sql/index.html XoopsModules/googlemaps/trunk/googlemaps/sql/indexes.sql XoopsModules/googlemaps/trunk/googlemaps/sql/mysql.sql XoopsModules/googlemaps/trunk/googlemaps/sql/zoom.sql XoopsModules/googlemaps/trunk/googlemaps/templates/ XoopsModules/googlemaps/trunk/googlemaps/templates/googlemaps_index_location.html XoopsModules/googlemaps/trunk/googlemaps/templates/googlemaps_index_userprofile.html XoopsModules/googlemaps/trunk/googlemaps/templates/index.html XoopsModules/googlemaps/trunk/googlemaps/xoops_version.php Added: XoopsModules/googlemaps/trunk/googlemaps/admin/about.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/about.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/about.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,29 @@ +<?php +/** + * Marquee module + * + * 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. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Marquee + * @since 2.5.0 + * @author Mage, Mamba + * @version $Id $ + **/ + +include_once dirname(__FILE__) . '/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/googlemaps/trunk/googlemaps/admin/admin_footer.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/admin_footer.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/admin_footer.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,27 @@ +<?php +/** + * Google Maps module + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package googlemaps + * @since 0.9 + * @author Mamba (www.xoops.org) + * @version $Id $ +**/ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_GMAPS_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/googlemaps/trunk/googlemaps/admin/admin_header.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/admin_header.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/admin_header.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,42 @@ +<?php +/** + * Marquee module + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Marquee + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ +**/ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_GMAPS_MODULEADMIN_MISSING, false); + } \ No newline at end of file Added: XoopsModules/googlemaps/trunk/googlemaps/admin/index.html =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/index.html (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/index.html 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemaps/trunk/googlemaps/admin/index.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/index.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/index.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,43 @@ +<?php +/** + * Private message + * + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package MRBS + * @since 1.41 + * @author jobrazo + * @version $Id: admin.php $ + */ + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + +//----------------------- + +$result=$xoopsDB->query("select count(*) from ".$xoopsDB->prefix("gmap_points")); +list($numrows) = $xoopsDB->fetchRow($result); + +$indexAdmin->addInfoBox(_MD_GMAPS_DASHBOARD); + +$indexAdmin->addInfoBoxLine( + _MD_GMAPS_DASHBOARD, _MD_THEREARE , $numrows, 'Green' +); +//---------------------------- + + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/googlemaps/trunk/googlemaps/admin/main.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/main.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/main.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,984 @@ +<?php +############################################################################### +# Phatblokes adaption of google maps v.1.0 for Xoops 2.x # +# Writen by Phatbloke (pha...@wo...) # +# ------------------------------------------------------------------------- # +# # +# ------------------------------------------------------------------------- # +# 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. # +# # +# 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 # +# ------------------------------------------------------------------------ # +############################################################################### +include '../../../include/cp_header.php'; +if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) { + include "../language/".$xoopsConfig['language']."/main.php"; +} else { + include "../language/english/main.php"; +} +//include '../include/functions.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; +include_once XOOPS_ROOT_PATH.'/class/module.errorhandler.php'; +$myts =& MyTextSanitizer::getInstance(); +$eh = new ErrorHandler; + +// Display the main contents + +function main() +{ + global $xoopsDB, $xoopsModule; + xoops_cp_header(); + + xoops_cp_footer(); +} + +// Add in a new category + +function catAdd() +{ + global $xoopsDB, $xoopsModule, $xoopsModuleConfig; + xoops_cp_header(); + + //Display the map + echo"<script src=\"http://maps.google.com/maps?file=api&v=2.x&key=".$xoopsModuleConfig['api']."\" type=\"text/javascript\"></script >\n"; + echo"<script type=\"text/javascript\">\n"; + echo"//<![CDATA[ \n"; + echo"function loadMap(){\n"; + //echo"function GPoint2(x,y) { return new GLatLng(y,x); }\n"; + echo"var map = new GMap2(document.getElementById(\"map\"));\n"; + echo"map.setCenter(new GLatLng(0, 0), 1);\n"; + echo"map.addControl(new GLargeMapControl());\n"; + echo"map.addControl(new GMapTypeControl());\n"; + echo"GEvent.addListener(map, \"click\", function(overlay, point){\n"; + echo"map.clearOverlays();\n"; + //echo"GEvent.addListener(map, 'zoomend', function() {\n"; + echo"document.getElementById(\"zoom\").value = map.getZoom();\n"; + //echo"});\n"; + echo"if (point) {\n"; + echo"map.addOverlay(new GMarker(point,{draggable:true}));\n"; + echo"map.panTo(point);\n"; + echo"lat = point.y;\n"; + echo"lon = point.x;\n"; + echo"document.getElementById(\"lat\").value = lat;\n"; + echo"document.getElementById(\"lon\").value = lon;\n"; + echo"}\n"; + echo"});\n"; + echo"}\n"; + echo"// arrange for our onload handler to 'listen' for onload events\n"; + echo"if (window.attachEvent) {\n"; + echo"window.attachEvent(\"onload\", function() {\n"; + echo"loadMap(); // Internet Explorer\n"; + echo"});\n"; + echo"} else {\n"; + echo"window.addEventListener(\"load\", function() {\n"; + echo"loadMap(); // Firefox and standard browsers\n"; + echo"}, false);\n"; + echo"}\n"; + echo"//]]>\n"; + echo"</script >\n"; + + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_ADDNEWCAT."</th></tr>"; + echo "<form method=post action=main.php>\n"; + echo "<tr valign='top' align='center'><td class='head' colspan='2'><div id='map' style='height: 400px'></div ></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CAT."</td>"; + echo "<td class='even'><input type=text name=title size=50 maxlength=100></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATLONGITUDE."</td>"; + echo "<td class='even'><input id=lon type=text name=lon size=50 maxlength=250></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATLATITUDE."</td>"; + echo "<td class='even'><input id=lat type=text name=lat size=50 maxlength=250></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_ZOOM."</td>"; + echo "<td class='even'><input id=zoom type=text name=zoom size=50 maxlength=250></td></tr>"; + echo "<input type=\"hidden\" name=\"op\" value=\"catInsert\"></input>"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_ADD."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); +} + +//Insert the category into the DB + +function catInsert() +{ + global $xoopsConfig, $xoopsDB, $myts, $xoopsUser, $xoopsModule, $eh; + $title = $myts->makeTboxData4Save($_POST["title"]); + $lat = $myts->makeTboxData4Save($_POST["lat"]); + $lon = $myts->makeTboxData4Save($_POST["lon"]); + $zoom = $myts->makeTboxData4Save($_POST["zoom"]); + $errormsg = ''; + // Check if Title exist + if ( $title == "" ) { + $errormsg .= "<h4 style='color: #ff0000'>"; + $errormsg .= _MD_ERRORTITLE."</h4>"; + $error =1; + } + if ( $error == 1 ) { + xoops_cp_header(); + echo $errormsg; + xoops_cp_footer(); + exit(); + } + list($order) = $xoopsDB->fetchRow($xoopsDB->query("SELECT MAX(`order`) FROM ".$xoopsDB->prefix("gmap_category"))); + $order++; + //$sql = "INSERT INTO ".$xoopsDB->prefix("gmap_category")." ( `map_id` , `lat` , `lon` , `name` , `zoom` ,`active` , `order`) VALUES ('', '$lat', '$lon', '$title', $zoom, '1', '$order')"; + $sql = "INSERT INTO ".$xoopsDB->prefix("gmap_category")." ( `lat` , `lon` , `name` , `zoom` ,`active` , `order`) VALUES ('$lat', '$lon', '$title', $zoom, '1', '$order')"; + $xoopsDB->query($sql) or $eh->show("0013"); + if ( $newid == 0 ) { + $newid = $xoopsDB->getInsertId(); + } + redirect_header("main.php?op=linksConfigMenu",1,_MD_NEWCATADDED); +} + +//Modify a category select page to choose which cat to mod + +function catMod() +{ + + global $xoopsDB; + $result2 = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("gmap_category").""); + list($numrows2) = $xoopsDB->fetchRow($result2); + if ( $numrows2 > 0 ) { + $result1 = $xoopsDB->query("select map_id, name from ".$xoopsDB->prefix("gmap_category").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $entry[$i]['map_id'] = $array['map_id']; + $entry[$i]['name'] = $array['name']; + $i++; + } + xoops_cp_header(); + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_MODCAT."</th></tr>"; + echo "<form method=get action=\"main.php\">\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATID."</td>"; + echo "<td class='even'><select size='1' name='lid'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$entry[$i]['map_id']."'>".$entry[$i]['name']."</option>"; + } + echo "</select></td></tr>"; + echo "<input type=hidden name=fct value=mypoints>\n"; + echo "<input type=hidden name=op value=modCat><br /><br />\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); + }else{ + redirect_header("index.php",1,_MD_NOCATS); + } + +} + +//Modify the selected category + +function modCat() +{ + global $xoopsDB, $myts, $eh, $mytree, $xoopsConfig, $xoopsModuleConfig; + $lid = $_GET['lid']; + $result = $xoopsDB->query("select map_id, lat, lon, zoom, name from ".$xoopsDB->prefix("gmap_category")." where map_id=$lid") or $eh->show("0013"); + list($map_id, $lat, $lon, $zoom, $name) = $xoopsDB->fetchRow($result); + $name = $myts->makeTboxData4Edit($name); + $lat = $myts->makeTboxData4Edit($lat); + $lon = $myts->makeTboxData4Edit($lon); + $zoom = $myts->makeTboxData4Edit($zoom); + xoops_cp_header(); + + //Display the map + + echo"<script src=\"http://maps.google.com/maps?file=api&v=2.x&key=".$xoopsModuleConfig['api']."\" type=\"text/javascript\"></script >\n"; + echo"<script type=\"text/javascript\">\n"; + echo"//<![CDATA[ \n"; + echo"function loadMap(){\n"; + //echo"function GPoint2(x,y) { return new GLatLng(y,x); }\n"; + echo"var map = new GMap2(document.getElementById(\"map\"));\n"; + echo"map.addControl(new GLargeMapControl());\n"; + echo"map.addControl(new GMapTypeControl());\n"; + echo"map.setCenter(new GLatLng(".$lat.",".$lon."), ".$zoom.");\n"; + echo"map.addOverlay(new GMarker(new GLatLng(".$lat.",".$lon."),{draggable:true}));\n"; + echo"GEvent.addListener(map, \"click\", function(overlay, point){\n"; + echo"map.clearOverlays();\n"; + //echo"GEvent.addListener(map, 'zoomend', function() {\n"; + echo"document.getElementById(\"zoom\").value = map.getZoom();\n"; + //echo"});\n"; + echo"if (point) {\n"; + echo"map.addOverlay(new GMarker(point));\n"; + echo"map.panTo(point);\n"; + echo"lat = point.y;\n"; + echo"lon = point.x;\n"; + echo"document.getElementById(\"lat\").value = lat;\n"; + echo"document.getElementById(\"lon\").value = lon;\n"; + echo"}\n"; + echo"});\n"; + echo"}\n"; + echo"// arrange for our onload handler to 'listen' for onload events\n"; + echo"if (window.attachEvent) {\n"; + echo"window.attachEvent(\"onload\", function() {\n"; + echo"loadMap(); // Internet Explorer\n"; + echo"});\n"; + echo"} else {\n"; + echo"window.addEventListener(\"load\", function() {\n"; + echo"loadMap(); // Firefox and standard browsers\n"; + echo"}, false);\n"; + echo"}\n"; + echo"//]]>\n"; + echo"</script >\n"; + + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_MODCAT."</th></tr>"; + echo "<form method=post action=\"main.php\">\n"; + echo "<tr valign='top' align='center'><td class='head' colspan='2'><div id='map' style='height: 400px'></div ></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CAT."</td>"; + echo "<td class='even'><input type=text name=name value=\"$name\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_LONGITUDE."</td>"; + echo "<td class='even'><input type=text id=lon name=lon value=\"$lon\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_LATITUDE."</td>"; + echo "<td class='even'><input type=text id=lat name=lat value=\"$lat\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_ZOOM."</td>"; + echo "<td class='even'><input type=text name=zoom id=zoom value=\"$zoom\" size=50 maxlength=100></input></td></tr>\n"; + echo "<input type=hidden name=lid value=$map_id></input>\n"; + echo "<input type=hidden name=op value=modCatS>\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><table><tr><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td>"; + echo "<td class='even'>".myTextForm("main.php?op=delCat&lid=".$lid , _MD_DELETE)."</td>"; + echo "<td class='even'>".myTextForm("main.php?op=linksConfigMenu", _MD_CANCEL)."</td>"; + echo "</tr></table></td></tr></table>"; + xoops_cp_footer(); +} + +// Insert the modified category into the DB +function modCatS() +{ + global $xoopsDB, $myts, $eh; + $name = $myts->makeTboxData4Save($_POST["name"]); + $lat = $myts->makeTboxData4Save($_POST["lat"]); + $lon = $myts->makeTboxData4Save($_POST["lon"]); + $zoom = $myts->makeTboxData4Save($_POST["zoom"]); + $xoopsDB->query("update ".$xoopsDB->prefix("gmap_category")." set name='$name', lat='$lat', lon='$lon',zoom='$zoom'where map_id=".$_POST['lid']."") or $eh->show("0013"); + redirect_header("index.php",1,_MD_DBUPDATED); + exit(); +} + +//Add in a new point +function pointAdd() +{ + global $xoopsDB, $xoopsModule, $xoopsModuleConfig; + $result2 = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("gmap_category").""); + list($numrows2) = $xoopsDB->fetchRow($result2); + if ( $numrows2 > 0 ) { + $result1 = $xoopsDB->query("select map_id, name from ".$xoopsDB->prefix("gmap_category").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $entry[$i]['map_id'] = $array['map_id']; + $entry[$i]['name'] = $array['name']; + $i++; + } + xoops_cp_header(); + echo"<script src=\"http://maps.google.com/maps?file=api&v=2.x&key=".$xoopsModuleConfig['api']."\" type=\"text/javascript\"></script >\n"; + echo"<script type=\"text/javascript\">\n"; + echo"//<![CDATA[ \n"; + echo"function loadMap(){\n"; + //echo"function GPoint2(x,y) { return new GLatLng(y,x); }\n"; + echo"var map = new GMap2(document.getElementById(\"map\"));\n"; + echo"map.addControl(new GLargeMapControl());\n"; + echo"map.addControl(new GMapTypeControl());\n"; + echo"map.setCenter(new GLatLng(0, 0), 1);\n"; + echo"GEvent.addListener(map, \"click\", function(overlay, point){\n"; + echo"map.clearOverlays();\n"; + //echo"GEvent.addListener(map, 'zoomend', function() {\n"; + echo"document.getElementById(\"zoom\").value = map.getZoom();\n"; + //echo"});\n"; + echo"if (point) {\n"; + echo"map.addOverlay(new GMarker(point,{draggable:true}));\n"; + echo"map.panTo(point);\n"; + echo"lat = point.y;\n"; + echo"lon = point.x;\n"; + echo"document.getElementById(\"lat\").value = lat;\n"; + echo"document.getElementById(\"lon\").value = lon;\n"; + echo"}\n"; + echo"});\n"; + echo"}\n"; + echo"// arrange for our onload handler to 'listen' for onload events\n"; + echo"if (window.attachEvent) {\n"; + echo"window.attachEvent(\"onload\", function() {\n"; + echo"loadMap(); // Internet Explorer\n"; + echo"});\n"; + echo"} else {\n"; + echo"window.addEventListener(\"load\", function() {\n"; + echo"loadMap(); // Firefox and standard browsers\n"; + echo"}, false);\n"; + echo"}\n"; + echo"//]]>\n"; + echo"</script >\n"; + + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_ADDNEWPOINT."</th></tr>"; + echo "<form method=post action=\"main.php\">\n"; + echo "<tr valign='top' align='center'><td class='head' colspan='2'><div id='map' style='height: 400px'></div ></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_LOCATION."</td>"; + echo "<td class='even'><input type=text name=title size=50 maxlength=100></td><tr>\n"; + + echo "<tr valign='top' align='left'><td class='head'>"._MD_LONGITUDE."</td>"; + echo "<td class='even'><input id=lon type=text name=lon size=50 maxlength=250></td><tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_LATITUDE."</td>"; + echo "<td class='even'><input id=lat type=text name=lat size=50 maxlength=250></td><tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_ZOOM."</td>"; + echo "<td class='even'><input id=zoom type=text name=zoom size=50 maxlength=250></td><tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATEGORYC."</td>"; + echo "<td class='even'><select size='1' name='category'>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$entry[$i]['map_id']."'>".$entry[$i]['name']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_DESCRIPTIONC."</td>"; + echo "<td class='even'>"; + xoopsCodeTarea("description",60,8); + xoopsSmilies("description"); + echo "</td></tr>\n"; + echo "<input type=\"hidden\" name=\"op\" value=\"pointInsert\"></input>\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_ADD."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); + }else{ + redirect_header("main.php?op=catAdd",1,_MD_NOCATSADD); + } +} + +//Insert the new point into the DB +function pointInsert() +{ + global $xoopsConfig, $xoopsDB, $myts, $xoopsUser, $xoopsModule, $eh; + $title = $myts->makeTboxData4Save($_POST["title"]); + $lat = $myts->makeTboxData4Save($_POST["lat"]); + $lon = $myts->makeTboxData4Save($_POST["lon"]); + $zoom = $myts->makeTboxData4Save($_POST["zoom"]); + $category = $myts->makeTboxData4Save($_POST["category"]); + $description = $myts->makeTareaData4Save($_POST["description"]); + $submitter = $xoopsUser->uid(); + $date = time(); + $errormsg = ''; + // Check if Title exist + if ( $title == "" ) { + $errormsg .= "<h4 style='color: #ff0000'>"; + $errormsg .= _MD_ERRORTITLE."</h4>"; + $error =1; + } + + // Check if Description exist + if ( $description == "" ) { + $errormsg .= "<h4 style='color: #ff0000'>"; + $errormsg .= _MD_ERRORDESC."</h4>"; + $error =1; + } + if ( $error == 1 ) { + xoops_cp_header(); + echo $errormsg; + xoops_cp_footer(); + exit(); + } + list($order) = $xoopsDB->fetchRow($xoopsDB->query("SELECT MAX(`order`) FROM ".$xoopsDB->prefix("gmap_points")." WHERE `map_id` = ".$category)); + $order++; + $sql = "INSERT INTO ".$xoopsDB->prefix("gmap_points")." (`map_id` , `lat` , `lon` , `title` , `html` , `zoom` , `submitter` , `status` , `date`, `order`) VALUES ('$category', '$lat', '$lon', '$title', '$description', '$zoom','$submitter', '1', '$date', '$order')"; + $xoopsDB->query($sql) or $eh->show("0013"); + if ( $newid == 0 ) { + $newid = $xoopsDB->getInsertId(); + } + redirect_header("main.php?op=linksConfigMenu",1,_MD_NEWPOINTADDED); +} + +//Modify a point select page to choose which point to mod + +function pointMod() +{ + + global $xoopsDB; + $result2 = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("gmap_points").""); + list($numrows2) = $xoopsDB->fetchRow($result2); + if ( $numrows2 > 0 ) { + $result1 = $xoopsDB->query("select id, title from ".$xoopsDB->prefix("gmap_points").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $entry[$i]['id'] = $array['id']; + $entry[$i]['title'] = $array['title']; + $i++; + } + xoops_cp_header(); + echo "<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_MODPOINT."</th></tr>"; + echo "<form method=get action=\"main.php\">\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_POINTID."</td>"; + echo "<td class='even'><select size='1' name='lid'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$entry[$i]['id']."'>".$entry[$i]['title']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<input type=hidden name=fct value=mypoints>\n"; + echo "<input type=hidden name=op value=modPoint><br /><br />\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); + }else{ + redirect_header("index.php",1,_MD_NOPOINTS); + } + +} + +//Modify the point + +function modPoint() +{ + global $xoopsDB, $myts, $eh, $mytree, $xoopsConfig, $xoopsModuleConfig; + $lid = $_GET['lid']; + $result = $xoopsDB->query("select id, lat, lon, zoom, map_id, title, html from ".$xoopsDB->prefix("gmap_points")." where id=$lid") or $eh->show("0013"); + list($id, $lat, $lon, $zoom, $map_id, $title, $html) = $xoopsDB->fetchRow($result); + $title = $myts->makeTboxData4Edit($title); + $lat = $myts->makeTboxData4Edit($lat); + $lon = $myts->makeTboxData4Edit($lon); + $zoom = $myts->makeTboxData4Edit($zoom); + $map_id = $myts->makeTboxData4Edit($map_id); + $GLOBALS['html'] = $myts->makeTareaData4Edit($html); + $result1 = $xoopsDB->query("select map_id, name from ".$xoopsDB->prefix("gmap_category").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $entry[$i]['map_id'] = $array['map_id']; + $entry[$i]['name'] = $array['name']; + $i++; + } + xoops_cp_header(); + + //Display Map + + echo"<script src=\"http://maps.google.com/maps?file=api&v=2.x&key=".$xoopsModuleConfig['api']."\" type=\"text/javascript\"></script >\n"; + echo"<script type=\"text/javascript\">\n"; + echo"//<![CDATA[ \n"; + echo"function loadMap(){\n"; + //echo"function GPoint2(x,y) { return new GLatLng(y,x); }\n"; + echo"var map = new GMap2(document.getElementById(\"map\"));\n"; + echo"map.addControl(new GLargeMapControl());\n"; + echo"map.addControl(new GMapTypeControl());\n"; + echo"map.setCenter(new GLatLng(".$lat.",".$lon."), ".$zoom.");\n"; + echo"map.addOverlay(new GMarker(new GLatLng(".$lat.",".$lon."),{draggable:true}));\n"; + echo"GEvent.addListener(map, \"click\", function(overlay, point){\n"; + echo"map.clearOverlays();\n"; + //echo"GEvent.addListener(map, 'zoomend', function() {\n"; + echo"document.getElementById(\"zoom\").value = map.getZoom();\n"; + //echo"});\n"; + echo"if (point) {\n"; + echo"map.addOverlay(new GMarker(point));\n"; + echo"map.panTo(point);\n"; + echo"lat = point.y;\n"; + echo"lon = point.x;\n"; + echo"document.getElementById(\"lat\").value = lat;\n"; + echo"document.getElementById(\"lon\").value = lon;\n"; + echo"}\n"; + echo"});\n"; + echo"}\n"; + echo"// arrange for our onload handler to 'listen' for onload events\n"; + echo"if (window.attachEvent) {\n"; + echo"window.attachEvent(\"onload\", function() {\n"; + echo"loadMap(); // Internet Explorer\n"; + echo"});\n"; + echo"} else {\n"; + echo"window.addEventListener(\"load\", function() {\n"; + echo"loadMap(); // Firefox and standard browsers\n"; + echo"}, false);\n"; + echo"}\n"; + echo"//]]>\n"; + echo"</script >\n"; + + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_MODPOINT."</th></tr>"; + echo "<form method=post action=\"main.php\">\n"; + echo "<tr valign='top' align='center'><td class='head' colspan='2'><div id='map' style='height: 400px'></div ></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_LOCATION."</td>"; + echo "<td class='even'><input type=text name=title value=\"$title\" size=50 maxlength=100></input></td></tr>\n"; + + echo "<tr valign='top' align='left'><td class='head'>"._MD_LONGITUDE."</td>"; + echo "<td class='even'><input type=text id=lon name=lon value=\"$lon\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_LATITUDE."</td>"; + echo "<td class='even'><input type=text id=lat name=lat value=\"$lat\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_ZOOM."</td>"; + echo "<td class='even'><input type=text name=zoom id=zoom value=\"$zoom\" size=50 maxlength=100></input></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATEGORYC."</td>"; + echo "<td class='even'><select size='1' name='map_id'>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + if ( $map_id == $entry[$i]['map_id'] ) { + $opt_selected = "selected='selected'"; + }else{ + $opt_selected = ""; + } + echo "<option value='".$entry[$i]['map_id']."' $opt_selected >".$entry[$i]['name']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_DESCRIPTIONC."</td>"; + echo "<td class='even'>"; + xoopsCodeTarea("html",60,8); + xoopsSmilies("html"); + echo "</td></tr>\n"; + echo "<input type=hidden name=lid value=$id></input>\n"; + echo "<input type=hidden name=op value=modPointS>\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><table><tr><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form>"; + echo "<td class='even'>".myTextForm("main.php?op=delPoint&lid=".$lid , _MD_DELETE)."</td>"; + echo "<td class='even'>".myTextForm("main.php?op=linksConfigMenu", _MD_CANCEL)."</td>"; + echo "</tr></table></td></tr></table>"; + xoops_cp_footer(); +} + +//Insert the modified point into the DB + +function modPointS() +{ + global $xoopsDB, $myts, $eh; + $title = $myts->makeTboxData4Save($_POST["title"]); + $map_id = $_POST["map_id"]; + $lat = $myts->makeTboxData4Save($_POST["lat"]); + $lon = $myts->makeTboxData4Save($_POST["lon"]); + $zoom = $myts->makeTboxData4Save($_POST["zoom"]); + $html = $myts->makeTareaData4Save($_POST["html"]); + $xoopsDB->query("update ".$xoopsDB->prefix("gmap_points")." set map_id='$map_id', title='$title', lat='$lat', lon='$lon',zoom='$zoom',html='$html', status=2, date=".time()." where id=".$_POST['lid']."") or $eh->show("0013"); + redirect_header("index.php",1,_MD_DBUPDATED); + exit(); +} + +//Delete a Category + +function delCat() +{ + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE map_id = %u", $xoopsDB->prefix("gmap_category"), $_GET['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_CATDELETED); + exit(); +} + +//Delete a point + +function delPoint() +{ + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE id = %u", $xoopsDB->prefix("gmap_points"), $_GET['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_POINTDELETED); + exit(); +} + +//Add a new polyline + +function plAdd() +{ + + global $xoopsDB; + $result2 = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("gmap_points").""); + list($numrows2) = $xoopsDB->fetchRow($result2); + if ( $numrows2 > 1 ) { + $result1 = $xoopsDB->query("select id, title from ".$xoopsDB->prefix("gmap_points").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $entry[$i]['id'] = $array['id']; + $entry[$i]['title'] = $array['title']; + $i++; + } + $result3 = $xoopsDB->query("select map_id, name from ".$xoopsDB->prefix("gmap_category").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result3)) { + $centry[$i]['map_id'] = $array['map_id']; + $centry[$i]['name'] = $array['name']; + $i++; + } + xoops_cp_header(); + echo "<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_PLADD."</th></tr>"; + echo "<form method=post action=\"main.php\">\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_PLID1."</td>"; + echo "<td class='even'><select size='1' name='lid'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$entry[$i]['id']."'>".$entry[$i]['title']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_PLID2."</td>"; + echo "<td class='even'><select size='1' name='lid2'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$entry[$i]['id']."'>".$entry[$i]['title']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATEGORYC."</td>"; + echo "<td class='even'><select size='1' name='map_id'>"; + $count_msg = count($centry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$centry[$i]['map_id']."'>".$centry[$i]['name']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<input type=hidden name=fct value=mypoints>\n"; + echo "<input type=hidden name=op value=plInsert><br /><br />\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_ADD."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); + }else{ + redirect_header("index.php",1,_MD_NOPOINTS); + } +} + +//Insert the polyline into the DB + +function plInsert() +{ + global $xoopsConfig, $xoopsDB, $myts, $xoopsUser, $xoopsModule, $eh; + $point_id1 = $_POST["lid"]; + $point_id2 = $_POST["lid2"]; + $map_id = $_POST["map_id"]; + $errormsg = ''; + // Check if point exists + if ( $point_id1 == "" | $point_id2 == "") { + $errormsg .= "<h4 style='color: #ff0000'>"; + $errormsg .= _MD_ERRORPOINT."</h4>"; + $error =1; + } + + + if ( $error == 1 ) { + xoops_cp_header(); + echo $errormsg; + xoops_cp_footer(); + exit(); + } + $sql = "INSERT INTO ".$xoopsDB->prefix("gmap_pl")." (`map_id` , `point_id1` , `point_id2`, `active`) VALUES ('$map_id', '$point_id1', '$point_id2', '1')"; + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("main.php?op=linksConfigMenu",1,_MD_NEWPLADDED); +} + +//modify a polyline select page + +function plMod() +{ + + global $xoopsDB; + $result2 = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("gmap_pl").""); + list($numrows2) = $xoopsDB->fetchRow($result2); + if ( $numrows2 > 0 ) { + $result1 = $xoopsDB->query("select * from ".$xoopsDB->prefix("gmap_pl").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $entry[$i]['id'] = $array['id']; + $entry[$i]['point_id1'] = $array['point_id1']; + $result3 = $xoopsDB->query("select title from ".$xoopsDB->prefix("gmap_points")." WHERE id = ".$entry[$i]['point_id1'].""); + list($title) = $xoopsDB->fetchRow($result3); + $entry[$i]['point_name1'] = $title; + $entry[$i]['point_id2'] = $array['point_id2']; + $result4 = $xoopsDB->query("select title from ".$xoopsDB->prefix("gmap_points")." WHERE id = ".$entry[$i]['point_id2'].""); + list($title) = $xoopsDB->fetchRow($result4); + $entry[$i]['point_name2']= $title; + $i++; + } + xoops_cp_header(); + echo "<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_MODPL."</th></tr>"; + echo "<form method=get action=\"main.php\">\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_PLID."</td>"; + echo "<td class='even'><select size='1' name='lid'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($entry); + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<option value='".$entry[$i]['id']."'>".$entry[$i]['point_name1']." -> ".$entry[$i]['point_name2']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<input type=hidden name=fct value=mypoints>\n"; + echo "<input type=hidden name=op value=modPl><br /><br />\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); + }else{ + redirect_header("index.php",1,_MD_NOPOINTS); + } + +} + +// Modify the polyline page + +function modPl() +{ + global $xoopsDB, $myts, $eh, $mytree, $xoopsConfig, $xoopsModuleConfig; + $lid = $_GET['lid']; + $result = $xoopsDB->query("select * from ".$xoopsDB->prefix("gmap_pl")." where id=$lid") or $eh->show("0013"); + list($id, $map_id, $point_id1, $point_id2) = $xoopsDB->fetchRow($result); + $result1 = $xoopsDB->query("select map_id, name from ".$xoopsDB->prefix("gmap_category").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $centry[$i]['map_id'] = $array['map_id']; + $centry[$i]['name'] = $array['name']; + $i++; + } + $result2 = $xoopsDB->query("select id, title from ".$xoopsDB->prefix("gmap_points").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result2)) { + $pentry[$i]['id'] = $array['id']; + $pentry[$i]['title'] = $array['title']; + $i++; + } + xoops_cp_header(); + echo "<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_MODPL."</th></tr>"; + echo "<form method=post action=\"index.php\">\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_PLID1."</td>"; + echo "<td class='even'><select size='1' name='lid'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($pentry); + for ( $i = 0; $i < $count_msg; $i++ ) { + if ( $point_id1 == $pentry[$i]['id'] ) { + $opt_selected = "selected='selected'"; + }else{ + $opt_selected = ""; + } + echo "<option value='".$pentry[$i]['id']."' $opt_selected>".$pentry[$i]['title']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_PLID2."</td>"; + echo "<td class='even'><select size='1' name='lid2'>"; + echo "<option value=' '>------</option>"; + $count_msg = count($pentry); + for ( $i = 0; $i < $count_msg; $i++ ) { + if ( $point_id2 == $pentry[$i]['id'] ) { + $opt_selected = "selected='selected'"; + }else{ + $opt_selected = ""; + } + echo "<option value='".$pentry[$i]['id']."' $opt_selected>".$pentry[$i]['title']."</option>"; + } + echo "</select></td></tr>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATEGORYC."</td>"; + echo "<td class='even'><select size='1' name='map_id'>"; + $count_msg = count($centry); + for ( $i = 0; $i < $count_msg; $i++ ) { + if ( $map_id == $centry[$i]['map_id'] ) { + $opt_selected = "selected='selected'"; + }else{ + $opt_selected = ""; + } + echo "<option value='".$centry[$i]['map_id']."' $opt_selected>".$centry[$i]['name']."</option>"; + } + echo "</select></td></tr>\n"; + echo "<input type=hidden name=fct value=mypoints>\n"; + echo "<input type=hidden name=id value=$lid></input>\n"; + echo "<input type=hidden name=op value=modPlS><br /><br />\n"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><table><tr><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td>"; + echo "<td class='even'>".myTextForm("main.php?op=delPl&lid=".$lid , _MD_DELETE)."</td>"; + echo "<td class='even'>".myTextForm("main.php?op=linksConfigMenu", _MD_CANCEL)."</td>"; + echo "</tr></table></td></tr></table>"; + xoops_cp_footer(); +} + +//submit the polyline to the DB + +function modPlS() +{ + global $xoopsDB, $myts, $eh; + $point_id1 = $_POST["lid"]; + $point_id2 = $_POST["lid2"]; + $map_id = $_POST["map_id"]; + $xoopsDB->query("update ".$xoopsDB->prefix("gmap_pl")." set map_id='$map_id', point_id1='$point_id1', point_id2='$point_id2', active=2 where id=".$_POST_['id']."") or $eh->show("0013"); + redirect_header("index.php",1,_MD_DBUPDATED); + exit(); +} + +//Delete a polyline + +function delPl() +{ + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE id = %u", $xoopsDB->prefix("gmap_pl"), $_GET['lid']); + $xoopsDB->query($sql) or $eh->show("0013"); + redirect_header("index.php",1,_MD_POINTDELETED); + exit(); +} + +//Order a Category + +function catOrder() +{ +global $xoopsDB,$myts, $eh; +$result = $xoopsDB->query("select `map_id`, `name`, `order` from ".$xoopsDB->prefix("gmap_category")." ORDER BY `order` ASC") or $eh->show("0013"); +$i = 0; + while ($array = $xoopsDB->fetchArray($result)) { + $entry[$i]['id'] = $array['map_id']; + $entry[$i]['name'] = $array['name']; + $entry[$i]['order'] = $array['order']; + $i++; + } +xoops_cp_header(); + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_CATORDER."</th></tr>"; + echo "<form method=post action=main.php>"; + + $count_msg = count($entry); + echo "<input type=hidden name=count value='".$count_msg."'>"; + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<tr valign='top' align='left'><td class='head'>".$entry[$i]['name']."</td><td class='even'><input type=text name=order".$i." value=".$entry[$i]['order']." size=3 maxlength=100></input></td></tr>\n"; + echo "<input type=hidden name=id".$i." value=".$entry[$i]['id'].">\n"; + } +echo "<input type=hidden name=op value=catOrderS>"; +echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); +} + +//Order a Category into the DB + +function catOrderS() +{ + global $xoopsDB, $myts, $eh; + + $count_msg = $_POST["count"]; + for ( $i = 0; $i < $count_msg; $i++ ) { + $id = $_POST["id".$i]; + $order = $_POST["order".$i]; + $xoopsDB->query("update ".$xoopsDB->prefix("gmap_category")." set `order`='$order' where map_id='$id'") or $eh->show("0013"); + } + redirect_header("index.php",1,_MD_DBUPDATED); + exit(); +} + +//Order a Point + +function pointOrder() +{ + global $xoopsDB,$myts, $eh; + if ($_POST['map_id'] != ""){ + $map_id = $_POST['map_id']; + $result = $xoopsDB->query("select `id`, `title`, `order` from ".$xoopsDB->prefix("gmap_points")." WHERE `map_id` = ".$map_id." ORDER BY `order` ASC") or $eh->show("0013"); + } + $i = 0; + while ($array = $xoopsDB->fetchArray($result)) { + $entry[$i]['id'] = $array['id']; + $entry[$i]['title'] = $array['title']; + $entry[$i]['order'] = $array['order']; + $i++; + } + $result1 = $xoopsDB->query("select map_id, name from ".$xoopsDB->prefix("gmap_category").""); + $i = 0; + while ($array = $xoopsDB->fetchArray($result1)) { + $centry[$i]['map_id'] = $array['map_id']; + $centry[$i]['name'] = $array['name']; + $i++; + } + xoops_cp_header(); + echo"<table width='100%' class='outer' cellspacing='1'><tr><th colspan='2'>"._MD_POINTORDER."</th></tr>"; + echo "<form method=post action=main.php>"; + echo "<tr valign='top' align='left'><td class='head'>"._MD_CATEGORYC."</td>"; + $count_msg = count($entry); + echo "<td class='even'><input type=hidden name=op value=pointOrder><select size='1' onchange=\"JavaScript:submit()\" name='map_id'>"; + echo "<option value=' '>------</option>"; + $count_msg2 = count($centry); + for ( $i = 0; $i < $count_msg2; $i++ ) { + if ( $map_id == $centry[$i]['map_id'] ) { + $opt_selected = "selected='selected'"; + }else{ + $opt_selected = ""; + } + echo "<option value='".$centry[$i]['map_id']."' $opt_selected >".$centry[$i]['name']."</option>"; + } + echo "</select></td></tr></form>"; + echo "<form method=post action=main.php>"; + echo "<input type=hidden name=count value='".$count_msg."'>"; + for ( $i = 0; $i < $count_msg; $i++ ) { + echo "<tr valign='top' align='left'><td class='head'>".$entry[$i]['title']."</td><td class='even'><input type=text name=order".$i." value=".$entry[$i]['order']." size=3 maxlength=100></input><input type=hidden name=id".$i." value=".$entry[$i]['id']."></td></tr>\n"; + } + echo "<input type=hidden name=op value=pointOrderS>"; + echo "<tr valign='top' align='left'><td class='head'></td><td class='even'><input type='submit' class='formButton' name='post' id='post' value='"._MD_MODIFY."' accesskey=\"s\" /></form></td></tr></table>"; + xoops_cp_footer(); +} + +//Submit the ordered point to the DB + +function pointOrderS() +{ + global $xoopsDB, $myts, $eh; + + $count_msg = $_POST["count"]; + for ( $i = 0; $i < $count_msg; $i++ ) { + $id = $_POST["id".$i]; + $order = $_POST["order".$i]; + $xoopsDB->query("update ".$xoopsDB->prefix("gmap_points")." set `order`='$order' where id='$id'") or $eh->show("0013"); + } + redirect_header("index.php",1,_MD_DBUPDATED); + exit(); +} + +if(!isset($_POST['op'])) { + $op = isset($_GET['op']) ? $_GET['op'] : 'main'; +} else { + $op = $_POST['op']; +} +switch ($op) { +case "catAdd": + catAdd(); + break; +case "catInsert": + catInsert(); + break; +case "pointAdd": + pointAdd(); + break; +case "pointInsert": + pointInsert(); + break; +case "plAdd": + plAdd(); + break; +case "plInsert": + plInsert(); + break; +case "plMod": + plMod(); + break; +case "modPl": + modPl(); + break; +case "modPlS": + modPlS(); + break; +case "pointMod": + pointMod(); + break; +case "modPoint": + modPoint(); + break; +case "modPointS": + modPointS(); + break; +case "catMod": + catMod(); + break; +case "modCat": + modCat(); + break; +case "modCatS": + modCatS(); + break; +case "delCat": + delCat(); + break; +case "delPoint": + delPoint(); + break; +case "delPl": + delPl(); + break; +case "pointDel": + pointDel(); + break; +case "pointOrder": + pointOrder(); + break; +case "pointOrderS": + pointOrderS(); + break; +case "catOrder": + catOrder(); + break; +case "catOrderS": + catOrderS(); + break; +case 'main': +default: + main(); + break; +} +?> Added: XoopsModules/googlemaps/trunk/googlemaps/admin/menu.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/menu.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/menu.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,84 @@ +<?php +############################################################################### +# Phatblokes adaption of google maps v.1.0 for Xoops 2.x # +# Writen by Phatbloke (pha...@wo...) # +# ------------------------------------------------------------------------- # +# # +# ------------------------------------------------------------------------- # +# 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. # +# # +# 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 # +# ------------------------------------------------------------------------ # +############################################################################### + + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); + +xoops_loadLanguage('admin', $dirname); + +$i = 0; + +// Index +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU0; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; +$i++; + +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU2; +$adminmenu[$i]['link'] = "admin/main.php?op=catAdd"; +$adminmenu[$i]["icon"] = $pathIcon32.'/category.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU3; +$adminmenu[$i]['link'] = "admin/main.php?op=catMod"; +$adminmenu[$i]["icon"] = $pathIcon32.'/manage.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU4; +$adminmenu[$i]['link'] = "admin/main.php?op=catOrder"; +$adminmenu[$i]["icon"] = './images/icons/32/categorysort.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU5; +$adminmenu[$i]['link'] = "admin/main.php?op=pointAdd"; +$adminmenu[$i]["icon"] = $pathIcon32.'/add.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU6; +$adminmenu[$i]['link'] = "admin/main.php?op=pointMod"; +$adminmenu[$i]["icon"] = $pathIcon32.'/manage.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU7; +$adminmenu[$i]['link'] = "admin/main.php?op=pointOrder"; +$adminmenu[$i]["icon"] = $pathIcon32.'/compfile.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU8; +$adminmenu[$i]['link'] = "admin/main.php?op=plAdd"; +$adminmenu[$i]["icon"] = $pathIcon32.'/add.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ADMENU9; +$adminmenu[$i]['link'] = "admin/main.php?op=plMod"; +$adminmenu[$i]["icon"] = $pathIcon32.'/manage.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_GMAPS_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Added: XoopsModules/googlemaps/trunk/googlemaps/admin/sqlupdate.php =================================================================== --- XoopsModules/googlemaps/trunk/googlemaps/admin/sqlupdate.php (rev 0) +++ XoopsModules/googlemaps/trunk/googlemaps/admin/sqlupdate.php 2012-03-18 06:09:54 UTC (rev 9151) @@ -0,0 +1,63 @@ +<?php +// $Id: sqlupdate.php,v 1.1 2005/09/03 11:38:11 yoshis Exp $ +// Original Script by aotake , http://xoops.bmath.org/ +// +include('../../../include/cp_header.php'); +if( + (!defined('XOOPS_ROOT_PATH')) || + (!is_object($xoopsUser)) || + (!$xoopsUser->isAdmin()) ){ + exit(); +} +// MODULE/admin/ins_table.php?sqlfilename=$filename + +$sqlfile = "zoom.sql"; // <-- change here if you need. + + +global $xoopsDB; +global $xoopsModule; +$error = false; +$dirname = $xoopsModule->getvar("dirname"); +$db =& $xoopsDB; + +$sql_file_path = XOOPS_ROOT_PATH."/modules/".$dirname."/sql/".$sqlfile; +if (!file_exists($sql_file_path)) { + //$errs[] = "SQL file not found at <b>$sql_file_path</b>"; + //$error = true; + print "SQL file not found at <b>$sql_file_path</b>"; + exit (1); +} else { + $sql=''; + print "SQL file found at <b>$sql_file_path</b>.<br /> adjusting data..."; + include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php'; + $sql_query = fread(fopen($sql_file_path, 'r')... [truncated message content] |
From: <be...@us...> - 2012-03-18 05:32:32
|
Revision: 9150 http://xoops.svn.sourceforge.net/xoops/?rev=9150&view=rev Author: beckmi Date: 2012-03-18 05:32:26 +0000 (Sun, 18 Mar 2012) Log Message: ----------- Adjusting icons directory name Modified Paths: -------------- XoopsModules/tplleaguestats/trunk/tplleaguestats/admin/menu.php Added Paths: ----------- XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/ XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/game.png XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/karm.png XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/users.png Removed Paths: ------------- XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/16/ Modified: XoopsModules/tplleaguestats/trunk/tplleaguestats/admin/menu.php =================================================================== --- XoopsModules/tplleaguestats/trunk/tplleaguestats/admin/menu.php 2012-03-18 02:53:31 UTC (rev 9149) +++ XoopsModules/tplleaguestats/trunk/tplleaguestats/admin/menu.php 2012-03-18 05:32:26 UTC (rev 9150) @@ -19,17 +19,17 @@ $adminmenu[$i]['title'] = _MI_TPLLS_ADMENU1; $adminmenu[$i]['link'] = "admin/seasons.php"; -$adminmenu[$i]["icon"] = './images/icons/16/karm.png'; +$adminmenu[$i]["icon"] = './images/icons/32/karm.png'; $i++; $adminmenu[$i]['title'] = _MI_TPLLS_ADMENU2; $adminmenu[$i]['link'] = "admin/opponents.php"; -$adminmenu[$i]["icon"] = './images/icons/16/users.png'; +$adminmenu[$i]["icon"] = './images/icons/32/users.png'; $i++; $adminmenu[$i]['title'] = _MI_TPLLS_ADMENU3; $adminmenu[$i]['link'] = "admin/leaguematches.php"; -$adminmenu[$i]["icon"] = './images/icons/16/game.png'; +$adminmenu[$i]["icon"] = './images/icons/32/game.png'; $i++; $adminmenu[$i]['title'] = _MI_TPLLS_ABOUT; Added: XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/game.png =================================================================== (Binary files differ) Property changes on: XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/game.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/karm.png =================================================================== (Binary files differ) Property changes on: XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/karm.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/users.png =================================================================== (Binary files differ) Property changes on: XoopsModules/tplleaguestats/trunk/tplleaguestats/images/icons/32/users.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |