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: <be...@us...> - 2012-03-26 11:00:53
|
Revision: 9199 http://xoops.svn.sourceforge.net/xoops/?rev=9199&view=rev Author: beckmi Date: 2012-03-26 11:00:43 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Added column for "Required" field Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/0.png XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/1.png Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php 2012-03-26 09:47:45 UTC (rev 9198) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php 2012-03-26 11:00:43 UTC (rev 9199) @@ -3,7 +3,7 @@ * Extended User Profile * * 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 + * 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 @@ -20,287 +20,310 @@ include 'admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); -echo $indexAdmin->addNavigation('field.php'); +echo $indexAdmin->addNavigation('field.php'); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); $profilefield_handler =& xoops_getmodulehandler('field'); -switch($op ) { -default: -case "list": - $fields = $profilefield_handler->getObjects(null, true, false); +switch ($op) { + default: + case "list": + $fields = $profilefield_handler->getObjects(null, true, false); - $module_handler =& xoops_gethandler('module'); - $modules = $module_handler->getObjects(null, true); + $module_handler =& xoops_gethandler('module'); + $modules = $module_handler->getObjects(null, true); - $cat_handler =& xoops_getmodulehandler('category'); - $criteria = new CriteriaCompo(); - $criteria->setSort('cat_weight'); - $cats = $cat_handler->getObjects($criteria, true); - unset($criteria); + $cat_handler =& xoops_getmodulehandler('category'); + $criteria = new CriteriaCompo(); + $criteria->setSort('cat_weight'); + $cats = $cat_handler->getObjects($criteria, true); + unset($criteria); - $categories[0] = _PROFILE_AM_DEFAULT; - if ( count($cats) > 0 ) { - foreach (array_keys($cats) as $i ) { - $categories[$cats[$i]->getVar('cat_id')] = $cats[$i]->getVar('cat_title'); + $categories[0] = _PROFILE_AM_DEFAULT; + if (count($cats) > 0) { + foreach (array_keys($cats) as $i) { + $categories[$cats[$i]->getVar('cat_id')] = $cats[$i]->getVar('cat_title'); + } } - } - $GLOBALS['xoopsTpl']->assign('categories', $categories); - unset($categories); - $valuetypes = array(XOBJ_DTYPE_ARRAY => _PROFILE_AM_ARRAY, - XOBJ_DTYPE_EMAIL => _PROFILE_AM_EMAIL, - XOBJ_DTYPE_INT => _PROFILE_AM_INT, - XOBJ_DTYPE_TXTAREA => _PROFILE_AM_TXTAREA, - XOBJ_DTYPE_TXTBOX => _PROFILE_AM_TXTBOX, - XOBJ_DTYPE_URL => _PROFILE_AM_URL, - XOBJ_DTYPE_OTHER => _PROFILE_AM_OTHER, - XOBJ_DTYPE_MTIME => _PROFILE_AM_DATE); + $GLOBALS['xoopsTpl']->assign('categories', $categories); + unset($categories); + $valuetypes = array( XOBJ_DTYPE_ARRAY => _PROFILE_AM_ARRAY, + XOBJ_DTYPE_EMAIL => _PROFILE_AM_EMAIL, + XOBJ_DTYPE_INT => _PROFILE_AM_INT, + XOBJ_DTYPE_TXTAREA => _PROFILE_AM_TXTAREA, + XOBJ_DTYPE_TXTBOX => _PROFILE_AM_TXTBOX, + XOBJ_DTYPE_URL => _PROFILE_AM_URL, + XOBJ_DTYPE_OTHER => _PROFILE_AM_OTHER, + XOBJ_DTYPE_MTIME => _PROFILE_AM_DATE ); - $fieldtypes = array('checkbox' => _PROFILE_AM_CHECKBOX, - 'group' => _PROFILE_AM_GROUP, - 'group_multi' => _PROFILE_AM_GROUPMULTI, - 'language' => _PROFILE_AM_LANGUAGE, - 'radio' => _PROFILE_AM_RADIO, - 'select' => _PROFILE_AM_SELECT, - 'select_multi' => _PROFILE_AM_SELECTMULTI, - 'textarea' => _PROFILE_AM_TEXTAREA, - 'dhtml' => _PROFILE_AM_DHTMLTEXTAREA, - 'textbox' => _PROFILE_AM_TEXTBOX, - 'timezone' => _PROFILE_AM_TIMEZONE, - 'yesno' => _PROFILE_AM_YESNO, - 'date' => _PROFILE_AM_DATE, - 'datetime' => _PROFILE_AM_DATETIME, - 'longdate' => _PROFILE_AM_LONGDATE, - 'theme' => _PROFILE_AM_THEME, - 'autotext' => _PROFILE_AM_AUTOTEXT, - 'rank' => _PROFILE_AM_RANK); + $fieldtypes = array('checkbox' => _PROFILE_AM_CHECKBOX, + 'group' => _PROFILE_AM_GROUP, + 'group_multi' => _PROFILE_AM_GROUPMULTI, + 'language' => _PROFILE_AM_LANGUAGE, + 'radio' => _PROFILE_AM_RADIO, + 'select' => _PROFILE_AM_SELECT, + 'select_multi' => _PROFILE_AM_SELECTMULTI, + 'textarea' => _PROFILE_AM_TEXTAREA, + 'dhtml' => _PROFILE_AM_DHTMLTEXTAREA, + 'textbox' => _PROFILE_AM_TEXTBOX, + 'timezone' => _PROFILE_AM_TIMEZONE, + 'yesno' => _PROFILE_AM_YESNO, + 'date' => _PROFILE_AM_DATE, + 'datetime' => _PROFILE_AM_DATETIME, + 'longdate' => _PROFILE_AM_LONGDATE, + 'theme' => _PROFILE_AM_THEME, + 'autotext' => _PROFILE_AM_AUTOTEXT, + 'rank' => _PROFILE_AM_RANK); - foreach (array_keys($fields) as $i ) { - $fields[$i]['canEdit'] = $fields[$i]['field_config'] || $fields[$i]['field_show'] || $fields[$i]['field_edit']; - $fields[$i]['canDelete'] = $fields[$i]['field_config']; - $fields[$i]['fieldtype'] = $fieldtypes[$fields[$i]['field_type']]; - $fields[$i]['valuetype'] = $valuetypes[$fields[$i]['field_valuetype']]; - $categories[$fields[$i]['cat_id']][] = $fields[$i]; - $weights[$fields[$i]['cat_id']][] = $fields[$i]['field_weight']; - } - //sort fields order in categories - foreach (array_keys($categories) as $i ) { - array_multisort($weights[$i], SORT_ASC, array_keys($categories[$i]), SORT_ASC, $categories[$i]); - } - ksort($categories); - $GLOBALS['xoopsTpl']->assign('fieldcategories', $categories); - $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() ); - $template_main = "profile_admin_fieldlist.html"; - break; + foreach (array_keys($fields) as $i) { + $fields[$i]['canEdit']=$fields[$i]['field_config'] || $fields[$i]['field_show'] || $fields[$i]['field_edit']; + $fields[$i]['canDelete'] = $fields[$i]['field_config']; + $fields[$i]['fieldtype'] = $fieldtypes[$fields[$i]['field_type']]; + $fields[$i]['valuetype'] = $valuetypes[$fields[$i]['field_valuetype']]; + $categories[$fields[$i]['cat_id']][] = $fields[$i]; + $weights[$fields[$i]['cat_id']][] = $fields[$i]['field_weight']; -case "new": - include_once('../include/forms.php'); - $obj =& $profilefield_handler->create(); - $form = profile_getFieldForm($obj); - $form->display(); - break; + } + //sort fields order in categories + foreach (array_keys($categories) as $i) { + array_multisort($weights[$i], SORT_ASC, array_keys($categories[$i]), SORT_ASC, $categories[$i]); + } + ksort($categories); + $GLOBALS['xoopsTpl']->assign('fieldcategories', $categories); + $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML()); + $template_main = "profile_admin_fieldlist.html"; + break; -case "edit": - $obj =& $profilefield_handler->get($_REQUEST['id']); - if ( !$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit') ) { //If no configs exist - redirect_header('field.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); - } - include_once('../include/forms.php'); - $form = profile_getFieldForm($obj); - $form->display(); - break; + case "new": + include_once('../include/forms.php'); + $obj =& $profilefield_handler->create(); + $form = profile_getFieldForm($obj); + $form->display(); + break; -case "reorder": - if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); - } - if ( isset($_POST['field_ids']) && count($_POST['field_ids']) > 0 ) { - $oldweight = $_POST['oldweight']; - $oldcat = $_POST['oldcat']; - $category = $_POST['category']; - $weight = $_POST['weight']; - $ids = array(); - foreach ($_POST['field_ids'] as $field_id ) { - if ( $oldweight[$field_id] != $weight[$field_id] || $oldcat[$field_id] != $category[$field_id] ) { - //if field has changed - $ids[] = intval($field_id); - } + case "edit": + $obj =& $profilefield_handler->get($_REQUEST['id']); + if (!$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit')) { //If no configs exist + redirect_header('field.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); } - if ( count($ids) > 0 ) { - $errors = array(); - //if there are changed fields, fetch the fieldcategory objects - $field_handler =& xoops_getmodulehandler('field'); - $fields = $field_handler->getObjects(new Criteria('field_id', "(" . implode(',', $ids) . ")", "IN"), true); - foreach ($ids as $i ) { - $fields[$i]->setVar('field_weight', intval($weight[$i]) ); - $fields[$i]->setVar('cat_id', intval($category[$i]) ); - if ( !$field_handler->insert($fields[$i]) ) { - $errors = array_merge($errors, $fields[$i]->getErrors() ); + include_once('../include/forms.php'); + $form = profile_getFieldForm($obj); + $form->display(); + break; + + case "reorder": + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if (isset($_POST['field_ids']) && count($_POST['field_ids']) > 0) { + $oldweight = $_POST['oldweight']; + $oldcat = $_POST['oldcat']; + $category = $_POST['category']; + $weight = $_POST['weight']; + $ids = array(); + foreach ($_POST['field_ids'] as $field_id) { + if ($oldweight[$field_id] != $weight[$field_id] || $oldcat[$field_id] != $category[$field_id]) { + //if field has changed + $ids[] = intval($field_id); } } - if ( count($errors) == 0 ) { - //no errors - redirect_header('field.php', 2, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELDS) ); - } else { - redirect_header('field.php', 3, implode('<br />', $errors) ); + if (count($ids) > 0) { + $errors = array(); + //if there are changed fields, fetch the fieldcategory objects + $field_handler =& xoops_getmodulehandler('field'); + $fields = $field_handler->getObjects(new Criteria('field_id', "(" . implode(',', $ids) . ")", "IN"), true); + foreach ($ids as $i) { + $fields[$i]->setVar('field_weight', intval($weight[$i])); + $fields[$i]->setVar('cat_id', intval($category[$i])); + if (!$field_handler->insert($fields[$i])) { + $errors = array_merge($errors, $fields[$i]->getErrors()); + } + } + if (count($errors) == 0) { + //no errors + redirect_header('field.php', 2, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELDS)); + } else { + redirect_header('field.php', 3, implode('<br />', $errors)); + } } } - } - break; + break; -case "save": - if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); - } - $redirect_to_edit = false; - if ( isset($_REQUEST['id']) ) { - $obj =& $profilefield_handler->get($_REQUEST['id']); - if ( !$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit') ) { //If no configs exist - redirect_header('admin.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + case "save": + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); } - } else { - $obj =& $profilefield_handler->create(); - $obj->setVar('field_name', $_REQUEST['field_name']); - $obj->setVar('field_moduleid', $GLOBALS['xoopsModule']->getVar('mid') ); - $obj->setVar('field_show', 1); - $obj->setVar('field_edit', 1); - $obj->setVar('field_config', 1); - $redirect_to_edit = true; - } - $obj->setVar('field_title', $_REQUEST['field_title']); - $obj->setVar('field_description', $_REQUEST['field_description']); - if ( $obj->getVar('field_config') ) { - $obj->setVar('field_type', $_REQUEST['field_type']); - if ( isset($_REQUEST['field_valuetype']) ) { - $obj->setVar('field_valuetype', $_REQUEST['field_valuetype']); - } - $options = $obj->getVar('field_options'); - - if ( isset($_REQUEST['removeOptions']) && is_array($_REQUEST['removeOptions']) ) { - foreach ($_REQUEST['removeOptions'] as $index ) { - unset($options[$index]); + $redirect_to_edit = false; + if (isset($_REQUEST['id'])) { + $obj =& $profilefield_handler->get($_REQUEST['id']); + if (!$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit')) { //If no configs exist + redirect_header('admin.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); } + } else { + $obj =& $profilefield_handler->create(); + $obj->setVar('field_name', $_REQUEST['field_name']); + $obj->setVar('field_moduleid', $GLOBALS['xoopsModule']->getVar('mid')); + $obj->setVar('field_show', 1); + $obj->setVar('field_edit', 1); + $obj->setVar('field_config', 1); $redirect_to_edit = true; } - - if ( !empty($_REQUEST['addOption']) ) { - foreach ($_REQUEST['addOption'] as $option ) { - if ( empty($option['value']) ) continue; - $options[$option['key']] = $option['value']; + $obj->setVar('field_title', $_REQUEST['field_title']); + $obj->setVar('field_description', $_REQUEST['field_description']); + if ($obj->getVar('field_config')) { + $obj->setVar('field_type', $_REQUEST['field_type']); + if (isset($_REQUEST['field_valuetype'])) { + $obj->setVar('field_valuetype', $_REQUEST['field_valuetype']); + } + $options = $obj->getVar('field_options'); + + if (isset($_REQUEST['removeOptions']) && is_array($_REQUEST['removeOptions'])) { + foreach ($_REQUEST['removeOptions'] as $index) { + unset($options[$index]); + } $redirect_to_edit = true; } + + if (!empty($_REQUEST['addOption'])) { + foreach ($_REQUEST['addOption'] as $option) { + if (empty($option['value'])) continue; + $options[$option['key']] = $option['value']; + $redirect_to_edit = true; + } + } + $obj->setVar('field_options', $options); } - $obj->setVar('field_options', $options); - } - if ( $obj->getVar('field_edit') ) { - $required = isset($_REQUEST['field_required']) ? $_REQUEST['field_required'] : 0; - $obj->setVar('field_required', $required); //0 = no, 1 = yes - if ( isset($_REQUEST['field_maxlength']) ) { - $obj->setVar('field_maxlength', $_REQUEST['field_maxlength']); - } - if ( isset($_REQUEST['field_default']) ) { - $field_default = $obj->getValueForSave($_REQUEST['field_default']); - //Check for multiple selections - if ( is_array($field_default) ) { - $obj->setVar('field_default', serialize($field_default) ); - } else { - $obj->setVar('field_default', $field_default); + if ($obj->getVar('field_edit')) { + $required = isset($_REQUEST['field_required']) ? $_REQUEST['field_required'] : 0; + $obj->setVar('field_required', $required); //0 = no, 1 = yes + if (isset($_REQUEST['field_maxlength'])) { + $obj->setVar('field_maxlength', $_REQUEST['field_maxlength']); } + if (isset($_REQUEST['field_default'])) { + $field_default = $obj->getValueForSave($_REQUEST['field_default']); + //Check for multiple selections + if (is_array($field_default)) { + $obj->setVar('field_default', serialize($field_default)); + } else { + $obj->setVar('field_default', $field_default); + } + } } - } - if ( $obj->getVar('field_show') ) { - $obj->setVar('field_weight', $_REQUEST['field_weight']); - $obj->setVar('cat_id', $_REQUEST['field_category']); - } - if ( /*$obj->getVar('field_edit') && */isset($_REQUEST['step_id']) ) { - $obj->setVar('step_id', $_REQUEST['step_id']); - } - if ( $profilefield_handler->insert($obj) ) { - $groupperm_handler =& xoops_gethandler('groupperm'); - - $perm_arr = array(); - if ( $obj->getVar('field_show') ) { - $perm_arr[] = 'profile_show'; - $perm_arr[] = 'profile_visible'; + if ($obj->getVar('field_show')) { + $obj->setVar('field_weight', $_REQUEST['field_weight']); + $obj->setVar('cat_id', $_REQUEST['field_category']); } - if ( $obj->getVar('field_edit') ) { - $perm_arr[] = 'profile_edit'; + if ( /*$obj->getVar('field_edit') && */isset($_REQUEST['step_id']) ) { + $obj->setVar('step_id', $_REQUEST['step_id']); } - if ( $obj->getVar('field_edit') || $obj->getVar('field_show') ) { - $perm_arr[] = 'profile_search'; - } - if ( count($perm_arr) > 0 ) { - foreach ($perm_arr as $perm ) { - $criteria = new CriteriaCompo(new Criteria('gperm_name', $perm) ); - $criteria->add(new Criteria('gperm_itemid', intval($obj->getVar('field_id') )) ); - $criteria->add(new Criteria('gperm_modid', intval($GLOBALS['xoopsModule']->getVar('mid') )) ); - if ( isset($_REQUEST[$perm]) && is_array($_REQUEST[$perm]) ) { - $perms = $groupperm_handler->getObjects($criteria); - if ( count($perms) > 0 ) { - foreach (array_keys($perms) as $i ) { - $groups[$perms[$i]->getVar('gperm_groupid')] =& $perms[$i]; + if ($profilefield_handler->insert($obj)) { + $groupperm_handler =& xoops_gethandler('groupperm'); + + $perm_arr = array(); + if ($obj->getVar('field_show')) { + $perm_arr[] = 'profile_show'; + $perm_arr[] = 'profile_visible'; + } + if ($obj->getVar('field_edit')) { + $perm_arr[] = 'profile_edit'; + } + if ($obj->getVar('field_edit') || $obj->getVar('field_show')) { + $perm_arr[] = 'profile_search'; + } + if (count($perm_arr) > 0) { + foreach ($perm_arr as $perm) { + $criteria = new CriteriaCompo(new Criteria('gperm_name', $perm)); + $criteria->add(new Criteria('gperm_itemid', intval($obj->getVar('field_id')))); + $criteria->add(new Criteria('gperm_modid', intval($GLOBALS['xoopsModule']->getVar('mid')))); + if (isset($_REQUEST[$perm]) && is_array($_REQUEST[$perm])) { + $perms = $groupperm_handler->getObjects($criteria); + if (count($perms) > 0) { + foreach (array_keys($perms) as $i) { + $groups[$perms[$i]->getVar('gperm_groupid')] =& $perms[$i]; + } + } else { + $groups = array(); } + foreach ($_REQUEST[$perm] as $groupid) { + $groupid = intval($groupid); + if (!isset($groups[$groupid])) { + $perm_obj =& $groupperm_handler->create(); + $perm_obj->setVar('gperm_name', $perm); + $perm_obj->setVar('gperm_itemid', intval($obj->getVar('field_id'))); + $perm_obj->setVar('gperm_modid', $GLOBALS['xoopsModule']->getVar('mid')); + $perm_obj->setVar('gperm_groupid', $groupid); + $groupperm_handler->insert($perm_obj); + unset($perm_obj); + } + } + $removed_groups = array_diff(array_keys($groups), $_REQUEST[$perm]); + if (count($removed_groups) > 0) { + $criteria->add(new Criteria('gperm_groupid', "(" . implode(',', $removed_groups) . ")", "IN")); + $groupperm_handler->deleteAll($criteria); + } + unset($groups); + } else { - $groups = array(); - } - foreach ($_REQUEST[$perm] as $groupid ) { - $groupid = intval($groupid); - if ( !isset($groups[$groupid]) ) { - $perm_obj =& $groupperm_handler->create(); - $perm_obj->setVar('gperm_name', $perm); - $perm_obj->setVar('gperm_itemid', intval($obj->getVar('field_id') )); - $perm_obj->setVar('gperm_modid', $GLOBALS['xoopsModule']->getVar('mid') ); - $perm_obj->setVar('gperm_groupid', $groupid); - $groupperm_handler->insert($perm_obj); - unset($perm_obj); - } - } - $removed_groups = array_diff(array_keys($groups), $_REQUEST[$perm]); - if ( count($removed_groups) > 0 ) { - $criteria->add(new Criteria('gperm_groupid', "(".implode(',', $removed_groups).")", "IN") ); $groupperm_handler->deleteAll($criteria); } - unset($groups); - - } else { - $groupperm_handler->deleteAll($criteria); + unset($criteria); } - unset($criteria); } + $url = $redirect_to_edit ? 'field.php?op=edit&id=' . $obj->getVar('field_id') : 'field.php'; + redirect_header($url, 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELD)); } - $url = $redirect_to_edit ? 'field.php?op=edit&id=' . $obj->getVar('field_id') : 'field.php'; - redirect_header($url, 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELD) ); - } - include_once('../include/forms.php'); - echo $obj->getHtmlErrors(); - $form = profile_getFieldForm($obj); - $form->display(); - break; + include_once('../include/forms.php'); + echo $obj->getHtmlErrors(); + $form = profile_getFieldForm($obj); + $form->display(); + break; -case "delete": - $obj =& $profilefield_handler->get($_REQUEST['id']); - if ( !$obj->getVar('field_config') ) { - redirect_header('index.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); - } - if ( isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1 ) { - if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + case "delete": + $obj =& $profilefield_handler->get($_REQUEST['id']); + if (!$obj->getVar('field_config')) { + redirect_header('index.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); } - if ( $profilefield_handler->delete($obj) ) { - redirect_header('field.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_FIELD) ); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($profilefield_handler->delete($obj)) { + redirect_header('field.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_FIELD)); + } else { + echo $obj->getHtmlErrors(); + } } else { - echo $obj->getHtmlErrors(); + xoops_confirm(array('ok' => 1,'id' => $_REQUEST['id'],'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('field_title'))); } - } else { - xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('field_title') )); - } - break; + break; + + case 'toggle': + if (isset($_REQUEST['field_id'])) { + $field_id=$_REQUEST['field_id']; + if (isset($_REQUEST['field_required'])) { + $field_required = isset($_GET['field_required']) ? intval($_GET['field_required']) : (isset($_POST['field_required']) ? intval($_POST['field_required']) : 0); + profile_visible_toggle($field_id, $field_required); + redirect_header('field.php', 1, _PROFILE_AM_REQUIRED_TOGGLE_SUCCESS); + break; + } + } } -if ( isset($template_main) ) { +if (isset($template_main)) { $GLOBALS['xoopsTpl']->display("db:{$template_main}"); } + +function profile_visible_toggle($field_id, $field_required) +{ + $field_required = ($field_required == 1) ? 0 : 1; + $this_handler =& xoops_getModuleHandler('field', 'profile'); + $obj = $this_handler->get($field_id); + $obj->setVar('field_required', intval($field_required)); + $this_handler->insert($obj,true); +} + + include 'admin_footer.php'; //xoops_cp_footer(); \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt 2012-03-26 09:47:45 UTC (rev 9198) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt 2012-03-26 11:00:43 UTC (rev 9199) @@ -1,3 +1,7 @@ +Version 1.63 +------------------- +- added "Required" column in Fields with Toggle functionality (mamba) + Version 1.62 RC ------------------- - umode has wrong fieldtype, should be a string (trabis) Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/0.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/0.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/1.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/images/actions/1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php 2012-03-26 09:47:45 UTC (rev 9198) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php 2012-03-26 11:00:43 UTC (rev 9199) @@ -112,4 +112,9 @@ define("_PROFILE_AM_STEPINTRO", "Step description"); //1.62 define('_PROFILE_AM_ACTION', 'Action'); +//1.63 +define('_PROFILE_AM_REQUIRED_TOGGLE', 'Toggle Required'); +define('_PROFILE_AM_REQUIRED_TOGGLE_SUCCESS', 'Successfully Changed Required Field '); + + ?> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html 2012-03-26 09:47:45 UTC (rev 9198) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html 2012-03-26 11:00:43 UTC (rev 9199) @@ -7,6 +7,7 @@ <th><{$smarty.const._PROFILE_AM_TYPE}></th> <th><{$smarty.const._PROFILE_AM_CATEGORY}></th> <th><{$smarty.const._PROFILE_AM_WEIGHT}></th> + <th><{$smarty.const._PROFILE_AM_REQUIRED}></th> <th><{$smarty.const._PROFILE_AM_ACTION}></th> <{foreach item=category from=$fieldcategories}> <{foreach item=field from=$category}> @@ -25,6 +26,15 @@ <input type="text" name="weight[<{$field.field_id}>]" size="5" maxlength="5" value="<{$field.field_weight}>" /> <{/if}> </td> + + <!-- ___________adding "Required" status" //mb --> + <td align="center"> + <{if $field.canEdit}> + <a href="field.php?op=toggle&field_required=<{$field.field_required}>&field_id=<{$field.field_id}>"><img src="<{$xoops_url}>/modules/profile/images/actions/<{$field.field_required}>.png" title="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" /></a> + <{/if}> + </td> + <!-- end __________"Required" status" //mb --> + <td align= "center"> <{if $field.canEdit}> <input type="hidden" name="oldweight[<{$field.field_id}>]" value="<{$field.field_weight}>" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-26 09:47:56
|
Revision: 9198 http://xoops.svn.sourceforge.net/xoops/?rev=9198&view=rev Author: wishcraft Date: 2012-03-26 09:47:45 +0000 (Mon, 26 Mar 2012) Log Message: ----------- TwitterBomb 1.29 - complete release final (minor fixes) Modified Paths: -------------- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/cron/tweet.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/docs/changelog.txt XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/sql/mysql.sql XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/xoops_version.php Added Paths: ----------- XoopsModules/twitterbomb/releases/1.29/ XoopsModules/twitterbomb/releases/1.29/docs/ XoopsModules/twitterbomb/releases/1.29/docs/.htaccess XoopsModules/twitterbomb/releases/1.29/docs/INSTALL XoopsModules/twitterbomb/releases/1.29/docs/licence.txt XoopsModules/twitterbomb/releases/1.29/extras/ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.4.x/ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.4.x/htdocs/ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.4.x/htdocs/header.php XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.5.x/ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.5.x/htdocs/ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.5.x/htdocs/header.php XoopsModules/twitterbomb/releases/1.29/htdocs/ XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/ XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/ XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.logs.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.mentions.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.preferences.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.reply.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.retweet.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.scheduler.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.sentence.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.urls.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.usernames.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.campaigns.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.categories.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.keywords.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.logs.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.mentions.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.preferences.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.reply.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.retweet.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.scheduler.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.sentence.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.urls.png XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/32/twitterbomb.usernames.png XoopsModules/twitterbomb/releases/1.29/htdocs/modules/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/tag/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/tag/plugin/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/tag/plugin/twitterbomb.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/admin/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/admin/header.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/admin/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/admin/index.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/admin/menu.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/backend.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_bomb.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_follow.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_mentions.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_replies.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_retweet.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_scheduler.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_tag.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_topranked.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_tweet.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_usernames.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/blocks/twitterbomb_block_widget.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/callback/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/callback/index.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/base_matrix.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/campaign.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/category.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/following.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/keywords.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/log.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/myuploader.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/oauth.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/retweet.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/scheduler.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/urls.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/class/usernames.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/cron/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/cron/all.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/cron/doit.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/cron/follow.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/cron/gather.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/cron/tweet.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/changelog.txt XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/credits.txt XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/install.txt XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/lang_diff.txt XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/licence.txt XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/docs/readme.txt XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/go.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/header.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/images/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/images/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/images/rss.png XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/images/twitterbomb_slogo.png XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/OAuth.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formcheckboxmentions.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formcheckboxreplies.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formcheckboxretweet.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formobjects.twitterbomb.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/forms.twitterbomb.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectbase.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectcampaigns.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectcategories.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectlanguage.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectlogtype.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectmeasurement.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectmode.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectoauthmode.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectretweettype.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselectscreenname.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselecttype.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/formselecturls.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/functions.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/install.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/twitteroauth.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/include/update.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/index.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/blocks.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/errors.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/help/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/help/help.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/help/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/main.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/english/modinfo.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/italian/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/italian/admin.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/italian/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/italian/main.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/language/italian/modinfo.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/list.tag.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/bomb.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/clause.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/direct.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/disabled.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/expired.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/filtered.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/filteredpregmatch.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/filteredpregmatchstrip.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/filteredstrip.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/filteredstrippregmatch.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/for.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/invalid.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/mirc.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/mixed.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/other.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/over.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/popular.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/pregmatch.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/pregmatchfiltered.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/pregmatchfilteredstrip.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/pregmatchstrip.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/pregmatchstripfiltered.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/recent.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/scheduler.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/strip.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/stripfiltered.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/stripfilteredpregmatch.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/strippregmatch.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/strippregmatchfiltered.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/their.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/then.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/there.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/under.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/valid.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/plugins/when.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/post.cache.end.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/post.common.end.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/post.footer.end.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/preloads/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/preloads/core.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/preloads/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/redirect.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/search.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/sql/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/sql/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/sql/mysql.sql XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/ XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_follow.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweet.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweets.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_tweets_ranked.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_usernames.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_block_widget.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_tag_block_cloud.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/blocks/twitterbomb_tag_block_top.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_campaign_item.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_campaign_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_categories_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_category_item.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_base_matrix_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_base_matrix_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_campaign_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_campaign_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_category_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_category_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_keywords_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_keywords_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_log.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_retweet_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_retweet_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_scheduler_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_scheduler_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_urls_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_urls_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_usernames_edit.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_usernames_list.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_index.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_rss.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_trail.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/templates/twitterbomb_usernames.html XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/trail.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/view.tag.php XoopsModules/twitterbomb/releases/1.29/htdocs/modules/twitterbomb/xoops_version.php Added: XoopsModules/twitterbomb/releases/1.29/docs/.htaccess =================================================================== --- XoopsModules/twitterbomb/releases/1.29/docs/.htaccess (rev 0) +++ XoopsModules/twitterbomb/releases/1.29/docs/.htaccess 2012-03-26 09:47:45 UTC (rev 9198) @@ -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.29/docs/INSTALL =================================================================== --- XoopsModules/twitterbomb/releases/1.29/docs/INSTALL (rev 0) +++ XoopsModules/twitterbomb/releases/1.29/docs/INSTALL 2012-03-26 09:47:45 UTC (rev 9198) @@ -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.29/docs/licence.txt =================================================================== --- XoopsModules/twitterbomb/releases/1.29/docs/licence.txt (rev 0) +++ XoopsModules/twitterbomb/releases/1.29/docs/licence.txt 2012-03-26 09:47:45 UTC (rev 9198) @@ -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.29/extras/XOOPS 2.4.x/htdocs/header.php =================================================================== --- XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.4.x/htdocs/header.php (rev 0) +++ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.4.x/htdocs/header.php 2012-03-26 09:47:45 UTC (rev 9198) @@ -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.29/extras/XOOPS 2.5.x/htdocs/header.php =================================================================== --- XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/twitterbomb/releases/1.29/extras/XOOPS 2.5.x/htdocs/header.php 2012-03-26 09:47:45 UTC (rev 9198) @@ -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.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.campaigns.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.categories.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png =================================================================== (Binary files differ) Property changes on: XoopsModules/twitterbomb/releases/1.29/htdocs/Frameworks/moduleclasses/icons/16/twitterbomb.keywords.png ___________________________________________________________________ A... [truncated message content] |
From: <wis...@us...> - 2012-03-26 05:11:02
|
Revision: 9197 http://xoops.svn.sourceforge.net/xoops/?rev=9197&view=rev Author: wishcraft Date: 2012-03-26 05:10:50 +0000 (Mon, 26 Mar 2012) Log Message: ----------- myAlbum-p 3.05 - complete release final (minor fixes) Added Paths: ----------- XoopsModules/myalbum/branches/wishcraft/3.05/ XoopsModules/myalbum/branches/wishcraft/3.05/docs/ XoopsModules/myalbum/branches/wishcraft/3.05/docs/.htaccess XoopsModules/myalbum/branches/wishcraft/3.05/docs/CHANGELOG XoopsModules/myalbum/branches/wishcraft/3.05/docs/COPYING XoopsModules/myalbum/branches/wishcraft/3.05/docs/INSTALL XoopsModules/myalbum/branches/wishcraft/3.05/docs/README XoopsModules/myalbum/branches/wishcraft/3.05/docs/TODO XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.admission.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.batch.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.export.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.import.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.index.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.permissions.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.photomanager.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/16/myalbum.redothumbs.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.admission.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.batch.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.export.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.import.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.index.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.permissions.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.photomanager.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/Frameworks/moduleclasses/icons/32/myalbum.redothumbs.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/about.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/admin_header.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/admission.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/batch.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/dashboard.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/export.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/groupperm_global.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/import.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/index.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/menu.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/mygroupperm.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/mygrouppermform.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/photomanager.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/admin/redothumbs.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/.htaccess.dist XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum0_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum1_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum2_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum_rphoto.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum_tophits.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/blocks/myalbum_topnews.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/cat.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/comments.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/myalbum.textsanitizer.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/myuploader.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/photos.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/text.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/class/votedata.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/close.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/comment_delete.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/comment_edit.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/comment_new.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/comment_post.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/comment_reply.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/changelog.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/copying.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/credits.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/install.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/lang_diff.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/licence.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/readme.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/docs/todo.txt XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/editphoto.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/header.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/asx.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/avi.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/bmp.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/default.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/doc.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/gif.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/jpg.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/mid.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/mov.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/mp3.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/mpeg.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/mpg.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/pdf.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/png.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/ram.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/rar.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/swf.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/txt.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/wav.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/wmv.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/xls.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/icons/zip.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/imagemanager.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/0.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/1.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/2.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/3.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/4.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/5.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/6.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/7.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/8.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/9.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/Thumbs.db XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/alignbigcenter.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/alignbigleft.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/alignbigright.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/aligncenter.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/alignleft.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/alignright.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/cat_add.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/cat_edit.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/clock.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/comments.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/deadlink.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/down.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/editicon.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/folder16.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/folder32.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/folder32_old.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/folder_open.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/hits.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/icon_rotate180.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/icon_rotate270.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/icon_rotate90.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/jaquette dvd.png XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/logo.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/mk_slogo.sh XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/myalbum0_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/myalbum1_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/myalbum2_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/myalbum_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/myphotos.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/newred.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/pict.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/pictadd.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/pixel_trans.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/plus.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/pop.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank0.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank1.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank2.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank3.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank4.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank5.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank6.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank7.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank8.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank9.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rank_none.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/rss.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/subcat.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/submitter.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/tellafriend.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/up.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/update.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/vote.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/images/watermark_sample.gif XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/.htaccess XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/assign_globals.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/blocksadmin.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/comment_functions.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/draw_functions.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/functions.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/get_perms.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/gtickets.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/myalbum.forms.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/notification.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/oninstall.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/onupdate.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/onupdate.inc.php.sample XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/photo_orders.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/preferences.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/read_configs.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/search.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/sitemap.plugin.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/updateblock.inc.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/include/waiting.plugin.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/index.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/.htaccess XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/admin.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/blocks.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/mail_template/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/mail_template/category_newphoto_notify.tpl XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/mail_template/global_newphoto_notify.tpl XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/main.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/modinfo.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/english/myalbum_constants.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/language/index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/list.tag.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/notification_update.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/photo.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/ratephoto.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/rss.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/sql/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/sql/.htaccess XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/sql/myalbum.sql XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/sql/myalbum0.sql XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/sql/myalbum1.sql XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/sql/myalbum2.sql XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/submit.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/.htaccess XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/_notes/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/_notes/dwsync.xml XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum0_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum1_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum2_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/blocks/myalbum_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/mk_templates.sh XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_categories.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_footer.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_header.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_photo.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_rss.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_topten.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum0_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_categories.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_footer.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_header.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_photo.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_rss.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_topten.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum1_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_categories.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_footer.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_header.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_photo.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_rss.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_topten.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum2_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_categories.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_footer.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_header.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_index.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_photo.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_rss.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_topten.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/templates/myalbum_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/topten.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/view.tag.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/viewcat.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/myalbum/xoops_version.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/sitemap/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/sitemap/plugin/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/sitemap/plugin/myalbum.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/tag/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/tag/plugin/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/tag/plugin/myalbum.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/tag/plugin/myalbum0.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/tag/plugin/myalbum1.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/modules/tag/plugin/myalbum2.php XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/uploads/ XoopsModules/myalbum/branches/wishcraft/3.05/htdocs/uploads/myalbum/ Added: XoopsModules/myalbum/branches/wishcraft/3.05/docs/.htaccess =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.05/docs/.htaccess (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.05/docs/.htaccess 2012-03-26 05:10:50 UTC (rev 9197) @@ -0,0 +1,36 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^gallery/submit.html modules/myalbum/submit.php [L,NC,QSA] +RewriteRule ^gallery/submit.php modules/myalbum/submit.php [L,NC,QSA] +RewriteRule ^gallery/ratephoto.php modules/myalbum/ratephoto.php [L,NC,QSA] +RewriteRule ^gallery/cat,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).html modules/myalbum/viewcat.php?cid=$1&uid=$2&num=$3&pos=$4&view=$5 [L,NC,QSA] +RewriteRule ^gallery/rss,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).rss modules/myalbum/rss.php?cid=$1&uid=$2&num=$3&pos=$4&view=$5 [L,NC,QSA] +RewriteRule ^gallery/index,([0-9]+),([0-9]+).html modules/myalbum/index.php?num=$1&pos=$2 [L,NC,QSA] +RewriteRule ^gallery/rate,([0-9]+).html modules/myalbum/ratephoto.php?lid=$1 [L,NC,QSA] +RewriteRule ^gallery/top,([0-9]+),([0-9]+).html modules/myalbum/topten.php?hit=$1&rate=$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/index.php modules/myalbum/index.php [L,NC,QSA] +RewriteRule ^gallery/(.*?)/comment_(.*?) modules/myalbum/comment_$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/photo.php(.*?) modules/myalbum/photo.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/viewcat.php(.*?) modules/myalbum/viewcat.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/ratephoto.php(.*?) modules/myalbum/ratephoto.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/list.tag.php(.*?) modules/myalbum/list.tag.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/view.tag.php(.*?) modules/myalbum/view.tag.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/submit.php(.*?) modules/myalbum/submit.php?$2&title=$1 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/submit,([0-9]+).html modules/myalbum/submit.php?cid=$2&title=$1 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/cat,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).html modules/myalbum/viewcat.php?cid=$2&uid=$3&num=$4&pos=$5&view=$6 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/rss,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).rss modules/myalbum/rss.php?cid=$2&uid=$3&num=$4&pos=$5&view=$6 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/edit,([0-9]+),([0-9]+).html modules/myalbum/editphoto.php?lid=$3&cid=$4 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/rate,([0-9]+),([0-9]+).html modules/myalbum/ratephoto.php?lid=$3&cid=$4 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/submit.php?cid=([0-9]+) modules/myalbum/submit.php?cid=$3&title=$1 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/comment_(.*?) modules/myalbum/comment_$3 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/photo.php(.*?) modules/myalbum/photo.php$3 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/viewcat.php(.*?) modules/myalbum/viewcat.php$3 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/ratephoto.php(.*?) modules/myalbum/ratephoto.php$3 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/list.tag.php(.*?) modules/myalbum/list.tag.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/view.tag.php(.*?) modules/myalbum/view.tag.php$2 [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/index.php modules/myalbum/index.php [L,NC,QSA] +RewriteRule ^gallery/(.*?)/(.*?)/([0-9]+),([0-9]+).html modules/myalbum/photo.php?lid=$3&cid=$4 [L,NC,QSA] +RewriteRule ^gallery/(.*?) modules/myalbum/$1 [L,NC,QSA] Added: XoopsModules/myalbum/branches/wishcraft/3.05/docs/CHANGELOG =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.05/docs/CHANGELOG (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.05/docs/CHANGELOG 2012-03-26 05:10:50 UTC (rev 9197) @@ -0,0 +1,430 @@ +2004-10-4 v2.84 + - modified ImageManagerIntegration can treat non-image files (AttachmentManager) + - added an option which specifies the default listing order + - modified that img tags have not only alt but also title property + - added delete button on admin's admission (thx karuna) + - fixed a bug rendering options for categories (thx Tom_G3X) + - added italian language (thx NickeL) + - updated schinese language (thx phppp) + +2004-7-31 v2.83 + - added photo columns into each blocks (thx rocket98) + - fixed default templates not to display posting icon to non-priv-users (thx rocket98) + - fixed adding meta headers into submit.php called by IMI (thx phppp) + - fixed myalbum.textsanitizer to separated some codes into langs (thx phppp) + - modified non-image files can be shown in random block (thx okatti) + - updated myblocksadmin into 0.07 + - updated schinese language (thx phppp) + +2004-7-8 v2.82 + - fixed a bug in listing categories (thx cradeg) + +2004-7-5 v2.81 + - fixed looping check routine (thx boufa) + - fixed treating with ghost categories (thx cradeg & boufa) + - eliminated some codes using buggy xoops_substr() (thx namhil & boufa) + - added mbstring routine for some environment (thx Marijuana) + - fixed some links not ended '/' (thx Marijuana) + - added some global permissions on intall (thx Marijuana) + - updated swedish language (thx Leif Madsen) + +2004-6-25 v2.80 + - remade the default design using crystal icons. (thx to all of icon authors) + - added class MyAlbumTextSanitizer extends MyTextSanitizer + - added tag [siteimg] + - added tag [summary][/summary] only text inside this tag will be displayed in summary view + - applied with Windows environment (If you want to use Windows Server with ImageMagick, try blank as the path of ImageMagick) + - added a mode ImageManager Integration outputs [siteimg] tags + - updated myblocksadmin & mymenu + - changed names of functions using prefix "myalbum_" (eg. applied the problem of redeclaring convertorderbyin() ) + - fixed some SQL injection vulnerablities + - and many other slight bugs are patched + +2004-5-25 v2.75b + - fixed import.php from myAlbum-P (thx okatti) + +2004-5-22 v2.75a + - fixed a fatal bug which user's posts is cleared when he submit (thx sfdb). + -- 2.73 , 2.74 and 2.75 have this problem. + +2004-5-21 v2.75 + - fixed uid don't specified in order link (thx bordacs) + - modified icon gifs larger + - eliminate 'PHP_SELF' + +2004-5-19 v2.74 + - added middle size calculation in photo.php (thx ellecat) + - fixed wrong links in photo.php (thx sfdb, efla) + - fixed a bug in specifying date of last modified + - changed myalbum_slogo.gif using font 04b_03b (thx Herko & Y.Kishino) + - changed logo.gif like mydownloads (thx LARABIE FONTS) + +2004-5-17 v2.73 + - added batch update into photo manager (thx efla) + - added a drop-down box allowing him a direct access to any categories or/and sub-categories. (thx efla) + - fixed a bug category selection is not stored in preview. (thx Elleomea) + - fixed a bug of catview.php in table view (thx Snoopy) + +2004-5-13 v2.72a modification about a compatibility with PHP Accelerator + - the order of templates is changed back to the same as 2.6 + - modified category should be selected (thx sfdb) + - modified putting some space between 2 lines of thumbs in the table view (thx efla) + - modified "mymenu" can be also displayed in preferences + +2004-5-7 v2.72 some modifications + - modified treating files other than images + - modified redo thumbnails + - modified preview + +2004-5-7 v2.71 bug fixed + - fixed a problem which caps extensions treated as not image files + +2004-5-5 v2.70 release + - added page navigation into recent list of top page + - added limitation of photos in block displaying + - added category's name ($photo.cat_title) into template myalbum*_photo_in_list.html + - added term for rotation of random image + - added import from imagemanager + - added export to imagemanager + - added a top menu for admin ("mymenu") + - remade category's admin (renamed as index.php) + - allowed to upload another type of files (swf,avi etc.) + - For such implementations, I use the icons of filemanager 3.0 + - thx to the author Jan Inge Pettersen(Xend) http://www.xendtech.com/ + +2004-4-5 v2.70 beta 03 + - use myuploader.php instead of class/uploader.php in XOOPS core. + (Security reason) + - added import from another myAlbum-P modules. + - navigation at bottom as well (thx mariuss) + - New language + - Nederlands (thx Jan Deeben) + +2004-3-9 v2.70 beta 02 + - fixed typo in xoops_version.php and notification.inc.php + - fixed typo in templates for duplicated modules + - added links each categories view from submit or edit + - not only text but also photo is previewable (submit) + - myblocksadmin improved a little + - Updated swedish (thx Leif Madsen) + +2004-3-4 v2.70 beta 01 + - modified as "Duplicatable Module" + - rename .htaccess into .htaccess.dist for some environment. + (If you want more secure, rename it into .htaccess manually) + - Updated spanish (thx ColdBeer) + - short tag in language/*/admin.php fixed (thx magu) + +2004-2-29 v2.64 (some requested features implemented) + - redirect to viewcat.php of specified category after photo submission (thx karuna) + - set the filename as subject when subject is not specified (thx mariuss) + - modified into much safer codes which prevent from crackers (thx JM2) + - preview added + - myblocksadmin updated to 0.04 + - changed like that uploading photo is not necessary + - use original images as thumbnails when the images is small enough + - New language + - Portuguese (thx Oliver Zancul Prado) + +2004-2-12 v2.63 (small fix) + - fixed bug that registered users (not admin) can't edit photo's description + +2004-1-30 v2.62 (small fixes) + - fixed typo in viewcat.php (thx pen) + - move 'template_main' above include(XOOPS_ROOT_PATH.'/header.php') + +2004-1-30 v2.61 (small fixes) + - fixed typo in myalbum_imagemanager.html rxcoder -> xcoder fixed (thx Olorin) + - feature changed not to close imagemanager after [img] added (thx Olorin) + - sort by date desc added (thx Collo) + - pagenav bug fixed (thx Collo) + +2004-1-28 v2.60 release + - imagemanager integrated with XOOPS core added + - optimization for table view + - Updated swedish (thx Leif Madsen) + +2004-1-27 v2.60beta01 + - almost of front ends have been rewritten to use template + - selectable from two views of viewcat.php (list & table) + - global group permission added (add,edit,delete,rateview,ratevote) + - notifications added (new photos in global and categories) + - some improvement for admin + - some fix + +2003-12-31 v2.50beta04 + - New language + - Swedish (thx Leif Madsen) + - width specification added when big thumbs + +2003-12-18 v2.50beta03 + - myblocksadmin is replaced to 0.03 + (compatibility trouble before XOOPS 2.0.3) + +2003-12-3 v2.50beta02 + - Updated tchinese (thx xoobs) + - myblocksadmin added + - two blocks added + +2003-11-25 v2.50beta01 (Major version up) + - better work with GD + - adding "forceGD2 mode" + - supporting NetPBM + - add a preference for rules of creating thumbnails + - rewrite all of blocks (using templates etc..) + - rewrite redo thumnails + - rewrite batch register + - selectable uname() or name() + - remove all of is_executable() + - and much more ... + +2003-10-21 v2.05 (Adding a language file) + - New language + - French + - Added some language constants into the tails of all language files. + +2003-10-8 v2.04 (Adjustment for some environment) + - don't mkdir photos & thumbs when safe_mode is on. + +2003-9-23 v2.03 (Adding some checks for begginers) + - add environment checks into 'module check'. + - add some checks into 'submit.php'. + - default directory for photos and thumbs has moved under /uploads + +2003-9-16 v2.02 (fixes) + - fixed my misunderstanding with feature for seaching. + - when click a photo in photo.php, it opens new window. (for printing etc.) + +2003-9-13 v2.01 (Compatibility fixes) + - Remove $smarty.const.xxx for XOOPS older than 2.0.2 + - Restore table myalbum_comments for older myalbum user. + +2003-9-5 v2.0.0 Release + - The first release version. + - Fixed slightly bugs in displaying. + +2003-8-30 v2.0.0pre10 + - New language + - traditional Chinese + - simple Chinese (thx xoobs) + +2003-8-29 v2.0.0pre09 + - Fixed many bugs of treating comments + - Templatize photos listing (Don't forget updating this module!) + +2003-8-28 v2.0.0pre08 + - Add check code for the directory path of 'batch upload' + - Add 'move category' on photo manager + - New language + - Spanish (thx Horacio Salazar) + +2003-8-26 v2.0.0pre07 + - Fixed a bug for updating a photo. + - Add 'update users posts' feature. + +2003-8-26 v2.0.0pre06 + - Fixed a miss type of ratephoto.php (thx HowardGee) + +2003-8-21 v2.0.0pre05 + - Implement 'Check module' for admin + - Implement 'Photo Manager' + - fixed res_x, res_y recorded wrong degree. + - 'make thumbs' option turns off in default. + +2003-8-20 v2.0.0pre04 + - Fatal error fixed. (Normal User can't view photos properly) + - Change upload class from older upload.class to Xoops2 uploader class + +2003-8-19 v2.0.0pre03 + - prepare to 'module duplication' (not yet) + - can change photo or thumbs directory (like /uploads/myalbum/) + - fixes about Category & Photo deletion + - resize or rotation main photos (Only ImageMagick) + - modify code for making thumbs by GD. (for PHP bundled GD2) + - and many more... + +2003-8-17 v2.0.0pre02 + - fixes about displaying Categories + +2003-8-13 v2.0.0pre01 GIJ's first beta release + + + +--------------- + +21/3/2003 v1.1.0 (beta) + - Xoops 2.0 support + +19/3/2003 v1.0.2 + - small fixes + +1/3/2003 v1.0.1 + - Better thumbs (gd 2.0) + - My Photos (optional member edit/delete photos) + - redo thumbs + - All language tags changed to _ALBM_* + - New Languages (Need credits) + - Portuguesept + - French + - Italian + - Japanese + - Schinese + +4/7/2002 v1.0.0 + - First public release. + +30/6/2002 v0.9.5 + - 2nd RC. + - Updated to RC 3.0.3 + +30/6/2002 v0.9.4 + - Language errors in Block. + +30/6/2002 v0.9.3 + - Batch upload uppercased files. + +29/6/2002 v0.9.3 + - /class/upload.class.php broken from RC3 -> RC3.0.2. + - Now only works on RC3.0.2. + +27/6/2002 v0.9.2 + - misc bugs. + +27/6/2002 v0.9.1 + - misc bugs. + +26/6/2002 v0.9.0 + - 1st non public release candidate. + + + + + + + + + +--------------------------------------------------------- +(for Japanese) + +\xB9\xB9\xBF\xB7\xCD\xFA\xCE\xF2: + + +2004-10-4 v2.84 + - \xA5\xA4\xA5\xA5\xB8\xA5ޥ͡\xBC\xA5\xB8\xA5\xE3\xC5\xFD\xB9\xE7\xA4Ǥ\xE2\xB2\xE8\xC1\xFC\xB0ʳ\xB0\xA4Υե\xA1\xA5\xA4\xA5\xEB\xA4\xA8\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF\xA1ʴʰ\xD7ź\xC9եե\xA1\xA5\xA4\xA5\xEB\xA5ޥ͡\xBC\xA5\xB8\xA5㵡ǽ\xA1\xCB + - \xA5\xAB\xA5ƥ\xB4\xA5\xEA\xA5ӥ塼\xC5\xF9\xA4ǤΥǥե\xA9\xA5\xEB\xA5ȤǤ\xCE\xCA¤ӽ\xE7\xA4\xF2\xBB\xD8\xC4\xEA\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF + - alt°\xC0\xAD\xA4\xC0\xA4\xB1\xA4\xC7title°\xC0\xAD\xA4\xF2\xA4Ĥ\xB1˺\xA4\xEC\xA4Ƥ\xA4\xA4\xBF\xC9\xF4ʬ\xA4\xF2\xBD\xA4\xC0\xB5 + - \xB4\xC9\xCD\xFD\xBCԤξ\xB5ǧ\xB2\xE8\xCC̤˺\xEF\xBD\xFC\xA5ܥ\xBF\xA5\xF3\xA4\xF2\xC4ɲ\xC3 (thx karuna) + - \xA5\xAB\xA5ƥ\xB4\xA5\xEA\xC1\xAA\xC2ץ\xB7\xA5\xE7\xA5\xF3\xA4Υ\xEC\xA5\xF3\xA5\xC0\xA5\xEA\xA5Х\xB0\xA4\xF2\xBD\xA4\xC0\xB5 (thx Tom_G3X) + - \xA5\xA4\xA5\xBF\xA5ꥢ\xB8\xEC\xA4θ\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4\xF2\xC4ɲ\xC3 (thx NickeL) + - \xB4\xCA\xC2\xCE\xC3\xE6\xB9\xF1\xB8\xEC\xA4θ\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5빹\xBF\xB7 (thx phppp) + +2004-7-31 v2.83 + - \xB3Ƽ̿\xBF\xC9ե֥\xED\xA5å\xAF\xA4ǡ\xA2\xB2\xA3\xA4\xCB\xCA¤٤\xEB\xBF\xF4\xA4\xF2\xBB\xD8\xC4\xEA\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF (thx rocket98) + - \xA5ǥե\xA9\xA5\xEB\xA5ȥƥ\xF3\xA5ץ졼\xA5Ȥǡ\xA2\xB2\xE8\xC1\xFC\xC4ɲå\xA2\xA5\xA4\xA5\xB3\xA5\xA2\xB8¤\xAC\xA4ʤ\xAF\xA4Ƥ\xE2ɽ\xBC\xA8\xA4\xB5\xA4\xEC\xA4Ƥ\xA4\xA4\xBF\xA5Х\xB0\xA4ν\xA4\xC0\xB5 (thx rocket98) + - \xA5\xA4\xA5\xA5\xB8\xA5ޥ͡\xBC\xA5\xB8\xA5\xE3\xC5\xFD\xB9\xE7\xA4ˤ\xAA\xA4\xB1\xA4\xEB\xC5\xEA\xB9Ƥǡ\xA2\xB8\xC0\xB8\xEC\xB4ط\xB8\xA4Υ\xA5إå\xC0\xA4\xAC\xC9\xD4\xA4\xB7\xA4Ƥ\xA4\xA4\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 (thx phppp) + - myAlbum-P\xA5ƥ\xAD\xA5\xB9\xA5ȥ\xB5\xA5˥\xBF\xA5\xA4\xA5\xB6\xA4ˤ\xAA\xA4\xB1\xA4롢\xA5\xB3\xA1\xBC\xA5\xC9\xCAѴ\xB9\xBD\xE8\xCD\xFD\xA4\xF2\xB3Ƹ\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4\xCBʬΥ\xA4\xB7\xA4\xBF (thx phppp) + - \xA5\xE9\xA5\xF3\xA5\xC0\xA5\xE0\xA5֥\xED\xA5å\xAF\xA4\xC7\xC4̾\xEF\xB2\xE8\xC1\xFC\xA5ե\xA1\xA5\xA4\xA5\xEB\xB0ʳ\xB0\xA4\xCF\xC1\xAA\xC2Ȥ\xB7\xA4Ƥ\xA4\xA4\xBF\xA4Τ\xB9\xA4٤\xC6\xC1\xAA\xC2\xF2\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4˻\xC5\xCD\xCD\xCAѹ\xB9 (thx okatti) + - myblocksadmin \xA4\xF2 0.07 \xA4˹\xB9\xBF\xB7 + - \xB4\xCA\xC2\xCE\xC3\xE6\xB9\xF1\xB8\xEC\xA4θ\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5빹\xBF\xB7 (thx phppp) + +2004-7-8 v2.82 + - \xA5\xAB\xA5ƥ\xB4\xA5\xB0\xEC\xCD\xF7ɽ\xBC\xA8\xA4ǤΥХ\xB0\xA4\xF2\xBD\xA4\xC0\xB5 (thx cradeg) + +2004-7-5 v2.81 + - \xA5\xAB\xA5ƥ\xB4\xA5\xB9\xBD¤\xA4Υ롼\xA5ץ\xC1\xA5\xA7\xA5å\xAF\xA4\xAC\xA4\xAA\xA4\xAB\xA4\xB7\xA4\xAB\xA4ä\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 (thx boufa) + - ͩ\xCE\xA5ƥ\xB4\xA5\xC2к\xF6\xA4\xCE\xC4ɲ\xC3 (thx cradeg & boufa) + - xoops_substr() \xA4\xF2\xBBȤäƤ\xB7\xA4ޤä\xBF\xC9\xF4ʬ\xA4\xF2\xBBȤ\xEF\xA4ʤ\xA4\xA4褦\xA4˽\xA4\xC0\xB5 (thx namhil & boufa) + - \xB0\xEC\xC9\xF4\xA4\xCEmbstring\xB4Ķ\xAD\xA4Ǥ\xCEʸ\xBB\x{2CBD931}\xC2к\xF6 (thx Marijuana) + - redirect_header\xA4ΰ\xFA\xBF\xF4\xA4κǸ夬'/'\xA4Ǥʤ\xAB\xA4ä\xBF\xA4\xE2\xA4Τ\xF2Fix (thx Marijuana) + - \xA5\xA4\xA5ȡ\xBC\xA5\xEB\xBB\xFE\xA4˴\xC9\xCD\xFD\xBCԤ˸\xA2\xB8¤\xF2\xC9\xD5Ϳ\xA4\xB9\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF (thx Marijuana) + - \xA5\xB9\xA5\xA6\xA5\xA7\xA1\xBC\xA5ǥ\xF3\xB8\xEC\xB8\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5빹\xBF\xB7 (thx Leif Madsen) + +2004-6-25 v2.80 + - \xB0\xEC\xCD\xF7\xB2\xE8\xCC̤Υǥե\xA9\xA5\xEB\xA5ȥǥ\xB6\xA5\xA4\xA5\xF3\xA4\xF2crystal icons\xA4\xF2\xCD\xF8\xCDѤ\xB7\xA4ƾ\xAF\xA4\xB7\xB2\xFE\xC1\xB1\xA4\xB7\xA4\xBF (thx to all of icon authors) + - \xA5ƥ\xAD\xA5\xB9\xA5ȥ\xB5\xA5˥\xBF\xA5\xA4\xA5\xB6\xA4γ\xC8ĥ\xA5\xAF\xA5饹\xA4\xF2\xCD\xF8\xCDѤ\xB9\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF + - [siteimg] \xA5\xBF\xA5\xB0\xA4β\xF2\xBC\xE1\xC4ɲ\xC3 + - [summary][/summary]\xA5֥\xED\xA5å\xAF\xA4\xCE\xC4ɲ\xC3 \xB2\xE8\xC1\xFC\xC0\xE2\xCC\xC0\xA4ˤ\xB3\xA4Υ֥\xED\xA5å\xAF\xA4\xAC\xA4\xA2\xA4ä\xBF\xBE\xEC\xB9硢\xA4\xBD\xA4\xCE\xC6\xE2¦\xA4\xC0\xA4\xB1\xA4\xAC\xB0\xEC\xCD\xF7\xB2\xE8\xCC̤\xCBɽ\xBC\xA8\xA4\xB5\xA4\xEC\xA4ޤ\xB9 + - Windows\xB4Ķ\xAD\xA4Ǥ\xCEư\xBA\xEE\xB2\xFE\xC1\xB1 (\xA4⤷\xA1\xA2ImageMagick\xA4\xF2Windows\xA4ǻȤ\xA4\xA4\xBF\xA4\xA4\xBE\xEC\xB9硢ImageMagick\xA4Υѥ\xB9\xA4\xF5\xC7\xF2\xA4ˤ\xB7\xA4ƤߤƲ\xBC\xA4\xB5\xA4\xA4\xA1\xCB xaio\xA4\xF2\xA5\xEA\xA5\xA5\xB9\xA4\xB7\xA4Ƥ\xAF\xA4줿matchan\xA4\xB5\xA4\xF3\xA4˴\xB6\xBCդ\xB7\xA4ޤ\xB9 + - \xA5\xA4\xA5\xA5\xB8\xA5ޥ͡\xBC\xA5\xB8\xA5\xE3\xC5\xFD\xB9絡ǽ\xA4ǡ\xA2[siteimg]\xA4\xE4[siteurl]\xA4\xF2\xBD\xD0\xCEϤ\xB9\xA4륪\xA5ץ\xB7\xA5\xE7\xA5\xF3\xA4\xCE\xC4ɲ\xC3 + - myblocksadmin \xA4\xAA\xA4\xE8\xA4\xD3 mymenu \xA4\xF2\xBAǿ\xB7\xC8Ǥ˹\xB9\xBF\xB7 + - \xA4ۤȤ\xF3\xA4ɤ\xB9\xA4٤Ƥδؿ\xF4̾\xA4ˡ\xA2"myalbum_" \xA4Ȥ\xA4\xA4\xA6\xC1\xB0\xC3ֻ\xEC\xA4\xF2\xA4Ĥ\xB1\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF\xA1\xA3(convertorderbyin() \xA4ʤɤ\xAC¿\xBD\xC5\xC4\xEA\xB5\xC1\xB0\xE3ȿ\xA4ǰ\xFA\xA4ä\xAB\xA4\xAB\xA4ä\xBF\xA4ꤷ\xA4\xBF\xA4\xBF\xA4\xE1) + - SQL Injection \xC0ȼ\xE5\xC0\xAD\xA4餷\xA4\xAD\xA4\xE2\xA4Τ\xAC\xBB\xB6\xB8\xAB\xA4\xB5\xA4줿\xA4Τǽ\xA4\xC0\xB5 + - \xA4\xBD\xA4\xCE¾\xA1\xA2\xBF\xF4\xA4\xA8\xC0ڤ\xEC\xA4ʤ\xA4\xA5Х\xB0\xA4ν\xA4\xC0\xB5 + +2004-5-25 v2.75b + - 2.74\xA4\xA2\xA4\xBF\xA4꤫\xA4\xE9myAlbum-PƱ\xBBΤǤΥ\xA4\xA5\xF3\xA5ݡ\xBC\xA5Ȥ\xAC\xBD\xD0\xCD\xE8\xA4ʤ\xAF\xA4ʤäƤ\xA4\xA4\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 (thx okatti) + +2004-5-22 v2.75a + - 2.73\xA4\xA2\xA4\xBF\xA4꤫\xA4\xE9\xC5\xEA\xB9ƿ\x{124B25}\xAF\xA5ꥢ\xA4\xB5\xA4\xEC\xA4Ƥ\xB7\xA4ޤ\xA6\xA4Ȥ\xA4\xA4\xA6\xC3\xD7̿Ū\xA4ʥХ\xB0\xA4\xF2\xBD\xA4\xC0\xB5 (thx sfdb) + +2004-5-21 v2.75 + - \xA5桼\xA5\xB6ID\xA4ǹʤ\xEA\xB9\xFE\xA4\xF3\xA4\xC0\xBB\xFE\xA4˥\xBD\xA1\xBC\xA5Ȥ\xAC\xA4\xAA\xA4\xAB\xA4\xB7\xA4\xAB\xA4ä\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 (thx bordacs) + - \xA5\xA2\xA5\xA4\xA5\xB3\xA5\xF3\xA4\xF2\xA4Ȥꤢ\xA4\xA8\xA4\xBA2\xC7ܤˤ\xB7\xA4\xBF + - $PHP_SELF \xA4λ\xC8\xCDѤ\xF2\xC1\xB4\xCC\xCCŪ\xA4ˤ\xE4\xA4 + +2004-5-19 v2.74 + - \xB0\xEC\xCB\xE7ɽ\xBC\xA8\xB2\xE8\xCC̤ǤΡ\xA2\xB2\xE8\xC1\xFCɽ\xBC\xA8\xA5\xB5\xA5\xA4\xA5\xBA\xC0\xA9\xB8¤\xF2\xC4ɲ\xC3 (thx ellecat) + - \xB0\xEC\xCB\xE7ɽ\xBC\xA8\xB2\xE8\xCC̤Υ\xAB\xA5ƥ\xB4\xA5\xEA\xA5ӥ塼\xA4ؤΥ\xEA\xA5\xF2\xBD\xA4\xC0\xB5 (thx sfdb, efla) + - strtotime() \xA4\xAC\xA1\xA2Y/m/d \xA4ϼ\xF5\xA4\xB1\xC9դ\xB1\xA4Ƥ⡢d/m/Y \xA4ϼ\xF5\xA4\xB1\xC9դ\xB1\xA4ʤ\xA4\xA4\xB3\xA4Ȥؤ\xCE\xC2б\xFE + - \xA4\xE8\xA4\xEAɸ\xBD\xE0\xA4äݤ\xA4\xA5⥸\xA5塼\xA5륢\xA5\xA4\xA5\xB3\xA5\xF3\xA4\xD8\xC9\xC1\xA4\xAD\xB4\xB9\xA4\xA8 (thx Herko & Y.Kishino) + - \xA4\xE8\xA4\xEAɸ\xBD\xE0\xA4äݤ\xA4\xA5Хʡ\xBC\xB2\xE8\xC1\xFC\xA4\xD8\xC9\xC1\xA4\xAD\xB4\xB9\xA4\xA8 (thx LARABIE FONTS) + +2004-5-17 v2.73 + - \xB2\xE8\xC1\xFC\xB4\xC9\xCD\xFD\xB2\xE8\xCC̤ǡ\xA2\xB2\xE8\xC1\xFC\xC9\xD5\xC2Ӿ\xF0\xCA\xF3\xA4\xF2\xA4ޤȤ\xE1\xA4ƹ\xB9\xBF\xB7\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF (thx efla) + - \xA5\xAB\xA5ƥ\xB4\xA5\xA4\xCEľ\xC0\xDC\xC1\xAA\xC2\xF2\xA5ܥå\xAF\xA5\xB9\xA4\xF2\xCDѰդ\xB7\xA4\xBF (thx efla) + - \xA5\xAB\xA5ƥ\xB4\xA5\xC1\xAA\xC2ץ\xEC\xA5ӥ塼\xA4\xB9\xA4\xEB\xA4Ⱦä\xA8\xA4Ƥ\xA4\xA4\xBF\xA5Х\xB0\xBD\xA4\xC0\xB5 (thx Elleomea) + - \xA5ơ\xBC\xA5֥\xEB\xA5ӥ塼\xA4Ǥβ\xE8\xC1\x{25D65925}\xBA\xBB\xD8\xC4\xEA\xA4\xE2\xA4\xEC\xA4\xF2\xBD\xA4\xC0\xB5 (thx Snoopy) + +2004-5-13 v2.72a PHP Accelerator\xA4Ȥθߴ\xB9\xC0\xAD\xCC\xE4\xC2\xEA\xB2\xFE\xC1\xB1\xA5С\xBC\xA5\xB8\xA5\xE7\xA5\xF3 + - \xA5ƥ\xF3\xA5ץ졼\xA5Ȥ\xCE\xC6ɹ\xFE\xBD\xE7\xA4\xF2\xA1\xA22.6\xA4\xC8Ʊ\xA4\xB8\xA4\xCB\xCCᤷ\xA4\xBF + - \xBF\xB7\xB5\xAC\xC5\xD0Ͽ\xBB\xFE\xA4ˡ\xA2\xA4\xAB\xA4ʤ餺\xA5\xAB\xA5ƥ\xB4\xA5\xC1\xAA\xC2\xF2\xA4Ƥ\xE2\xA4餦\xA4褦\xA4ˤ\xB7\xA4\xBF (thx sfdb) + - \xA5ơ\xBC\xA5֥\xEB\xA5ӥ塼\xA4Ǥν\xC4\xCA\xFD\xB8\xFE\xA4Υ\xB9\xA5ڡ\xBC\xA5\xB9\xC4ɲ\xC3 (thx efla) + - mymenu \xA4\xEC\xC8\xCC\xC0\xDF\xC4\xEA\xA4Ǥ\xE2\xBBȤ\xA8\xA4\xEB\xA4褦\xA4˲\xFE\xC1\xB1\xA1\xCA\xC0\xB5\xB3Τˤϡ\xA2preferences\xA4\xF2\xA5⥸\xA5塼\xA5\xEB¦\xA4˰\xFA\xA4\xC3ĥ\xA4äƤ\xAD\xA4\xBF\xA4\xC0\xA4\xB1\xA4Ǥ\xB9\xA4\xAC\xA1\xCB + +2004-5-7 v2.72 + - \xB2\xE8\xC1\xFC\xB0ʳ\xB0\xA4Υե\xA1\xA5\xA4\xA5\xEB\xA4μ谷\xA4\xA4\xA4\xAC\xA5\xA4\xA5ޥ\xA4\xA5\xC1\xA4\xC0\xA4ä\xBF\xA4Τ\xF2\xBD\xA4\xC0\xB5 + - \xA5\xB5\xA5\xE0\xA5ͥ\xA4\xA5\xEB\xA4κƹ\xBD\xC3ۤ\xF2\xB2\xFE\xC1\xB1\xA1ʲ\xE8\xC1\xFC\xB0ʳ\xB0\xA4Υե\xA1\xA5\xA4\xA5\xEB\xA4ˤĤ\xA4\xA4Ƥ\xE2\xBD\xE8\xCD\xFD\xA4\xB9\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF\xC5\xF9\xA1\xCB + - \xA5ץ\xEC\xA5ӥ塼\xA4β\xFE\xC1\xB1 + +2004-5-7 v2.71 + - \xB3\xC8ĥ\xBBҤ\xAC\xC2\xE7ʸ\xBB\xFA\xA4Υե\xA1\xA5\xA4\xA5\xEB\xA4\xE8\xC1\xFC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4Ȥ\xB7\xA4\xC6ǧ\xBC\xB1\xA4\xB7\xA4ʤ\xA4\xA5Х\xB0\xA4\xF2\xBD\xA4\xC0\xB5 + +2004-5-5 v2.70 \xA5\xEA\xA5\xA5\xB9\xC8\xC7 + - \xA5ȥåץڡ\xBC\xA5\xB8\xA4κǿ\xB7\xA5ꥹ\xA5Ȥ\xE2\xA5ڡ\xBC\xA5\xB8ʬ\xB3\xE4\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF (thx megu) + - \xB3ƥ֥\xED\xA5å\xAF\xA4ˡ\xA2\xA5\xAB\xA5ƥ\xB4\xA5\xA4ˤ\xE8\xA4\xEB\xB8\xC2\xC4\xEA\xA4\xB1\xA4\xE9\xA4\xEC\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF + - \xA5\xE9\xA5\xF3\xA5\xC0\xA5\xE0\xB2\xE8\xC1\xFC\xA5֥\xED\xA5å\xAF\xA4ǡ\xA2\xB2\xE8\xC1\xFC\xC0\xDA\xC2إ\xBF\xA5\xA4\xA5ߥ\xF2\xBB\xD8\xC4\xEA\xBD\xD0\xCD\xE8\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF + - \xA5\xAB\xA5ƥ\xB4\xA5̾\xA4\xE2\xA5ƥ\xF3\xA5ץ졼\xA5Ȥ\xCB\xC5Ϥ\xB9\xA4褦\xA4ˤ\xB7\xA4\xBF ($photo.cat_title) + - \xA5\xA4\xA5\xA5\xB8\xA5ޥ͡\xBC\xA5\xB8\xA5㤫\xA4\xE9\xA4Υ\xA4\xA5\xF3\xA5ݡ\xBC\xA5ȼ\xC2\xC1\xF5 + - \xA5\xA4\xA5\xA5\xB8\xA5ޥ͡\xBC\xA5\xB8\xA5\xE3\xA4ؤΥ\xA8\xA5\xAF\xA5\xB9\xA5ݡ\xBC\xA5ȼ\xC2\xC1\xF5 + - \xA5ȥåץ\xE1\xA5˥塼(mymenu)\xC4ɲäʤɡ\xA2\xB4\xC9\xCD\xFD\xB2\xE8\xCC̤\xCE\xC2\xE7\xC9\xFD\xA4\xCA\xC1\xE0\xBA\xEE\xC0\xAD\xB2\xFE\xC1\xB1 + - \xA5\xAB\xA5ƥ\xB4\xA5\xB4\xC9\xCD\xFD\xA4\xF2\xA4ޤ\xEB\xA4ޤ\xEB\xBD\xF1\xA4\xADľ\xA4\xB7\xA4ơ\xA2index.php\xA4Ȥ\xB7\xA4\xBF + - gif,jpeg,png\xB0ʳ\xB0\xA4Υե\xA1\xA5\xA4\xA5\xEB\xA4⥢\xA5åץ\x{D87C}\xA5ɤǤ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF + - \xA4\xB3\xA4\xEC\xA4\xE9\xA4Υե\xA1\xA5\xA4\xA5\xEB\xA4ϥ\xA2\xA5\xA4\xA5\xB3\xA5\xF3\xA4\xC7ɽ\xBC\xA8\xA4\xB7\xA4ޤ\xB9\xA4\xAC\xA1\xA2\xA4\xBD\xA4Υ\xA2\xA5\xA4\xA5\xB3\xA5\xF3\xA4\xCFFilemanager 3.0\xA4\xAB\xA4\xE9ĺ\xC2פ\xB7\xA4ޤ\xB7\xA4\xBF + - \xBA\xEE\xBCԤ\xCEJan Inge Pettersen\xA4\xB5\xA4\xF3\xA1\xA2(Xend) http://www.xendtech.com/ \xA4˴\xB6\xBCդ\xB7\xA4ޤ\xB9 + +2004-4-5 v2.70 beta 03 + - XOOPS\xA4Υ\xA2\xA5åץ\x{D87C}\xA5\xC0\xA5\xAF\xA5饹\xA4ϻȤ\xEF\xA4ʤ\xA4\xA4褦\xA4ˤ\xB7\xA4\xBF + (\xA5\xBB\xA5\xAD\xA5\xE5\xA5\xEA\xA5ƥ\xA3\xA4\xAA\xA4\xE8\xA4ӡ\xA2myDownloads RC1 \xA4ʤɤȤθߴ\xB9\xC0\xAD\xA4Τ\xBF\xA4\xE1\xA1\xCB + - ʣ\xC0\xBD\xA4\xB7\xA4\xBFmyAlbum-P\xA5⥸\xA5塼\xA5\xEBƱ\xBBΤǤΥǡ\xBC\xA5\xBF\xA4\xE4\xA4\xEA\xA4Ȥ\xEA\xA4\xF2\xC4ɲä\xB7\xA4\xBF + - \xB2\xE8\xCC̲\xBC\xA4ˤ\xE2\xA5ʥӥ\xB2\xA1\xBC\xA5\xB7\xA5\xE7\xA5\xF3\xA4\xF2\xC4ɲ\xC3 (thx mariuss) + - \xA5\xAA\xA5\xE9\xA5\xF3\xA5\xC0\xB8\xEC\xC4ɲ\xC3 (thx Jan Deeben) + +2004-3-9 v2.70 beta 02 + - \xBF\xB7\xB5\xAC\xC5\xD0Ͽ\xBB\xFE\xA4ˡ\xA2\xB2\xE8\xC1\xFC\xA4\xE2\xA5ץ\xEC\xA5ӥ塼\xB2\xC4ǽ\xA4Ȥʤä\xBF + - \xA5\xB9\xA5\xA6\xA5\xA7\xA1\xBC\xA5ǥ\xF3\xB8칹\xBF\xB7 (thx Leif Madsen) + +2004-3-4 v2.70 beta from 2.64 + - ʣ\xC0\xBD\xB2\xC4ǽ\xB2\xBD + - .htaccess \xA4\xF2 .htaccess.dist \xA4˥\xEA\xA5͡\xBC\xA5\xE0 + - \xA5\xB9\xA5ڥ\xA4\xA5\xF3\xB8칹\xBF\xB7 (thx ColdBeer) + +2004-2-29 v2.64 (\xA5ꥯ\xA5\xA8\xA5\xB9\xA5Ȥ\xB5\xA4줿\xB5\xA1ǽ\xA4\xCE\xC4ɲ\xC3) + - Ϣ³\xC5\xD0Ͽ\xBB\xFE\xA4\xCB\xCA\xD8\xCD\xF8\xA4ʤ褦\xA1\xA2\xC5\xD0Ͽ\xA4\xB7\xA4\xBF\xA5\xAB\xA5ƥ\xB4\xA5\xA4\xCEviewcat\xA4˥\xEA\xA5\xC0\xA5\xA4\xA5쥯\xA5Ȥ\xB9\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF(thx karuna) + - \xA5\xBF\xA5\xA4\xA5ȥ뤬\xBB\xD8\xC4ꤵ\xA4\xEC\xA4ʤ\xAB\xA4ä\xBF\xA4Ȥ\xAD\xA4ϡ\xA2\xA5ե\xA1\xA5\xA4\xA5\xEB̾\xA4\xA4\xA5ȥ\xEB\xA4Ȥ\xB9\xA4\xEB\xA4褦\xCAѹ\xB9 (thx mariuss) + - CSRF\xC2к\xF6\xA4ʤɡ\xA2\xA4\xE8\xA4\xEA\xB0\xC2\xC1\xB4\xA4ʥ\xB3\xA1\xBC\xA5ɤ˽\xB9\xA4\xA8\xA4\xBF (thx JM2) + - \xA5ץ\xEC\xA5ӥ塼\xB5\xA1ǽ\xA4\xCE\xC4ɲ\xC3 + - myblocksadmin \xA4\xF2 0.04 \xA4˹\xB9\xBF\xB7 + - \xB2\xE8\xC1\xFC\xA4Υ\xA2\xA5åץ\x{D87C}\xA5ɤʤ\xB7\xA4Ǥ⡢\xA4Ȥꤢ\xA4\xA8\xA4\xBA\xC5\xD0Ͽ\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4˻\xC5\xCD\xCD\xCAѹ\xB9 + - \xA5\xA2\xA5åץ\x{D87C}\xA5ɲ\xE8\xC1\xFC\xA4\xAC\xBD\xBDʬ\xA4˾\xAE\xA4\xB5\xA4\xA4\xBB\xFE\xA4ϡ\xA2\xA4\xBD\xA4β\xE8\xC1\xFC\xA4Τޤޥ\xB5\xA5\xE0\xA5ͥ\xA4\xA5\xEB\xA4Ȥ\xB9\xA4\xEB + - \xA5ݥ\xEB\xA5ȥ\xAC\xA5\xEB\xB8\xEC\xC4ɲ\xC3 (thx Oliver Zancul Prado) Added: XoopsModules/myalbum/branches/wishcraft/3.05/docs/COPYING =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.05/docs/COPYING (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.05/docs/COPYING 2012-03-26 05:10:50 UTC (rev 9197) @@ -0,0 +1,280 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, 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 t... [truncated message content] |
From: <be...@us...> - 2012-03-26 04:42:00
|
Revision: 9196 http://xoops.svn.sourceforge.net/xoops/?rev=9196&view=rev Author: beckmi Date: 2012-03-26 04:41:53 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Updating version to RC Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/version.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/include/version.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/version.php 2012-03-26 04:15:26 UTC (rev 9195) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/include/version.php 2012-03-26 04:41:53 UTC (rev 9196) @@ -30,6 +30,6 @@ /** * Define XOOPS version */ -define('XOOPS_VERSION', 'XOOPS 2.5.5-Beta'); +define('XOOPS_VERSION', 'XOOPS 2.5.5-RC'); ?> \ 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-26 04:15:32
|
Revision: 9195 http://xoops.svn.sourceforge.net/xoops/?rev=9195&view=rev Author: beckmi Date: 2012-03-26 04:15:26 +0000 (Mon, 26 Mar 2012) Log Message: ----------- 3511205 Bug in fresh install in page_configsave.php (XavierS) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/install/page_configsave.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-26 04:08:43 UTC (rev 9194) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-26 04:15:26 UTC (rev 9195) @@ -11,6 +11,7 @@ - ID: 3494893 PM Messages deleted from Saved box (Danielw42/mage) - ID: 3501897 Protector errors (cesag/XavierS) - ID: 3511204 TinyEditor only loading in the 'Scoop' part of the News module (peekay/XavierS) + - ID: 3511205 Bug in fresh install in page_configsave.php (XavierS) Improved: - replacing "msnbot" with "bingbot" in Protector (mamba) Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/install/page_configsave.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/install/page_configsave.php 2012-03-26 04:08:43 UTC (rev 9194) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/install/page_configsave.php 2012-03-26 04:15:26 UTC (rev 9195) @@ -83,11 +83,20 @@ } } -if (!@copy($rewrite['VAR_PATH'] . '/data/secure.dist.php', $rewrite['VAR_PATH'] . '/data/secure.php')) { - $error = ERR_COPY_MAINFILE.$rewrite['VAR_PATH'] . '/data/secure.dist.php'; -} else { - clearstatcache(); +//if (!@copy($rewrite['VAR_PATH'] . '/data/secure.dist.php', $rewrite['VAR_PATH'] . '/data/secure.php')) { +// $error = ERR_COPY_MAINFILE.$rewrite['VAR_PATH'] . '/data/secure.dist.php'; +//} else { +// clearstatcache(); +//from XavierS: +if (!@copy($vars['VAR_PATH'] . '/data/secure.dist.php', $vars['VAR_PATH'] . '/data/secure.php')) { + $error = ERR_COPY_MAINFILE.$vars['VAR_PATH'] . '/data/secure.dist.php'; + } else { + clearstatcache(); + + + $rewrite = array_merge($rewrite, $vars); + $rewrite = array_merge($rewrite, $vars); if (!$file = fopen($rewrite['VAR_PATH'] . '/data/secure.php', "r")) { $error = ERR_READ_MAINFILE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-26 04:08:50
|
Revision: 9194 http://xoops.svn.sourceforge.net/xoops/?rev=9194&view=rev Author: beckmi Date: 2012-03-26 04:08:43 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Bug 3511204: TinyEditor only loading in the 'Scoop' part of the News module Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce.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-26 02:32:07 UTC (rev 9193) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-26 04:08:43 UTC (rev 9194) @@ -10,6 +10,7 @@ - ID: 3494896 Image Manager category creation restrictions (voltan/mage) - ID: 3494893 PM Messages deleted from Saved box (Danielw42/mage) - ID: 3501897 Protector errors (cesag/XavierS) + - ID: 3511204 TinyEditor only loading in the 'Scoop' part of the News module (peekay/XavierS) Improved: - replacing "msnbot" with "bingbot" in Protector (mamba) Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce.php 2012-03-26 02:32:07 UTC (rev 9193) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce.php 2012-03-26 04:08:43 UTC (rev 9194) @@ -28,13 +28,18 @@ var $rootpath; var $config = array(); var $setting = array(); + static $LastOfElementsTinymce=""; + static $ListOfElementsTinymce=array(); + // PHP 5 Constructor function __construct($config) { $this->setConfig($config); $this->rootpath = $this->config["rootpath"] . "/tinymce/jscripts/tiny_mce"; $this->xoopsPlugins = $this->get_xoopsPlugins(); + self::$LastOfElementsTinymce=$this->config["elements"]; + self::$ListOfElementsTinymce[]= self::$LastOfElementsTinymce; } // PHP 4 Contructor @@ -76,9 +81,8 @@ $this->setting["language"] = $this->config["language"]; $configured[] = "language"; } - $default_css = array(str_replace(XOOPS_ROOT_PATH, XOOPS_URL , str_replace('\\', '/', dirname(__FILE__) . '/style.css'))); - $content_css = array_merge($default_css, $this->loadCss()); - $this->setting["content_css"] = implode( ",", $content_css); + + $this->setting["content_css"] = implode( ",", $this->loadCss() ); $configured[] = "content_css"; if ( !empty($this->config["theme"]) && is_dir(XOOPS_ROOT_PATH . $this->rootpath . "/themes/" . $this->config["theme"]) ) { @@ -259,12 +263,28 @@ static $isTinyMceJsLoaded = false; $this->init(); - + if (self::$LastOfElementsTinymce!=$this->setting["elements"]){ + $ret = "\n<!-- 'tiny_mce.js' SCRIPT NOT YET ".$this->setting["elements"]." -->\n"; //debug + return $ret; + } + else { + $this->setting["elements"]=implode(",",self::$ListOfElementsTinymce); + } if ( !empty($this->setting["callback"]) ) { $callback = $this->setting["callback"]; unset($this->setting["callback"]); } else { $callback = ""; + } + if ( !empty($this->setting["file_browser_callback"]) ) { + $fbc_name=XOOPS_ROOT_PATH . "/class/xoopseditor/tinymce/include/".$this->setting["file_browser_callback"].".js"; + //suis passé la /lesrevespossibles/x244/class/xoopseditor/tinymce/tinymce/jscripts/include/openFinder.js + $file_browser_callback ="MyXoopsUrl ='".XOOPS_URL."';\n"; + $file_browser_callback .= file_get_contents($fbc_name); + $file_browser_callback .="\n//suis passé la ".$fbc_name; + //unset($this->setting["file_browser_callback"]); + } else { + $file_browser_callback = "//suis absent"; } // create returned string - start @@ -330,6 +350,7 @@ $ret .= "tinymceload: true\n"; $ret .= "});\n"; $ret .= $callback . "\n"; + $ret .= $file_browser_callback. "\n"; //$ret .= "function toggleEditor(id) {tinyMCE.execCommand('mceToggleEditor',false, id);}\n"; $ret .= "</script>\n"; $ret .= "<!-- End TinyMce Rendering -->\n";//debug @@ -337,4 +358,4 @@ return $ret ; } } -?> +?> \ 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: <wis...@us...> - 2012-03-26 02:32:14
|
Revision: 9193 http://xoops.svn.sourceforge.net/xoops/?rev=9193&view=rev Author: wishcraft Date: 2012-03-26 02:32:07 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.07 - complete first release final (Admin about.php) Modified Paths: -------------- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php Added Paths: ----------- XoopsModules/songlist/releases/1.07/htdocs/uploads/ XoopsModules/songlist/releases/1.07/htdocs/uploads/songlist/ XoopsModules/songlist/trunk/htdocs/uploads/ XoopsModules/songlist/trunk/htdocs/uploads/songlist/ Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php 2012-03-26 02:02:25 UTC (rev 9192) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php 2012-03-26 02:32:07 UTC (rev 9193) @@ -61,7 +61,7 @@ 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')); + $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['songlistModule']->getVar('dirname')), strtoupper($GLOBALS['songlistModule']->getVar('dirname')). ' '.$GLOBALS['songlistModule']->getVar('name')); break; } } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php 2012-03-26 02:02:25 UTC (rev 9192) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/about.php 2012-03-26 02:32:07 UTC (rev 9193) @@ -61,7 +61,7 @@ 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')); + $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['songlistModule']->getVar('dirname')), strtoupper($GLOBALS['songlistModule']->getVar('dirname')). ' '.$GLOBALS['songlistModule']->getVar('name')); break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-26 02:02:32
|
Revision: 9192 http://xoops.svn.sourceforge.net/xoops/?rev=9192&view=rev Author: wishcraft Date: 2012-03-26 02:02:25 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.07 - complete first release final (Admin Warning/Notices) Modified Paths: -------------- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field_permissions.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_item.html 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/import.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -18,6 +18,9 @@ $module_handler = xoops_gethandler('module'); $modules = $module_handler->getObjects(null, true); + $categories = array(); + $weights = array(); + $GLOBALS['categoryHandler'] = xoops_getmodulehandler('category'); $criteria = new CriteriaCompo(); $criteria->setSort('weight'); @@ -32,7 +35,7 @@ } $GLOBALS['xoopsTpl']->assign('categories', $categories); } - unset($categories); + $valuetypes = array(XOBJ_DTYPE_ARRAY => _AM_SONGLIST_FIELDS_ARRAY, XOBJ_DTYPE_EMAIL => _AM_SONGLIST_FIELDS_EMAIL, XOBJ_DTYPE_INT => _AM_SONGLIST_FIELDS_INT, Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field_permissions.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field_permissions.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field_permissions.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -76,14 +76,15 @@ } else { $extras_handler = xoops_getmodulehandler('extras'); - $fields = $extras_handler->loadFields(); - + $fields = array_merge(array(), $extras_handler->loadFields()); + if ( $op != "search" ) { - foreach (array_keys($fields) as $i ) { - if ( $restriction == "" || $fields[$i]->getVar($restriction) ) { - $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + if (is_array($fields)&&count($fields)>0) + foreach (array_keys($fields) as $i ) { + if ( $restriction == "" || $fields[$i]->getVar($restriction) ) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + } } - } } else { $searchable_types = array('textbox', 'select', @@ -93,11 +94,12 @@ 'datetime', 'timezone', 'language'); - foreach (array_keys($fields) as $i ) { - if ( in_array($fields[$i]->getVar('field_type'), $searchable_types) ) { - $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + if (is_array($fields)&&count($fields)>0) + foreach (array_keys($fields) as $i ) { + if ( in_array($fields[$i]->getVar('field_type'), $searchable_types) ) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + } } - } } } $form->display(); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -8,11 +8,11 @@ $op = isset($_REQUEST['op'])?$_REQUEST['op']:"import"; $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"actiona"; - $limit = strlen($_REQUEST['limit'])?intval($_REQUEST['limit']):30; - $start = strlen($_REQUEST['start'])?intval($_REQUEST['start']):0; - $order = strlen($_REQUEST['order'])?$_REQUEST['order']:'DESC'; - $sort = strlen($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; - $filter = strlen($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + $limit = isset($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = isset($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = isset($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = isset($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = isset($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; switch($op) { default: Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/functions.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/functions.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/functions.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -101,7 +101,7 @@ function songlist_getFilterElement($filter, $field, $sort='created', $op = '', $fct = '') { $components = songlist_getFilterURLComponents($filter, $field, $sort); $ele = false; - include_once('formobjects.songlist.php'); + include_once('songlist.object.php'); switch ($field) { case 'cid': if ($op!='category') { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/songlist.form.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/songlist.form.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/songlist.form.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -334,7 +334,7 @@ return $form; } - function songlist_import_get_form() { + function songlist_import_get_form($as_array = false) { xoops_loadLanguage('forms', 'songlist'); @@ -359,7 +359,7 @@ } - function songlist_importb_get_form($file) { + function songlist_importb_get_form($file, $as_array = false) { xoops_loadLanguage('forms', 'songlist'); @@ -464,7 +464,7 @@ $ele['artists'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_ARTISTS:''), $object->getVar('artists')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -537,7 +537,7 @@ $ele['artists'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_ARTISTS:''), $object->getVar('artists')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -604,7 +604,7 @@ $ele['albums'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_ALBUMS:''), $object->getVar('albums')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -686,7 +686,7 @@ $ele['artists'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_ARTISTS:''), $object->getVar('artists')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -938,7 +938,8 @@ $fields = $extras_handler->loadFields(); $required = array(); - + $elements = array(); + $weights = array(); if ($object->getVar('sid')>0) $extra = $extras_handler->get($object->getVar('sid')); else @@ -984,7 +985,7 @@ } $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/admin.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/admin.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/admin.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -41,8 +41,7 @@ define('_AM_SONGLIST_TH_UTFID', 'Map ID'); define('_AM_SONGLIST_TH_FROM', 'From'); define('_AM_SONGLIST_TH_TO', 'To'); - define('_AM_SONGLIST_TH_ABID', 'Album ID'); - + // Category define('_AM_SONGLIST_CATEGORY_H1', 'Categories'); define('_AM_SONGLIST_CATEGORY_P', 'These are the categories and child categories you have on the system.'); @@ -207,7 +206,6 @@ define('_AM_SONGLIST_FIELDS_TEXTBOX', 'Text-box'); define('_AM_SONGLIST_FIELDS_TIMEZONE', 'Timezone Select'); define('_AM_SONGLIST_FIELDS_YESNO', 'Yes/No Radio'); - define('_AM_SONGLIST_FIELDS_DATE', 'Date'); define('_AM_SONGLIST_FIELDS_DATETIME', 'Date Time'); define('_AM_SONGLIST_FIELDS_LONGDATE', 'Long Date'); define('_AM_SONGLIST_FIELDS_THEME', 'Theme Select'); @@ -232,6 +230,7 @@ define('_AM_SONGLIST_IMPORT_ACTIONA_P', 'Select an XML File you have exported from Excel or other platform to import.'); define('_AM_SONGLIST_IMPORT_ACTIONB_H1', 'Specify Element Names'); define('_AM_SONGLIST_IMPORT_ACTIONB_P', 'You have to specify from the example the elements that exists in this XML file to import, may vary from file to file and also if you specify no element name the field type is ignored..'); + define('_AM_SONGLIST_XMLFILE_COMPLETE', 'XML File Import and Comparison Complete!'); // About Box define('_AM_SONGLIST_ABOUT_MAKEDONATE', 'Make Song List Better Donate Today!'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -160,7 +160,6 @@ define('_FRM_SONGLIST_FIELDS_TEXTBOX', 'Text-box'); define('_FRM_SONGLIST_FIELDS_TIMEZONE', 'Timezone Select'); define('_FRM_SONGLIST_FIELDS_YESNO', 'Yes/No Radio'); - define('_FRM_SONGLIST_FIELDS_DATE', 'Date'); define('_FRM_SONGLIST_FIELDS_DATETIME', 'Date Time'); define('_FRM_SONGLIST_FIELDS_LONGDATE', 'Long Date'); define('_FRM_SONGLIST_FIELDS_THEME', 'Theme Select'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -11,9 +11,9 @@ <{$smarty.const._MN_SONGLIST_SONGS}> </div> <div class="sl_subalbum"> - <{assign item=songs value=0}> + <{assign var=songs value=0}> <{foreach from=$album.songs item=song}> - <{assign item=songs value=$songs+1}> + <{assign var=songs value=$songs+1}> <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($album.songs)}>, <{/if}> <{/foreach}> </div> @@ -23,9 +23,9 @@ <{$smarty.const._MN_SONGLIST_ARTISTS}> </div> <div class="sl_subartist"> - <{assign item=artists value=0}> + <{assign var=artists value=0}> <{foreach from=$album.artists item=artist}> - <{assign item=artists value=$artists+1}> + <{assign var=artists value=$artists+1}> <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($album.artists)}>, <{/if}> <{/foreach}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -6,9 +6,9 @@ <{$smarty.const._MN_SONGLIST_SONGS}> </div> <div class="sl_subartist"> - <{assign item=songs value=0}> + <{assign var=songs value=0}> <{foreach from=$artist.songs item=song}> - <{assign item=songs value=$songs+1}> + <{assign var=songs value=$songs+1}> <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($artist.songs)}>, <{/if}> <{/foreach}> </div> @@ -18,9 +18,9 @@ <{$smarty.const._MN_SONGLIST_ALBUMS}> </div> <div class="sl_subartist"> - <{assign item=albums value=0}> + <{assign var=albums value=0}> <{foreach from=$artist.albums item=album}> - <{assign item=albums value=$albums+1}> + <{assign var=albums value=$albums+1}> <a href="<{$album.url}>"><{$album.name}></a><{if not $albums < count($artist.albums)}>, <{/if}> <{/foreach}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_category_item.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_category_item.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_category_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -3,9 +3,9 @@ </div> <{if $category.subcategories}> <div class="sl_subcat"> - <{assign item=cats value=0}> + <{assign var=cats value=0}> <{foreach from=$category.subcategories item=subcategory}> - <{assign item=cats value=$cats+1}> + <{assign var=cats value=$cats+1}> <a href="<{$subcategory.url}>"><{$subcategory.name}></a><{if not $cats < count($category.subcategories)}>, <{/if}> <{/foreach}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_item.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -20,9 +20,9 @@ <{/if}> </div> <div class="sl_mainsong"> - <{assign item=artists value=0}> + <{assign var=artists value=0}> <{foreach from=$song.album.artists item=artist}> - <{assign item=artists value=$artists+1}> + <{assign var=artists value=$artists+1}> <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($song.album.artists)}>, <{/if}> <{/foreach}> </div> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -18,6 +18,9 @@ $module_handler = xoops_gethandler('module'); $modules = $module_handler->getObjects(null, true); + $categories = array(); + $weights = array(); + $GLOBALS['categoryHandler'] = xoops_getmodulehandler('category'); $criteria = new CriteriaCompo(); $criteria->setSort('weight'); @@ -32,7 +35,7 @@ } $GLOBALS['xoopsTpl']->assign('categories', $categories); } - unset($categories); + $valuetypes = array(XOBJ_DTYPE_ARRAY => _AM_SONGLIST_FIELDS_ARRAY, XOBJ_DTYPE_EMAIL => _AM_SONGLIST_FIELDS_EMAIL, XOBJ_DTYPE_INT => _AM_SONGLIST_FIELDS_INT, Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field_permissions.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field_permissions.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field_permissions.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -76,14 +76,15 @@ } else { $extras_handler = xoops_getmodulehandler('extras'); - $fields = $extras_handler->loadFields(); - + $fields = array_merge(array(), $extras_handler->loadFields()); + if ( $op != "search" ) { - foreach (array_keys($fields) as $i ) { - if ( $restriction == "" || $fields[$i]->getVar($restriction) ) { - $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + if (is_array($fields)&&count($fields)>0) + foreach (array_keys($fields) as $i ) { + if ( $restriction == "" || $fields[$i]->getVar($restriction) ) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + } } - } } else { $searchable_types = array('textbox', 'select', @@ -93,11 +94,12 @@ 'datetime', 'timezone', 'language'); - foreach (array_keys($fields) as $i ) { - if ( in_array($fields[$i]->getVar('field_type'), $searchable_types) ) { - $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + if (is_array($fields)&&count($fields)>0) + foreach (array_keys($fields) as $i ) { + if ( in_array($fields[$i]->getVar('field_type'), $searchable_types) ) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25) ); + } } - } } } $form->display(); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -8,11 +8,11 @@ $op = isset($_REQUEST['op'])?$_REQUEST['op']:"import"; $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"actiona"; - $limit = strlen($_REQUEST['limit'])?intval($_REQUEST['limit']):30; - $start = strlen($_REQUEST['start'])?intval($_REQUEST['start']):0; - $order = strlen($_REQUEST['order'])?$_REQUEST['order']:'DESC'; - $sort = strlen($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; - $filter = strlen($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + $limit = isset($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = isset($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = isset($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = isset($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = isset($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; switch($op) { default: Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/functions.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/functions.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/functions.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -101,7 +101,7 @@ function songlist_getFilterElement($filter, $field, $sort='created', $op = '', $fct = '') { $components = songlist_getFilterURLComponents($filter, $field, $sort); $ele = false; - include_once('formobjects.songlist.php'); + include_once('songlist.object.php'); switch ($field) { case 'cid': if ($op!='category') { Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -334,7 +334,7 @@ return $form; } - function songlist_import_get_form() { + function songlist_import_get_form($as_array = false) { xoops_loadLanguage('forms', 'songlist'); @@ -359,7 +359,7 @@ } - function songlist_importb_get_form($file) { + function songlist_importb_get_form($file, $as_array = false) { xoops_loadLanguage('forms', 'songlist'); @@ -464,7 +464,7 @@ $ele['artists'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_ARTISTS:''), $object->getVar('artists')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_GENRE_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -537,7 +537,7 @@ $ele['artists'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_ARTISTS:''), $object->getVar('artists')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ALBUMS_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -604,7 +604,7 @@ $ele['albums'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_ALBUMS:''), $object->getVar('albums')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_ARTISTS_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -686,7 +686,7 @@ $ele['artists'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_ARTISTS:''), $object->getVar('artists')); $ele['songs'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_SONGS:''), $object->getVar('songs')); $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_CATEGORY_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } @@ -938,7 +938,8 @@ $fields = $extras_handler->loadFields(); $required = array(); - + $elements = array(); + $weights = array(); if ($object->getVar('sid')>0) $extra = $extras_handler->get($object->getVar('sid')); else @@ -984,7 +985,7 @@ } $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_HITS:''), $object->getVar('hits')); - $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_RANK:''), number_format($object->getVar('rank')/$object->getVar('votes'),2). ' of 10'); + $ele['rank'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_RANK:''), number_format(($object->getVar('rank')>0&&$object->getVar('votes')>0?$object->getVar('rank')/$object->getVar('votes'):0),2). ' of 10'); if ($object->getVar('created')>0) { $ele['created'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_CREATED:''), date(_DATESTRING, $object->getVar('created'))); } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/admin.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/admin.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/admin.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -41,8 +41,7 @@ define('_AM_SONGLIST_TH_UTFID', 'Map ID'); define('_AM_SONGLIST_TH_FROM', 'From'); define('_AM_SONGLIST_TH_TO', 'To'); - define('_AM_SONGLIST_TH_ABID', 'Album ID'); - + // Category define('_AM_SONGLIST_CATEGORY_H1', 'Categories'); define('_AM_SONGLIST_CATEGORY_P', 'These are the categories and child categories you have on the system.'); @@ -207,7 +206,6 @@ define('_AM_SONGLIST_FIELDS_TEXTBOX', 'Text-box'); define('_AM_SONGLIST_FIELDS_TIMEZONE', 'Timezone Select'); define('_AM_SONGLIST_FIELDS_YESNO', 'Yes/No Radio'); - define('_AM_SONGLIST_FIELDS_DATE', 'Date'); define('_AM_SONGLIST_FIELDS_DATETIME', 'Date Time'); define('_AM_SONGLIST_FIELDS_LONGDATE', 'Long Date'); define('_AM_SONGLIST_FIELDS_THEME', 'Theme Select'); @@ -232,6 +230,7 @@ define('_AM_SONGLIST_IMPORT_ACTIONA_P', 'Select an XML File you have exported from Excel or other platform to import.'); define('_AM_SONGLIST_IMPORT_ACTIONB_H1', 'Specify Element Names'); define('_AM_SONGLIST_IMPORT_ACTIONB_P', 'You have to specify from the example the elements that exists in this XML file to import, may vary from file to file and also if you specify no element name the field type is ignored..'); + define('_AM_SONGLIST_XMLFILE_COMPLETE', 'XML File Import and Comparison Complete!'); // About Box define('_AM_SONGLIST_ABOUT_MAKEDONATE', 'Make Song List Better Donate Today!'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php 2012-03-26 02:02:25 UTC (rev 9192) @@ -160,7 +160,6 @@ define('_FRM_SONGLIST_FIELDS_TEXTBOX', 'Text-box'); define('_FRM_SONGLIST_FIELDS_TIMEZONE', 'Timezone Select'); define('_FRM_SONGLIST_FIELDS_YESNO', 'Yes/No Radio'); - define('_FRM_SONGLIST_FIELDS_DATE', 'Date'); define('_FRM_SONGLIST_FIELDS_DATETIME', 'Date Time'); define('_FRM_SONGLIST_FIELDS_LONGDATE', 'Long Date'); define('_FRM_SONGLIST_FIELDS_THEME', 'Theme Select'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-03-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -1,6 +1,6 @@ <{if $block}> <{foreach from=$block item=item}> -<{assign item=topno value=$topno+1}> +<{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> <div style="font-size:1.12em; float:left;"> #<{$topno}> 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-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -11,9 +11,9 @@ <{$smarty.const._MN_SONGLIST_SONGS}> </div> <div class="sl_subalbum"> - <{assign item=songs value=0}> + <{assign var=songs value=0}> <{foreach from=$album.songs item=song}> - <{assign item=songs value=$songs+1}> + <{assign var=songs value=$songs+1}> <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($album.songs)}>, <{/if}> <{/foreach}> </div> @@ -23,9 +23,9 @@ <{$smarty.const._MN_SONGLIST_ARTISTS}> </div> <div class="sl_subartist"> - <{assign item=artists value=0}> + <{assign var=artists value=0}> <{foreach from=$album.artists item=artist}> - <{assign item=artists value=$artists+1}> + <{assign var=artists value=$artists+1}> <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($album.artists)}>, <{/if}> <{/foreach}> </div> 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-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -6,9 +6,9 @@ <{$smarty.const._MN_SONGLIST_SONGS}> </div> <div class="sl_subartist"> - <{assign item=songs value=0}> + <{assign var=songs value=0}> <{foreach from=$artist.songs item=song}> - <{assign item=songs value=$songs+1}> + <{assign var=songs value=$songs+1}> <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($artist.songs)}>, <{/if}> <{/foreach}> </div> @@ -18,9 +18,9 @@ <{$smarty.const._MN_SONGLIST_ALBUMS}> </div> <div class="sl_subartist"> - <{assign item=albums value=0}> + <{assign var=albums value=0}> <{foreach from=$artist.albums item=album}> - <{assign item=albums value=$albums+1}> + <{assign var=albums value=$albums+1}> <a href="<{$album.url}>"><{$album.name}></a><{if not $albums < count($artist.albums)}>, <{/if}> <{/foreach}> </div> 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-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -3,9 +3,9 @@ </div> <{if $category.subcategories}> <div class="sl_subcat"> - <{assign item=cats value=0}> + <{assign var=cats value=0}> <{foreach from=$category.subcategories item=subcategory}> - <{assign item=cats value=$cats+1}> + <{assign var=cats value=$cats+1}> <a href="<{$subcategory.url}>"><{$subcategory.name}></a><{if not $cats < count($category.subcategories)}>, <{/if}> <{/foreach}> </div> 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-26 01:33:52 UTC (rev 9191) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-03-26 02:02:25 UTC (rev 9192) @@ -20,9 +20,9 @@ <{/if}> </div> <div class="sl_mainsong"> - <{assign item=artists value=0}> + <{assign var=artists value=0}> <{foreach from=$song.album.artists item=artist}> - <{assign item=artists value=$artists+1}> + <{assign var=artists value=$artists+1}> <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($song.album.artists)}>, <{/if}> <{/foreach}> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-26 01:34:00
|
Revision: 9191 http://xoops.svn.sourceforge.net/xoops/?rev=9191&view=rev Author: wishcraft Date: 2012-03-26 01:33:52 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.07 - complete first release final (sql/mysql.sql patch 2) Modified Paths: -------------- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/header.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.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/header.php XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -50,10 +50,10 @@ $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()); + $artists = $artists_handler->getObjects($criteria, true); + foreach($artists as $cid => $artist) { + if (is_object($artist)) + $GLOBALS['xoopsTpl']->append('artists', $artist->toArray()); } $GLOBALS['xoopsTpl']->assign('form', songlist_artists_get_form(false)); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/header.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/header.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/header.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -89,4 +89,7 @@ xoops_loadLanguage('admin', 'songlist'); $GLOBALS['songlistModule'] = $module_handler->getByDirname('songlist'); + + set_time_limit('320'); + ini_set('memory_limit', '196M'); ?> \ No newline at end of file Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -6,8 +6,11 @@ $category_handler = xoops_getmodulehandler('category', 'songlist'); $criteria_cat = new CriteriaCompo(); - foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { - $criteria_cat->add(new Criteria('`cid`', $cid, '='), 'OR'); + $cids = $category_handler->GetCatAndSubCat($_SESSION['cid']); + if (count($cids)>0) { + $criteria_cat->add(new Criteria('`cid`', '('.implode(',', $cids).')', 'IN'), 'OR'); + } else { + $criteria_cat->add(new Criteria('1', '1'), 'OR'); } $criteria_cat->setSort('`created`'); $criteria_cat->setOrder('ASC'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -6,9 +6,15 @@ $category_handler = xoops_getmodulehandler('category', 'songlist'); $criteria_cat = new CriteriaCompo(); - foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { - $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); + $cids = $category_handler->GetCatAndSubCat($_SESSION['cid']); + if (count($cids)>0) { + foreach($cids as $cid) { + $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); + } + } else { + $criteria_cat->add(new Criteria('1', '1'), 'OR'); } + $criteria_cat->setSort('`created`'); $criteria_cat->setOrder('ASC'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -219,19 +219,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -201,19 +201,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -162,19 +162,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -127,19 +127,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -275,19 +275,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + foreach($ret as $data) { + $id = array(); + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/header.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/header.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/header.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -68,8 +68,8 @@ $GLOBALS['start']=isset($_REQUEST['start'])?$_REQUEST['start']:0; $GLOBALS['limit']=isset($_REQUEST['limit'])?$_REQUEST['limit']:$GLOBALS['songlistModuleConfig']['cols']*$GLOBALS['songlistModuleConfig']['rows']; - print_r($_POST); - print_r($_GET); + set_time_limit('320'); + ini_set('memory_limit', '128M'); if (!isset($_SESSION['cid'])) $_SESSION['cid'] = $GLOBALS['cid']; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -6,7 +6,12 @@ $category_handler = xoops_getmodulehandler('category', 'songlist'); $criteria_cat = new CriteriaCompo(); - $criteria_cat->add(new Criteria('`cid`', '('.implode(',', $category_handler->GetCatAndSubCat($_SESSION['cid'])).')', 'IN'), 'OR'); + $cids = $category_handler->GetCatAndSubCat($_SESSION['cid']); + if (count($cids)>0) { + $criteria_cat->add(new Criteria('`cid`', '('.implode(',', $cids).')', 'IN'), 'OR'); + } else { + $criteria_cat->add(new Criteria('1', '1'), 'OR'); + } $criteria_cat->setSort('`created`'); $criteria_cat->setOrder('ASC'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 01:33:52 UTC (rev 9191) @@ -12,7 +12,7 @@ `rank` decimal(10,3) unsigned DEFAULT '0.000', `votes` int(10) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', - `updated` int(12) unsigned DEFAULT '0' + `updated` int(12) unsigned DEFAULT '0', PRIMARY KEY (`abid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -28,7 +28,7 @@ `votes` int(10) unsigned DEFAULT '0', `hits` int(12) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', - `updated` int(12) unsigned DEFAULT '0' + `updated` int(12) unsigned DEFAULT '0', PRIMARY KEY (`aid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/artists.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -50,10 +50,10 @@ $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()); + $artists = $artists_handler->getObjects($criteria, true); + foreach($artists as $cid => $artist) { + if (is_object($artist)) + $GLOBALS['xoopsTpl']->append('artists', $artist->toArray()); } $GLOBALS['xoopsTpl']->assign('form', songlist_artists_get_form(false)); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/header.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -89,4 +89,7 @@ xoops_loadLanguage('admin', 'songlist'); $GLOBALS['songlistModule'] = $module_handler->getByDirname('songlist'); + + set_time_limit('320'); + ini_set('memory_limit', '196M'); ?> \ No newline at end of file Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -6,8 +6,11 @@ $category_handler = xoops_getmodulehandler('category', 'songlist'); $criteria_cat = new CriteriaCompo(); - foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { - $criteria_cat->add(new Criteria('`cid`', $cid, '='), 'OR'); + $cids = $category_handler->GetCatAndSubCat($_SESSION['cid']); + if (count($cids)>0) { + $criteria_cat->add(new Criteria('`cid`', '('.implode(',', $cids).')', 'IN'), 'OR'); + } else { + $criteria_cat->add(new Criteria('1', '1'), 'OR'); } $criteria_cat->setSort('`created`'); $criteria_cat->setOrder('ASC'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -6,9 +6,15 @@ $category_handler = xoops_getmodulehandler('category', 'songlist'); $criteria_cat = new CriteriaCompo(); - foreach($category_handler->GetCatAndSubCat($_SESSION['cid']) as $cid) { - $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); + $cids = $category_handler->GetCatAndSubCat($_SESSION['cid']); + if (count($cids)>0) { + foreach($cids as $cid) { + $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); + } + } else { + $criteria_cat->add(new Criteria('1', '1'), 'OR'); } + $criteria_cat->setSort('`created`'); $criteria_cat->setOrder('ASC'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -219,19 +219,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -201,19 +201,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -162,19 +162,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -127,19 +127,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + $id = array(); + foreach($ret as $data) { + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -275,19 +275,21 @@ 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) { - if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { - $this->_objects['object'][$data->getVar($this->keyName)] = $data; - $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); - } - } else { - if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { - $this->_objects['array'][$data[$this->keyName]] = $data; - $id[$data[$this->keyName]] = $data[$this->keyName];; - } - } + if (!isset($GLOBALS['songlistAdmin'])) { + foreach($ret as $data) { + $id = array(); + if ($as_object==true) { + if (!in_array($data->getVar($this->keyName), array_keys($this->_objects['object']))) { + $this->_objects['object'][$data->getVar($this->keyName)] = $data; + $id[$data->getVar($this->keyName)] = $data->getVar($this->keyName); + } + } else { + if (!in_array($data[$this->keyName], array_keys($this->_objects['array']))) { + $this->_objects['array'][$data[$this->keyName]] = $data; + $id[$data[$this->keyName]] = $data[$this->keyName];; + } + } + } } if (!isset($GLOBALS['songlistAdmin'])&&count($id)>0) { $sql = 'UPDATE `'.$this->table.'` set hits=hits+1 where `'.$this->keyName.'` IN ('.implode(',', $id).')'; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -68,8 +68,8 @@ $GLOBALS['start']=isset($_REQUEST['start'])?$_REQUEST['start']:0; $GLOBALS['limit']=isset($_REQUEST['limit'])?$_REQUEST['limit']:$GLOBALS['songlistModuleConfig']['cols']*$GLOBALS['songlistModuleConfig']['rows']; - print_r($_POST); - print_r($_GET); + set_time_limit('320'); + ini_set('memory_limit', '128M'); if (!isset($_SESSION['cid'])) $_SESSION['cid'] = $GLOBALS['cid']; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php 2012-03-26 01:33:52 UTC (rev 9191) @@ -6,7 +6,12 @@ $category_handler = xoops_getmodulehandler('category', 'songlist'); $criteria_cat = new CriteriaCompo(); - $criteria_cat->add(new Criteria('`cid`', '('.implode(',', $category_handler->GetCatAndSubCat($_SESSION['cid'])).')', 'IN'), 'OR'); + $cids = $category_handler->GetCatAndSubCat($_SESSION['cid']); + if (count($cids)>0) { + $criteria_cat->add(new Criteria('`cid`', '('.implode(',', $cids).')', 'IN'), 'OR'); + } else { + $criteria_cat->add(new Criteria('1', '1'), 'OR'); + } $criteria_cat->setSort('`created`'); $criteria_cat->setOrder('ASC'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 01:05:55 UTC (rev 9190) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 01:33:52 UTC (rev 9191) @@ -12,7 +12,7 @@ `rank` decimal(10,3) unsigned DEFAULT '0.000', `votes` int(10) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', - `updated` int(12) unsigned DEFAULT '0' + `updated` int(12) unsigned DEFAULT '0', PRIMARY KEY (`abid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -28,7 +28,7 @@ `votes` int(10) unsigned DEFAULT '0', `hits` int(12) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', - `updated` int(12) unsigned DEFAULT '0' + `updated` int(12) unsigned DEFAULT '0', PRIMARY KEY (`aid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-26 01:06:02
|
Revision: 9190 http://xoops.svn.sourceforge.net/xoops/?rev=9190&view=rev Author: wishcraft Date: 2012-03-26 01:05:55 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.07 - complete first release final (sql/mysql.sql patch) Modified Paths: -------------- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php 2012-03-25 22:42:30 UTC (rev 9189) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php 2012-03-26 01:05:55 UTC (rev 9190) @@ -2,7 +2,7 @@ // XOOPS Version define('_MI_SONGLIST_NAME', 'Songlist'); - define('_MI_SONGLIST_DESCRIPTION', 'Songlist is a module for keeping karioki song lists and ranking of them.'); + define('_MI_SONGLIST_DESC', 'Karioki Songlist - a module for keeping karioki song lists and ranking of them.'); define('_MI_SONGLIST_DIRNAME', 'songlist'); // Form langauges Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql 2012-03-25 22:42:30 UTC (rev 9189) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 01:05:55 UTC (rev 9190) @@ -13,6 +13,7 @@ `votes` int(10) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', `updated` int(12) unsigned DEFAULT '0' + PRIMARY KEY (`abid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `songlist_artists` ( @@ -28,6 +29,7 @@ `hits` int(12) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', `updated` int(12) unsigned DEFAULT '0' + PRIMARY KEY (`aid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `songlist_category` ( Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/xoops_version.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/xoops_version.php 2012-03-25 22:42:30 UTC (rev 9189) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/xoops_version.php 2012-03-26 01:05:55 UTC (rev 9190) @@ -201,10 +201,12 @@ $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ARTISTS; $modversion['sub'][$i]['url'] = "artists.php"; $i++; -if ($GLOBALS['songlistModuleConfig']['album']) { - $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ALBUMS; - $modversion['sub'][$i]['url'] = "albums.php"; - $i++; +if (isset($GLOBALS['songlistModuleConfig']['album'])) { + if ($GLOBALS['songlistModuleConfig']['album']) { + $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ALBUMS; + $modversion['sub'][$i]['url'] = "albums.php"; + $i++; + } } $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_SEARCH; $modversion['sub'][$i]['url'] = "search.php"; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/modinfo.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/modinfo.php 2012-03-25 22:42:30 UTC (rev 9189) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/modinfo.php 2012-03-26 01:05:55 UTC (rev 9190) @@ -2,7 +2,7 @@ // XOOPS Version define('_MI_SONGLIST_NAME', 'Songlist'); - define('_MI_SONGLIST_DESCRIPTION', 'Songlist is a module for keeping karioki song lists and ranking of them.'); + define('_MI_SONGLIST_DESC', 'Karioki Songlist - a module for keeping karioki song lists and ranking of them.'); define('_MI_SONGLIST_DIRNAME', 'songlist'); // Form langauges Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql 2012-03-25 22:42:30 UTC (rev 9189) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 01:05:55 UTC (rev 9190) @@ -13,6 +13,7 @@ `votes` int(10) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', `updated` int(12) unsigned DEFAULT '0' + PRIMARY KEY (`abid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `songlist_artists` ( @@ -28,6 +29,7 @@ `hits` int(12) unsigned DEFAULT '0', `created` int(12) unsigned DEFAULT '0', `updated` int(12) unsigned DEFAULT '0' + PRIMARY KEY (`aid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `songlist_category` ( Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php 2012-03-25 22:42:30 UTC (rev 9189) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php 2012-03-26 01:05:55 UTC (rev 9190) @@ -201,10 +201,12 @@ $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ARTISTS; $modversion['sub'][$i]['url'] = "artists.php"; $i++; -if ($GLOBALS['songlistModuleConfig']['album']) { - $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ALBUMS; - $modversion['sub'][$i]['url'] = "albums.php"; - $i++; +if (isset($GLOBALS['songlistModuleConfig']['album'])) { + if ($GLOBALS['songlistModuleConfig']['album']) { + $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_ALBUMS; + $modversion['sub'][$i]['url'] = "albums.php"; + $i++; + } } $modversion['sub'][$i]['name'] = _MI_SONGLIST_MENU_SEARCH; $modversion['sub'][$i]['url'] = "search.php"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-25 22:42:41
|
Revision: 9189 http://xoops.svn.sourceforge.net/xoops/?rev=9189&view=rev Author: wishcraft Date: 2012-03-25 22:42:30 +0000 (Sun, 25 Mar 2012) Log Message: ----------- Karioki Song List 1.07 - complete first release final Modified Paths: -------------- 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/field.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field_permissions.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/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/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php 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/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/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/votes.php XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/trunk/htdocs/modules/songlist/docs/changelog.txt XoopsModules/songlist/trunk/htdocs/modules/songlist/header.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsinger.php XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php 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/forms.php 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/sql/mysql.sql 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/songlist_albums_index.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_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_albums_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_artists_list.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_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_requests_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_songs_index.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/xoops_version.php Added Paths: ----------- XoopsModules/songlist/releases/ XoopsModules/songlist/releases/1.07/ XoopsModules/songlist/releases/1.07/docs/ XoopsModules/songlist/releases/1.07/docs/.htaccess XoopsModules/songlist/releases/1.07/htdocs/ XoopsModules/songlist/releases/1.07/htdocs/modules/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/category.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/dashboard.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/export.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field_permissions.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/field_visibility.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/genre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/menu.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/permissions.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/requests.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/songs.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/utf8map.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/votes.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_album.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artist.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genres.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_song.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_songs.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/extras.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/field.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/utf8map.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/visibility.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/votes.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/SonglistRequirement.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/changelog.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/credits.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/install.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/lang_diff.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/licence.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/docs/readme.txt XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/header.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/accept.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/cancel.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/no.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.albums.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.artists.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.category.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.field.permissions.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.fields.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.genre.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.import.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.permissions.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.requests.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.songs.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.utf8map.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/songlist.votes.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/16/yes.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.albums.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.artists.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.category.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.field.permissions.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.fields.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.genre.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.import.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.permissions.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.requests.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.songs.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.utf8map.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/32/songlist.votes.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/icons/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/left_both.gif XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/no.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/right_both.gif XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/songlist_slogo.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/xoopsxf_slogo.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/images/yes.png XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/JSON.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/formselectcategory.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/formselectsinger.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/songlist.object.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/include/uploader.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/js/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/js/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/blocks.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/email.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/enum.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/mail_templates/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/mail_templates/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/mail_templates/songlist_request_created.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/mail_templates/songlist_request_updated.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/request.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/search.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.htm XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_alpha_browse.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_category_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_albums_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_albums_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_artists_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_artists_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_category_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_category_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_fieldlist.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_genre_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_genre_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_import_actiona.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_import_actionb.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_requests_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_requests_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_songs_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_visibility.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_votes_edit.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_cpanel_votes_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_requests_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_search.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_search.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/releases/1.07/htdocs/modules/tag/ XoopsModules/songlist/releases/1.07/htdocs/modules/tag/plugin/ XoopsModules/songlist/releases/1.07/htdocs/modules/tag/plugin/songlist.php XoopsModules/songlist/trunk/docs/.htaccess XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/no.png XoopsModules/songlist/trunk/htdocs/modules/songlist/images/icons/16/yes.png XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.object.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/email.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/mail_templates/ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/mail_templates/index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/mail_templates/songlist_request_created.html XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/mail_templates/songlist_request_updated.html XoopsModules/songlist/trunk/htdocs/modules/songlist/request.php XoopsModules/songlist/trunk/htdocs/modules/songlist/search.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_import_actiona.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_import_actionb.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_requests_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_search_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_search_search.html Removed Paths: ------------- 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_rank.html Added: XoopsModules/songlist/releases/1.07/docs/.htaccess =================================================================== --- XoopsModules/songlist/releases/1.07/docs/.htaccess (rev 0) +++ XoopsModules/songlist/releases/1.07/docs/.htaccess 2012-03-25 22:42:30 UTC (rev 9189) @@ -0,0 +1,10 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+)-(.*?)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$4&fct=$5&id=$6&value=$7&gid=$8&cid=$9 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+)-(.*?)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&id=$5&value=$6&gid=$7&cid=$7 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-(.*?)-([0-9]+)-([0-9]+)-(.*?).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&value=$5&gid=$6&cid=$7&singer=$8 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$2&fct=$3&id=$4 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+).html modules/songlist/$1.php?op=$2&fct=$3 [L,NC,QSA] Added: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php (rev 0) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/about.php 2012-03-25 22:42:30 UTC (rev 9189) @@ -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/releases/1.07/htdocs/modules/songlist/admin/albums.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/albums.php (rev 0) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/albums.php 2012-03-25 22:42:30 UTC (rev 9189) @@ -0,0 +1,184 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"albums"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $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) { + default: + case "albums": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__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(' '.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(basename(__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/releases/1.07/htdocs/modules/songlist/admin/artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php (rev 0) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/artists.php 2012-03-25 22:42:30 UTC (rev 9189) @@ -0,0 +1,140 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"artists"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $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) { + default: + 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/releases/1.07/htdocs/modules/songlist/admin/category.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/category.php (rev 0) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/category.php 2012-03-25 22:42:30 UTC (rev 9189) @@ -0,0 +1,184 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"category"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $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) { + default: + 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_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', $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_SONGLIST_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_SONGLIST_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_SONGLIST_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_SONGLIST_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_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + exit(0); + break; + case "delete": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if (isset($... [truncated message content] |
From: <be...@us...> - 2012-03-25 22:42:08
|
Revision: 9188 http://xoops.svn.sourceforge.net/xoops/?rev=9188&view=rev Author: beckmi Date: 2012-03-25 22:42:00 +0000 (Sun, 25 Mar 2012) Log Message: ----------- Updating TinyMCE to 3.4.9 Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/media.js XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/props.js XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/props.htm XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/table.js XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js 2012-03-25 22:33:44 UTC (rev 9187) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js 2012-03-25 22:42:00 UTC (rev 9188) @@ -1 +1 @@ -(function(){var e=tinymce.each,r=tinymce.dom.Event,g;function p(t,s){while(t&&(t.nodeType===8||(t.nodeType===3&&/^[ \t\n\r]*$/.test(t.nodeValue)))){t=s(t)}return t}function b(s){return p(s,function(t){return t.previousSibling})}function i(s){return p(s,function(t){return t.nextSibling})}function d(s,u,t){return s.dom.getParent(u,function(v){return tinymce.inArray(t,v)!==-1})}function n(s){return s&&(s.tagName==="OL"||s.tagName==="UL")}function c(u,v){var t,w,s;t=b(u.lastChild);while(n(t)){w=t;t=b(w.previousSibling)}if(w){s=v.create("li",{style:"list-style-type: none;"});v.split(u,w);v.insertAfter(s,w);s.appendChild(w);s.appendChild(w);u=s.previousSibling}return u}function m(t,s,u){t=a(t,s,u);return o(t,s,u)}function a(u,s,v){var t=b(u.previousSibling);if(t){return h(t,u,s?t:false,v)}else{return u}}function o(u,t,v){var s=i(u.nextSibling);if(s){return h(u,s,t?s:false,v)}else{return u}}function h(u,s,t,v){if(l(u,s,!!t,v)){return f(u,s,t)}else{if(u&&u.tagName==="LI"&&n(s)){u.appendChild(s)}}return s}function l(u,t,s,v){if(!u||!t){return false}else{if(u.tagName==="LI"&&t.tagName==="LI"){return t.style.listStyleType==="none"||j(t)}else{if(n(u)){return(u.tagName===t.tagName&&(s||u.style.listStyleType===t.style.listStyleType))||q(t)}else{return v&&u.tagName==="P"&&t.tagName==="P"}}}}function q(t){var s=i(t.firstChild),u=b(t.lastChild);return s&&u&&n(t)&&s===u&&(n(s)||s.style.listStyleType==="none"||j(s))}function j(u){var t=i(u.firstChild),s=b(u.lastChild);return t&&s&&t===s&&n(t)}function f(w,v,s){var u=b(w.lastChild),t=i(v.firstChild);if(w.tagName==="P"){w.appendChild(w.ownerDocument.createElement("br"))}while(v.firstChild){w.appendChild(v.firstChild)}if(s){w.style.listStyleType=s.style.listStyleType}v.parentNode.removeChild(v);h(u,t,false);return w}function k(t,u){var s;if(!u.is(t,"li,ol,ul")){s=u.getParent(t,"li");if(s){t=s}}return t}tinymce.create("tinymce.plugins.Lists",{init:function(y){var v="TABBING";var s="EMPTY";var I="ESCAPE";var z="PARAGRAPH";var M="UNKNOWN";var x=M;function E(U){return U.keyCode===tinymce.VK.TAB&&!(U.altKey||U.ctrlKey)&&(y.queryCommandState("InsertUnorderedList")||y.queryCommandState("InsertOrderedList"))}function D(){var U=y.selection.getRng();var V=U.startContainer;if(V.nodeType==3){return(U.endOffset==V.nodeValue.length)}else{if(V.nodeType==1){return U.endOffset==V.childNodes.length}}return false}function N(){var V=y.selection.getNode();var U=V.tagName==="P"&&V.parentNode.tagName==="LI"&&V.parentNode.lastChild===V;return y.selection.isCollapsed()&&U&&D()}function w(){var U=B();var W=U.parentNode.parentNode;var V=U.parentNode.lastChild===U;return V&&!t(W)&&P(U)}function t(U){if(n(U)){return U.parentNode&&U.parentNode.tagName==="LI"}else{return U.tagName==="LI"}}function F(){return y.selection.isCollapsed()&&P(B())}function B(){var U=y.selection.getStart();return((U.tagName=="BR"||U.tagName=="")&&U.parentNode.tagName=="LI")?U.parentNode:U}function P(U){var V=U.childNodes.length;if(U.tagName==="LI"){return V==0?true:V==1&&(U.firstChild.tagName==""||U.firstChild.tagName=="BR"||H(U))}return false}function H(U){var V=tinymce.grep(U.parentNode.childNodes,function(Y){return Y.tagName=="LI"});var W=U==V[V.length-1];var X=U.firstChild;return tinymce.isIE9&&W&&(X.nodeValue==String.fromCharCode(160)||X.nodeValue==String.fromCharCode(32))}function T(U){return U.keyCode===tinymce.VK.ENTER}function A(U){return T(U)&&!U.shiftKey}function L(U){if(E(U)){return v}else{if(A(U)&&w()){return I}else{if(A(U)&&F()){return s}else{if(A(U)&&N()){return z}else{return M}}}}}function C(U,V){if(x==v||x==s||tinymce.isGecko&&x==I){r.cancel(V)}}function J(W,Y){if(x==z){var X=W.selection.getNode();var V=W.dom.create("li");var U=W.dom.getParent(X,"li");W.dom.insertAfter(V,U);if(tinyMCE.isIE8){V.appendChild(W.dom.create(" "));W.selection.setCursorLocation(V,1)}else{if(tinyMCE.isGecko){setTimeout(function(){var Z=W.getDoc().createTextNode("\uFEFF");V.appendChild(Z);W.selection.setCursorLocation(V,0)},0)}else{W.selection.setCursorLocation(V,0)}}r.cancel(Y)}}function u(X,Z){var ac;if(!tinymce.isGecko){return}var V=X.selection.getStart();if(Z.keyCode!=tinymce.VK.BACKSPACE||V.tagName!=="IMG"){return}function W(ag){var ah=ag.firstChild;var af=null;do{if(!ah){break}if(ah.tagName==="LI"){af=ah}}while(ah=ah.nextSibling);return af}function ae(ag,af){while(ag.childNodes.length>0){af.appendChild(ag.childNodes[0])}}ac=V.parentNode.previousSibling;if(!ac){return}var aa;if(ac.tagName==="UL"||ac.tagName==="OL"){aa=ac}else{if(ac.previousSibling&&(ac.previousSibling.tagName==="UL"||ac.previousSibling.tagName==="OL")){aa=ac.previousSibling}else{return}}var ad=W(aa);var U=X.dom.createRng();U.setStart(ad,1);U.setEnd(ad,1);X.selection.setRng(U);X.selection.collapse(true);var Y=X.selection.getBookmark();var ab=V.parentNode.cloneNode(true);if(ab.tagName==="P"||ab.tagName==="DIV"){ae(ab,ad)}else{ad.appendChild(ab)}V.parentNode.parentNode.removeChild(V.parentNode);X.selection.moveToBookmark(Y)}function G(U){var V=y.dom.getParent(U,"ol,ul");if(V!=null){var W=V.lastChild;W.appendChild(y.getDoc().createElement(""));y.selection.setCursorLocation(W,0)}}this.ed=y;y.addCommand("Indent",this.indent,this);y.addCommand("Outdent",this.outdent,this);y.addCommand("InsertUnorderedList",function(){this.applyList("UL","OL")},this);y.addCommand("InsertOrderedList",function(){this.applyList("OL","UL")},this);y.onInit.add(function(){y.editorCommands.addCommands({outdent:function(){var V=y.selection,W=y.dom;function U(X){X=W.getParent(X,W.isBlock);return X&&(parseInt(y.dom.getStyle(X,"margin-left")||0,10)+parseInt(y.dom.getStyle(X,"padding-left")||0,10))>0}return U(V.getStart())||U(V.getEnd())||y.queryCommandState("InsertOrderedList")||y.queryCommandState("InsertUnorderedList")}},"state")});y.onKeyUp.add(function(V,W){if(x==v){V.execCommand(W.shiftKey?"Outdent":"Indent",true,null);x=M;return r.cancel(W)}else{if(x==s){var U=B();var Y=V.settings.list_outdent_on_enter===true||W.shiftKey;V.execCommand(Y?"Outdent":"Indent",true,null);if(tinymce.isIE){G(U)}return r.cancel(W)}else{if(x==I){if(tinymce.isIE8){var X=V.getDoc().createTextNode("\uFEFF");V.selection.getNode().appendChild(X)}else{if(tinymce.isIE9||tinymce.isGecko){V.execCommand("Outdent");return r.cancel(W)}}}}}});function K(V,U){var W=y.getDoc().createTextNode("\uFEFF");V.insertBefore(W,U);y.selection.setCursorLocation(W,0);y.execCommand("mceRepaint")}function R(V,X){if(T(X)){var U=B();if(U){var W=U.parentNode;var Y=W&&W.parentNode;if(Y&&Y.nodeName=="LI"&&Y.firstChild==W&&U==W.firstChild){K(Y,W)}}}}function S(V,X){if(T(X)){var U=B();if(V.dom.select("ul li",U).length===1){var W=U.firstChild;K(U,W)}}}function Q(V,Z){function W(ad,aa){var ac=[];var ae=new tinymce.dom.TreeWalker(aa,ad);for(var ab=ae.current();ab;ab=ae.next()){if(V.dom.is(ab,"ol,ul,li")){ac.push(ab)}}return ac}if(Z.keyCode==tinymce.VK.BACKSPACE){var U=B();if(U){var Y=V.dom.getParent(U,"ol,ul");if(Y&&Y.firstChild===U){var X=W(Y,U);V.execCommand("Outdent",false,X);V.undoManager.add();return r.cancel(Z)}}}}function O(V,X){var U=B();if(X.keyCode===tinymce.VK.BACKSPACE&&V.dom.is(U,"li")&&U.parentNode.firstChild!==U){if(V.dom.select("ul,ol",U).length===1){var Z=U.previousSibling;V.dom.remove(V.dom.select("br",U));V.dom.remove(U,true);var W=tinymce.grep(Z.childNodes,function(aa){return aa.nodeType===3});if(W.length===1){var Y=W[0];V.selection.setCursorLocation(Y,Y.length)}V.undoManager.add();return r.cancel(X)}}}y.onKeyDown.add(function(U,V){x=L(V)});y.onKeyDown.add(C);y.onKeyDown.add(u);y.onKeyDown.add(J);if(tinymce.isGecko){y.onKeyUp.add(R)}if(tinymce.isIE8){y.onKeyUp.add(S)}if(tinymce.isGecko||tinymce.isWebKit){y.onKeyDown.add(Q)}if(tinymce.isWebKit){y.onKeyDown.add(O)}},applyList:function(y,v){var C=this,z=C.ed,I=z.dom,s=[],H=false,u=false,w=false,B,G=z.selection.getSelectedBlocks();function E(t){if(t&&t.tagName==="BR"){I.remove(t)}}function F(M){var N=I.create(y),t;function L(O){if(O.style.marginLeft||O.style.paddingLeft){C.adjustPaddingFunction(false)(O)}}if(M.tagName==="LI"){}else{if(M.tagName==="P"||M.tagName==="DIV"||M.tagName==="BODY"){K(M,function(P,O){J(P,O,M.tagName==="BODY"?null:P.parentNode);t=P.parentNode;L(t);E(O)});if(t){if(t.tagName==="LI"&&(M.tagName==="P"||G.length>1)){I.split(t.parentNode.parentNode,t.parentNode)}m(t.parentNode,true)}return}else{t=I.create("li");I.insertAfter(t,M);t.appendChild(M);L(M);M=t}}I.insertAfter(N,M);N.appendChild(M);m(N,true);s.push(M)}function J(P,L,N){var t,O=P,M;while(!I.isBlock(P.parentNode)&&P.parentNode!==I.getRoot()){P=I.split(P.parentNode,P.previousSibling);P=P.nextSibling;O=P}if(N){t=N.cloneNode(true);P.parentNode.insertBefore(t,P);while(t.firstChild){I.remove(t.firstChild)}t=I.rename(t,"li")}else{t=I.create("li");P.parentNode.insertBefore(t,P)}while(O&&O!=L){M=O.nextSibling;t.appendChild(O);O=M}if(t.childNodes.length===0){t.innerHTML='<br _mce_bogus="1" />'}F(t)}function K(Q,T){var N,R,O=3,L=1,t="br,ul,ol,p,div,h1,h2,h3,h4,h5,h6,table,blockquote,address,pre,form,center,dl";function P(X,U){var V=I.createRng(),W;g.keep=true;z.selection.moveToBookmark(g);g.keep=false;W=z.selection.getRng(true);if(!U){U=X.parentNode.lastChild}V.setStartBefore(X);V.setEndAfter(U);return !(V.compareBoundaryPoints(O,W)>0||V.compareBoundaryPoints(L,W)<=0)}function S(U){if(U.nextSibling){return U.nextSibling}if(!I.isBlock(U.parentNode)&&U.parentNode!==I.getRoot()){return S(U.parentNode)}}N=Q.firstChild;var M=false;e(I.select(t,Q),function(U){if(U.hasAttribute&&U.hasAttribute("_mce_bogus")){return true}if(P(N,U)){I.addClass(U,"_mce_tagged_br");N=S(U)}});M=(N&&P(N,undefined));N=Q.firstChild;e(I.select(t,Q),function(V){var U=S(V);if(V.hasAttribute&&V.hasAttribute("_mce_bogus")){return true}if(I.hasClass(V,"_mce_tagged_br")){T(N,V,R);R=null}else{R=V}N=U});if(M){T(N,undefined,R)}}function D(t){K(t,function(M,L,N){J(M,L);E(L);E(N)})}function A(t){if(tinymce.inArray(s,t)!==-1){return}if(t.parentNode.tagName===v){I.split(t.parentNode,t);F(t);o(t.parentNode,false)}s.push(t)}function x(M){var O,N,L,t;if(tinymce.inArray(s,M)!==-1){return}M=c(M,I);while(I.is(M.parentNode,"ol,ul,li")){I.split(M.parentNode,M)}s.push(M);M=I.rename(M,"p");L=m(M,false,z.settings.force_br_newlines);if(L===M){O=M.firstChild;while(O){if(I.isBlock(O)){O=I.split(O.parentNode,O);t=true;N=O.nextSibling&&O.nextSibling.firstChild}else{N=O.nextSibling;if(t&&O.tagName==="BR"){I.remove(O)}t=false}O=N}}}e(G,function(t){t=k(t,I);if(t.tagName===v||(t.tagName==="LI"&&t.parentNode.tagName===v)){u=true}else{if(t.tagName===y||(t.tagName==="LI"&&t.parentNode.tagName===y)){H=true}else{w=true}}});if(w&&!H||u||G.length===0){B={LI:A,H1:F,H2:F,H3:F,H4:F,H5:F,H6:F,P:F,BODY:F,DIV:G.length>1?F:D,defaultAction:D,elements:this.selectedBlocks()}}else{B={defaultAction:x,elements:this.selectedBlocks()}}this.process(B)},indent:function(){var u=this.ed,w=u.dom,x=[];function s(z){var y=w.create("li",{style:"list-style-type: none;"});w.insertAfter(y,z);return y}function t(B){var y=s(B),D=w.getParent(B,"ol,ul"),C=D.tagName,E=w.getStyle(D,"list-style-type"),A={},z;if(E!==""){A.style="list-style-type: "+E+";"}z=w.create(C,A);y.appendChild(z);return z}function v(z){if(!d(u,z,x)){z=c(z,w);var y=t(z);y.appendChild(z);m(y.parentNode,false);m(y,false);x.push(z)}}this.process({LI:v,defaultAction:this.adjustPaddingFunction(true),elements:this.selectedBlocks()})},outdent:function(y,x){var w=this,u=w.ed,z=u.dom,s=[];function A(t){var C,B,D;if(!d(u,t,s)){if(z.getStyle(t,"margin-left")!==""||z.getStyle(t,"padding-left")!==""){return w.adjustPaddingFunction(false)(t)}D=z.getStyle(t,"text-align",true);if(D==="center"||D==="right"){z.setStyle(t,"text-align","left");return}t=c(t,z);C=t.parentNode;B=t.parentNode.parentNode;if(B.tagName==="P"){z.split(B,t.parentNode)}else{z.split(C,t);if(B.tagName==="LI"){z.split(B,t)}else{if(!z.is(B,"ol,ul")){z.rename(t,"p")}}}s.push(t)}}var v=x&&tinymce.is(x,"array")?x:this.selectedBlocks();this.process({LI:A,defaultAction:this.adjustPaddingFunction(false),elements:v});e(s,m)},process:function(y){var F=this,w=F.ed.selection,z=F.ed.dom,E,u;function B(t){var s=tinymce.grep(t.childNodes,function(H){return !(H.nodeName==="BR"||H.nodeName==="SPAN"&&z.getAttrib(H,"data-mce-type")=="bookmark"||H.nodeType==3&&(H.nodeValue==String.fromCharCode(160)||H.nodeValue==""))});return s.length===0}function x(s){z.removeClass(s,"_mce_act_on");if(!s||s.nodeType!==1||E.length>1&&B(s)){return}s=k(s,z);var t=y[s.tagName];if(!t){t=y.defaultAction}t(s)}function v(s){F.splitSafeEach(s.childNodes,x)}function C(s,t){return t>=0&&s.hasChildNodes()&&t<s.childNodes.length&&s.childNodes[t].tagName==="BR"}function D(){var t=w.getNode();var s=z.getParent(t,"td");return s!==null}E=y.elements;u=w.getRng(true);if(!u.collapsed){if(C(u.endContainer,u.endOffset-1)){u.setEnd(u.endContainer,u.endOffset-1);w.setRng(u)}if(C(u.startContainer,u.startOffset)){u.setStart(u.startContainer,u.startOffset+1);w.setRng(u)}}if(tinymce.isIE8){var G=F.ed.selection.getNode();if(G.tagName==="LI"&&!(G.parentNode.lastChild===G)){var A=F.ed.getDoc().createTextNode("\uFEFF");G.appendChild(A)}}g=w.getBookmark();y.OL=y.UL=v;F.splitSafeEach(E,x);w.moveToBookmark(g);g=null;if(!D()){F.ed.execCommand("mceRepaint")}},splitSafeEach:function(t,s){if(tinymce.isGecko&&(/Firefox\/[12]\.[0-9]/.test(navigator.userAgent)||/Firefox\/3\.[0-4]/.test(navigator.userAgent))){this.classBasedEach(t,s)}else{e(t,s)}},classBasedEach:function(v,u){var w=this.ed.dom,s,t;e(v,function(x){w.addClass(x,"_mce_act_on")});s=w.select("._mce_act_on");while(s.length>0){t=s.shift();w.removeClass(t,"_mce_act_on");u(t);s=w.select("._mce_act_on")}},adjustPaddingFunction:function(u){var s,v,t=this.ed;s=t.settings.indentation;v=/[a-z%]+/i.exec(s);s=parseInt(s,10);return function(w){var y,x;y=parseInt(t.dom.getStyle(w,"margin-left")||0,10)+parseInt(t.dom.getStyle(w,"padding-left")||0,10);if(u){x=y+s}else{x=y-s}t.dom.setStyle(w,"padding-left","");t.dom.setStyle(w,"margin-left",x>0?x+v:"")}},selectedBlocks:function(){var s=this.ed;var t=s.selection.getSelectedBlocks();return t.length==0?[s.dom.getRoot()]:t},getInfo:function(){return{longname:"Lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/lists",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("lists",tinymce.plugins.Lists)}()); \ No newline at end of file +(function(){var e=tinymce.each,r=tinymce.dom.Event,g;function p(t,s){while(t&&(t.nodeType===8||(t.nodeType===3&&/^[ \t\n\r]*$/.test(t.nodeValue)))){t=s(t)}return t}function b(s){return p(s,function(t){return t.previousSibling})}function i(s){return p(s,function(t){return t.nextSibling})}function d(s,u,t){return s.dom.getParent(u,function(v){return tinymce.inArray(t,v)!==-1})}function n(s){return s&&(s.tagName==="OL"||s.tagName==="UL")}function c(u,v){var t,w,s;t=b(u.lastChild);while(n(t)){w=t;t=b(w.previousSibling)}if(w){s=v.create("li",{style:"list-style-type: none;"});v.split(u,w);v.insertAfter(s,w);s.appendChild(w);s.appendChild(w);u=s.previousSibling}return u}function m(t,s,u){t=a(t,s,u);return o(t,s,u)}function a(u,s,v){var t=b(u.previousSibling);if(t){return h(t,u,s?t:false,v)}else{return u}}function o(u,t,v){var s=i(u.nextSibling);if(s){return h(u,s,t?s:false,v)}else{return u}}function h(u,s,t,v){if(l(u,s,!!t,v)){return f(u,s,t)}else{if(u&&u.tagName==="LI"&&n(s)){u.appendChild(s)}}return s}function l(u,t,s,v){if(!u||!t){return false}else{if(u.tagName==="LI"&&t.tagName==="LI"){return t.style.listStyleType==="none"||j(t)}else{if(n(u)){return(u.tagName===t.tagName&&(s||u.style.listStyleType===t.style.listStyleType))||q(t)}else{return v&&u.tagName==="P"&&t.tagName==="P"}}}}function q(t){var s=i(t.firstChild),u=b(t.lastChild);return s&&u&&n(t)&&s===u&&(n(s)||s.style.listStyleType==="none"||j(s))}function j(u){var t=i(u.firstChild),s=b(u.lastChild);return t&&s&&t===s&&n(t)}function f(w,v,s){var u=b(w.lastChild),t=i(v.firstChild);if(w.tagName==="P"){w.appendChild(w.ownerDocument.createElement("br"))}while(v.firstChild){w.appendChild(v.firstChild)}if(s){w.style.listStyleType=s.style.listStyleType}v.parentNode.removeChild(v);h(u,t,false);return w}function k(t,u){var s;if(!u.is(t,"li,ol,ul")){s=u.getParent(t,"li");if(s){t=s}}return t}tinymce.create("tinymce.plugins.Lists",{init:function(y){var v="TABBING";var s="EMPTY";var J="ESCAPE";var z="PARAGRAPH";var N="UNKNOWN";var x=N;function E(U){return U.keyCode===tinymce.VK.TAB&&!(U.altKey||U.ctrlKey)&&(y.queryCommandState("InsertUnorderedList")||y.queryCommandState("InsertOrderedList"))}function w(){var U=B();var W=U.parentNode.parentNode;var V=U.parentNode.lastChild===U;return V&&!t(W)&&P(U)}function t(U){if(n(U)){return U.parentNode&&U.parentNode.tagName==="LI"}else{return U.tagName==="LI"}}function F(){return y.selection.isCollapsed()&&P(B())}function B(){var U=y.selection.getStart();return((U.tagName=="BR"||U.tagName=="")&&U.parentNode.tagName=="LI")?U.parentNode:U}function P(U){var V=U.childNodes.length;if(U.tagName==="LI"){return V==0?true:V==1&&(U.firstChild.tagName==""||U.firstChild.tagName=="BR"||H(U))}return false}function H(U){var V=tinymce.grep(U.parentNode.childNodes,function(Y){return Y.tagName=="LI"});var W=U==V[V.length-1];var X=U.firstChild;return tinymce.isIE9&&W&&(X.nodeValue==String.fromCharCode(160)||X.nodeValue==String.fromCharCode(32))}function T(U){return U.keyCode===tinymce.VK.ENTER}function A(U){return T(U)&&!U.shiftKey}function M(U){if(E(U)){return v}else{if(A(U)&&w()){return J}else{if(A(U)&&F()){return s}else{return N}}}}function D(U,V){if(x==v||x==s||tinymce.isGecko&&x==J){r.cancel(V)}}function C(){var U=y.selection.getRng(true);var V=U.startContainer;if(V.nodeType==3){var W=V.nodeValue;if(tinymce.isIE9&&W.length>1&&W.charCodeAt(W.length-1)==32){return(U.endOffset==W.length-1)}else{return(U.endOffset==W.length)}}else{if(V.nodeType==1){return U.endOffset==V.childNodes.length}}return false}function I(){var W=y.selection.getNode();var V="h1,h2,h3,h4,h5,h6,p,div";var U=y.dom.is(W,V)&&W.parentNode.tagName==="LI"&&W.parentNode.lastChild===W;return y.selection.isCollapsed()&&U&&C()}function K(W,Y){if(A(Y)&&I()){var X=W.selection.getNode();var V=W.dom.create("li");var U=W.dom.getParent(X,"li");W.dom.insertAfter(V,U);if(tinymce.isIE6||tinymce.isIE7||tinyMCE.isIE8){V.appendChild(W.dom.create(" "));W.selection.setCursorLocation(V,1)}else{if(tinyMCE.isGecko){setTimeout(function(){var Z=W.getDoc().createTextNode("\uFEFF");V.appendChild(Z);W.selection.setCursorLocation(V,0)},0)}else{W.selection.setCursorLocation(V,0)}}Y.preventDefault()}}function u(X,Z){var ac;if(!tinymce.isGecko){return}var V=X.selection.getStart();if(Z.keyCode!=tinymce.VK.BACKSPACE||V.tagName!=="IMG"){return}function W(ag){var ah=ag.firstChild;var af=null;do{if(!ah){break}if(ah.tagName==="LI"){af=ah}}while(ah=ah.nextSibling);return af}function ae(ag,af){while(ag.childNodes.length>0){af.appendChild(ag.childNodes[0])}}ac=V.parentNode.previousSibling;if(!ac){return}var aa;if(ac.tagName==="UL"||ac.tagName==="OL"){aa=ac}else{if(ac.previousSibling&&(ac.previousSibling.tagName==="UL"||ac.previousSibling.tagName==="OL")){aa=ac.previousSibling}else{return}}var ad=W(aa);var U=X.dom.createRng();U.setStart(ad,1);U.setEnd(ad,1);X.selection.setRng(U);X.selection.collapse(true);var Y=X.selection.getBookmark();var ab=V.parentNode.cloneNode(true);if(ab.tagName==="P"||ab.tagName==="DIV"){ae(ab,ad)}else{ad.appendChild(ab)}V.parentNode.parentNode.removeChild(V.parentNode);X.selection.moveToBookmark(Y)}function G(U){var V=y.dom.getParent(U,"ol,ul");if(V!=null){var W=V.lastChild;W.appendChild(y.getDoc().createElement(""));y.selection.setCursorLocation(W,0)}}this.ed=y;y.addCommand("Indent",this.indent,this);y.addCommand("Outdent",this.outdent,this);y.addCommand("InsertUnorderedList",function(){this.applyList("UL","OL")},this);y.addCommand("InsertOrderedList",function(){this.applyList("OL","UL")},this);y.onInit.add(function(){y.editorCommands.addCommands({outdent:function(){var V=y.selection,W=y.dom;function U(X){X=W.getParent(X,W.isBlock);return X&&(parseInt(y.dom.getStyle(X,"margin-left")||0,10)+parseInt(y.dom.getStyle(X,"padding-left")||0,10))>0}return U(V.getStart())||U(V.getEnd())||y.queryCommandState("InsertOrderedList")||y.queryCommandState("InsertUnorderedList")}},"state")});y.onKeyUp.add(function(V,W){if(x==v){V.execCommand(W.shiftKey?"Outdent":"Indent",true,null);x=N;return r.cancel(W)}else{if(x==s){var U=B();var Y=V.settings.list_outdent_on_enter===true||W.shiftKey;V.execCommand(Y?"Outdent":"Indent",true,null);if(tinymce.isIE){G(U)}return r.cancel(W)}else{if(x==J){if(tinymce.isIE6||tinymce.isIE7||tinymce.isIE8){var X=V.getDoc().createTextNode("\uFEFF");V.selection.getNode().appendChild(X)}else{if(tinymce.isIE9||tinymce.isGecko){V.execCommand("Outdent");return r.cancel(W)}}}}}});function L(V,U){var W=y.getDoc().createTextNode("\uFEFF");V.insertBefore(W,U);y.selection.setCursorLocation(W,0);y.execCommand("mceRepaint")}function R(V,X){if(T(X)){var U=B();if(U){var W=U.parentNode;var Y=W&&W.parentNode;if(Y&&Y.nodeName=="LI"&&Y.firstChild==W&&U==W.firstChild){L(Y,W)}}}}function S(V,X){if(T(X)){var U=B();if(V.dom.select("ul li",U).length===1){var W=U.firstChild;L(U,W)}}}function Q(V,Z){function W(ad,aa){var ac=[];var ae=new tinymce.dom.TreeWalker(aa,ad);for(var ab=ae.current();ab;ab=ae.next()){if(V.dom.is(ab,"ol,ul,li")){ac.push(ab)}}return ac}if(Z.keyCode==tinymce.VK.BACKSPACE){var U=B();if(U){var Y=V.dom.getParent(U,"ol,ul");if(Y&&Y.firstChild===U){var X=W(Y,U);V.execCommand("Outdent",false,X);V.undoManager.add();return r.cancel(Z)}}}}function O(V,X){var U=B();if(X.keyCode===tinymce.VK.BACKSPACE&&V.dom.is(U,"li")&&U.parentNode.firstChild!==U){if(V.dom.select("ul,ol",U).length===1){var Z=U.previousSibling;V.dom.remove(V.dom.select("br",U));V.dom.remove(U,true);var W=tinymce.grep(Z.childNodes,function(aa){return aa.nodeType===3});if(W.length===1){var Y=W[0];V.selection.setCursorLocation(Y,Y.length)}V.undoManager.add();return r.cancel(X)}}}y.onKeyDown.add(function(U,V){x=M(V)});y.onKeyDown.add(D);y.onKeyDown.add(u);y.onKeyDown.add(K);if(tinymce.isGecko){y.onKeyUp.add(R)}if(tinymce.isIE8){y.onKeyUp.add(S)}if(tinymce.isGecko||tinymce.isWebKit){y.onKeyDown.add(Q)}if(tinymce.isWebKit){y.onKeyDown.add(O)}},applyList:function(y,v){var C=this,z=C.ed,I=z.dom,s=[],H=false,u=false,w=false,B,G=z.selection.getSelectedBlocks();function E(t){if(t&&t.tagName==="BR"){I.remove(t)}}function F(M){var N=I.create(y),t;function L(O){if(O.style.marginLeft||O.style.paddingLeft){C.adjustPaddingFunction(false)(O)}}if(M.tagName==="LI"){}else{if(M.tagName==="P"||M.tagName==="DIV"||M.tagName==="BODY"){K(M,function(P,O){J(P,O,M.tagName==="BODY"?null:P.parentNode);t=P.parentNode;L(t);E(O)});if(t){if(t.tagName==="LI"&&(M.tagName==="P"||G.length>1)){I.split(t.parentNode.parentNode,t.parentNode)}m(t.parentNode,true)}return}else{t=I.create("li");I.insertAfter(t,M);t.appendChild(M);L(M);M=t}}I.insertAfter(N,M);N.appendChild(M);m(N,true);s.push(M)}function J(P,L,N){var t,O=P,M;while(!I.isBlock(P.parentNode)&&P.parentNode!==I.getRoot()){P=I.split(P.parentNode,P.previousSibling);P=P.nextSibling;O=P}if(N){t=N.cloneNode(true);P.parentNode.insertBefore(t,P);while(t.firstChild){I.remove(t.firstChild)}t=I.rename(t,"li")}else{t=I.create("li");P.parentNode.insertBefore(t,P)}while(O&&O!=L){M=O.nextSibling;t.appendChild(O);O=M}if(t.childNodes.length===0){t.innerHTML='<br _mce_bogus="1" />'}F(t)}function K(Q,T){var N,R,O=3,L=1,t="br,ul,ol,p,div,h1,h2,h3,h4,h5,h6,table,blockquote,address,pre,form,center,dl";function P(X,U){var V=I.createRng(),W;g.keep=true;z.selection.moveToBookmark(g);g.keep=false;W=z.selection.getRng(true);if(!U){U=X.parentNode.lastChild}V.setStartBefore(X);V.setEndAfter(U);return !(V.compareBoundaryPoints(O,W)>0||V.compareBoundaryPoints(L,W)<=0)}function S(U){if(U.nextSibling){return U.nextSibling}if(!I.isBlock(U.parentNode)&&U.parentNode!==I.getRoot()){return S(U.parentNode)}}N=Q.firstChild;var M=false;e(I.select(t,Q),function(U){if(U.hasAttribute&&U.hasAttribute("_mce_bogus")){return true}if(P(N,U)){I.addClass(U,"_mce_tagged_br");N=S(U)}});M=(N&&P(N,undefined));N=Q.firstChild;e(I.select(t,Q),function(V){var U=S(V);if(V.hasAttribute&&V.hasAttribute("_mce_bogus")){return true}if(I.hasClass(V,"_mce_tagged_br")){T(N,V,R);R=null}else{R=V}N=U});if(M){T(N,undefined,R)}}function D(t){K(t,function(M,L,N){J(M,L);E(L);E(N)})}function A(t){if(tinymce.inArray(s,t)!==-1){return}if(t.parentNode.tagName===v){I.split(t.parentNode,t);F(t);o(t.parentNode,false)}s.push(t)}function x(M){var O,N,L,t;if(tinymce.inArray(s,M)!==-1){return}M=c(M,I);while(I.is(M.parentNode,"ol,ul,li")){I.split(M.parentNode,M)}s.push(M);M=I.rename(M,"p");L=m(M,false,z.settings.force_br_newlines);if(L===M){O=M.firstChild;while(O){if(I.isBlock(O)){O=I.split(O.parentNode,O);t=true;N=O.nextSibling&&O.nextSibling.firstChild}else{N=O.nextSibling;if(t&&O.tagName==="BR"){I.remove(O)}t=false}O=N}}}e(G,function(t){t=k(t,I);if(t.tagName===v||(t.tagName==="LI"&&t.parentNode.tagName===v)){u=true}else{if(t.tagName===y||(t.tagName==="LI"&&t.parentNode.tagName===y)){H=true}else{w=true}}});if(w&&!H||u||G.length===0){B={LI:A,H1:F,H2:F,H3:F,H4:F,H5:F,H6:F,P:F,BODY:F,DIV:G.length>1?F:D,defaultAction:D,elements:this.selectedBlocks()}}else{B={defaultAction:x,elements:this.selectedBlocks()}}this.process(B)},indent:function(){var u=this.ed,w=u.dom,x=[];function s(z){var y=w.create("li",{style:"list-style-type: none;"});w.insertAfter(y,z);return y}function t(B){var y=s(B),D=w.getParent(B,"ol,ul"),C=D.tagName,E=w.getStyle(D,"list-style-type"),A={},z;if(E!==""){A.style="list-style-type: "+E+";"}z=w.create(C,A);y.appendChild(z);return z}function v(z){if(!d(u,z,x)){z=c(z,w);var y=t(z);y.appendChild(z);m(y.parentNode,false);m(y,false);x.push(z)}}this.process({LI:v,defaultAction:this.adjustPaddingFunction(true),elements:this.selectedBlocks()})},outdent:function(y,x){var w=this,u=w.ed,z=u.dom,s=[];function A(t){var C,B,D;if(!d(u,t,s)){if(z.getStyle(t,"margin-left")!==""||z.getStyle(t,"padding-left")!==""){return w.adjustPaddingFunction(false)(t)}D=z.getStyle(t,"text-align",true);if(D==="center"||D==="right"){z.setStyle(t,"text-align","left");return}t=c(t,z);C=t.parentNode;B=t.parentNode.parentNode;if(B.tagName==="P"){z.split(B,t.parentNode)}else{z.split(C,t);if(B.tagName==="LI"){z.split(B,t)}else{if(!z.is(B,"ol,ul")){z.rename(t,"p")}}}s.push(t)}}var v=x&&tinymce.is(x,"array")?x:this.selectedBlocks();this.process({LI:A,defaultAction:this.adjustPaddingFunction(false),elements:v});e(s,m)},process:function(y){var F=this,w=F.ed.selection,z=F.ed.dom,E,u;function B(t){var s=tinymce.grep(t.childNodes,function(H){return !(H.nodeName==="BR"||H.nodeName==="SPAN"&&z.getAttrib(H,"data-mce-type")=="bookmark"||H.nodeType==3&&(H.nodeValue==String.fromCharCode(160)||H.nodeValue==""))});return s.length===0}function x(s){z.removeClass(s,"_mce_act_on");if(!s||s.nodeType!==1||E.length>1&&B(s)){return}s=k(s,z);var t=y[s.tagName];if(!t){t=y.defaultAction}t(s)}function v(s){F.splitSafeEach(s.childNodes,x)}function C(s,t){return t>=0&&s.hasChildNodes()&&t<s.childNodes.length&&s.childNodes[t].tagName==="BR"}function D(){var t=w.getNode();var s=z.getParent(t,"td");return s!==null}E=y.elements;u=w.getRng(true);if(!u.collapsed){if(C(u.endContainer,u.endOffset-1)){u.setEnd(u.endContainer,u.endOffset-1);w.setRng(u)}if(C(u.startContainer,u.startOffset)){u.setStart(u.startContainer,u.startOffset+1);w.setRng(u)}}if(tinymce.isIE8){var G=F.ed.selection.getNode();if(G.tagName==="LI"&&!(G.parentNode.lastChild===G)){var A=F.ed.getDoc().createTextNode("\uFEFF");G.appendChild(A)}}g=w.getBookmark();y.OL=y.UL=v;F.splitSafeEach(E,x);w.moveToBookmark(g);g=null;if(!D()){F.ed.execCommand("mceRepaint")}},splitSafeEach:function(t,s){if(tinymce.isGecko&&(/Firefox\/[12]\.[0-9]/.test(navigator.userAgent)||/Firefox\/3\.[0-4]/.test(navigator.userAgent))){this.classBasedEach(t,s)}else{e(t,s)}},classBasedEach:function(v,u){var w=this.ed.dom,s,t;e(v,function(x){w.addClass(x,"_mce_act_on")});s=w.select("._mce_act_on");while(s.length>0){t=s.shift();w.removeClass(t,"_mce_act_on");u(t);s=w.select("._mce_act_on")}},adjustPaddingFunction:function(u){var s,v,t=this.ed;s=t.settings.indentation;v=/[a-z%]+/i.exec(s);s=parseInt(s,10);return function(w){var y,x;y=parseInt(t.dom.getStyle(w,"margin-left")||0,10)+parseInt(t.dom.getStyle(w,"padding-left")||0,10);if(u){x=y+s}else{x=y-s}t.dom.setStyle(w,"padding-left","");t.dom.setStyle(w,"margin-left",x>0?x+v:"")}},selectedBlocks:function(){var s=this.ed;var t=s.selection.getSelectedBlocks();return t.length==0?[s.dom.getRoot()]:t},getInfo:function(){return{longname:"Lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/lists",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("lists",tinymce.plugins.Lists)}()); \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/media.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/media.js 2012-03-25 22:33:44 UTC (rev 9187) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/media.js 2012-03-25 22:42:00 UTC (rev 9188) @@ -427,24 +427,30 @@ }, getMediaTypeHTML : function(editor) { - function option(media_type){ + function option(media_type, element) { + if (!editor.schema.getElementRule(element || media_type)) { + return ''; + } + return '<option value="'+media_type+'">'+tinyMCEPopup.editor.translate("media_dlg."+media_type)+'</option>' } + var html = ""; + html += '<select id="media_type" name="media_type" onchange="Media.formToData(\'type\');">'; html += option("video"); html += option("audio"); - html += option("flash"); - html += option("quicktime"); - html += option("shockwave"); - html += option("windowsmedia"); - html += option("realmedia"); + html += option("flash", "object"); + html += option("quicktime", "object"); + html += option("shockwave", "object"); + html += option("windowsmedia", "object"); + html += option("realmedia", "object"); html += option("iframe"); if (editor.getParam('media_embedded_audio', false)) { - html += option('embeddedaudio'); + html += option('embeddedaudio', "object"); } - + html += '</select>'; return html; }, Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/props.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/props.js 2012-03-25 22:33:44 UTC (rev 9187) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/props.js 2012-03-25 22:42:00 UTC (rev 9188) @@ -144,6 +144,8 @@ f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); + f.text_none.checked = inStr(ce.style.textDecoration, 'none'); + updateTextDecorations(); // Setup background fields @@ -632,4 +634,17 @@ selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value); } +function updateTextDecorations(){ + var el = document.forms[0].elements; + + var textDecorations = ["text_underline", "text_overline", "text_linethrough", "text_blink"]; + var noneChecked = el["text_none"].checked; + tinymce.each(textDecorations, function(id) { + el[id].disabled = noneChecked; + if (noneChecked) { + el[id].checked = false; + } + }); +} + tinyMCEPopup.onInit.add(init); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/props.htm =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/props.htm 2012-03-25 22:33:44 UTC (rev 9187) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/props.htm 2012-03-25 22:42:00 UTC (rev 9188) @@ -118,7 +118,7 @@ <td><label for="text_blink">{#style_dlg.text_blink}</label></td> </tr> <tr> - <td><input id="text_none" name="text_none" class="checkbox" type="checkbox" /></td> + <td><input id="text_none" name="text_none" class="checkbox" type="checkbox" onclick="updateTextDecorations();"/></td> <td><label for="text_none">{#style_dlg.text_none}</label></td> </tr> </table> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js 2012-03-25 22:33:44 UTC (rev 9187) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js 2012-03-25 22:42:00 UTC (rev 9188) @@ -1 +1 @@ -(function(d){var e=d.each;function c(g,h){var j=h.ownerDocument,f=j.createRange(),k;f.setStartBefore(h);f.setEnd(g.endContainer,g.endOffset);k=j.createElement("body");k.appendChild(f.cloneContents());return k.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}function a(g,f){return parseInt(g.getAttribute(f)||1)}function b(H,G,K){var g,L,D,o;t();o=G.getParent(K.getStart(),"th,td");if(o){L=F(o);D=I();o=z(L.x,L.y)}function A(N,M){N=N.cloneNode(M);N.removeAttribute("id");return N}function t(){var M=0;g=[];e(["thead","tbody","tfoot"],function(N){var O=G.select("> "+N+" tr",H);e(O,function(P,Q){Q+=M;e(G.select("> td, > th",P),function(W,R){var S,T,U,V;if(g[Q]){while(g[Q][R]){R++}}U=a(W,"rowspan");V=a(W,"colspan");for(T=Q;T<Q+U;T++){if(!g[T]){g[T]=[]}for(S=R;S<R+V;S++){g[T][S]={part:N,real:T==Q&&S==R,elm:W,rowspan:U,colspan:V}}}})});M+=O.length})}function z(M,O){var N;N=g[O];if(N){return N[M]}}function s(O,M,N){if(O){N=parseInt(N);if(N===1){O.removeAttribute(M,1)}else{O.setAttribute(M,N,1)}}}function j(M){return M&&(G.hasClass(M.elm,"mceSelected")||M==o)}function k(){var M=[];e(H.rows,function(N){e(N.cells,function(O){if(G.hasClass(O,"mceSelected")||O==o.elm){M.push(N);return false}})});return M}function r(){var M=G.createRng();M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H)}function f(M){var N;d.walk(M,function(P){var O;if(P.nodeType==3){e(G.getParents(P.parentNode,null,M).reverse(),function(Q){Q=A(Q,false);if(!N){N=O=Q}else{if(O){O.appendChild(Q)}}O=Q});if(O){O.innerHTML=d.isIE?" ":'<br data-mce-bogus="1" />'}return false}},"childNodes");M=A(M,false);s(M,"rowSpan",1);s(M,"colSpan",1);if(N){M.appendChild(N)}else{if(!d.isIE){M.innerHTML='<br data-mce-bogus="1" />'}}return M}function q(){var M=G.createRng();e(G.select("tr",H),function(N){if(N.cells.length==0){G.remove(N)}});if(G.select("tr",H).length==0){M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H);return}e(G.select("thead,tbody,tfoot",H),function(N){if(N.rows.length==0){G.remove(N)}});t();row=g[Math.min(g.length-1,L.y)];if(row){K.select(row[Math.min(row.length-1,L.x)].elm,true);K.collapse(true)}}function u(S,Q,U,R){var P,N,M,O,T;P=g[Q][S].elm.parentNode;for(M=1;M<=U;M++){P=G.getNext(P,"tr");if(P){for(N=S;N>=0;N--){T=g[Q+M][N].elm;if(T.parentNode==P){for(O=1;O<=R;O++){G.insertAfter(f(T),T)}break}}if(N==-1){for(O=1;O<=R;O++){P.insertBefore(f(P.cells[0]),P.cells[0])}}}}}function C(){e(g,function(M,N){e(M,function(P,O){var S,R,T,Q;if(j(P)){P=P.elm;S=a(P,"colspan");R=a(P,"rowspan");if(S>1||R>1){s(P,"rowSpan",1);s(P,"colSpan",1);for(Q=0;Q<S-1;Q++){G.insertAfter(f(P),P)}u(O,N,R-1,S)}}})})}function p(V,S,Y){var P,O,X,W,U,R,T,M,V,N,Q;if(V){pos=F(V);P=pos.x;O=pos.y;X=P+(S-1);W=O+(Y-1)}else{P=L.x;O=L.y;X=D.x;W=D.y}T=z(P,O);M=z(X,W);if(T&&M&&T.part==M.part){C();t();T=z(P,O).elm;s(T,"colSpan",(X-P)+1);s(T,"rowSpan",(W-O)+1);for(R=O;R<=W;R++){for(U=P;U<=X;U++){if(!g[R]||!g[R][U]){continue}V=g[R][U].elm;if(V!=T){N=d.grep(V.childNodes);e(N,function(Z){T.appendChild(Z)});if(N.length){N=d.grep(T.childNodes);Q=0;e(N,function(Z){if(Z.nodeName=="BR"&&G.getAttrib(Z,"data-mce-bogus")&&Q++<N.length-1){T.removeChild(Z)}})}G.remove(V)}}}q()}}function l(Q){var M,S,P,R,T,U,N,V,O;e(g,function(W,X){e(W,function(Z,Y){if(j(Z)){Z=Z.elm;T=Z.parentNode;U=A(T,false);M=X;if(Q){return false}}});if(Q){return !M}});for(R=0;R<g[0].length;R++){if(!g[M][R]){continue}S=g[M][R].elm;if(S!=P){if(!Q){O=a(S,"rowspan");if(O>1){s(S,"rowSpan",O+1);continue}}else{if(M>0&&g[M-1][R]){V=g[M-1][R].elm;O=a(V,"rowSpan");if(O>1){s(V,"rowSpan",O+1);continue}}}N=f(S);s(N,"colSpan",S.colSpan);U.appendChild(N);P=S}}if(U.hasChildNodes()){if(!Q){G.insertAfter(U,T)}else{T.parentNode.insertBefore(U,T)}}}function h(N){var O,M;e(g,function(P,Q){e(P,function(S,R){if(j(S)){O=R;if(N){return false}}});if(N){return !O}});e(g,function(S,T){var P,Q,R;if(!S[O]){return}P=S[O].elm;if(P!=M){R=a(P,"colspan");Q=a(P,"rowspan");if(R==1){if(!N){G.insertAfter(f(P),P);u(O,T,Q-1,R)}else{P.parentNode.insertBefore(f(P),P);u(O,T,Q-1,R)}}else{s(P,"colSpan",P.colSpan+1)}M=P}})}function n(){var M=[];e(g,function(N,O){e(N,function(Q,P){if(j(Q)&&d.inArray(M,P)===-1){e(g,function(T){var R=T[P].elm,S;S=a(R,"colSpan");if(S>1){s(R,"colSpan",S-1)}else{G.remove(R)}});M.push(P)}})});q()}function m(){var N;function M(Q){var P,R,O;P=G.getNext(Q,"tr");e(Q.cells,function(S){var T=a(S,"rowSpan");if(T>1){s(S,"rowSpan",T-1);R=F(S);u(R.x,R.y,1,1)}});R=F(Q.cells[0]);e(g[R.y],function(S){var T;S=S.elm;if(S!=O){T=a(S,"rowSpan");if(T<=1){G.remove(S)}else{s(S,"rowSpan",T-1)}O=S}})}N=k();e(N.reverse(),function(O){M(O)});q()}function E(){var M=k();G.remove(M);q();return M}function J(){var M=k();e(M,function(O,N){M[N]=A(O,true)});return M}function B(O,N){var P=k(),M=P[N?0:P.length-1],Q=M.cells.length;e(g,function(S){var R;Q=0;e(S,function(U,T){if(U.real){Q+=U.colspan}if(U.elm.parentNode==M){R=1}});if(R){return false}});if(!N){O.reverse()}e(O,function(T){var S=T.cells.length,R;for(i=0;i<S;i++){R=T.cells[i];s(R,"colSpan",1);s(R,"rowSpan",1)}for(i=S;i<Q;i++){T.appendChild(f(T.cells[S-1]))}for(i=Q;i<S;i++){G.remove(T.cells[i])}if(N){M.parentNode.insertBefore(T,M)}else{G.insertAfter(T,M)}})}function F(M){var N;e(g,function(O,P){e(O,function(R,Q){if(R.elm==M){N={x:Q,y:P};return false}});return !N});return N}function w(M){L=F(M)}function I(){var O,N,M;N=M=0;e(g,function(P,Q){e(P,function(S,R){var U,T;if(j(S)){S=g[Q][R];if(R>N){N=R}if(Q>M){M=Q}if(S.real){U=S.colspan-1;T=S.rowspan-1;if(U){if(R+U>N){N=R+U}}if(T){if(Q+T>M){M=Q+T}}}}})});return{x:N,y:M}}function v(S){var P,O,U,T,N,M,Q,R;D=F(S);if(L&&D){P=Math.min(L.x,D.x);O=Math.min(L.y,D.y);U=Math.max(L.x,D.x);T=Math.max(L.y,D.y);N=U;M=T;for(y=O;y<=M;y++){S=g[y][P];if(!S.real){if(P-(S.colspan-1)<P){P-=S.colspan-1}}}for(x=P;x<=N;x++){S=g[O][x];if(!S.real){if(O-(S.rowspan-1)<O){O-=S.rowspan-1}}}for(y=O;y<=T;y++){for(x=P;x<=U;x++){S=g[y][x];if(S.real){Q=S.colspan-1;R=S.rowspan-1;if(Q){if(x+Q>N){N=x+Q}}if(R){if(y+R>M){M=y+R}}}}}G.removeClass(G.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=O;y<=M;y++){for(x=P;x<=N;x++){if(g[y][x]){G.addClass(g[y][x].elm,"mceSelected")}}}}}d.extend(this,{deleteTable:r,split:C,merge:p,insertRow:l,insertCol:h,deleteCols:n,deleteRows:m,cutRows:E,copyRows:J,pasteRows:B,getPos:F,setStartCell:w,setEndCell:v})}d.create("tinymce.plugins.TablePlugin",{init:function(g,h){var f,m,j=true;function l(p){var o=g.selection,n=g.dom.getParent(p||o.getNode(),"table");if(n){return new b(n,g.dom,o)}}function k(){g.getBody().style.webkitUserSelect="";if(j){g.dom.removeClass(g.dom.select("td.mceSelected,th.mceSelected"),"mceSelected");j=false}}e([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(n){g.addButton(n[0],{title:n[1],cmd:n[2],ui:n[3]})});if(!d.isIE){g.onClick.add(function(n,o){o=o.target;if(o.nodeName==="TABLE"){n.selection.select(o);n.nodeChanged()}})}g.onPreProcess.add(function(o,p){var n,q,r,t=o.dom,s;n=t.select("table",p.node);q=n.length;while(q--){r=n[q];t.setAttrib(r,"data-mce-style","");if((s=t.getAttrib(r,"width"))){t.setStyle(r,"width",s);t.setAttrib(r,"width","")}if((s=t.getAttrib(r,"height"))){t.setStyle(r,"height",s);t.setAttrib(r,"height","")}}});g.onNodeChange.add(function(q,o,s){var r;s=q.selection.getStart();r=q.dom.getParent(s,"td,th,caption");o.setActive("table",s.nodeName==="TABLE"||!!r);if(r&&r.nodeName==="CAPTION"){r=0}o.setDisabled("delete_table",!r);o.setDisabled("delete_col",!r);o.setDisabled("delete_table",!r);o.setDisabled("delete_row",!r);o.setDisabled("col_after",!r);o.setDisabled("col_before",!r);o.setDisabled("row_after",!r);o.setDisabled("row_before",!r);o.setDisabled("row_props",!r);o.setDisabled("cell_props",!r);o.setDisabled("split_cells",!r);o.setDisabled("merge_cells",!r)});g.onInit.add(function(r){var p,t,q=r.dom,u;f=r.windowManager;r.onMouseDown.add(function(w,z){if(z.button!=2){k();t=q.getParent(z.target,"td,th");p=q.getParent(t,"table")}});q.bind(r.getDoc(),"mouseover",function(C){var A,z,B=C.target;if(t&&(u||B!=t)&&(B.nodeName=="TD"||B.nodeName=="TH")){z=q.getParent(B,"table");if(z==p){if(!u){u=l(z);u.setStartCell(t);r.getBody().style.webkitUserSelect="none"}u.setEndCell(B);j=true}A=r.selection.getSel();try{if(A.removeAllRanges){A.removeAllRanges()}else{A.empty()}}catch(w){}C.preventDefault()}});r.onMouseUp.add(function(F,G){var z,B=F.selection,H,I=B.getSel(),w,C,A,E;if(t){if(u){F.getBody().style.webkitUserSelect=""}function D(J,L){var K=new d.dom.TreeWalker(J,J);do{if(J.nodeType==3&&d.trim(J.nodeValue).length!=0){if(L){z.setStart(J,0)}else{z.setEnd(J,J.nodeValue.length)}return}if(J.nodeName=="BR"){if(L){z.setStartBefore(J)}else{z.setEndBefore(J)}return}}while(J=(L?K.next():K.prev()))}H=q.select("td.mceSelected,th.mceSelected");if(H.length>0){z=q.createRng();C=H[0];E=H[H.length-1];z.setStartBefore(C);z.setEndAfter(C);D(C,1);w=new d.dom.TreeWalker(C,q.getParent(H[0],"table"));do{if(C.nodeName=="TD"||C.nodeName=="TH"){if(!q.hasClass(C,"mceSelected")){break}A=C}}while(C=w.next());D(A);B.setRng(z)}F.nodeChanged();t=u=p=null}});r.onKeyUp.add(function(w,z){k()});r.onKeyDown.add(function(w,z){n(w)});r.onMouseDown.add(function(w,z){if(z.button!=2){n(w)}});function o(D,z,A,F){var B=3,G=D.dom.getParent(z.startContainer,"TABLE"),C,w,E;if(G){C=G.parentNode}w=z.startContainer.nodeType==B&&z.startOffset==0&&z.endOffset==0&&F&&(A.nodeName=="TR"||A==C);E=(A.nodeName=="TD"||A.nodeName=="TH")&&!F;return w||E}function n(A){if(!d.isWebKit){return}var z=A.selection.getRng();var C=A.selection.getNode();var B=A.dom.getParent(z.startContainer,"TD,TH");if(!o(A,z,C,B)){return}if(!B){B=C}var w=B.lastChild;while(w.lastChild){w=w.lastChild}z.setEnd(w,w.nodeValue.length);A.selection.setRng(z)}r.plugins.table.fixTableCellSelection=n;if(r&&r.plugins.contextmenu){r.plugins.contextmenu.onContextMenu.add(function(A,w,C){var D,B=r.selection,z=B.getNode()||r.getBody();if(r.dom.getParent(C,"td")||r.dom.getParent(C,"th")||r.dom.select("td.mceSelected,th.mceSelected").length){w.removeAll();if(z.nodeName=="A"&&!r.dom.getAttrib(z,"name")){w.add({title:"advanced.link_desc",icon:"link",cmd:r.plugins.advlink?"mceAdvLink":"mceLink",ui:true});w.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});w.addSeparator()}if(z.nodeName=="IMG"&&z.className.indexOf("mceItem")==-1){w.add({title:"advanced.image_desc",icon:"image",cmd:r.plugins.advimage?"mceAdvImage":"mceImage",ui:true});w.addSeparator()}w.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});w.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});w.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});w.addSeparator();D=w.addMenu({title:"table.cell"});D.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});D.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});D.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});D=w.addMenu({title:"table.row"});D.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});D.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});D.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});D.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});D.addSeparator();D.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});D.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});D.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!m);D.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!m);D=w.addMenu({title:"table.col"});D.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});D.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});D.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{w.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(d.isWebKit){function v(C,N){var L=d.VK;var Q=N.keyCode;function O(Y,U,S){var T=Y?"previousSibling":"nextSibling";var Z=C.dom.getParent(U,"tr");var X=Z[T];if(X){z(C,U,X,Y);d.dom.Event.cancel(S);return true}else{var aa=C.dom.getParent(Z,"table");var W=Z.parentNode;var R=W.nodeName.toLowerCase();if(R==="tbody"||R===(Y?"tfoot":"thead")){var V=w(Y,aa,W,"tbody");if(V!==null){return K(Y,V,U,S)}}return M(Y,Z,T,aa,S)}}function w(V,T,U,X){var S=C.dom.select(">"+X,T);var R=S.indexOf(U);if(V&&R===0||!V&&R===S.length-1){return B(V,T)}else{if(R===-1){var W=U.tagName.toLowerCase()==="thead"?0:S.length-1;return S[W]}else{return S[R+(V?-1:1)]}}}function B(U,T){var S=U?"thead":"tfoot";var R=C.dom.select(">"+S,T);return R.length!==0?R[0]:null}function K(V,T,S,U){var R=J(T,V);R&&z(C,S,R,V);d.dom.Event.cancel(U);return true}function M(Y,U,R,X,W){var S=X[R];if(S){F(S);return true}else{var V=C.dom.getParent(X,"td,th");if(V){return O(Y,V,W)}else{var T=J(U,!Y);F(T);return d.dom.Event.cancel(W)}}}function J(S,R){return S&&S[R?"lastChild":"firstChild"]}function F(R){C.selection.setCursorLocation(R,0)}function A(){return Q==L.UP||Q==L.DOWN}function D(R){var T=R.selection.getNode();var S=R.dom.getParent(T,"tr");return S!==null}function P(S){var R=0;var T=S;while(T.previousSibling){T=T.previousSibling;R=R+a(T,"colspan")}return R}function E(T,R){var U=0;var S=0;e(T.children,function(V,W){U=U+a(V,"colspan");S=W;if(U>R){return false}});return S}function z(T,W,Y,V){var X=P(T.dom.getParent(W,"td,th"));var S=E(Y,X);var R=Y.childNodes[S];var U=J(R,V);F(U||R)}function H(R){var T=C.selection.getNode();var U=C.dom.getParent(T,"td,th");var S=C.dom.getParent(R,"td,th");return U&&U!==S&&I(U,S)}function I(S,R){return C.dom.getParent(S,"TABLE")===C.dom.getParent(R,"TABLE")}if(A()&&D(C)){var G=C.selection.getNode();setTimeout(function(){if(H(G)){O(!N.shiftKey&&Q===L.UP,G,N)}},0)}}r.onKeyDown.add(v)}if(!d.isIE){function s(){var w;for(w=r.getBody().lastChild;w&&w.nodeType==3&&!w.nodeValue.length;w=w.previousSibling){}if(w&&w.nodeName=="TABLE"){r.dom.add(r.getBody(),"p",null,'<br mce_bogus="1" />')}}if(d.isGecko){r.onKeyDown.add(function(z,B){var w,A,C=z.dom;if(B.keyCode==37||B.keyCode==38){w=z.selection.getRng();A=C.getParent(w.startContainer,"table");if(A&&z.getBody().firstChild==A){if(c(w,A)){w=C.createRng();w.setStartBefore(A);w.setEndBefore(A);z.selection.setRng(w);B.preventDefault()}}}})}r.onKeyUp.add(s);r.onSetContent.add(s);r.onVisualAid.add(s);r.onPreProcess.add(function(w,A){var z=A.node.lastChild;if(z&&z.childNodes.length==1&&z.firstChild.nodeName=="BR"){w.dom.remove(z)}});s();r.startContent=r.getContent({format:"raw"})}});e({mceTableSplitCells:function(n){n.split()},mceTableMergeCells:function(o){var p,q,n;n=g.dom.getParent(g.selection.getNode(),"th,td");if(n){p=n.rowSpan;q=n.colSpan}if(!g.dom.select("td.mceSelected,th.mceSelected").length){f.open({url:h+"/merge_cells.htm",width:240+parseInt(g.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(g.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:p,cols:q,onaction:function(r){o.merge(n,r.cols,r.rows)},plugin_url:h})}else{o.merge()}},mceTableInsertRowBefore:function(n){n.insertRow(true)},mceTableInsertRowAfter:function(n){n.insertRow()},mceTableInsertColBefore:function(n){n.insertCol(true)},mceTableInsertColAfter:function(n){n.insertCol()},mceTableDeleteCol:function(n){n.deleteCols()},mceTableDeleteRow:function(n){n.deleteRows()},mceTableCutRow:function(n){m=n.cutRows()},mceTableCopyRow:function(n){m=n.copyRows()},mceTablePasteRowBefore:function(n){n.pasteRows(m,true)},mceTablePasteRowAfter:function(n){n.pasteRows(m)},mceTableDelete:function(n){n.deleteTable()}},function(o,n){g.addCommand(n,function(){var p=l();if(p){o(p);g.execCommand("mceRepaint");k()}})});e({mceInsertTable:function(n){f.open({url:h+"/table.htm",width:400+parseInt(g.getLang("table.table_delta_width",0)),height:320+parseInt(g.getLang("table.table_delta_height",0)),inline:1},{plugin_url:h,action:n?n.action:0})},mceTableRowProps:function(){f.open({url:h+"/row.htm",width:400+parseInt(g.getLang("table.rowprops_delta_width",0)),height:295+parseInt(g.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:h})},mceTableCellProps:function(){f.open({url:h+"/cell.htm",width:400+parseInt(g.getLang("table.cellprops_delta_width",0)),height:295+parseInt(g.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:h})}},function(o,n){g.addCommand(n,function(p,q){o(q)})})}});d.PluginManager.add("table",d.plugins.TablePlugin)})(tinymce); \ No newline at end of file +(function(d){var e=d.each;function c(g,h){var j=h.ownerDocument,f=j.createRange(),k;f.setStartBefore(h);f.setEnd(g.endContainer,g.endOffset);k=j.createElement("body");k.appendChild(f.cloneContents());return k.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}function a(g,f){return parseInt(g.getAttribute(f)||1)}function b(H,G,K){var g,L,D,o;t();o=G.getParent(K.getStart(),"th,td");if(o){L=F(o);D=I();o=z(L.x,L.y)}function A(N,M){N=N.cloneNode(M);N.removeAttribute("id");return N}function t(){var M=0;g=[];e(["thead","tbody","tfoot"],function(N){var O=G.select("> "+N+" tr",H);e(O,function(P,Q){Q+=M;e(G.select("> td, > th",P),function(W,R){var S,T,U,V;if(g[Q]){while(g[Q][R]){R++}}U=a(W,"rowspan");V=a(W,"colspan");for(T=Q;T<Q+U;T++){if(!g[T]){g[T]=[]}for(S=R;S<R+V;S++){g[T][S]={part:N,real:T==Q&&S==R,elm:W,rowspan:U,colspan:V}}}})});M+=O.length})}function z(M,O){var N;N=g[O];if(N){return N[M]}}function s(O,M,N){if(O){N=parseInt(N);if(N===1){O.removeAttribute(M,1)}else{O.setAttribute(M,N,1)}}}function j(M){return M&&(G.hasClass(M.elm,"mceSelected")||M==o)}function k(){var M=[];e(H.rows,function(N){e(N.cells,function(O){if(G.hasClass(O,"mceSelected")||O==o.elm){M.push(N);return false}})});return M}function r(){var M=G.createRng();M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H)}function f(M){var N;d.walk(M,function(P){var O;if(P.nodeType==3){e(G.getParents(P.parentNode,null,M).reverse(),function(Q){Q=A(Q,false);if(!N){N=O=Q}else{if(O){O.appendChild(Q)}}O=Q});if(O){O.innerHTML=d.isIE?" ":'<br data-mce-bogus="1" />'}return false}},"childNodes");M=A(M,false);s(M,"rowSpan",1);s(M,"colSpan",1);if(N){M.appendChild(N)}else{if(!d.isIE){M.innerHTML='<br data-mce-bogus="1" />'}}return M}function q(){var M=G.createRng();e(G.select("tr",H),function(N){if(N.cells.length==0){G.remove(N)}});if(G.select("tr",H).length==0){M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H);return}e(G.select("thead,tbody,tfoot",H),function(N){if(N.rows.length==0){G.remove(N)}});t();row=g[Math.min(g.length-1,L.y)];if(row){K.select(row[Math.min(row.length-1,L.x)].elm,true);K.collapse(true)}}function u(S,Q,U,R){var P,N,M,O,T;P=g[Q][S].elm.parentNode;for(M=1;M<=U;M++){P=G.getNext(P,"tr");if(P){for(N=S;N>=0;N--){T=g[Q+M][N].elm;if(T.parentNode==P){for(O=1;O<=R;O++){G.insertAfter(f(T),T)}break}}if(N==-1){for(O=1;O<=R;O++){P.insertBefore(f(P.cells[0]),P.cells[0])}}}}}function C(){e(g,function(M,N){e(M,function(P,O){var S,R,T,Q;if(j(P)){P=P.elm;S=a(P,"colspan");R=a(P,"rowspan");if(S>1||R>1){s(P,"rowSpan",1);s(P,"colSpan",1);for(Q=0;Q<S-1;Q++){G.insertAfter(f(P),P)}u(O,N,R-1,S)}}})})}function p(V,S,Y){var P,O,X,W,U,R,T,M,V,N,Q;if(V){pos=F(V);P=pos.x;O=pos.y;X=P+(S-1);W=O+(Y-1)}else{P=L.x;O=L.y;X=D.x;W=D.y}T=z(P,O);M=z(X,W);if(T&&M&&T.part==M.part){C();t();T=z(P,O).elm;s(T,"colSpan",(X-P)+1);s(T,"rowSpan",(W-O)+1);for(R=O;R<=W;R++){for(U=P;U<=X;U++){if(!g[R]||!g[R][U]){continue}V=g[R][U].elm;if(V!=T){N=d.grep(V.childNodes);e(N,function(Z){T.appendChild(Z)});if(N.length){N=d.grep(T.childNodes);Q=0;e(N,function(Z){if(Z.nodeName=="BR"&&G.getAttrib(Z,"data-mce-bogus")&&Q++<N.length-1){T.removeChild(Z)}})}G.remove(V)}}}q()}}function l(Q){var M,S,P,R,T,U,N,V,O;e(g,function(W,X){e(W,function(Z,Y){if(j(Z)){Z=Z.elm;T=Z.parentNode;U=A(T,false);M=X;if(Q){return false}}});if(Q){return !M}});for(R=0;R<g[0].length;R++){if(!g[M][R]){continue}S=g[M][R].elm;if(S!=P){if(!Q){O=a(S,"rowspan");if(O>1){s(S,"rowSpan",O+1);continue}}else{if(M>0&&g[M-1][R]){V=g[M-1][R].elm;O=a(V,"rowSpan");if(O>1){s(V,"rowSpan",O+1);continue}}}N=f(S);s(N,"colSpan",S.colSpan);U.appendChild(N);P=S}}if(U.hasChildNodes()){if(!Q){G.insertAfter(U,T)}else{T.parentNode.insertBefore(U,T)}}}function h(N){var O,M;e(g,function(P,Q){e(P,function(S,R){if(j(S)){O=R;if(N){return false}}});if(N){return !O}});e(g,function(S,T){var P,Q,R;if(!S[O]){return}P=S[O].elm;if(P!=M){R=a(P,"colspan");Q=a(P,"rowspan");if(R==1){if(!N){G.insertAfter(f(P),P);u(O,T,Q-1,R)}else{P.parentNode.insertBefore(f(P),P);u(O,T,Q-1,R)}}else{s(P,"colSpan",P.colSpan+1)}M=P}})}function n(){var M=[];e(g,function(N,O){e(N,function(Q,P){if(j(Q)&&d.inArray(M,P)===-1){e(g,function(T){var R=T[P].elm,S;S=a(R,"colSpan");if(S>1){s(R,"colSpan",S-1)}else{G.remove(R)}});M.push(P)}})});q()}function m(){var N;function M(Q){var P,R,O;P=G.getNext(Q,"tr");e(Q.cells,function(S){var T=a(S,"rowSpan");if(T>1){s(S,"rowSpan",T-1);R=F(S);u(R.x,R.y,1,1)}});R=F(Q.cells[0]);e(g[R.y],function(S){var T;S=S.elm;if(S!=O){T=a(S,"rowSpan");if(T<=1){G.remove(S)}else{s(S,"rowSpan",T-1)}O=S}})}N=k();e(N.reverse(),function(O){M(O)});q()}function E(){var M=k();G.remove(M);q();return M}function J(){var M=k();e(M,function(O,N){M[N]=A(O,true)});return M}function B(O,N){var P=k(),M=P[N?0:P.length-1],Q=M.cells.length;e(g,function(S){var R;Q=0;e(S,function(U,T){if(U.real){Q+=U.colspan}if(U.elm.parentNode==M){R=1}});if(R){return false}});if(!N){O.reverse()}e(O,function(T){var S=T.cells.length,R;for(i=0;i<S;i++){R=T.cells[i];s(R,"colSpan",1);s(R,"rowSpan",1)}for(i=S;i<Q;i++){T.appendChild(f(T.cells[S-1]))}for(i=Q;i<S;i++){G.remove(T.cells[i])}if(N){M.parentNode.insertBefore(T,M)}else{G.insertAfter(T,M)}})}function F(M){var N;e(g,function(O,P){e(O,function(R,Q){if(R.elm==M){N={x:Q,y:P};return false}});return !N});return N}function w(M){L=F(M)}function I(){var O,N,M;N=M=0;e(g,function(P,Q){e(P,function(S,R){var U,T;if(j(S)){S=g[Q][R];if(R>N){N=R}if(Q>M){M=Q}if(S.real){U=S.colspan-1;T=S.rowspan-1;if(U){if(R+U>N){N=R+U}}if(T){if(Q+T>M){M=Q+T}}}}})});return{x:N,y:M}}function v(S){var P,O,U,T,N,M,Q,R;D=F(S);if(L&&D){P=Math.min(L.x,D.x);O=Math.min(L.y,D.y);U=Math.max(L.x,D.x);T=Math.max(L.y,D.y);N=U;M=T;for(y=O;y<=M;y++){S=g[y][P];if(!S.real){if(P-(S.colspan-1)<P){P-=S.colspan-1}}}for(x=P;x<=N;x++){S=g[O][x];if(!S.real){if(O-(S.rowspan-1)<O){O-=S.rowspan-1}}}for(y=O;y<=T;y++){for(x=P;x<=U;x++){S=g[y][x];if(S.real){Q=S.colspan-1;R=S.rowspan-1;if(Q){if(x+Q>N){N=x+Q}}if(R){if(y+R>M){M=y+R}}}}}G.removeClass(G.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=O;y<=M;y++){for(x=P;x<=N;x++){if(g[y][x]){G.addClass(g[y][x].elm,"mceSelected")}}}}}d.extend(this,{deleteTable:r,split:C,merge:p,insertRow:l,insertCol:h,deleteCols:n,deleteRows:m,cutRows:E,copyRows:J,pasteRows:B,getPos:F,setStartCell:w,setEndCell:v})}d.create("tinymce.plugins.TablePlugin",{init:function(g,h){var f,m,j=true;function l(p){var o=g.selection,n=g.dom.getParent(p||o.getNode(),"table");if(n){return new b(n,g.dom,o)}}function k(){g.getBody().style.webkitUserSelect="";if(j){g.dom.removeClass(g.dom.select("td.mceSelected,th.mceSelected"),"mceSelected");j=false}}e([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(n){g.addButton(n[0],{title:n[1],cmd:n[2],ui:n[3]})});if(!d.isIE){g.onClick.add(function(n,o){o=o.target;if(o.nodeName==="TABLE"){n.selection.select(o);n.nodeChanged()}})}g.onPreProcess.add(function(o,p){var n,q,r,t=o.dom,s;n=t.select("table",p.node);q=n.length;while(q--){r=n[q];t.setAttrib(r,"data-mce-style","");if((s=t.getAttrib(r,"width"))){t.setStyle(r,"width",s);t.setAttrib(r,"width","")}if((s=t.getAttrib(r,"height"))){t.setStyle(r,"height",s);t.setAttrib(r,"height","")}}});g.onNodeChange.add(function(q,o,s){var r;s=q.selection.getStart();r=q.dom.getParent(s,"td,th,caption");o.setActive("table",s.nodeName==="TABLE"||!!r);if(r&&r.nodeName==="CAPTION"){r=0}o.setDisabled("delete_table",!r);o.setDisabled("delete_col",!r);o.setDisabled("delete_table",!r);o.setDisabled("delete_row",!r);o.setDisabled("col_after",!r);o.setDisabled("col_before",!r);o.setDisabled("row_after",!r);o.setDisabled("row_before",!r);o.setDisabled("row_props",!r);o.setDisabled("cell_props",!r);o.setDisabled("split_cells",!r);o.setDisabled("merge_cells",!r)});g.onInit.add(function(r){var p,t,q=r.dom,u;f=r... [truncated message content] |
From: <be...@us...> - 2012-03-25 22:33:50
|
Revision: 9187 http://xoops.svn.sourceforge.net/xoops/?rev=9187&view=rev Author: beckmi Date: 2012-03-25 22:33:44 +0000 (Sun, 25 Mar 2012) Log Message: ----------- - Adding "xoops_lib/modules/protector/configs/" to list of writable directories in Install Wizard and Release Notes - updating Changelog Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/install/include/config.php XoopsCore/branches/2.5.x/2.5.5/release_notes.txt 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-25 16:35:47 UTC (rev 9186) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-25 22:33:44 UTC (rev 9187) @@ -5,13 +5,18 @@ =============================== Bugfixes: - adding missing check for local timezone (XavierS) - - ID: 3494895: When changing the # of visible entries, it goes to Admin (jcweb/mamba) + - ID: 3494895 When changing the # of visible entries, it goes to Admin (jcweb/mamba) + - ID: 3494894 Calendar shows 40 days (peekay/mage) + - ID: 3494896 Image Manager category creation restrictions (voltan/mage) + - ID: 3494893 PM Messages deleted from Saved box (Danielw42/mage) + - ID: 3501897 Protector errors (cesag/XavierS) Improved: - replacing "msnbot" with "bingbot" in Protector (mamba) Updated: - HTML Purifier to 4.4.0 (mamba) + - TinyMCE to 3.4.9 (mamba) =============================== 2011/02/19: Version 2.5.5 Beta Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/install/include/config.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/install/include/config.php 2012-03-25 16:35:47 UTC (rev 9186) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/install/include/config.php 2012-03-25 22:33:44 UTC (rev 9187) @@ -50,7 +50,7 @@ ); // Writable files and directories -$configs['writable'] = array('uploads/', 'uploads/avatars/', 'uploads/images/', 'uploads/ranks/', 'uploads/smilies/', 'mainfile.php', 'include/license.php'); +$configs['writable'] = array('uploads/', 'uploads/avatars/', 'uploads/images/', 'uploads/ranks/', 'uploads/smilies/','xoops_lib/modules/protector/configs/', 'mainfile.php', 'include/license.php'); // Modules to be installed by default $configs['modules'] = array(); Modified: XoopsCore/branches/2.5.x/2.5.5/release_notes.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/release_notes.txt 2012-03-25 16:35:47 UTC (rev 9186) +++ XoopsCore/branches/2.5.x/2.5.5/release_notes.txt 2012-03-25 22:33:44 UTC (rev 9187) @@ -35,7 +35,11 @@ ----------------------------------- 1. Copy the content of the htdocs/ folder where it can be accessed by your server - 2. Ensure mainfile.php and uploads/ are writable by the web server + 2. Ensure that directories: + - uploads/', 'uploads/avatars/', 'uploads/images/', 'uploads/ranks/', 'uploads/smilies/','xoops_lib/modules/protector/configs/ + and files: + - mainfile.php and include/license.php + are writable by the web server 3. For security considerations, you are encouraged to move directories "/xoops_lib" (for XOOPS libraries) and "/xoops_data" (for XOOPS data) out of Document Root, and change the folder names. 4. Make the directory xoops_data/ writable; Create (if not already present) and make the directories xoops_data/caches/, xoops_data/caches/xoops_cache/, xoops_data/caches/smarty_cache/ and xoops_data/caches/smarty_compile/ writable. 5. Access the folder where you installed the htdocs/ files using your web browser to launch the installation wizard This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-03-25 16:35:54
|
Revision: 9186 http://xoops.svn.sourceforge.net/xoops/?rev=9186&view=rev Author: mageg Date: 2012-03-25 16:35:47 +0000 (Sun, 25 Mar 2012) Log Message: ----------- Fix bug ID: 3494894 (Calendar shows 40 days) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/calendar.js Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/include/calendar.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/calendar.js 2012-03-24 18:29:29 UTC (rev 9185) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/include/calendar.js 2012-03-25 16:35:47 UTC (rev 9186) @@ -1230,7 +1230,7 @@ Date.prototype.getMonthDays = function(month) { var year = this.getFullYear(); if (typeof month == "undefined") { - month = this.getMonthFormatted(); + month = this.getMonth(); } if (((0 == (year%4)) && ( (0 != (year%100)) || (0 == (year%400)))) && month == 1) { return 29; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-03-24 18:29:36
|
Revision: 9185 http://xoops.svn.sourceforge.net/xoops/?rev=9185&view=rev Author: mageg Date: 2012-03-24 18:29:29 +0000 (Sat, 24 Mar 2012) Log Message: ----------- fixed a bug on the "System Configuration". Now it appears just the sections that are allowed for admin. Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php 2012-03-24 18:26:23 UTC (rev 9184) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php 2012-03-24 18:29:29 UTC (rev 9185) @@ -57,7 +57,7 @@ if ( in_array( XOOPS_GROUP_ADMIN, $group) || false != $sysperm_handler->checkRight( 'system_admin', $category, $group, $xoopsModule->getVar('mid') ) ) { if ( file_exists( XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/' . $fct . '/main.php' ) ) { include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar( 'dirname', 'n' ) . '/admin/' . $fct . '/main.php'; - } else { + } else { $error = true; } } else { @@ -152,47 +152,49 @@ if (!in_array($directory, $inactive_section)) { $menu['used'] = true; } - switch ( $directory ) { - case 'avatars': - $avatar_handler = xoops_getHandler('avatar'); - $avatar = $avatar_handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_AVATAR_INFO, $avatar); - break; - case 'banners': - $banner_handler =& xoops_getModuleHandler( 'banner', 'system' ); - $banner = $banner_handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_BANNER_INFO, $banner); - break; - case 'comments': - $comment_handler =& xoops_gethandler('comment'); - $comment = $comment_handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_COMMENT_INFO, $comment); - break; - case 'groups': - $groups_Handler =& xoops_getModuleHandler( 'group', 'system' ); - $groups = $groups_Handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_GROUP_INFO, $groups); - break; - case 'images': - $imgcat_handler = xoops_gethandler('imagecategory'); - $img = $imgcat_handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_IMG_INFO, $img); - break; - case 'smilies': - $smilies_Handler =& xoops_getModuleHandler( 'smilies', 'system' ); - $smilies = $smilies_Handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_SMILIES_INFO, $smilies); - break; - case 'userrank': - $userrank_Handler =& xoops_getModuleHandler( 'userrank', 'system' ); - $userrank = $userrank_Handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_RANKS_INFO, $userrank); - break; - case 'users': - $member_handler =& xoops_getModuleHandler('users', 'system'); - $member = $member_handler->getCount(); - $menu['infos'] = sprintf(_AM_SYSTEM_USERS_INFO, $member); - break; + if ( false != $all_ok || in_array($modversion['category'], $ok_syscats)) { + switch ( $directory ) { + case 'avatars': + $avatar_handler = xoops_getHandler('avatar'); + $avatar = $avatar_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_AVATAR_INFO, $avatar); + break; + case 'banners': + $banner_handler =& xoops_getModuleHandler( 'banner', 'system' ); + $banner = $banner_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_BANNER_INFO, $banner); + break; + case 'comments': + $comment_handler =& xoops_gethandler('comment'); + $comment = $comment_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_COMMENT_INFO, $comment); + break; + case 'groups': + $groups_Handler =& xoops_getModuleHandler( 'group', 'system' ); + $groups = $groups_Handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_GROUP_INFO, $groups); + break; + case 'images': + $imgcat_handler = xoops_gethandler('image'); + $img = $imgcat_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_IMG_INFO, $img); + break; + case 'smilies': + $smilies_Handler =& xoops_getModuleHandler( 'smilies', 'system' ); + $smilies = $smilies_Handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_SMILIES_INFO, $smilies); + break; + case 'userrank': + $userrank_Handler =& xoops_getModuleHandler( 'userrank', 'system' ); + $userrank = $userrank_Handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_RANKS_INFO, $userrank); + break; + case 'users': + $member_handler =& xoops_getModuleHandler('users', 'system'); + $member = $member_handler->getCount(); + $menu['infos'] = sprintf(_AM_SYSTEM_USERS_INFO, $member); + break; + } } $xoopsTpl->append_by_ref( 'menu', $menu ); unset( $menu ); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html 2012-03-24 18:26:23 UTC (rev 9184) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html 2012-03-24 18:29:29 UTC (rev 9185) @@ -15,6 +15,7 @@ <tbody> <{foreach item=menu from=$menu}> + <{if $menu.title}> <tr class="<{cycle values='even,odd'}>"> <td class="bold width15"> <a class="tooltip" href="admin.php?fct=<{$menu.file}>" title="<{$smarty.const._AM_SYSTEM_GO}>: <{$menu.title}>"> @@ -26,11 +27,12 @@ <td class="width15"><{$menu.infos}></td> <td class="xo-actions width2"> <{if $menu.used}> - <img id="loading_<{$menu.file}>" src="images/spinner.gif" style="display:none;" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /> - <img class="tooltip" id="<{$menu.file}>" onclick="system_setStatus( { op: 'system_avtivate', type: '<{$menu.file}>' }, '<{$menu.file}>', 'admin.php' )" src="<{if $menu.status}><{xoAdminIcons success.png}><{else}><{xoAdminIcons cancel.png}><{/if}>" alt="<{$smarty.const._AM_SYSTEM_STATUS}>" title="<{$smarty.const._AM_SYSTEM_STATUS}>" /> + <img id="loading_<{$menu.file}>" src="images/spinner.gif" style="display:none;" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /> + <img class="tooltip" id="<{$menu.file}>" onclick="system_setStatus( { op: 'system_avtivate', type: '<{$menu.file}>' }, '<{$menu.file}>', 'admin.php' )" src="<{if $menu.status}><{xoAdminIcons success.png}><{else}><{xoAdminIcons cancel.png}><{/if}>" alt="<{$smarty.const._AM_SYSTEM_STATUS}>" title="<{$smarty.const._AM_SYSTEM_STATUS}>" /> <{/if}> </td> </tr> + <{/if}> <{/foreach}> </tbody> </table> \ 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: <ma...@us...> - 2012-03-24 18:26:30
|
Revision: 9184 http://xoops.svn.sourceforge.net/xoops/?rev=9184&view=rev Author: mageg Date: 2012-03-24 18:26:23 +0000 (Sat, 24 Mar 2012) Log Message: ----------- fixed bug ID: 3494896 (Image Manager category creation restrictions) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/images/main.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/images/main.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/images/main.php 2012-03-24 17:36:45 UTC (rev 9183) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/images/main.php 2012-03-24 18:26:23 UTC (rev 9184) @@ -74,7 +74,9 @@ } // Only website administator can delete categories or images -if ( !in_array(XOOPS_GROUP_ADMIN, $groups) && ($op == 'delfile' || $op == 'delfileok' || $op == 'delcatok' || $op == 'delcat') ) { + + +if ( !$xoopsUser->isAdmin($xoopsModule->mid()) && ($op == 'delfile' || $op == 'delfileok' || $op == 'delcatok' || $op == 'delcat') ) { redirect_header('admin.php?fct=images',1); } @@ -142,7 +144,7 @@ $form->assign($xoopsTpl); } // Category Form - if ( in_array( XOOPS_GROUP_ADMIN, $groups ) ) { + if ( $xoopsUser->isAdmin($xoopsModule->mid()) ) { $form = new XoopsThemeForm( _AM_SYSTEM_IMAGES_ADDCAT, 'imagecat_form', 'admin.php', 'post', true); $form->addElement( new XoopsFormText( _AM_SYSTEM_IMAGES_IMGCATNAME, 'imgcat_name', 50, 255 ), true); $form->addElement( new XoopsFormSelectGroup( _AM_SYSTEM_IMAGES_IMGCATRGRP, 'readgroup', true, XOOPS_GROUP_ADMIN, 5, true )); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-03-24 17:36:52
|
Revision: 9183 http://xoops.svn.sourceforge.net/xoops/?rev=9183&view=rev Author: mageg Date: 2012-03-24 17:36:45 +0000 (Sat, 24 Mar 2012) Log Message: ----------- Fixed bug ID: 3494893 (PM Messages deleted from Saved box) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/pm/class/message.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/pm/class/message.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/pm/class/message.php 2012-03-24 00:23:08 UTC (rev 9182) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/pm/class/message.php 2012-03-24 17:36:45 UTC (rev 9183) @@ -96,7 +96,7 @@ **/ function setTodelete($pm, $val = 1) { - if ($pm->getVar('from_delete') == 0 && $pm->getVar('from_userid') == 0) { + if ($pm->getVar('from_delete') == 0 || $pm->getVar('from_userid') == 0) { return $this->updateAll('to_delete', intval($val), new Criteria('msg_id', $pm->getVar('msg_id'))); } else { return parent::delete($pm); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-24 00:23:15
|
Revision: 9182 http://xoops.svn.sourceforge.net/xoops/?rev=9182&view=rev Author: beckmi Date: 2012-03-24 00:23:08 +0000 (Sat, 24 Mar 2012) Log Message: ----------- Fixing missing definition for $user_type Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/users/main.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/users/main.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/users/main.php 2012-03-23 18:08:38 UTC (rev 9181) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/users/main.php 2012-03-24 00:23:08 UTC (rev 9182) @@ -783,7 +783,7 @@ //User limit //$user_limit = (!isset($_REQUEST['user_limit'])) ? 20 : $_REQUEST['user_limit']; //User type - //$user_type = (!isset($_REQUEST['user_type'])) ? '' : $_REQUEST['user_type']; + $user_type = (!isset($_REQUEST['user_type'])) ? '' : $_REQUEST['user_type']; //selgroups $selgroups = (!isset($_REQUEST['selgroups'])) ? '' : $_REQUEST['selgroups']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-23 18:08:45
|
Revision: 9181 http://xoops.svn.sourceforge.net/xoops/?rev=9181&view=rev Author: txmodxoops Date: 2012-03-23 18:08:38 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Updated Modified Paths: -------------- XoopsModules/xpdf/releases/1.01a/language/english/global.php XoopsModules/xpdf/releases/1.01a/language/italian/global.php Modified: XoopsModules/xpdf/releases/1.01a/language/english/global.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/language/english/global.php 2012-03-23 18:04:02 UTC (rev 9180) +++ XoopsModules/xpdf/releases/1.01a/language/english/global.php 2012-03-23 18:08:38 UTC (rev 9181) @@ -215,9 +215,10 @@ **/ define('_RESET', 'Reset'); define('_RE', 'Re:'); + // Module vars define ("_ID", "Id"); -define ("_PID", "Sub Id"); +define ("_PID", "Main Topic"); define ("_ABOUT", "About"); define ("_WEIGHT", "Weight"); define ("_CATEGORY", "Category"); @@ -236,4 +237,12 @@ define ("_FORMACTION", "Action"); define ("_FORMUPLOAD", "Upload File"); define ("_FILENAME","Filename"); +/** +* Additions to 2.5.4 +**/ +define( "_DOHTML", "Enable HTML Tags" ); +define( "_DOSMILEY", "Enable Smilie Icons" ); +define( "_DOXCODE", "Enable XOOPS Codes" ); +define( "_DOIMAGES", "Enable Images" ); +define( "_DOBREAK", "Use XOOPS linebreak conversion?" ); ?> \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01a/language/italian/global.php =================================================================== --- XoopsModules/xpdf/releases/1.01a/language/italian/global.php 2012-03-23 18:04:02 UTC (rev 9180) +++ XoopsModules/xpdf/releases/1.01a/language/italian/global.php 2012-03-23 18:08:38 UTC (rev 9181) @@ -219,9 +219,12 @@ **/ define('_RESET', 'Reset'); define('_RE', 'Re:'); +/** +* Additions to 2.5.3 +**/ // Module vars define("_ID","Id"); -define("_PID","Sub Id"); +define("_PID","Argomento Principale"); define("_ABOUT","Informazioni"); define("_WEIGHT","Peso"); define("_CATEGORY","Categoria"); @@ -240,4 +243,12 @@ define("_FORMACTION","Azione"); define("_FORMUPLOAD","Carica File"); define("_FILENAME","Nome File"); +/** +* Additions to 2.5.4 +**/ +define("_DOHTML","Abilita Tag HTML"); +define("_DOSMILEY","Abilita Faccine"); +define("_DOXCODE","Abilita BBCode"); +define("_DOIMAGES","Abilita le immagini"); +define("_DOBREAK","Abilitare conversione linea?"); ?> \ 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: <ari...@us...> - 2012-03-23 18:04:14
|
Revision: 9180 http://xoops.svn.sourceforge.net/xoops/?rev=9180&view=rev Author: arion92fr Date: 2012-03-23 18:04:02 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Xoops 2.5 and Flash Cumulus Added Paths: ----------- XoopsModules/tag/branches/Arion92fr/tag/AMS.php XoopsModules/tag/branches/Arion92fr/tag/admin/ XoopsModules/tag/branches/Arion92fr/tag/admin/admin.tag.php XoopsModules/tag/branches/Arion92fr/tag/admin/header.php XoopsModules/tag/branches/Arion92fr/tag/admin/index.php XoopsModules/tag/branches/Arion92fr/tag/admin/menu.php XoopsModules/tag/branches/Arion92fr/tag/admin/syn.tag.php XoopsModules/tag/branches/Arion92fr/tag/article.php XoopsModules/tag/branches/Arion92fr/tag/blocks/ XoopsModules/tag/branches/Arion92fr/tag/blocks/block.php XoopsModules/tag/branches/Arion92fr/tag/blocks/index.html XoopsModules/tag/branches/Arion92fr/tag/changelog.txt XoopsModules/tag/branches/Arion92fr/tag/class/ XoopsModules/tag/branches/Arion92fr/tag/class/index.html XoopsModules/tag/branches/Arion92fr/tag/class/link.php XoopsModules/tag/branches/Arion92fr/tag/class/tag.php XoopsModules/tag/branches/Arion92fr/tag/class/wp-cumulus.php XoopsModules/tag/branches/Arion92fr/tag/footer.php XoopsModules/tag/branches/Arion92fr/tag/gpl.txt XoopsModules/tag/branches/Arion92fr/tag/header.php XoopsModules/tag/branches/Arion92fr/tag/images/ XoopsModules/tag/branches/Arion92fr/tag/images/delimiter.gif XoopsModules/tag/branches/Arion92fr/tag/images/left_both.gif XoopsModules/tag/branches/Arion92fr/tag/images/logo.gif XoopsModules/tag/branches/Arion92fr/tag/images/logo.old.gif XoopsModules/tag/branches/Arion92fr/tag/images/modadminbg.gif XoopsModules/tag/branches/Arion92fr/tag/images/right_both.gif XoopsModules/tag/branches/Arion92fr/tag/include/ XoopsModules/tag/branches/Arion92fr/tag/include/action.module.php XoopsModules/tag/branches/Arion92fr/tag/include/cumulus.swf XoopsModules/tag/branches/Arion92fr/tag/include/formtag.php XoopsModules/tag/branches/Arion92fr/tag/include/functions.ini.php XoopsModules/tag/branches/Arion92fr/tag/include/functions.php XoopsModules/tag/branches/Arion92fr/tag/include/functions.recon.php XoopsModules/tag/branches/Arion92fr/tag/include/index.html XoopsModules/tag/branches/Arion92fr/tag/include/plugin.dist.php XoopsModules/tag/branches/Arion92fr/tag/include/plugin.php XoopsModules/tag/branches/Arion92fr/tag/include/search.inc.php XoopsModules/tag/branches/Arion92fr/tag/include/swfobject.js XoopsModules/tag/branches/Arion92fr/tag/include/tagbar.php XoopsModules/tag/branches/Arion92fr/tag/include/vars.php XoopsModules/tag/branches/Arion92fr/tag/index.php XoopsModules/tag/branches/Arion92fr/tag/language/ XoopsModules/tag/branches/Arion92fr/tag/language/english/ XoopsModules/tag/branches/Arion92fr/tag/language/english/admin.php XoopsModules/tag/branches/Arion92fr/tag/language/english/blocks.php XoopsModules/tag/branches/Arion92fr/tag/language/english/config.php XoopsModules/tag/branches/Arion92fr/tag/language/english/index.html XoopsModules/tag/branches/Arion92fr/tag/language/english/main.php XoopsModules/tag/branches/Arion92fr/tag/language/english/modinfo.php XoopsModules/tag/branches/Arion92fr/tag/language/french/ XoopsModules/tag/branches/Arion92fr/tag/language/french/admin.php XoopsModules/tag/branches/Arion92fr/tag/language/french/blocks.php XoopsModules/tag/branches/Arion92fr/tag/language/french/config.php XoopsModules/tag/branches/Arion92fr/tag/language/french/index.html XoopsModules/tag/branches/Arion92fr/tag/language/french/main.php XoopsModules/tag/branches/Arion92fr/tag/language/french/modinfo.php XoopsModules/tag/branches/Arion92fr/tag/language/index.html XoopsModules/tag/branches/Arion92fr/tag/list.tag.php XoopsModules/tag/branches/Arion92fr/tag/newbb.php XoopsModules/tag/branches/Arion92fr/tag/news.php XoopsModules/tag/branches/Arion92fr/tag/plugin/ XoopsModules/tag/branches/Arion92fr/tag/plugin/AMS.php XoopsModules/tag/branches/Arion92fr/tag/plugin/article.php XoopsModules/tag/branches/Arion92fr/tag/plugin/newbb.php XoopsModules/tag/branches/Arion92fr/tag/plugin/news.php XoopsModules/tag/branches/Arion92fr/tag/plugin/xforum.php XoopsModules/tag/branches/Arion92fr/tag/sample.php XoopsModules/tag/branches/Arion92fr/tag/sql/ XoopsModules/tag/branches/Arion92fr/tag/sql/index.html XoopsModules/tag/branches/Arion92fr/tag/sql/mysql.150.sql XoopsModules/tag/branches/Arion92fr/tag/sql/mysql.sql XoopsModules/tag/branches/Arion92fr/tag/style.css XoopsModules/tag/branches/Arion92fr/tag/tag_bar.html XoopsModules/tag/branches/Arion92fr/tag/tag_index.html XoopsModules/tag/branches/Arion92fr/tag/tag_list.html XoopsModules/tag/branches/Arion92fr/tag/tag_view.html XoopsModules/tag/branches/Arion92fr/tag/templates/ XoopsModules/tag/branches/Arion92fr/tag/templates/blocks/ XoopsModules/tag/branches/Arion92fr/tag/templates/blocks/tag_block_cloud.html XoopsModules/tag/branches/Arion92fr/tag/templates/blocks/tag_block_cumulus.html XoopsModules/tag/branches/Arion92fr/tag/templates/blocks/tag_block_top.html XoopsModules/tag/branches/Arion92fr/tag/templates/index.html XoopsModules/tag/branches/Arion92fr/tag/templates/style.css XoopsModules/tag/branches/Arion92fr/tag/templates/tag_bar.html XoopsModules/tag/branches/Arion92fr/tag/templates/tag_index.html XoopsModules/tag/branches/Arion92fr/tag/templates/tag_list.html XoopsModules/tag/branches/Arion92fr/tag/templates/tag_view.html XoopsModules/tag/branches/Arion92fr/tag/view.tag.php XoopsModules/tag/branches/Arion92fr/tag/xforum.php XoopsModules/tag/branches/Arion92fr/tag/xoops_version.php Added: XoopsModules/tag/branches/Arion92fr/tag/AMS.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/AMS.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/AMS.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -0,0 +1,46 @@ +<?php +/* Step 3: define functions to build info of tagged items */ +// File: /modules/tag/plugin/mymodule.php OR /modules/mymodule/include/plugin.tag.php +/** Get item fields: title, content, time, link, uid, uname, tags **/ +include_once XOOPS_ROOT_PATH."/modules/AMS/class/class.newsstory.php"; + +function AMS_tag_iteminfo(&$items) +{ + $items_id = array(); + foreach (array_keys($items) as $cat_id) { + // Some handling here to build the link upon catid + // If catid is not used, just skip it + foreach (array_keys($items[$cat_id]) as $item_id) { + // In article, the item_id is "art_id" + $items_id[] = intval($item_id); + } + } + // $items_obj = AmsStory::getAllPublished(0, 0, false, 0, 1, true, 'published', $items_id); + //$item_handler =& xoops_getmodulehandler("AmsStory", "AMS"); + //$items_obj = $item_handler->getObjects(new Criteria("itemid", "(" . implode(", ", $items_id) . ")", "IN"), true); + $items_obj = AmsStory::getAllPublished(0, 0, true, 0, 0, true, 'published', $items_id); + + foreach (array_keys($items) as $cat_id) { + foreach (array_keys($items[$cat_id]) as $item_id) { + if(isset($items_obj[$item_id])) { + $item_obj =& $items_obj[$item_id]; + $items[$cat_id][$item_id] = array( + "title" => $item_obj->title(), + "uid" => $item_obj->storyid(), + // modules/AMS/article.php?storyid= + "link" => "article.php?storyid={$item_obj->storyid()}", + "time" => $item_obj->published, + "tags" => "",// tag_parse_tag($item_obj->getVar("item_tags", "n")), // optional + "content" => $item_obj->hometext(), // "", + ); + } + } + } + unset($items_obj); +} +/** Remove orphan tag-item links **/ +function AMS_tag_synchronization($mid) +{ + // Optional +} +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/Arion92fr/tag/AMS.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/admin/admin.tag.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/admin/admin.tag.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/admin/admin.tag.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/admin/admin.tag.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/admin/header.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/admin/header.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/admin/header.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/admin/header.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/admin/index.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/admin/index.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/admin/index.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/admin/index.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/admin/menu.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/admin/menu.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/admin/menu.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/admin/menu.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/admin/syn.tag.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/admin/syn.tag.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/admin/syn.tag.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/admin/syn.tag.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/article.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/article.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/article.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -0,0 +1,110 @@ +<?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: article.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +/** + * Get item fields: + * title + * content + * time + * link + * uid + * uname + * tags + * + * @var array $items associative array of items: [modid][catid][itemid] + * + * @return boolean + * + */ +function article_tag_iteminfo(&$items) +{ + if (empty($items) || !is_array($items)) { + return false; + } + + $items_id = array(); + foreach (array_keys($items) as $cat_id) { + // Some handling here to build the link upon catid + // catid is not used in article, so just skip it + foreach (array_keys($items[$cat_id]) as $item_id) { + // In article, the item_id is "art_id" + $items_id[] = intval($item_id); + } + } + $item_handler =& xoops_getmodulehandler("article", "article"); + $items_obj = $item_handler->getObjects(new Criteria("art_id", "(" . implode(", ", $items_id) . ")", "IN"), true); + + foreach (array_keys($items) as $cat_id) { + foreach (array_keys($items[$cat_id]) as $item_id) { + $item_obj =& $items_obj[$item_id]; + $items[$cat_id][$item_id] = array( + "title" => $item_obj->getVar("art_title"), + "uid" => $item_obj->getVar("uid"), + "link" => "view.article.php?article={$item_id}", + "time" => $item_obj->getVar("art_time_publish"), + "tags" => tag_parse_tag($item_obj->getVar("art_keywords", "n")), + "content" => "", + ); + } + } + unset($items_obj); +} + +/** + * Remove orphan tag-item links + * + * @return boolean + * + */ +function article_tag_synchronization($mid) +{ + $item_handler =& xoops_getmodulehandler("article", "article"); + $link_handler =& xoops_getmodulehandler("link", "tag"); + + /* clear tag-item links */ + if (version_compare( mysql_get_server_info(), "4.1.0", "ge" )): + $sql = " DELETE FROM {$link_handler->table}" . + " WHERE " . + " tag_modid = {$mid}" . + " AND " . + " ( tag_itemid NOT IN " . + " ( SELECT DISTINCT {$item_handler->keyName} " . + " FROM {$item_handler->table} " . + " WHERE {$item_handler->table}.art_time_publish > 0" . + " ) " . + " )"; + else: + $sql = " DELETE {$link_handler->table} FROM {$link_handler->table}" . + " LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " . + " WHERE " . + " tag_modid = {$mid}" . + " AND " . + " ( aa.{$item_handler->keyName} IS NULL" . + " OR aa.art_time_publish < 1" . + " )"; + endif; + if (!$result = $link_handler->db->queryF($sql)) { + //xoops_error($link_handler->db->error()); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/tag/branches/Arion92fr/tag/article.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/blocks/block.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/blocks/block.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/blocks/block.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/blocks/index.html ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/changelog.txt =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/changelog.txt (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/changelog.txt 2012-03-23 18:04:02 UTC (rev 9180) @@ -0,0 +1,20 @@ +3.0 RC +March 2012 +For Xoops 2.5 +Include Cumulus flash + +2.30 RC +October 12th, 2008 +For XOOPS 2.3+ + +2.0 +May 4th, 2008 +For XOOPS 2.3.0 + + +1.60 +Jan 3rd, 2007 +Added global search + +Oct 29th, 2006 +Minor bugfix by Gizmhail \ No newline at end of file Property changes on: XoopsModules/tag/branches/Arion92fr/tag/changelog.txt ___________________________________________________________________ Added: svn:eol-style + native Property changes on: XoopsModules/tag/branches/Arion92fr/tag/class/index.html ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/class/link.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/class/link.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/class/link.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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/tag/class/link.php ___________________________________________________________________ Added: svn:eol-style + native Added: XoopsModules/tag/branches/Arion92fr/tag/class/tag.php =================================================================== --- XoopsModules/tag/branches/Arion92fr/tag/class/tag.php (rev 0) +++ XoopsModules/tag/branches/Arion92fr/tag/class/tag.php 2012-03-23 18:04:02 UTC (rev 9180) @@ -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 (... [truncated message content] |
From: <ari...@us...> - 2012-03-23 17:58:32
|
Revision: 9179 http://xoops.svn.sourceforge.net/xoops/?rev=9179&view=rev Author: arion92fr Date: 2012-03-23 17:58:23 +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:57:43
|
Revision: 9178 http://xoops.svn.sourceforge.net/xoops/?rev=9178&view=rev Author: arion92fr Date: 2012-03-23 17:57:37 +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: <ari...@us...> - 2012-03-23 17:57:16
|
Revision: 9177 http://xoops.svn.sourceforge.net/xoops/?rev=9177&view=rev Author: arion92fr Date: 2012-03-23 17:57:07 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Removed XoopsModules/tag/branches/arion92fr Removed Paths: ------------- XoopsModules/tag/branches/arion92fr/ 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:54:30
|
Revision: 9176 http://xoops.svn.sourceforge.net/xoops/?rev=9176&view=rev Author: arion92fr Date: 2012-03-23 17:54:24 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Removed Paths: ------------- XoopsModules/tag/branches/arion92fr/blocks/ 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:53:19
|
Revision: 9175 http://xoops.svn.sourceforge.net/xoops/?rev=9175&view=rev Author: arion92fr Date: 2012-03-23 17:53:14 +0000 (Fri, 23 Mar 2012) Log Message: ----------- Removed Paths: ------------- XoopsModules/tag/branches/arion92fr/admin/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |