You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(361) |
Oct
(65) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(798) |
Feb
(694) |
Mar
(586) |
Apr
(145) |
May
(24) |
Jun
(24) |
Jul
(56) |
Aug
(11) |
Sep
(138) |
Oct
(107) |
Nov
(58) |
Dec
(39) |
2004 |
Jan
(157) |
Feb
(24) |
Mar
(13) |
Apr
(14) |
May
(73) |
Jun
(106) |
Jul
(217) |
Aug
(91) |
Sep
(116) |
Oct
(357) |
Nov
(27) |
Dec
(272) |
2005 |
Jan
(97) |
Feb
(40) |
Mar
(167) |
Apr
(365) |
May
(344) |
Jun
(357) |
Jul
(407) |
Aug
(529) |
Sep
(204) |
Oct
(52) |
Nov
(80) |
Dec
(1) |
2006 |
Jan
(2) |
Feb
(1) |
Mar
(11) |
Apr
(112) |
May
(121) |
Jun
(86) |
Jul
(51) |
Aug
(48) |
Sep
(107) |
Oct
(20) |
Nov
(50) |
Dec
(11) |
2007 |
Jan
(7) |
Feb
(11) |
Mar
(8) |
Apr
(11) |
May
(2) |
Jun
(25) |
Jul
(67) |
Aug
(134) |
Sep
(54) |
Oct
(69) |
Nov
(10) |
Dec
(74) |
2008 |
Jan
(73) |
Feb
(81) |
Mar
(64) |
Apr
(98) |
May
(157) |
Jun
(68) |
Jul
(80) |
Aug
(108) |
Sep
(176) |
Oct
(107) |
Nov
(265) |
Dec
(60) |
2009 |
Jan
(149) |
Feb
(140) |
Mar
(195) |
Apr
(141) |
May
(53) |
Jun
(45) |
Jul
(98) |
Aug
(153) |
Sep
(160) |
Oct
(138) |
Nov
(139) |
Dec
(104) |
2010 |
Jan
(188) |
Feb
(259) |
Mar
(133) |
Apr
(104) |
May
(42) |
Jun
(121) |
Jul
(38) |
Aug
(223) |
Sep
(259) |
Oct
(255) |
Nov
(106) |
Dec
(157) |
2011 |
Jan
(202) |
Feb
(110) |
Mar
(261) |
Apr
(272) |
May
(218) |
Jun
(108) |
Jul
(141) |
Aug
(205) |
Sep
(326) |
Oct
(279) |
Nov
(368) |
Dec
(238) |
2012 |
Jan
(239) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <vo...@us...> - 2011-12-25 16:18:47
|
Revision: 8541 http://xoops.svn.sourceforge.net/xoops/?rev=8541&view=rev Author: voltan1 Date: 2011-12-25 16:18:41 +0000 (Sun, 25 Dec 2011) Log Message: ----------- Fix error in news module Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/action.module.php Modified: XoopsModules/fmcontent/branches/news/admin/action.module.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/action.module.php 2011-12-24 18:04:54 UTC (rev 8540) +++ XoopsModules/fmcontent/branches/news/admin/action.module.php 2011-12-25 16:18:41 UTC (rev 8541) @@ -18,8 +18,10 @@ * @author Hossein Azizabadi (AKA Voltan) * @version $Id$ */ -require dirname(__FILE__) . '/header.php'; -function xoops_module_pre_install_news($module) { + +function xoops_module_pre_install_news($module) { + + /* $db =& $GLOBALS["xoopsDB"]; $error = false; if (substr(XOOPS_VERSION, 0, 9) < "XOOPS 2.5") { @@ -28,7 +30,8 @@ } $sqlfile = array('mysql' => 'sql/mysql.sql'); - + */ + $modsDirname = 'news'; $indexFile = XOOPS_ROOT_PATH . "/uploads/index.html"; $blankFile = XOOPS_ROOT_PATH . "/uploads/blank.gif"; @@ -37,56 +40,57 @@ if (!is_dir($module_uploads)) { mkdir($module_uploads, 0777); chmod($module_uploads, 0777); - copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/index.html"); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/index.html"); } //Creation du fichier price dans uploads - $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img"; + $module_uploads = XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img"; if (!is_dir($module_uploads)) { mkdir($module_uploads, 0777); chmod($module_uploads, 0777); - copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/index.html"); - copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/blank.gif"); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/blank.gif"); } //Creation du fichier price dans uploads - $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img/original"; + $module_uploads = XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/original"; if (!is_dir($module_uploads)) { mkdir($module_uploads, 0777); chmod($module_uploads, 0777); - copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/original/index.html"); - copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/original/blank.gif"); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/original/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/original/blank.gif"); } //Creation du fichier price dans uploads - $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img/medium"; + $module_uploads = XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/medium"; if (!is_dir($module_uploads)) { mkdir($module_uploads, 0777); chmod($module_uploads, 0777); - copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/medium/index.html"); - copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/medium/blank.gif"); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/medium/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/medium/blank.gif"); } //Creation du fichier price dans uploads - $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img/thumb"; + $module_uploads = XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/thumb"; if (!is_dir($module_uploads)) { mkdir($module_uploads, 0777); chmod($module_uploads, 0777); - copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/thumb/index.html"); - copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/thumb/blank.gif"); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/thumb/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/img/thumb/blank.gif"); } //Creation du fichier price dans uploads - $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/file"; + $module_uploads = XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/file"; if (!is_dir($module_uploads)) { mkdir($module_uploads, 0777); chmod($module_uploads, 0777); - copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/file/index.html"); - copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/file/blank.gif"); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/file/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/" . $modsDirname . "/file/blank.gif"); } - + + /* if (is_array($sqlfile) && !empty($sqlfile[XOOPS_DB_TYPE])) { - $sql_file_path = XOOPS_ROOT_PATH . "/modules/news/" . $sqlfile[XOOPS_DB_TYPE]; + $sql_file_path = XOOPS_ROOT_PATH . "/modules/" . $modsDirname . "/" . $sqlfile[XOOPS_DB_TYPE]; if (!file_exists($sql_file_path)) { $module->setErrors("<p>" . sprintf(_NEWS_MI_SQL_NOT_FOUND, "<strong>{$sql_file_path}</strong>")); $error = true; @@ -143,7 +147,9 @@ } return true; } - return false; + return false; + */ + return true; } function xoops_module_update_news($module, $version) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2011-12-24 18:05:00
|
Revision: 8540 http://xoops.svn.sourceforge.net/xoops/?rev=8540&view=rev Author: mageg Date: 2011-12-24 18:04:54 +0000 (Sat, 24 Dec 2011) Log Message: ----------- Bug for update permissions Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/groupperm.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/groupperm.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/groupperm.php 2011-12-24 12:12:03 UTC (rev 8539) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/groupperm.php 2011-12-24 18:04:54 UTC (rev 8540) @@ -41,7 +41,12 @@ if (is_array($_POST['perms']) && !empty($_POST['perms'])) { $gperm_handler = $xoops->getHandlerGroupperm(); foreach ($_POST['perms'] as $perm_name => $perm_data) { - if (false != $gperm_handler->deleteByModule($modid, $perm_name)) { + if (false == $gperm_handler->deleteByModule($modid, $perm_name)) { + $msg[] = sprintf(_MD_AM_PERMRESETNG, $module->getVar('name') . '(' . $perm_name . ')'); + } + if (!array_key_exists('groups', $perm_data)){ + $msg[] = sprintf(_MD_AM_PERMADDOK, $module->getVar('name'), $perm_name, ' /'); + }else{ foreach ($perm_data['groups'] as $group_id => $item_ids) { foreach ($item_ids as $item_id => $selected) { if ($selected == 1) { @@ -70,12 +75,9 @@ } } } - } else { - $msg[] = sprintf(_MD_AM_PERMRESETNG, $module->getVar('name') . '(' . $perm_name . ')'); } } } - $backlink = $xoops->getEnv("HTTP_REFERER"); if ($module->getVar('hasadmin')) { $adminindex = isset($_POST['redirect_url']) ? $_POST['redirect_url'] : $module->getInfo('adminindex'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2011-12-24 12:12:14
|
Revision: 8539 http://xoops.svn.sourceforge.net/xoops/?rev=8539&view=rev Author: djculex Date: 2011-12-24 12:12:03 +0000 (Sat, 24 Dec 2011) Log Message: ----------- Full opload of smallworld 1.0 for beta testing. Added Paths: ----------- XoopsModules/smallworld/trunk/Get_Count.php XoopsModules/smallworld/trunk/admin/ XoopsModules/smallworld/trunk/admin/admin_header.php XoopsModules/smallworld/trunk/admin/admintool.php XoopsModules/smallworld/trunk/admin/div_useradmin.php XoopsModules/smallworld/trunk/admin/index.html XoopsModules/smallworld/trunk/admin/index.php XoopsModules/smallworld/trunk/admin/menu.php XoopsModules/smallworld/trunk/avatarupload.php XoopsModules/smallworld/trunk/class/ XoopsModules/smallworld/trunk/class/adminclass.php XoopsModules/smallworld/trunk/class/class_collector.php XoopsModules/smallworld/trunk/class/db.php XoopsModules/smallworld/trunk/class/forms.php XoopsModules/smallworld/trunk/class/friends.php XoopsModules/smallworld/trunk/class/images.php XoopsModules/smallworld/trunk/class/index.html XoopsModules/smallworld/trunk/class/mail.php XoopsModules/smallworld/trunk/class/profile.php XoopsModules/smallworld/trunk/class/uploadclass.php XoopsModules/smallworld/trunk/class/user.php XoopsModules/smallworld/trunk/class/wall.php XoopsModules/smallworld/trunk/comment_ajax.php XoopsModules/smallworld/trunk/complaint.php XoopsModules/smallworld/trunk/css/ XoopsModules/smallworld/trunk/css/SmallworldAdmin.css XoopsModules/smallworld/trunk/css/apprise.css XoopsModules/smallworld/trunk/css/base/ XoopsModules/smallworld/trunk/css/base/images/ XoopsModules/smallworld/trunk/css/base/images/Thumbs.db XoopsModules/smallworld/trunk/css/base/images/index.html XoopsModules/smallworld/trunk/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_flat_75_ffffff_40x100.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_65_ffffff_1x400.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_75_dadada_1x400.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_95_fef1ec_1x400.png XoopsModules/smallworld/trunk/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png XoopsModules/smallworld/trunk/css/base/images/ui-icons_222222_256x240.png XoopsModules/smallworld/trunk/css/base/images/ui-icons_2e83ff_256x240.png XoopsModules/smallworld/trunk/css/base/images/ui-icons_454545_256x240.png XoopsModules/smallworld/trunk/css/base/images/ui-icons_888888_256x240.png XoopsModules/smallworld/trunk/css/base/images/ui-icons_cd0a0a_256x240.png XoopsModules/smallworld/trunk/css/base/index.html XoopsModules/smallworld/trunk/css/base/jquery.ui.accordion.css XoopsModules/smallworld/trunk/css/base/jquery.ui.all.css XoopsModules/smallworld/trunk/css/base/jquery.ui.autocomplete.css XoopsModules/smallworld/trunk/css/base/jquery.ui.base.css XoopsModules/smallworld/trunk/css/base/jquery.ui.button.css XoopsModules/smallworld/trunk/css/base/jquery.ui.core.css XoopsModules/smallworld/trunk/css/base/jquery.ui.datepicker.css XoopsModules/smallworld/trunk/css/base/jquery.ui.dialog.css XoopsModules/smallworld/trunk/css/base/jquery.ui.progressbar.css XoopsModules/smallworld/trunk/css/base/jquery.ui.resizable.css XoopsModules/smallworld/trunk/css/base/jquery.ui.selectable.css XoopsModules/smallworld/trunk/css/base/jquery.ui.slider.css XoopsModules/smallworld/trunk/css/base/jquery.ui.tabs.css XoopsModules/smallworld/trunk/css/base/jquery.ui.theme.css XoopsModules/smallworld/trunk/css/basic.css XoopsModules/smallworld/trunk/css/black.css XoopsModules/smallworld/trunk/css/border-radius.htc XoopsModules/smallworld/trunk/css/galleriffic-5.css XoopsModules/smallworld/trunk/css/index.html XoopsModules/smallworld/trunk/css/jquery.fileupload-ui.css XoopsModules/smallworld/trunk/css/oembed.css XoopsModules/smallworld/trunk/css/smallworld.css XoopsModules/smallworld/trunk/css/ui-lightness/ XoopsModules/smallworld/trunk/css/ui-lightness/images/ XoopsModules/smallworld/trunk/css/ui-lightness/images/Thumbs.db XoopsModules/smallworld/trunk/css/ui-lightness/images/index.html XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_222222_256x240.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_228ef1_256x240.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_ef8c08_256x240.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_ffd27a_256x240.png XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_ffffff_256x240.png XoopsModules/smallworld/trunk/css/ui-lightness/index.html XoopsModules/smallworld/trunk/css/ui-lightness/jquery-ui-1.8.11.custom.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.accordion.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.all.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.autocomplete.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.base.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.button.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.core.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.datepicker.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.dialog.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.progressbar.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.resizable.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.selectable.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.slider.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.tabs.css XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.theme.css XoopsModules/smallworld/trunk/delete_comment_ajax.php XoopsModules/smallworld/trunk/delete_message_ajax.php XoopsModules/smallworld/trunk/docs/ XoopsModules/smallworld/trunk/docs/index.html XoopsModules/smallworld/trunk/down_vote.php XoopsModules/smallworld/trunk/editimages.php XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/friendinvite.php XoopsModules/smallworld/trunk/friends.php XoopsModules/smallworld/trunk/galleryshow.php XoopsModules/smallworld/trunk/image_edit_submit.php XoopsModules/smallworld/trunk/images/ XoopsModules/smallworld/trunk/images/1.png XoopsModules/smallworld/trunk/images/2.png XoopsModules/smallworld/trunk/images/3.png XoopsModules/smallworld/trunk/images/accountdelete.png XoopsModules/smallworld/trunk/images/ajaxloader.gif XoopsModules/smallworld/trunk/images/alert.png XoopsModules/smallworld/trunk/images/ano_man.png XoopsModules/smallworld/trunk/images/ano_woman.png XoopsModules/smallworld/trunk/images/arrow_left_48.png XoopsModules/smallworld/trunk/images/arrow_right_48.png XoopsModules/smallworld/trunk/images/bdayballoons_l.png XoopsModules/smallworld/trunk/images/bdayballoons_r.png XoopsModules/smallworld/trunk/images/bg.png XoopsModules/smallworld/trunk/images/bookmarks.png XoopsModules/smallworld/trunk/images/calendar.gif XoopsModules/smallworld/trunk/images/caption.png XoopsModules/smallworld/trunk/images/complaint.png XoopsModules/smallworld/trunk/images/controls.png XoopsModules/smallworld/trunk/images/dislike.png XoopsModules/smallworld/trunk/images/dl-arr.png XoopsModules/smallworld/trunk/images/down-arr.gif XoopsModules/smallworld/trunk/images/edit_icon.png XoopsModules/smallworld/trunk/images/editavatar.png XoopsModules/smallworld/trunk/images/edituserprofile.png XoopsModules/smallworld/trunk/images/error.png XoopsModules/smallworld/trunk/images/genderless.png XoopsModules/smallworld/trunk/images/group.png XoopsModules/smallworld/trunk/images/house.png XoopsModules/smallworld/trunk/images/hr.png XoopsModules/smallworld/trunk/images/icon_start.png XoopsModules/smallworld/trunk/images/index.html XoopsModules/smallworld/trunk/images/information.png XoopsModules/smallworld/trunk/images/like.png XoopsModules/smallworld/trunk/images/loader.gif XoopsModules/smallworld/trunk/images/loaderWhite.gif XoopsModules/smallworld/trunk/images/main-red-bg.gif XoopsModules/smallworld/trunk/images/messenger.png XoopsModules/smallworld/trunk/images/next.png XoopsModules/smallworld/trunk/images/nextPageArrow.gif XoopsModules/smallworld/trunk/images/nextPageArrowWhite.gif XoopsModules/smallworld/trunk/images/nofriendbg.png XoopsModules/smallworld/trunk/images/pbar-ani.gif XoopsModules/smallworld/trunk/images/picture.png XoopsModules/smallworld/trunk/images/prev.png XoopsModules/smallworld/trunk/images/prevPageArrow.gif XoopsModules/smallworld/trunk/images/prevPageArrowWhite.gif XoopsModules/smallworld/trunk/images/smallworld.png XoopsModules/smallworld/trunk/images/socialnetworkicons/ XoopsModules/smallworld/trunk/images/socialnetworkicons/facebook.png XoopsModules/smallworld/trunk/images/socialnetworkicons/googleplus.png XoopsModules/smallworld/trunk/images/socialnetworkicons/icq.png XoopsModules/smallworld/trunk/images/socialnetworkicons/index.html XoopsModules/smallworld/trunk/images/socialnetworkicons/msn.png XoopsModules/smallworld/trunk/images/socialnetworkicons/myspace.png XoopsModules/smallworld/trunk/images/socialnetworkicons/skype.png XoopsModules/smallworld/trunk/images/socialnetworkicons/twitter.png XoopsModules/smallworld/trunk/images/socialnetworkicons/xoops.png XoopsModules/smallworld/trunk/images/socialnetworkicons/yahoo.png XoopsModules/smallworld/trunk/images/socialnetworkicons/youtube.png XoopsModules/smallworld/trunk/images/sp.png XoopsModules/smallworld/trunk/images/statistics.png XoopsModules/smallworld/trunk/images/text_bg.png XoopsModules/smallworld/trunk/images/time_add.png XoopsModules/smallworld/trunk/images/time_delete.png XoopsModules/smallworld/trunk/images/ul-breaker.png XoopsModules/smallworld/trunk/images/upd_critical.png XoopsModules/smallworld/trunk/images/upd_normal.png XoopsModules/smallworld/trunk/images/upd_ok.png XoopsModules/smallworld/trunk/images/user_green.png XoopsModules/smallworld/trunk/images/user_orange.png XoopsModules/smallworld/trunk/images/user_red.png XoopsModules/smallworld/trunk/images/user_silhouette.png XoopsModules/smallworld/trunk/images/userinfo.png XoopsModules/smallworld/trunk/img_upload.php XoopsModules/smallworld/trunk/imgupload.php XoopsModules/smallworld/trunk/include/ XoopsModules/smallworld/trunk/include/arrays.php XoopsModules/smallworld/trunk/include/functions.php XoopsModules/smallworld/trunk/include/getSelects.php XoopsModules/smallworld/trunk/include/index.html XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/js/ XoopsModules/smallworld/trunk/js/adminsmallworld.js XoopsModules/smallworld/trunk/js/ajaxupload.3.5.js XoopsModules/smallworld/trunk/js/apprise-1.5.full.js XoopsModules/smallworld/trunk/js/formToWizard.js XoopsModules/smallworld/trunk/js/gallery_mod.js XoopsModules/smallworld/trunk/js/geoname.js XoopsModules/smallworld/trunk/js/geoname_now.js XoopsModules/smallworld/trunk/js/index.html XoopsModules/smallworld/trunk/js/jquery-1.5.1.min.js XoopsModules/smallworld/trunk/js/jquery-ui-1.8.11.custom.js XoopsModules/smallworld/trunk/js/jquery.avatar_helper.js XoopsModules/smallworld/trunk/js/jquery.bookmark.js XoopsModules/smallworld/trunk/js/jquery.countdown.js XoopsModules/smallworld/trunk/js/jquery.elastic.source.js XoopsModules/smallworld/trunk/js/jquery.fileupload-ui.js XoopsModules/smallworld/trunk/js/jquery.fileupload-uix.js XoopsModules/smallworld/trunk/js/jquery.fileupload.js XoopsModules/smallworld/trunk/js/jquery.form.js XoopsModules/smallworld/trunk/js/jquery.galleriffic.js XoopsModules/smallworld/trunk/js/jquery.history.js XoopsModules/smallworld/trunk/js/jquery.innerfade.js XoopsModules/smallworld/trunk/js/jquery.oembed.js XoopsModules/smallworld/trunk/js/jquery.opacityrollover.js XoopsModules/smallworld/trunk/js/jquery.stepy.js XoopsModules/smallworld/trunk/js/jquery.validate.js XoopsModules/smallworld/trunk/js/jquery.validation.functions.js XoopsModules/smallworld/trunk/js/smallworld.js XoopsModules/smallworld/trunk/js/smallworld_tabs.js XoopsModules/smallworld/trunk/js/ui.geo_autocomplete.js XoopsModules/smallworld/trunk/js/ui.geo_autocomplete_now.js XoopsModules/smallworld/trunk/js/upload_application.js XoopsModules/smallworld/trunk/js/wall.js XoopsModules/smallworld/trunk/language/ XoopsModules/smallworld/trunk/language/danish/ XoopsModules/smallworld/trunk/language/danish/index.html XoopsModules/smallworld/trunk/language/danish/js/ XoopsModules/smallworld/trunk/language/danish/js/index.html XoopsModules/smallworld/trunk/language/danish/js/jquery.ui.datepicker-language.js XoopsModules/smallworld/trunk/language/english/ XoopsModules/smallworld/trunk/language/english/admin.php XoopsModules/smallworld/trunk/language/english/index.html XoopsModules/smallworld/trunk/language/english/js/ XoopsModules/smallworld/trunk/language/english/js/index.html XoopsModules/smallworld/trunk/language/english/js/jquery.countdown.js XoopsModules/smallworld/trunk/language/english/js/jquery.ui.datepicker-language.js XoopsModules/smallworld/trunk/language/english/js/variables.js XoopsModules/smallworld/trunk/language/english/mailTpl/ XoopsModules/smallworld/trunk/language/english/mailTpl/index.html XoopsModules/smallworld/trunk/language/english/mailTpl/mail_attencionneeded.html XoopsModules/smallworld/trunk/language/english/mailTpl/mail_complaint.html XoopsModules/smallworld/trunk/language/english/mailTpl/mail_newcomment.html XoopsModules/smallworld/trunk/language/english/mailTpl/mail_register.html XoopsModules/smallworld/trunk/language/english/main.php XoopsModules/smallworld/trunk/language/english/modinfo.php XoopsModules/smallworld/trunk/language/index.html XoopsModules/smallworld/trunk/loadmore.php XoopsModules/smallworld/trunk/message_ajax.php XoopsModules/smallworld/trunk/partnersearch.php XoopsModules/smallworld/trunk/permalink.php XoopsModules/smallworld/trunk/preloads/ XoopsModules/smallworld/trunk/preloads/core.php XoopsModules/smallworld/trunk/preloads/index.html XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/search.php XoopsModules/smallworld/trunk/smallworldshare.php XoopsModules/smallworld/trunk/sql/ XoopsModules/smallworld/trunk/sql/index.html XoopsModules/smallworld/trunk/sql/mysql.sql XoopsModules/smallworld/trunk/stats.php XoopsModules/smallworld/trunk/submit.php XoopsModules/smallworld/trunk/templates/ XoopsModules/smallworld/trunk/templates/getStat.html XoopsModules/smallworld/trunk/templates/getlastcom.html XoopsModules/smallworld/trunk/templates/getlastmsg.html XoopsModules/smallworld/trunk/templates/getmore.html XoopsModules/smallworld/trunk/templates/index.html XoopsModules/smallworld/trunk/templates/smallworld_admin.html XoopsModules/smallworld/trunk/templates/smallworld_alluserstodiv.html XoopsModules/smallworld/trunk/templates/smallworld_friends_template.html XoopsModules/smallworld/trunk/templates/smallworld_galleryshow.html XoopsModules/smallworld/trunk/templates/smallworld_images_edittemplate.html XoopsModules/smallworld/trunk/templates/smallworld_index.html XoopsModules/smallworld/trunk/templates/smallworld_permalink.html XoopsModules/smallworld/trunk/templates/smallworld_share.html XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html XoopsModules/smallworld/trunk/templates/smallworld_userprofile_imgupload.html XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html XoopsModules/smallworld/trunk/up_vote.php XoopsModules/smallworld/trunk/userprofile.php XoopsModules/smallworld/trunk/xoops_version.php Added: XoopsModules/smallworld/trunk/Get_Count.php =================================================================== --- XoopsModules/smallworld/trunk/Get_Count.php (rev 0) +++ XoopsModules/smallworld/trunk/Get_Count.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,31 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ +include '../../mainfile.php'; +include_once (XOOPS_ROOT_PATH.'/class/template.php'); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +global $xoopsUser, $xoopsLogger, $xoopsDB; +$xoopsLogger->activated = false; +if ($xoopsUser) { + if($_GET['SmallworldGetUserMsgCount']) { + $counts = smallworld_getCountFriendMessagesEtc (); + header('Content-type: application/json'); + echo "{\"NewUserMsgCount\":$counts}"; + } +} +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/admin/admin_header.php (rev 0) +++ XoopsModules/smallworld/trunk/admin/admin_header.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,40 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + + include '../../../mainfile.php'; + include_once XOOPS_ROOT_PATH.'/class/xoopsmodule.php'; + include XOOPS_ROOT_PATH.'/include/cp_functions.php'; + if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("smallworld"); + + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",2,_NOPERM); + exit(); + } + } + else { + redirect_header(XOOPS_URL."/",2,_NOPERM); + exit(); + } + + if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) { + include("../language/".$xoopsConfig['language']."/admin.php"); + } + else { + include("../language/english/admin.php"); + } +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/admin/admintool.php =================================================================== --- XoopsModules/smallworld/trunk/admin/admintool.php (rev 0) +++ XoopsModules/smallworld/trunk/admin/admintool.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,51 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + +require_once 'admin_header.php'; +global $xoopsDB, $xoTheme, $xoopsLogger ; +$xoopsLogger->activated = false; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +if ($_POST['type'] == 'addtime') { + $userid = intval($_POST['userid']); + $amount = intval($_POST['amount']); + $test = "SELECT * FROM ".$xoopsDB->prefix('smallworld_admin')." WHERE userid = '".$userid."' AND (inspect_start+inspect_stop) > ".time().""; + $result = $xoopsDB->queryF($test); + if ($xoopsDB->getRowsNum($result) < 1) { + $sql = "UPDATE ".$xoopsDB->prefix('smallworld_admin')." SET inspect_start = '".time()."', inspect_stop = '".$amount."' WHERE userid='".$userid."'"; + $result = $xoopsDB->queryF($sql); + } else { + $sql = "UPDATE ".$xoopsDB->prefix('smallworld_admin')." SET inspect_stop = (inspect_stop + ".$amount.") WHERE userid='".$userid."'"; + $result = $xoopsDB->queryF($sql); + } + +} +if ($_POST['type'] == 'deletetime') { + $sql = "UPDATE ".$xoopsDB->prefix('smallworld_admin')." SET inspect_start = '', inspect_stop = '' WHERE userid='".intval($_POST['deluserid'])."'"; + $result = $xoopsDB->queryF($sql); +} + + +if ($_POST['type'] == 'deleteUser') { + $db = new SmallWorldDB; + + $userid = intval($_POST['deluserid']); + $db->deleteAccount ($userid); + +} +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/admin/div_useradmin.php =================================================================== --- XoopsModules/smallworld/trunk/admin/div_useradmin.php (rev 0) +++ XoopsModules/smallworld/trunk/admin/div_useradmin.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,64 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + +require_once 'admin_header.php'; +global $xoopsDB, $xoTheme, $xoopsLogger ; +$xoopsLogger->activated = false; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +$Tpl = new XoopsTpl(); +$admin = new SmallworldAdmin(); + +$allusers_inspect = $admin->getAllUsers('yes'); + if (!empty($allusers_inspect)) { + foreach ($allusers_inspect as $data) { + $ai['id'] = $data['id']; + $ai['userid'] = $data['userid']; + $ai['username'] = $data['username']; + $ai['realname'] = $data['realname']; + $ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ai['ip'] = $data['ip']; + $ai['complaint'] = $data['complaint']; + $ai['inspect_start'] = $data['inspect_start']; + $ai['inspect_stop'] = $data['inspect_stop']; + $ai['userinspect_timetotal'] = ($data['inspect_start'] + $data['inspect_stop'])-time(); + $Tpl->append('allusersinspect', $ai); + } + } + $Tpl->assign('allusersinspectcounter',count($ai)); + +$allusers_noinspect = $admin->getAllUsers('no'); + if (!empty($allusers_noinspect)) { + foreach ($allusers_noinspect as $data) { + $ani['id'] = $data['id']; + $ani['userid'] = $data['userid']; + $ani['username'] = $data['username']; + $ani['realname'] = $data['realname']; + $ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ani['ip'] = $data['ip']; + $ani['complaint'] = $data['complaint']; + $ani['inspect_start'] = ''; + $ani['inspect_stop'] = ''; + $ani['userinspect_timetotal'] = ''; + $Tpl->append('allusersnoinspect', $ani); + } + } + $Tpl->assign('allusersnoinspectcounter',count($ani)); + +$Tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/smallworld_alluserstodiv.html'); +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/admin/index.html =================================================================== --- XoopsModules/smallworld/trunk/admin/index.html (rev 0) +++ XoopsModules/smallworld/trunk/admin/index.html 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/smallworld/trunk/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/admin/index.php (rev 0) +++ XoopsModules/smallworld/trunk/admin/index.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,179 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + +require_once 'admin_header.php'; +require_once '../../../include/cp_header.php'; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +require_once XOOPS_ROOT_PATH . '/class/template.php'; +if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} +$xoopsTpl->xoops_setCaching(0); + +xoops_cp_header(); + +if (isset($_POST['xim_admin_message'])) {$_POST['xim_admin_message'] = '';} + +$admin = new SmallworldAdmin(); +$tpl = new XoopsTpl(); + +$ai = array(); +$ani = array(); + +// --------------- First tab in admin --------------- +// Find oldest message and apply to template +$dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); +// Get days number +$totaldays = $admin->CountDays(); +// get average messages per day +$avgperday = $admin->AvgMsgDay ($totaldays); +// XIM version number +$installversion = $admin->ModuleInstallVersion (); +// XIM install date +$installdate = $admin->ModuleInstallDate (); + +//check current version of XIM, return desc,link,version if new available +$installCheck = $admin->doCheckUpdate (); + +// Count members using XIM +$sumallusers = $admin->TotalUsers (); +// Find list of most active users (total) +$admin->mostactiveusers_allround(); +// Find list of most active users (24 hours) +$admin->mostactiveusers_today(); + +// FInd list of best rated users overall +$admin->topratedusers('up'); + +// FInd list of worst rated users overall +$admin->topratedusers('down'); + +$allusers_inspect = $admin->getAllUsers('yes'); + if (!empty($allusers_inspect)) { + foreach ($allusers_inspect as $data) { + $ai['id'] = $data['id']; + $ai['userid'] = $data['userid']; + $ai['username'] = $data['username']; + $ai['realname'] = $data['realname']; + $ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ai['ip'] = $data['ip']; + $ai['complaint'] = $data['complaint']; + $ai['inspect_start'] = $data['inspect_start']; + $ai['inspect_stop'] = $data['inspect_stop']; + $ai['userinspect_timetotal'] = ($data['inspect_start'] + $data['inspect_stop'])-time(); + $xoopsTpl->append('allusersinspect', $ai); + } + } + $xoopsTpl->assign('allusersinspectcounter',count($ai)); + +$allusers_noinspect = $admin->getAllUsers('no'); + if (!empty($allusers_noinspect)) { + foreach ($allusers_noinspect as $data) { + $ani['id'] = $data['id']; + $ani['userid'] = $data['userid']; + $ani['username'] = $data['username']; + $ani['realname'] = $data['realname']; + $ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ani['ip'] = $data['ip']; + $ani['complaint'] = $data['complaint']; + $ani['inspect_start'] = ''; + $ani['inspect_stop'] = ''; + $ani['userinspect_timetotal'] = ''; + $xoopsTpl->append('allusersnoinspect', $ani); + } + } + $xoopsTpl->assign('allusersnoinspectcounter',count($ani)); +// ---------------- end of tabs ---------------- // + +// template assignments + // tab titles + $xoopsTpl->assign('lang_statistics', _AM_SMALLWORLD_STATISTICS_TITLE); + $xoopsTpl->assign('lang_moduleinfo', _AM_SMALLWORLD_MODULEINFO); + $xoopsTpl->assign('lang_userstats', _AM_SMALLWORLD_USERSTATS); + $xoopsTpl->assign('lang_installversion', _AM_SMALLWORLD_MODULEINSTALL); + $xoopsTpl->assign('lang_installversion_status', _AM_SMALLWORLD_UPDATE_STATUS); + $xoopsTpl->assign('lang_installdate', _AM_SMALLWORLD_INSTALLDATE); + $xoopsTpl->assign('lang_dateoffirstmessage', _AM_SMALLWORLD_DATEOFFIRSTMESSAGE); + $xoopsTpl->assign('lang_totalusers', _AM_SMALLWORLD_TOTALUSERS); + $xoopsTpl->assign('lang_averagemsgperday', _AM_SMALLWORLD_AVERAGEMSGPERDAY); + $xoopsTpl->assign('lang_topchatters',_AM_SMALLWORLD_TOPCHATTERS); + $xoopsTpl->assign('lang_topchatterstoday',_AM_SMALLWORLD_TOPCHATTERS_TODAY); + $xoopsTpl->assign('lang_toprated',_AM_SMALLWORLD_TOPRATEDUSERS); + $xoopsTpl->assign('lang_bottomrated',_AM_SMALLWORLD_BOTTOMRATEDUSERS); + $xoopsTpl->assign('lang_useradmin',_AM_SMALLWORLD_USERADMIN_TITLE); + $xoopsTpl->assign('lang_help',_AM_SMALLWORLD_HELP); + $xoopsTpl->assign('lang_prefs',_MI_SYSTEM_ADMENU6); + $xoopsTpl->assign('lang_prefslink',"<a href='../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule ->getVar('mid')."'>"._MI_SYSTEM_ADMENU6."</a>"); + + // help file from admin + $xoopsTpl->assign('lang_hlp_about',_AM_SMALLWORLD_HELP_ABOUT); + $xoopsTpl->assign('lang_hlp_preface',_AM_SMALLWORLD_HELP_PREFACE); + $xoopsTpl->assign('lang_hlp_requirements_t',_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS); + $xoopsTpl->assign('lang_hlp_requirements',_AM_SMALLWORLD_HELP_REQUIREMENTS); + $xoopsTpl->assign('lang_hlp_recommended_t',_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED); + $xoopsTpl->assign('lang_hlp_recommended',_AM_SMALLWORLD_HELP_RECOMMENDED); + $xoopsTpl->assign('lang_hlp_installation_t',_AM_SMALLWORLD_HELP_HEADER_INSTALLATION); + $xoopsTpl->assign('lang_hlp_firsttime',_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL); + $xoopsTpl->assign('lang_hlp_hostedplatform_t',_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM); + $xoopsTpl->assign('lang_hlp_hostedplatform',_AM_SMALLWORLD_HELP_HOSTED_PLATFORM); + $xoopsTpl->assign('lang_hlp_upgrading_t',_AM_SMALLWORLD_HELP_HEADER_UPGRADING); + $xoopsTpl->assign('lang_hlp_upgrading',_AM_SMALLWORLD_HELP_UPGRADING); + $xoopsTpl->assign('lang_hlp_faq_t',_AM_SMALLWORLD_HELP_HEADER_FAQ); + $xoopsTpl->assign('lang_hlp_commen1_t',_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1); + $xoopsTpl->assign('lang_hlp_commen1',_AM_SMALLWORLD_HELP_COMMENPROBLEMS1); + $xoopsTpl->assign('lang_hlp_contacts_t',_AM_SMALLWORLD_HELP_HEADER_CONTACTS); + $xoopsTpl->assign('lang_hlp_otherhelp',_AM_SMALLWORLD_HELP_OTHERHELP); + $xoopsTpl->assign('installversion', $installversion); + $xoopsTpl->assign('installdate', $installdate); + $xoopsTpl->assign('installversion_status',$installCheck); + $xoopsTpl->assign('dateoffirstmessage', $dateoffirstmessage); + $xoopsTpl->assign('totalusers', $sumallusers); + $xoopsTpl->assign('averagemsgperday', $avgperday); + $xoopsTpl->display('db:smallworld_admin.html'); + + global $xoTheme; + //Check Language + $lang = $xoopsConfig['language']; + // GET various variables from language folder + if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/variables.js')) { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/variables.js'); + } else { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/variables.js'); + } + +$adminscript= <<<SCRIPT + var smallworld_url="XOOPS_URL/modules/smallworld/"; + var $ = jQuery(); +SCRIPT; + $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); + $xoTheme->addScript(XOOPS_URL.'/browse.php?Frameworks/jquery/jquery.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery-ui-1.8.11.custom.js'); + $xoTheme->addScript('modules/smallworld/js/smallworld_tabs.js'); + $xoTheme->addScript('','',$adminscript); + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.form.js'); + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.countdown.js'); + if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/jquery.ui.datepicker-language.js')) { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.ui.datepicker-language.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.countdown.js'); + } else { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.ui.datepicker-language.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.countdown.js'); + } + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); + +xoops_cp_footer(); +?> Added: XoopsModules/smallworld/trunk/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/admin/menu.php (rev 0) +++ XoopsModules/smallworld/trunk/admin/menu.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,20 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + +$adminmenu[1]['title'] = _MI_SMALLWORLD_ADMENU; +$adminmenu[1]['link'] = 'admin/index.php'; +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/avatarupload.php =================================================================== --- XoopsModules/smallworld/trunk/avatarupload.php (rev 0) +++ XoopsModules/smallworld/trunk/avatarupload.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,47 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ +global $xoopsUser, $xoopsLogger; +include_once("../../mainfile.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); + if ($xoopsUser) { + $xoopsLogger->activated = false; + $userID = $xoopsUser->getVar('uid'); + $user = new XoopsUser($userID); + $db = new SmallWorldDB; + + $uploaddir = XOOPS_ROOT_PATH.'/uploads/avatars/'; + $file = $uploaddir . basename($_FILES['smallworld_uploadfile']['name']); + $newname = time().rand(0,99999); + + // Generate new name for file + $f = explode(".",basename(stripslashes($_FILES['smallworld_uploadfile']['name']))); + $newname = time().rand(0000,9999).".".$f[1]; + $newfile = $uploaddir . basename($newname); + // Save new name to users profile in DB + $dbuserimage = "avatars/".basename(stripslashes($newfile )); + $db->updateSingleValue ('smallworld_user', $userID, 'userimage',$dbuserimage ); + $db->updateSingleValue ('smallworld_admin', $userID, 'userimage',$dbuserimage ); + + // Return json array [0] = succes text and [1]= basename of the new file name... + if (move_uploaded_file($_FILES['smallworld_uploadfile']['tmp_name'], $newfile)) { + echo json_encode( array( 'success', basename(stripslashes($newfile ))) ) ; + } else { + echo "error"; + } + } +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/class/adminclass.php (rev 0) +++ XoopsModules/smallworld/trunk/class/adminclass.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,273 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + + +class SmallworldAdmin { + // Get oldes message in Db + function oldestMsg () { + global $xoopsDB; + $sql = "SELECT * FROM ".$xoopsDB->prefix('smallworld_messages')." ORDER BY created limit 1"; + $result = $xoopsDB->queryF($sql); + $counter = $xoopsDB->getRowsNum($result); + if ($counter < 1) {$date = _AM_SMALLWORLD_NONEYET;} + while ($sqlfetch = $xoopsDB->fetchArray($result)) { + $date = $sqlfetch['created']; + } + return $date; + } + + // Get average messages sent per day + function AvgMsgDay ($totaldays) { + global $xoopsDB; + $sql = "SELECT count( * ) / ".$totaldays." AS averg FROM ".$xoopsDB->prefix('smallworld_messages').""; + $result = $xoopsDB->queryF($sql); + while ($sqlfetch = $xoopsDB->fetchArray($result)) { + $avg = number_format($sqlfetch['averg'], 2, '.', ','); + } + return $avg; + } + + // total users using smallworld + function TotalUsers () { + global $xoopsDB; + $sql = "SELECT * FROM ".$xoopsDB->prefix('smallworld_user').""; + $result = $xoopsDB->queryF($sql); + $counter = $xoopsDB->getRowsNum($result); + if ($counter < 1) { + $sum = 0; + } else { + $i = 0; + while ( $myrow = $xoopsDB->fetchArray($result) ) { + $user[$i]['username'] = $myrow['username']; + $i++; + } + $all = $this->flatten($user); + $sum = count(array_unique($all)); + $unique = array_unique($all); + } + return $sum; + } + + // Get version of module + function ModuleInstallVersion () { + global $xoopsModule; + $version = round($xoopsModule->getVar('version') / 100, 2); + return $version; + } + + // Get date when Module was installed + function ModuleInstallDate () { + global $xoopsModule; + $date = formatTimestamp($xoopsModule->getVar('last_update'),'m'); + return $date; + } + + // Count total days represented in db + function CountDays () { + global $xoopsDB,$xoopsModule; + $date = $xoopsModule->getVar('last_update'); + $now = time(); + $diff = ($now - $date) / (60); + return $diff; + } + // find user with most posted messages + function mostactiveusers_allround() { + global $xoopsDB,$xoopsUser,$xoopsTpl; + $sql = "SELECT uid_fk, COUNT( * ) as cnt "; + $sql .= "FROM ( "; + $sql .= "SELECT uid_fk "; + $sql .= "FROM xoops_smallworld_messages "; + $sql .= "UNION ALL SELECT uid_fk "; + $sql .= "FROM xoops_smallworld_comments "; + $sql .= ") AS u "; + $sql .= "GROUP BY uid_fk "; + $sql .= "ORDER BY count( * ) DESC limit 20"; + $result = $xoopsDB->queryF($sql); + $counter = $xoopsDB->getRowsNum($result); + + if ($counter < 1) { + $msg['cnt'] = _AM_SMALLWORLD_NO; + $msg['uid_fk'] = _AM_SMALLWORLD_THEREARE; + $xoopsTpl->append('topuser', $msg); + } else { + $msg = array(); + $counter = 1; + while ($row = $xoopsDB->fetchArray($result)) { + $msg["counter"] = $counter; + $msg["img"] = "<img src = '../images/".$counter.".png'></img>"; + if ($msg['counter'] > 3) { $msg["img"] = '';} + $msg["cnt"] = $row["cnt"]; + $msg["from"] = $xoopsUser->getUnameFromId($row["uid_fk"]); + $xoopsTpl->append('topuser', $msg); + $counter++; + } + } + return $msg; + } + // find user with most posted messages in last 24 hours + function mostactiveusers_today() { + global $xoopsDB,$xoopsUser,$xoopsTpl; + $sql = "SELECT uid_fk, COUNT( * ) as cnt "; + $sql .= "FROM ( "; + $sql .= "SELECT uid_fk "; + $sql .= "FROM ".$xoopsDB->prefix('smallworld_messages')." "; + $sql .= "WHERE `created` > UNIX_TIMESTAMP(DATE_SUB( NOW( ) , INTERVAL 1 DAY )) "; + $sql .= "UNION ALL SELECT uid_fk "; + $sql .= "FROM ".$xoopsDB->prefix('smallworld_comments')." "; + $sql .= "WHERE `created` > UNIX_TIMESTAMP(DATE_SUB( NOW( ) , INTERVAL 1 DAY )) "; + $sql .= ") AS u "; + $sql .= "GROUP BY uid_fk "; + $sql .= "ORDER BY count( * ) DESC limit 20"; + $result = $xoopsDB->queryF($sql); + if ($xoopsDB->getRowsNum($result) > 0) { + $msgtoday = array(); + $counter = 1; + while ($row = $xoopsDB->fetchArray($result)) { + $msgtoday["counter"] = $counter; + $msgtoday["img"] = "<img src = '../images/".$counter.".png'></img>"; + if ($msgtoday['counter'] > 3) { $msgtoday["img"] = '';} + $msgtoday["cnt"] = $row["cnt"]; + $msgtoday["from"] = $xoopsUser->getUnameFromId($row["uid_fk"]); + $xoopsTpl->append('topusertoday', $msgtoday); + $counter++; + } + } else { + $msgtoday['cnt'] = _AM_SMALLWORLD_NO; + $msgtoday['from'] = _AM_SMALLWORLD_THEREARE; + $xoopsTpl->append('topusertoday', $msgtoday); + } + return $msgtoday; + } + + // Find best rated users overall + function topratedusers($direction) { + global $xoopsUser, $xoopsDB,$xoopsTpl; + $array = array(); + $counter = 1; + if ($direction == 'up') { + $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where up='1' GROUP by owner ORDER BY cnt DESC limit 20"; + $result = $xoopsDB->queryF($sql); + while ($row = $xoopsDB->fetchArray($result)) { + $array['counter'] = $counter; + $array['img'] = "<img src = '../images/".$counter.".png'></img>"; + if ($array['counter'] > 3) { $array["img"] = '';} + $array['cnt'] = $row['cnt']; + $array['user'] = $xoopsUser->getUnameFromId($row["owner"]); + $xoopsTpl->append('topratedusers', $array); + $counter++; + } + } else { + $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where down='1' GROUP by owner ORDER BY cnt DESC limit 20"; + $result = $xoopsDB->queryF($sql); + while ($row = $xoopsDB->fetchArray($result)) { + $array['counter'] = $counter; + $array['img'] = "<img src = '../images/".$counter.".png'></img>"; + if ($array['counter'] > 3) { $array["img"] = '';} + $array['cnt'] = $row['cnt']; + $array['user'] = $xoopsUser->getUnameFromId($row["owner"]); + $xoopsTpl->append('bottomratedusers', $array); + $counter++; + } + } + + } + + // Get all users to loop in admin for administration + function getAllUsers ($inspect) { + global $xoopsDB, $xoopsUser, $xoopsTpl; + $data = array(); + if ($inspect == 'yes') { + $sql = "SELECT * FROM ".$xoopsDB->prefix('smallworld_admin')." WHERE (inspect_start + inspect_stop) >= ".time()." ORDER BY username"; + } else { + $sql = "SELECT * FROM ".$xoopsDB->prefix('smallworld_admin')." WHERE (inspect_start + inspect_stop) < ".time()." ORDER BY username"; + } + $result = $xoopsDB->queryF($sql); + $count = $xoopsDB->getRowsNum($result); + if ($count != 0) { + while ($row = $xoopsDB->fetchArray($result)) { + $data[]=$row; + } + } + if(!empty($data)) { + return $data; + } + } + + // check server if update is available + // Server currently at culex.dk + // Variable $version = current xim version number + // return csv file with (version, description, status, downloadUrl) + function doCheckUpdate () { + $version = $this->ModuleInstallVersion (); + $critical = FALSE; + $update = FALSE; + $rt = ''; + + $url = "http://www.culex.dk/updates/smallworld_version.csv"; + $fileC = file_get_contents($url); + $read = explode(";", $fileC); + $upd_img = '../images/upd_ok.png'; + if ($read[0] > $version && $read[2] == "1") { + $critical = TRUE; + $upd_img = '../images/upd_critical.png'; + } + if ($read[0] > $version && $read[2] != "1") { + $update = TRUE; + $upd_img = '../images/upd_normal.png'; + } + if ($critical) { + $rt = "<div class='smallworld_update'><span class='smallworld_update_header'><img class='smallworld_upd_img' src='".$upd_img."' />"._AM_SMALLWORLD_UPDATE_CRITICAL_UPD."</span></div></p>"; + $rt .="<textarea class='xim_update_changelog'>".$read[1]."</textarea><br /><br />"; + $rt .=_AM_SMALLWORLD_UPDATE_SERVER_FILE."<br /><a href='".$read[3]."'>".$read[3]."</a></div><br/>"; + } else if ($update) { + $rt = "<div class='smallworld_update'><span class='smallworld_update_header'><img class='smallworld_upd_img' src='".$upd_img."' />"._AM_SMALLWORLD_UPDATE_NORMAL_UPD."</span></div></p>"; + $rt .= "<textarea class='smallworld_update_changelog'>".$read[1]."</textarea><br /><br />"; + $rt .="<p>". _AM_SMALLWORLD_UPDATE_SERVER_FILE."<br /><a href='".$read[3]."'>".$read[3]."</a>"; + } else { + $rt = "<div class='smallworld_update'><span class='smallworld_update_header'><img class='smallworld_upd_img' src='".$upd_img."' />"._AM_SMALLWORLD_UPDATE_YOUHAVENEWESTVERSION."</span></div><br />"; + } + return $rt; + } + + // flatten multidimentional arrays to one dimentional + function flatten($array) { + $return = array(); + while(count($array)) { + $value = array_shift($array); + if(is_array($value)) + foreach($value as $sub) + $array[] = $sub; + else + $return[] = $value; + } + return $return; + } + + function sanitize($text) { + $text = htmlspecialchars($text, ENT_QUOTES); + //$text = preg_replace('/([^\s]{10})(?=[^\s])/m', '$1<br />', $text); + $myts = MyTextSanitizer::getInstance(); + $text = $myts->displayTarea($text,1,1,1,1); + $text = str_replace("\n\r","\n",$text); + $text = str_replace("\r\n","\n",$text); + $text = str_replace("\n","<br />",$text); + $text = str_replace("\"","'",$text); + + return $text; + } +} +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/class/class_collector.php =================================================================== --- XoopsModules/smallworld/trunk/class/class_collector.php (rev 0) +++ XoopsModules/smallworld/trunk/class/class_collector.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,28 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/adminclass.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/db.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/user.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/images.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/profile.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/wall.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/forms.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/uploadclass.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/friends.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/mail.php"); + +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/class/db.php =================================================================== --- XoopsModules/smallworld/trunk/class/db.php (rev 0) +++ XoopsModules/smallworld/trunk/class/db.php 2011-12-24 12:12:03 UTC (rev 8539) @@ -0,0 +1,454 @@ +<?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. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + +class SmallWorldDB { + + function getJobsToDiv ($id) { + global $xoopsUser, $xoopsDB; + $msg=array(); + $new=array(); + $sql = "SELECT employer,position,jobstart,jobstop,description FROM ".$xoopsDB->prefix("smallworld_user")." WHERE userid ='".$id."'"; + $result = $xoopsDB->query($sql); + while ($row = $xoopsDB->fetchArray($result)) { + $employer = unserialize($row['employer']); + $position = unserialize($row['position']); + $jobstart = unserialize($row['jobstart']); + $jobstop = unserialize($row['jobstop']); + $description = unserialize($row['description']); + } + $start = 0; + $end = count($employer)-1; + while ($start<=$end) { + $msg[$start]['employer'] = $employer[$start]; + $msg[$start]['position'] = $position[$start]; + $msg[$start]['jobstart'] = date('d-m-Y',$jobstart[$start]); + $msg[$start]['jobstop'] = date('d-m-Y',$jobstop[$start]); + $msg[$start]['description'] = $description[$start]; + $start++; + } + return $msg; + } + + + function getSchoolToDiv ($id) { + global $xoopsUser, $xoopsDB,$arr7; + $msg=array(); + $sql = "SELECT school_type,school,schoolstart,schoolstop FROM ".$xoopsDB->prefix("smallworld_user")." WHERE userid ='".$id."'"; + $result = $xoopsDB->query($sql); + while ($row = $xoopsDB->fetchArray($result)) { + $school_type = unserialize($row['school_type']); + $school = unserialize($row['school']); + $schoolstart = unserialize($row['schoolstart']); + $schoolstop = unserialize($row['schoolstop']); + } + $start = 0; + $end = count($school_type)-1; + while ($start<=$end) { + $msg[$start]['school_type'] = $school_type[$start]; + $msg[$start]['school'] = $arr7[$school[$start]]; + $msg[$start]['schoolstart'] = date('d-m-Y',$schoolstart[$start]); + $msg[$start]['schoolstop'] = date('d-m-Y',$schoolstop[$start]); + $start++; + } + return $msg; + } + + function getScreennamesToDiv ($id) { + global $xoopsUser, $xoopsDB,$arr06; + $msg=array(); + $sql = "SELECT screenname_type,screenname FROM ".$xoopsDB->prefix("smallworld_user")." WHERE userid ='".$id."'"; + $result = $xoopsDB->query($sql); + while ($row = $xoopsDB->fetchArray($result)) { + $screenname_type = unserialize($row['screenname_type']); + $screenname = unserialize($row['screenname']); + } + $start = 0; + $end = count($screenname_type)-1; + while ($start<=$end) { + $msg[$start]['screenname'] = $screenname_type[$start]; + $msg[$start]['screenname_type'] = $arr06[$screenname[$start]]; + $msg[$start]['link'] = "<span class='smallworld_website'>".Smallworld_sociallinks($screenname[$start], $msg[$start]['screenname']); + $start++; + } + return $msg; + } + +// Do query in db + function getVar ($id, $var) { + global $xoopsUser, $xoopsDB; + $sql = "SELECT ".$var." FROM ".$xoopsDB->prefix('smallworld_user')." WHERE userid = '".$id."'"; + $result = $xoopsDB->queryF($sql); + if ($xoopsDB->getRowsNum($result) < 1) { + return _SMALLWORLD_REPLY_NOTSPECIFIYED; + } + while ($row = $xoopsDB->fetchArray($result)) { + $msg[$var] = $row[$var]; + } + return $msg[$var]; + } + + function updateSingleValue ($table, $userid, $field, $value) { + global $xoopsUser, $xoopsDB; + $myts =& MyTextSanitizer::getInstance(); + $sql = "UPDATE ".$xoopsDB->prefix($table)." SET ".$field."='".$myts->addSlashes($value)."' WHERE userid='".intval($userid)."'"; + $result =$xoopsDB->queryF($sql); + } + + function saveImage ($values) { + global $xoopsUser, $xoopsDB; + $myts =& MyTextSanitizer::getInstance(); + $sql = "INSERT INTO ".$xoopsDB->prefix('smallworld_images')." VALUES (".$values.")"; + $result =$xoopsDB->queryF($sql); + } + + function DeleteImage ($userid, $imagename) { + global $xoopsUser, $xoopsDB; + $myts =& MyTextSanitizer::getInstance(); + $sql = "DELETE FROM ".$xoopsDB->prefix('smallworld_images')." WHERE imgname = '".stripslashes($imagename)."' AND userid='".$userid."'"; + $result =$xoopsDB->queryF($sql); + } + + function handlePosts () { + global $xoopsUser,$xoopsDB; + $myts =& MyTextSanitizer::getInstance(); + + $uid = $xoopsUser->getVar('uid'); + $user = new XoopsUser($uid); + $img = new SmallWorldImages; + + if ($this->getVar($uid,'userimage') =='') { + $avatar =$user->user_avatar(); + } else { + $avatar = $this->getVar($uid, 'userimage'); + } + + if ($_POST['relationship'] != '2') { + $partner = sanitize($_POST['partner']); + } else { + $partner = ''; + } + + $regdate = time(); + $username = $user->uname(); + $realname = sanitize($_POST['realname']); + $gender = sanitize($_POST['gender']); + $intingender = sanitize(serialize($_POST['intingender'])); + $relationship = sanitize($_POST['relationship']); + $searchrelat = sanitize(serialize($_POST['searchrelat'])); + $birthday = sanitize(euroToUsDate($_POST['birthday'])); + $birthplace = sanitize($_POST['birthplace']); + $birthplace_lat = sanitize($_POST['birthplace_lat']); + $birthplace_lng = sanitize($_POST['birthplace_lng']); + $birthplace_country = sanitize($_POST['birthplace_country']); + $birthplace_country_img = sanitize($_POST['birthplace_country_img']); + $politic = sanitize($_POST['politic']); + $religion = sanitize($_POST['religion']); + $emailtype = sanitize(serialize($_POST['emailtype'])); + $screenname_type = sanitize(serialize($_POST['screenname_type'])); + $screenname = sanitize(serialize($_POST['screenname'])); + $mobile = sanitize($_POST['mobile']); + $phone = sanitize($_POST['phone']); + $adress = sanitize($_POST['adress']); + $present_city = sanitize($_POST['present_city']); + $present_lat = sanitize($_POST['present_lat']); + $present_lng = sanitize($_POST['present_lng']); + $present_country = sanitize($_POST['present_country']); + $present_country_img = sanitize($_POST['present_country_img']); + $website = sanitize($_POST['website']); + $interests = sanitize($_POST['interests']); + $music = sanitize($_POST['music']); + $tvshow = sanitize($_POST['tvshow']); + $movie = sanitize($_POST['movie']); + $books = sanitize($_POST['books']); + $aboutme = sanitize($_POST['aboutme']); + $school_type = sanitize(serialize($_POST['school_type'])); + $school = sanitize(serialize($_POST['school'])); + $schoolstart = sanitize(serialize(DateOfArray ($_POST['schoolstart']))); + $schoolstop = sanitize(serialize(DateOfArray ($_POST['schoolstop']))); + $jobemployer = sanitize(serialize($_POST['employer'])); + $jobposition = sanitize(serialize($_POST['position'])); + $jobstart = sanitize(serialize(DateOfArray ($_POST['jobstart']))); + $jobstop = sanitize(serialize(DateOfArray ($_POST['jobstop']))); + $jobdescription = sanitize(serialize($_POST['description'])); + + $sql = ''; + + if ($_POST['function']=='edit') { + // Update all values in user_table + $sql = "UPDATE ".$xoopsDB->prefix('smallworld_user')." SET "; + $sql .= "realname = '".$realname."', username= '".$username."', userimage = '".$avatar."', gender = '".$gender."',"; + $sql .= "intingender = '".$intingender."',relationship = '".$relationship."', partner = '".$partner."', searchrelat = '".$searchrelat."',"; + $sql .= "birthday = '".$birthday."',birthplace = '".$birthplace."',birthplace_lat = '".floatval($birthplace_lat)."',"; + $sql .= "birthplace_lng = '".floatval($birthplace_lng)."',birthplace_country = '".$birthplace_country."',politic = '".$politic."',"; + $sql .= "religion = '".$religion."',emailtype = '".$emailtype."',screenname_type = '".$screenname_type."',"; + $sql .= "screenname = '".$screenname."',mobile = '".floatval($mobile)."',phone = '".floatval($phone)."',adress = '".$adress."',"; + $sql .= "present_city = '".$present_city."',present_lat = '".floatval($present_lat)."',present_lng = '".floatval($present_lng)."',"; + $sql .= "present_country = '".$present_country."',website = '".$website."',interests = '".$interests."',"; + $sql .= "music = '".$music."',tvshow = '".$tvshow."',movie = '".$movie."',"; + $sql .= "books = '".$books."',aboutme = '".$aboutme."',school_type = '".$school_type."',"; + $sql .= "school = '".$school."', schoolstart = '".$schoolstart."',sc... [truncated message content] |
From: <vo...@us...> - 2011-12-23 15:30:37
|
Revision: 8538 http://xoops.svn.sourceforge.net/xoops/?rev=8538&view=rev Author: voltan1 Date: 2011-12-23 15:30:28 +0000 (Fri, 23 Dec 2011) Log Message: ----------- Rename class and function name Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/about.php XoopsModules/fmcontent/branches/news/admin/ajax.php XoopsModules/fmcontent/branches/news/admin/article.php XoopsModules/fmcontent/branches/news/admin/backend.php XoopsModules/fmcontent/branches/news/admin/file.php XoopsModules/fmcontent/branches/news/admin/header.php XoopsModules/fmcontent/branches/news/admin/index.php XoopsModules/fmcontent/branches/news/admin/permissions.php XoopsModules/fmcontent/branches/news/admin/tools.php XoopsModules/fmcontent/branches/news/admin/topic.php XoopsModules/fmcontent/branches/news/ajax.php XoopsModules/fmcontent/branches/news/article.php XoopsModules/fmcontent/branches/news/blocks/list.php XoopsModules/fmcontent/branches/news/blocks/page.php XoopsModules/fmcontent/branches/news/class/file.php XoopsModules/fmcontent/branches/news/class/perm.php XoopsModules/fmcontent/branches/news/class/story.php XoopsModules/fmcontent/branches/news/class/topic.php XoopsModules/fmcontent/branches/news/class/utils.php XoopsModules/fmcontent/branches/news/header.php XoopsModules/fmcontent/branches/news/include/functions.php XoopsModules/fmcontent/branches/news/include/search.inc.php XoopsModules/fmcontent/branches/news/index.php XoopsModules/fmcontent/branches/news/pdf.php XoopsModules/fmcontent/branches/news/print.php XoopsModules/fmcontent/branches/news/rss.php XoopsModules/fmcontent/branches/news/submit.php XoopsModules/fmcontent/branches/news/topic.php XoopsModules/fmcontent/branches/news/xoops_version.php Modified: XoopsModules/fmcontent/branches/news/admin/about.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/about.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/about.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -21,16 +21,16 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); // Display Admin header xoops_cp_header(); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); // Add Changelog -$file = XOOPS_ROOT_PATH . "/modules/" . $forMods->getVar("dirname") . "/docs/changelog.txt"; +$file = XOOPS_ROOT_PATH . "/modules/" . $NewsModule->getVar("dirname") . "/docs/changelog.txt"; if (is_readable($file)) { $xoopsTpl->assign('module_changelog', utf8_encode(implode("<br />", file($file)))); } else { @@ -39,22 +39,22 @@ $xoopsTpl->assign('navigation', 'about'); $xoopsTpl->assign('navtitle', _NEWS_MI_ABOUT); -$xoopsTpl->assign('module_name', $forMods->getInfo("name")); -$xoopsTpl->assign('module_description', $forMods->getInfo("description")); -$xoopsTpl->assign('module_icon', $forMods->getInfo("image")); -$xoopsTpl->assign('module_version', $forMods->getInfo("version")); -$xoopsTpl->assign('module_author', $forMods->getInfo("author")); -$xoopsTpl->assign('module_credits', $forMods->getInfo("credits")); -$xoopsTpl->assign('module_license', $forMods->getInfo("license")); -$xoopsTpl->assign('module_license_url', $forMods->getInfo("license_url")); -$xoopsTpl->assign('module_release_date', $forMods->getInfo("release_date")); +$xoopsTpl->assign('module_name', $NewsModule->getInfo("name")); +$xoopsTpl->assign('module_description', $NewsModule->getInfo("description")); +$xoopsTpl->assign('module_icon', $NewsModule->getInfo("image")); +$xoopsTpl->assign('module_version', $NewsModule->getInfo("version")); +$xoopsTpl->assign('module_author', $NewsModule->getInfo("author")); +$xoopsTpl->assign('module_credits', $NewsModule->getInfo("credits")); +$xoopsTpl->assign('module_license', $NewsModule->getInfo("license")); +$xoopsTpl->assign('module_license_url', $NewsModule->getInfo("license_url")); +$xoopsTpl->assign('module_release_date', $NewsModule->getInfo("release_date")); $xoopsTpl->assign('module_last_update', formatTimestamp($xoopsModule->getVar("last_update"), "m")); -$xoopsTpl->assign('module_status', $forMods->getInfo("module_status")); -$xoopsTpl->assign('module_website_url', $forMods->getInfo("module_website_url")); -$xoopsTpl->assign('module_website_name', $forMods->getInfo("module_website_name")); +$xoopsTpl->assign('module_status', $NewsModule->getInfo("module_status")); +$xoopsTpl->assign('module_website_url', $NewsModule->getInfo("module_website_url")); +$xoopsTpl->assign('module_website_name', $NewsModule->getInfo("module_website_name")); // Call template file -$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_about.html'); +$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_about.html'); include "footer.php"; xoops_cp_footer(); Modified: XoopsModules/fmcontent/branches/news/admin/ajax.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/ajax.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/ajax.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -20,27 +20,27 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); error_reporting(0); $GLOBALS['xoopsLogger']->activated = false; -$ajax_type = news_CleanVars($_REQUEST, 'type', '', 'string'); +$ajax_type = NewsUtils::News_CleanVars($_REQUEST, 'type', '', 'string'); switch ($ajax_type) { case 'filter': - $value = $func = news_CleanVars($_REQUEST, 'value', '', 'string'); - echo News_Filter($value); + $value = $func = NewsUtils::News_CleanVars($_REQUEST, 'value', '', 'string'); + echo NewsUtils::News_AliasFilter($value); break; case 'words': - $value = $func = news_CleanVars($_REQUEST, 'value', '', 'string'); - echo News_MetaFilter($value); + $value = $func = NewsUtils::News_CleanVars($_REQUEST, 'value', '', 'string'); + echo NewsUtils::News_MetaFilter($value); break; case 'desc': - $value = $func = news_CleanVars($_REQUEST, 'value', '', 'string'); - echo News_AjaxFilter($value); + $value = $func = NewsUtils::News_CleanVars($_REQUEST, 'value', '', 'string'); + echo NewsUtils::News_AjaxFilter($value); break; } Modified: XoopsModules/fmcontent/branches/news/admin/article.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/article.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/article.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -20,13 +20,13 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; // Display Admin header xoops_cp_header(); // Define default value -$op = news_CleanVars($_REQUEST, 'op', '', 'string'); +$op = NewsUtils::News_CleanVars($_REQUEST, 'op', '', 'string'); // Initialize content handler $topic_handler = xoops_getmodulehandler('topic', 'news'); $story_handler = xoops_getmodulehandler('story', 'news'); @@ -34,46 +34,46 @@ // Define scripts $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); -$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/order.js'); -$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/admin.js'); +$xoTheme->addScript('browse.php?modules/' . $NewsModule->getVar('dirname') . '/js/order.js'); +$xoTheme->addScript('browse.php?modules/' . $NewsModule->getVar('dirname') . '/js/admin.js'); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); // get module configs -$story_perpage = xoops_getModuleOption('admin_perpage', $forMods->getVar('dirname')); -$story_order = xoops_getModuleOption('admin_showorder', $forMods->getVar('dirname')); -$story_sort = xoops_getModuleOption('admin_showsort', $forMods->getVar('dirname')); +$story_perpage = xoops_getModuleOption('admin_perpage', $NewsModule->getVar('dirname')); +$story_order = xoops_getModuleOption('admin_showorder', $NewsModule->getVar('dirname')); +$story_sort = xoops_getModuleOption('admin_showsort', $NewsModule->getVar('dirname')); // get user id content if (isset($_REQUEST["user"])) { - $story_user = news_CleanVars($_REQUEST, 'user', 0, 'int'); + $story_user = NewsUtils::News_CleanVars($_REQUEST, 'user', 0, 'int'); } else { $story_user = null; } // get limited information if (isset($_REQUEST['limit'])) { - $story_limit = news_CleanVars($_REQUEST, 'limit', 0, 'int'); + $story_limit = NewsUtils::News_CleanVars($_REQUEST, 'limit', 0, 'int'); } else { $story_limit = $story_perpage; } // get start information if (isset($_REQUEST['start'])) { - $story_start = news_CleanVars($_REQUEST, 'start', 0, 'int'); + $story_start = NewsUtils::News_CleanVars($_REQUEST, 'start', 0, 'int'); } else { $story_start = 0; } // get topic information if (isset($_REQUEST['topic'])) { - $story_topic = news_CleanVars($_REQUEST, 'topic', 0, 'int'); + $story_topic = NewsUtils::News_CleanVars($_REQUEST, 'topic', 0, 'int'); if ($story_topic) { $topics = $topic_handler->getall($story_topic); - $topic_title = NewsTopicHandler::getTopicFromId ( $story_topic ); + $topic_title = NewsTopicHandler::News_GetTopicFromId ( $story_topic ); } else { $topics = $topic_title = _NEWS_AM_CONTENT_STATICS; } @@ -86,27 +86,27 @@ switch ($op) { case 'new_content': - $story_type = news_CleanVars($_REQUEST, 'story_type', 'news', 'string'); + $story_type = NewsUtils::News_CleanVars($_REQUEST, 'story_type', 'news', 'string'); $obj = $story_handler->create(); - $obj->getContentForm($forMods, $story_type); + $obj->News_GetContentForm($NewsModule, $story_type); break; case 'edit_content': - $story_id = news_CleanVars($_REQUEST, 'story_id', 0, 'int'); + $story_id = NewsUtils::News_CleanVars($_REQUEST, 'story_id', 0, 'int'); if ($story_id > 0) { $obj = $story_handler->get($story_id); - $obj->getContentForm($forMods); + $obj->News_GetContentForm($NewsModule); } else { - News_Redirect('article.php', 1, _NEWS_AM_MSG_EDIT_ERROR); + NewsUtils::News_Redirect('article.php', 1, _NEWS_AM_MSG_EDIT_ERROR); } break; case 'delete': - $story_id = news_CleanVars($_REQUEST, 'story_id', '0', 'int'); + $story_id = NewsUtils::News_CleanVars($_REQUEST, 'story_id', '0', 'int'); if ($story_id > 0) { $content = $story_handler->get($story_id); // Prompt message - News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, $content->getVar('story_type') . ': "' . $content->getVar('story_title') . '"'), $story_id, 'content'); + NewsUtils::News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, $content->getVar('story_type') . ': "' . $content->getVar('story_title') . '"'), $story_id, 'content'); // Display Admin footer xoops_cp_footer(); } @@ -143,8 +143,8 @@ 'story_static' => false, ); - $contents = $story_handler->getExpireContentList($forMods, $story_infos); - $story_numrows = $story_handler->getExpireContentCount($forMods, $story_infos); + $contents = $story_handler->News_GetExpireContentList($NewsModule, $story_infos); + $story_numrows = $story_handler->News_GetExpireContentCount($NewsModule, $story_infos); if ($story_numrows > $story_limit) { $story_pagenav = new XoopsPageNav($story_numrows, $story_limit, $story_start, 'start', 'limit=' . $story_limit . '&op=offline'); @@ -158,11 +158,11 @@ $xoopsTpl->assign('topic_title', $topic_title); $xoopsTpl->assign('contents', $contents); $xoopsTpl->assign('story_pagenav', $story_pagenav); - $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); // Call template file - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_article.html'); + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_article.html'); break; @@ -180,8 +180,8 @@ 'story_static' => false, ); - $contents = $story_handler->getAdminContentList($forMods, $story_infos); - $story_numrows = $story_handler->getOfflineContentCount($forMods, $story_infos); + $contents = $story_handler->News_GetAdminContentList($NewsModule, $story_infos); + $story_numrows = $story_handler->News_GetOfflineContentCount($NewsModule, $story_infos); if ($story_numrows > $story_limit) { $story_pagenav = new XoopsPageNav($story_numrows, $story_limit, $story_start, 'start', 'limit=' . $story_limit . '&op=offline'); @@ -195,11 +195,11 @@ $xoopsTpl->assign('topic_title', $topic_title); $xoopsTpl->assign('contents', $contents); $xoopsTpl->assign('story_pagenav', $story_pagenav); - $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); // Call template file - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_article.html'); + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_article.html'); break; @@ -217,8 +217,8 @@ 'story_static' => false, ); - $contents = $story_handler->getAdminContentList($forMods, $story_infos); - $story_numrows = $story_handler->getAdminContentCount($forMods, $story_infos); + $contents = $story_handler->News_GetAdminContentList($NewsModule, $story_infos); + $story_numrows = $story_handler->News_GetAdminContentCount($NewsModule, $story_infos); if ($story_numrows > $story_limit) { if ($story_topic) { @@ -236,11 +236,11 @@ $xoopsTpl->assign('topic_title', $topic_title); $xoopsTpl->assign('contents', $contents); $xoopsTpl->assign('story_pagenav', $story_pagenav); - $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); // Call template file - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_article.html'); + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_article.html'); break; Modified: XoopsModules/fmcontent/branches/news/admin/backend.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/backend.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/backend.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -20,15 +20,15 @@ */ require dirname(__FILE__) . '/header.php'; -if (! isset ( $forMods )) exit ( 'Module not found' ); +if (! isset ( $NewsModule )) exit ( 'Module not found' ); // Define default value -$op = news_CleanVars ( $_REQUEST, 'op', 'new', 'string' ); +$op = NewsUtils::News_CleanVars ( $_REQUEST, 'op', 'new', 'string' ); // Admin header xoops_cp_header (); // Redirect to content page if (! isset ( $op )) { - News_Redirect ( 'index.php', 0, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'index.php', 0, _NEWS_AM_MSG_WAIT ); // Include footer xoops_cp_footer (); exit (); @@ -45,21 +45,21 @@ $obj = $topic_handler->create (); $obj->setVars ( $_REQUEST ); - if($topic_handler->existAlias($forMods,$_REQUEST)) { - News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + if($topic_handler->News_ExistTopicAlias($NewsModule,$_REQUEST)) { + NewsUtils::News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); xoops_cp_footer (); exit (); } $obj->setVar ( 'topic_date_created', time () ); $obj->setVar ( 'topic_date_update', time () ); - $obj->setVar ( 'topic_weight', $topic_handler->setorder($forMods) ); + $obj->setVar ( 'topic_weight', $topic_handler->setorder($NewsModule) ); //image - NewsUtils::uploadimg ( $forMods, 'topic_img', $obj, $_REQUEST ['topic_img'] ); + NewsUtils::News_UploadImg ( $NewsModule, 'topic_img', $obj, $_REQUEST ['topic_img'] ); if (! $topic_handler->insert ( $obj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } @@ -67,47 +67,47 @@ $topic_id = $obj->db->getInsertId (); //permission - NewsPermission::setpermission ( $forMods, 'news_access', $_POST ['groups_view'], $topic_id, true ); - NewsPermission::setpermission ( $forMods, 'news_submit', $_POST ['groups_submit'], $topic_id, true ); + NewsPermission::News_SetPermission ( $NewsModule, 'news_access', $_POST ['groups_view'], $topic_id, true ); + NewsPermission::News_SetPermission ( $NewsModule, 'news_submit', $_POST ['groups_submit'], $topic_id, true ); // Redirect page - News_Redirect ( 'topic.php', 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'topic.php', 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; case 'edit_topic' : - $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + $topic_id = NewsUtils::News_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); if ($topic_id > 0) { $obj = $topic_handler->get ( $topic_id ); $obj->setVars ( $_POST ); $obj->setVar ( 'topic_date_update', time () ); - if($topic_handler->existAlias($forMods,$_REQUEST)) { - News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + if($topic_handler->News_ExistTopicAlias($NewsModule,$_REQUEST)) { + NewsUtils::News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); xoops_cp_footer (); exit (); } //image - NewsUtils::uploadimg ( $forMods, 'topic_img', $obj, $_REQUEST ['topic_img'] ); + NewsUtils::News_UploadImg ( $NewsModule, 'topic_img', $obj, $_REQUEST ['topic_img'] ); if (isset ( $_POST ['deleteimage'] ) && intval ( $_POST ['deleteimage'] ) == 1) { - NewsUtils::deleteimg ( $forMods, 'topic_img', $obj ); + NewsUtils::News_DeleteImg ( $NewsModule, 'topic_img', $obj ); } //permission - NewsPermission::setpermission ( $forMods, 'news_access', $_POST ['groups_view'], $topic_id, false ); - NewsPermission::setpermission ( $forMods, 'news_submit', $_POST ['groups_submit'], $topic_id, false ); + NewsPermission::News_SetPermission ( $NewsModule, 'news_access', $_POST ['groups_view'], $topic_id, false ); + NewsPermission::News_SetPermission ( $NewsModule, 'news_submit', $_POST ['groups_submit'], $topic_id, false ); if (! $topic_handler->insert ( $obj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } } // Redirect page - News_Redirect ( 'topic.php', 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'topic.php', 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; @@ -119,15 +119,15 @@ $obj = $story_handler->create (); $obj->setVars ( $_REQUEST ); - if($story_handler->existAlias($forMods,$_REQUEST)) { - News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + if($story_handler->News_ExistAlias($NewsModule,$_REQUEST)) { + NewsUtils::News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); xoops_cp_footer (); exit (); } if(!$_REQUEST ['story_default'] && $_REQUEST ['story_topic'] == 0) { $criteria = new CriteriaCompo (); - $criteria->add ( new Criteria ( 'story_modid', $forMods->getVar ( 'mid' ) ) ); + $criteria->add ( new Criteria ( 'story_modid', $NewsModule->getVar ( 'mid' ) ) ); $criteria->add ( new Criteria ( 'story_topic', 0) ); $criteria->add ( new Criteria ( 'story_default', 1 ) ); if(!$story_handler->getCount ( $criteria )) { @@ -135,9 +135,9 @@ } } - $obj->setVar ( 'story_order', $story_handler->setorder($forMods) ); - $obj->setVar ( 'story_next', $story_handler->setNext($forMods, $_REQUEST ['story_topic']) ); - $obj->setVar ( 'story_prev', $story_handler->setPrevious($forMods, $_REQUEST ['story_topic']) ); + $obj->setVar ( 'story_order', $story_handler->News_SetContentOrder($NewsModule) ); + $obj->setVar ( 'story_next', $story_handler->News_SetNext($NewsModule, $_REQUEST ['story_topic']) ); + $obj->setVar ( 'story_prev', $story_handler->News_SetPrevious($NewsModule, $_REQUEST ['story_topic']) ); $obj->setVar ( 'story_groups', $groups ); $obj->setVar ( 'story_create', time () ); $obj->setVar ( 'story_update', time () ); @@ -156,53 +156,53 @@ } //image - NewsUtils::uploadimg ( $forMods, 'story_img', $obj, $_REQUEST ['story_img'] ); + NewsUtils::News_UploadImg ( $NewsModule, 'story_img', $obj, $_REQUEST ['story_img'] ); - $story_handler->updateposts ( $_REQUEST ['story_uid'], $_REQUEST ['story_status'], $story_action = 'add' ); + $story_handler->News_Updateposts ( $_REQUEST ['story_uid'], $_REQUEST ['story_status'], $story_action = 'add' ); if (! $story_handler->insert ( $obj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } // Reset next and previous content - $story_handler->resetNext($forMods, $_REQUEST ['story_topic'] , $obj->getVar ( 'story_id' )); - $story_handler->resetPrevious($forMods, $_REQUEST ['story_topic'] , $obj->getVar ( 'story_id' )); + $story_handler->News_ResetNext($NewsModule, $_REQUEST ['story_topic'] , $obj->getVar ( 'story_id' )); + $story_handler->News_ResetPrevious($NewsModule, $_REQUEST ['story_topic'] , $obj->getVar ( 'story_id' )); // tag - if ((xoops_getModuleOption ( 'usetag', $forMods->getVar ( 'dirname' ) )) and (is_dir ( XOOPS_ROOT_PATH . '/modules/tag' ))) { + if ((xoops_getModuleOption ( 'usetag', $NewsModule->getVar ( 'dirname' ) )) and (is_dir ( XOOPS_ROOT_PATH . '/modules/tag' ))) { $tag_handler = xoops_getmodulehandler ( 'tag', 'tag' ); - $tag_handler->updateByItem ( $_POST ["item_tag"], $obj->getVar ( 'story_id' ), $forMods->getVar ( "dirname" ), 0 ); + $tag_handler->updateByItem ( $_POST ["item_tag"], $obj->getVar ( 'story_id' ), $NewsModule->getVar ( "dirname" ), 0 ); } // file if($_REQUEST ['file_name']) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); - $fileobj->setVar ( 'file_modid', $forMods->getVar ( 'mid' ) ); + $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); $fileobj->setVar ( 'file_title', $_REQUEST ['story_title'] ); $fileobj->setVar ( 'file_content', $obj->getVar ( 'story_id' ) ); $fileobj->setVar ( 'file_status', 1 ); - NewsUtils::uploadfile ( $forMods, 'file_name', $fileobj, $_REQUEST ['file_name'] ); - $story_handler->contentfile('add',$obj->getVar ( 'story_id' )); + NewsUtils::News_UploadFile ( $NewsModule, 'file_name', $fileobj, $_REQUEST ['file_name'] ); + $story_handler->News_Contentfile('add',$obj->getVar ( 'story_id' )); if (! $file_handler->insert ( $fileobj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } } // Redirect page - News_Redirect ( 'article.php', 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'article.php', 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; case 'edit' : - $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + $story_id = NewsUtils::News_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); if ($story_id > 0) { $groups = (isset ( $_POST ['story_groups'] )) ? $_POST ['story_groups'] : ''; $groups = (is_array ( $groups )) ? implode ( " ", $groups ) : ''; @@ -225,8 +225,8 @@ $obj->setVar ( 'story_expire', 0 ); } - if($story_handler->existAlias($forMods,$_REQUEST)) { - News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + if($story_handler->News_ExistAlias($NewsModule,$_REQUEST)) { + NewsUtils::News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); xoops_cp_footer (); exit (); } @@ -256,36 +256,36 @@ } //image - NewsUtils::uploadimg ( $forMods, 'story_img', $obj, $_REQUEST ['story_img'] ); + NewsUtils::News_UploadImg ( $NewsModule, 'story_img', $obj, $_REQUEST ['story_img'] ); if (isset ( $_POST ['deleteimage'] ) && intval ( $_POST ['deleteimage'] ) == 1) { - NewsUtils::deleteimg ( $forMods, 'story_img', $obj ); + NewsUtils::News_DeleteImg ( $NewsModule, 'story_img', $obj ); } if (! $story_handler->insert ( $obj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } //tag - if ((xoops_getModuleOption ( 'usetag', $forMods->getVar ( 'dirname' ) )) and (is_dir ( XOOPS_ROOT_PATH . '/modules/tag' ))) { + if ((xoops_getModuleOption ( 'usetag', $NewsModule->getVar ( 'dirname' ) )) and (is_dir ( XOOPS_ROOT_PATH . '/modules/tag' ))) { $tag_handler = xoops_getmodulehandler ( 'tag', 'tag' ); - $tag_handler->updateByItem ( $_POST ["item_tag"], $story_id, $forMods->getVar ( "dirname" ), $catid = 0 ); + $tag_handler->updateByItem ( $_POST ["item_tag"], $story_id, $NewsModule->getVar ( "dirname" ), $catid = 0 ); } // file if($_REQUEST ['file_name']) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); - $fileobj->setVar ( 'file_modid', $forMods->getVar ( 'mid' ) ); + $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); $fileobj->setVar ( 'file_title', $_REQUEST ['story_title'] ); $fileobj->setVar ( 'file_content', $obj->getVar ( 'story_id' ) ); $fileobj->setVar ( 'file_status', 1 ); - NewsUtils::uploadfile ( $forMods, 'file_name', $fileobj, $_REQUEST ['file_name'] ); - $story_handler->contentfile('add',$obj->getVar ( 'story_id' )); + NewsUtils::News_UploadFile ( $NewsModule, 'file_name', $fileobj, $_REQUEST ['file_name'] ); + $story_handler->News_Contentfile('add',$obj->getVar ( 'story_id' )); if (! $file_handler->insert ( $fileobj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } @@ -294,7 +294,7 @@ } // Redirect page - News_Redirect ( 'article.php', 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'article.php', 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; @@ -305,50 +305,50 @@ $obj->setVars ( $_REQUEST ); $obj->setVar ( 'file_date', time () ); - NewsUtils::uploadfile ( $forMods, 'file_name', $obj, $_REQUEST ['file_name'] ); - $story_handler->contentfile('add',$_REQUEST['file_content']); + NewsUtils::News_UploadFile ( $NewsModule, 'file_name', $obj, $_REQUEST ['file_name'] ); + $story_handler->News_Contentfile('add',$_REQUEST['file_content']); if (! $file_handler->insert ( $obj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } // Redirect page - News_Redirect ( 'file.php', 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'file.php', 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; case 'edit_file' : - $file_id = news_CleanVars ( $_REQUEST, 'file_id', 0, 'int' ); + $file_id = NewsUtils::News_CleanVars ( $_REQUEST, 'file_id', 0, 'int' ); if ($file_id > 0) { $obj = $file_handler->get ( $file_id ); $obj->setVars ( $_REQUEST ); if($_REQUEST['file_content'] != $_REQUEST['file_previous']) { - $story_handler->contentfile('add', $_REQUEST['file_content']); - $story_handler->contentfile('delete',$_REQUEST['file_previous']); + $story_handler->News_Contentfile('add', $_REQUEST['file_content']); + $story_handler->News_Contentfile('delete',$_REQUEST['file_previous']); } if (! $file_handler->insert ( $obj )) { - News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + NewsUtils::News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); xoops_cp_footer (); exit (); } } // Redirect page - News_Redirect ( 'file.php', 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( 'file.php', 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; case 'status' : - $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + $story_id = NewsUtils::News_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); if ($story_id > 0) { $obj = & $story_handler->get ( $story_id ); $old = $obj->getVar ( 'story_status' ); - $story_handler->updateposts ( $obj->getVar ( 'story_uid' ), $obj->getVar ( 'story_status' ), $story_action = 'status' ); + $story_handler->News_Updateposts ( $obj->getVar ( 'story_uid' ), $obj->getVar ( 'story_status' ), $story_action = 'status' ); $obj->setVar ( 'story_status', ! $old ); if ($story_handler->insert ( $obj )) { exit (); @@ -358,8 +358,8 @@ break; case 'default' : - $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); - $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + $story_id = NewsUtils::News_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + $topic_id = NewsUtils::News_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); if ($story_id > 0) { $criteria = new CriteriaCompo (); $criteria->add ( new Criteria ( 'story_topic', $topic_id ) ); @@ -374,7 +374,7 @@ break; case 'important' : - $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + $story_id = NewsUtils::News_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); if ($story_id > 0) { $obj = & $story_handler->get ( $story_id ); $old = $obj->getVar ( 'story_important' ); @@ -387,7 +387,7 @@ break; case 'topic_asmenu' : - $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + $topic_id = NewsUtils::News_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); if ($topic_id > 0) { $obj = & $topic_handler->get ( $topic_id ); $old = $obj->getVar ( 'topic_asmenu' ); @@ -400,7 +400,7 @@ break; case 'topic_online' : - $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + $topic_id = NewsUtils::News_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); if ($topic_id > 0) { $obj = & $topic_handler->get ( $topic_id ); $old = $obj->getVar ( 'topic_online' ); @@ -413,7 +413,7 @@ break; case 'topic_show' : - $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + $topic_id = NewsUtils::News_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); if ($topic_id > 0) { $obj = & $topic_handler->get ( $topic_id ); $old = $obj->getVar ( 'topic_show' ); @@ -426,7 +426,7 @@ break; case 'file_status' : - $file_id = news_CleanVars ( $_REQUEST, 'file_id', 0, 'int' ); + $file_id = NewsUtils::News_CleanVars ( $_REQUEST, 'file_id', 0, 'int' ); if ($file_id > 0) { $obj = & $file_handler->get ( $file_id ); $old = $obj->getVar ( 'file_status' ); @@ -440,14 +440,14 @@ case 'delete' : //print_r($_POST); - $id = news_CleanVars ( $_REQUEST, 'id', 0, 'int' ); - $handler = news_CleanVars ( $_REQUEST, 'handler', 0, 'string' ); + $id = NewsUtils::News_CleanVars ( $_REQUEST, 'id', 0, 'int' ); + $handler = NewsUtils::News_CleanVars ( $_REQUEST, 'handler', 0, 'string' ); if ($id > 0 && $handler) { switch($handler) { case 'content': $obj = $story_handler->get ( $id ); $url = 'article.php'; - $story_handler->updateposts ( $obj->getVar ( 'story_uid' ), $obj->getVar ( 'story_status' ), $story_action = 'delete' ); + $story_handler->News_Updateposts ( $obj->getVar ( 'story_uid' ), $obj->getVar ( 'story_status' ), $story_action = 'delete' ); if (! $story_handler->delete ( $obj )) { echo $obj->getHtmlErrors (); } @@ -462,7 +462,7 @@ case 'file': $obj = $file_handler->get ( $id ); $url = 'file.php'; - $story_handler->contentfile('delete',$obj->getVar ( 'file_content' )); + $story_handler->News_Contentfile('delete',$obj->getVar ( 'file_content' )); if (! $file_handler->delete ( $obj )) { echo $obj->getHtmlErrors (); } @@ -471,14 +471,14 @@ } // Redirect page - News_Redirect ( $url , 1, _NEWS_AM_MSG_WAIT ); + NewsUtils::News_Redirect ( $url , 1, _NEWS_AM_MSG_WAIT ); xoops_cp_footer (); exit (); break; } // Redirect page -News_Redirect ( 'index.php', 1, _NEWS_AM_MSG_WAIT ); +NewsUtils::News_Redirect ( 'index.php', 1, _NEWS_AM_MSG_WAIT ); // Include footer xoops_cp_footer (); Modified: XoopsModules/fmcontent/branches/news/admin/file.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/file.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/file.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -19,23 +19,23 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; // Display Admin header xoops_cp_header(); // Define default value -$op = news_CleanVars($_REQUEST, 'op', '', 'string'); +$op = NewsUtils::News_CleanVars($_REQUEST, 'op', '', 'string'); // Initialize content handler $file_handler = xoops_getmodulehandler('file', 'news'); $story_handler = xoops_getmodulehandler('story', 'news'); // Define scripts $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); -$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/order.js'); -$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/admin.js'); +$xoTheme->addScript('browse.php?modules/' . $NewsModule->getVar('dirname') . '/js/order.js'); +$xoTheme->addScript('browse.php?modules/' . $NewsModule->getVar('dirname') . '/js/admin.js'); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); @@ -43,25 +43,25 @@ { case 'new_file': $obj = $file_handler->create(); - $obj->getForm($forMods); + $obj->getForm($NewsModule); break; case 'edit_file': - $file_id = news_CleanVars($_REQUEST, 'file_id', 0, 'int'); + $file_id = NewsUtils::News_CleanVars($_REQUEST, 'file_id', 0, 'int'); if ($file_id > 0) { $obj = $file_handler->get($file_id); - $obj->getForm($forMods); + $obj->getForm($NewsModule); } else { - News_Redirect('file.php', 1, _NEWS_AM_MSG_EDIT_ERROR); + NewsUtils::News_Redirect('file.php', 1, _NEWS_AM_MSG_EDIT_ERROR); } break; case 'delete_file': - $file_id = news_CleanVars($_REQUEST, 'file_id', 0, 'int'); + $file_id = NewsUtils::News_CleanVars($_REQUEST, 'file_id', 0, 'int'); if ($file_id > 0) { $file = $file_handler->get($file_id); // Prompt message - News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, '"' . $file->getVar('file_title') . '"'), $file_id, 'file'); + NewsUtils::News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, '"' . $file->getVar('file_title') . '"'), $file_id, 'file'); // Display Admin footer xoops_cp_footer(); } @@ -71,9 +71,9 @@ // get module configs /* - $file['perpage'] = xoops_getModuleOption('admin_perpage_file', $forMods->getVar('dirname')); - $file['order'] = xoops_getModuleOption('admin_showorder_file', $forMods->getVar('dirname')); - $file['sort'] = xoops_getModuleOption('admin_showsort_file', $forMods->getVar('dirname')); + $file['perpage'] = xoops_getModuleOption('admin_perpage_file', $NewsModule->getVar('dirname')); + $file['order'] = xoops_getModuleOption('admin_showorder_file', $NewsModule->getVar('dirname')); + $file['sort'] = xoops_getModuleOption('admin_showsort_file', $NewsModule->getVar('dirname')); */ $file['perpage'] = '10'; @@ -82,30 +82,30 @@ // get limited information if (isset($_REQUEST['limit'])) { - $file['limit'] = news_CleanVars($_REQUEST, 'limit', 0, 'int'); + $file['limit'] = NewsUtils::News_CleanVars($_REQUEST, 'limit', 0, 'int'); } else { $file['limit'] = $file['perpage']; } // get start information if (isset($_REQUEST['start'])) { - $file['start'] = news_CleanVars($_REQUEST, 'start', 0, 'int'); + $file['start'] = NewsUtils::News_CleanVars($_REQUEST, 'start', 0, 'int'); } else { $file['start'] = 0; } // get content if (isset($_REQUEST['content'])) { - $file['content'] = news_CleanVars($_REQUEST, 'content', 0, 'int'); + $file['content'] = NewsUtils::News_CleanVars($_REQUEST, 'content', 0, 'int'); $content = $story_handler->get($file['content']); } else { $content = $story_handler->getall(); } - $files = $file_handler->getAdminFiles($forMods, $file , $content); + $files = $file_handler->News_GetAdminFiles($NewsModule, $file , $content); - $file_numrows = $file_handler->getFileCount($forMods); + $file_numrows = $file_handler->News_GetFileCount($NewsModule); if ($file_numrows > $file['limit']) { $file_pagenav = new XoopsPageNav($file_numrows, $file['limit'], $file['start'], 'start', 'limit=' . $file['limit']); @@ -118,11 +118,11 @@ $xoopsTpl->assign('navtitle', _NEWS_MI_FILE); $xoopsTpl->assign('files', $files); $xoopsTpl->assign('file_pagenav', $file_pagenav); - $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); $xoopsTpl->assign('news_tips', _NEWS_AM_FILE_TIPS); // Call template file - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_file.html'); + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_file.html'); break; } Modified: XoopsModules/fmcontent/branches/news/admin/header.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/header.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/header.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -39,6 +39,6 @@ xoops_load('xoopsformloader'); $module_handler = xoops_gethandler('module'); -$forMods = $module_handler->getByDirname(basename(dirname(dirname(__FILE__)))); +$NewsModule = $module_handler->getByDirname(basename(dirname(dirname(__FILE__)))); ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/admin/index.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/index.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/index.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -21,12 +21,12 @@ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); $index_admin = new ModuleAdmin(); // Display Admin header xoops_cp_header(); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); $topic_handler = xoops_getmodulehandler('topic', 'news'); @@ -45,10 +45,10 @@ $index_admin = new ModuleAdmin(); $index_admin->addInfoBox(_NEWS_AM_INDEX_ADMENU1); $index_admin->addInfoBox(_NEWS_AM_INDEX_ADMENU2); -$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU1, _NEWS_AM_INDEX_TOPICS, $topic_handler->getTopicCount($forMods)); -$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU2, _NEWS_AM_INDEX_CONTENTS, $story_handler->getAllContentCount($forMods)); -$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU2, _NEWS_AM_INDEX_CONTENTS_OFFLINE, $story_handler->getOfflineContentCount($forMods , $story_infos)); -$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU2, _NEWS_AM_INDEX_CONTENTS_EXPIRE, $story_handler->getExpireContentCount($forMods , $story_infos)); +$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU1, _NEWS_AM_INDEX_TOPICS, $topic_handler->News_GetTopicCount($NewsModule)); +$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU2, _NEWS_AM_INDEX_CONTENTS, $story_handler->News_GetAllContentCount($NewsModule)); +$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU2, _NEWS_AM_INDEX_CONTENTS_OFFLINE, $story_handler->News_GetOfflineContentCount($NewsModule , $story_infos)); +$index_admin->addInfoBoxLine(_NEWS_AM_INDEX_ADMENU2, _NEWS_AM_INDEX_CONTENTS_EXPIRE, $story_handler->News_GetExpireContentCount($NewsModule , $story_infos)); foreach (array_keys( $folder) as $i) { $index_admin->addConfigBoxLine($folder[$i], 'folder'); @@ -60,7 +60,7 @@ $xoopsTpl->assign('renderindex', $index_admin->renderIndex()); // Call template file -$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_index.html'); +$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_index.html'); // Display Xoops footer include "footer.php"; Modified: XoopsModules/fmcontent/branches/news/admin/permissions.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/permissions.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/permissions.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -27,7 +27,7 @@ // Display Admin header xoops_cp_header(); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); $topic_handler = xoops_getmodulehandler('topic', 'news'); //mb @@ -40,7 +40,7 @@ $xoopsTpl->assign('selected1', $selected[1]); $xoopsTpl->assign('selected2', $selected[2]); -$module_id = $forMods->getVar("mid"); +$module_id = $NewsModule->getVar("mid"); switch ($permtoset) { @@ -76,17 +76,17 @@ $xoopsTpl->assign('permform', $permform->render()); } else { $xt = new XoopsTopic($xoopsDB -> prefix("news_topic")); - $alltopics =& $xt->getTopicsList(); + $alltopics =& $xt->News_GetTopicsList(); foreach ($alltopics as $topic_id => $topic) { $permform->addItem($topic_id, $topic["title"], $topic["pid"]); } //check if topics exist before rendering the form and redirect, if there are no topics - if ($topic_handler->getTopicCount($forMods)) { + if ($topic_handler->News_GetTopicCount($NewsModule)) { $xoopsTpl->assign('permform', $permform->render()); } else { - News_Redirect ( 'topic.php?op=new_topic', 02, _NEWS_AM_MSG_NOPERMSSET ); + NewsUtils::News_Redirect ( 'topic.php?op=new_topic', 02, _NEWS_AM_MSG_NOPERMSSET ); // Include footer xoops_cp_footer (); exit (); @@ -98,7 +98,7 @@ $xoopsTpl->assign('news_tips', _NEWS_AM_PERMISSIONS_TIPS); // Call template file -$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_permissions.html'); +$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_permissions.html'); unset ($permform); include "footer.php"; Modified: XoopsModules/fmcontent/branches/news/admin/tools.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/tools.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/tools.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -20,14 +20,14 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); // Display Admin header xoops_cp_header(); // Define default value -$op = news_CleanVars($_REQUEST, 'op', 'display', 'string'); +$op = NewsUtils::News_CleanVars($_REQUEST, 'op', 'display', 'string'); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); // Initialize content handler $topic_handler = xoops_getmodulehandler('topic', 'news'); @@ -55,7 +55,7 @@ $form->addElement(new XoopsFormHidden('op', 'purge')); $clone = array(); while ($myrow = $GLOBALS["xoopsDB"]->fetchArray($result)) { - if ($myrow['story_modid'] != $forMods->getVar('mid')) { + if ($myrow['story_modid'] != $NewsModule->getVar('mid')) { if (!$module_handler->get($myrow['story_modid'])) { $clone[] = $myrow['story_modid']; $form->addElement(new XoopsFormHidden('modid[]', $myrow['story_modid'])); @@ -103,7 +103,7 @@ break; case 'clone': - $folder = news_CleanVars($_REQUEST, 'folder_name', '', 'string'); + $folder = NewsUtils::News_CleanVars($_REQUEST, 'folder_name', '', 'string'); if (!is_dir(XOOPS_ROOT_PATH . '/modules/' . $folder)) { $folder_handler = new FolderHandler(XOOPS_ROOT_PATH . '/modules/' . $folder); $optn = array('to' => XOOPS_ROOT_PATH . '/modules/' . $folder, 'from' => XOOPS_ROOT_PATH . '/modules/news'); @@ -114,7 +114,7 @@ $xoopsTpl->assign('messages', $folder_handler->erros); } } else { - News_Redirect('tools.php', 1, _NEWS_AM_MSG_CLONE_ERROR); + NewsUtils::News_Redirect('tools.php', 1, _NEWS_AM_MSG_CLONE_ERROR); } break; @@ -124,35 +124,35 @@ $story_handler->deleteAll(new Criteria('story_modid', $id)); $topic_handler->deleteAll(new Criteria('topic_modid', $id)); } - News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + NewsUtils::News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); break; case 'alias': - $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); - $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); - NewsUtils::news_rebuild ($story_handler , 'story_id' , 'alias' , 'story_alias' , 'story_title' , $start_id , $end_id); - News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + $start_id = NewsUtils::News_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = NewsUtils::News_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::News_Rebuild ($story_handler , 'story_id' , 'alias' , 'story_alias' , 'story_title' , $start_id , $end_id); + NewsUtils::News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); break; case 'topicalias': - $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); - $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); - NewsUtils::news_rebuild ($topic_handler , 'topic_id' , 'topicalias' , 'topic_alias' , 'topic_title' , $start_id , $end_id); - News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + $start_id = NewsUtils::News_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = NewsUtils::News_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::News_Rebuild ($topic_handler , 'topic_id' , 'topicalias' , 'topic_alias' , 'topic_title' , $start_id , $end_id); + NewsUtils::News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); break; case 'keyword': - $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); - $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); - NewsUtils::news_rebuild ($story_handler , 'story_id' , 'keyword' , 'story_words' , 'story_title' , $start_id , $end_id); - News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + $start_id = NewsUtils::News_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = NewsUtils::News_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::News_Rebuild ($story_handler , 'story_id' , 'keyword' , 'story_words' , 'story_title' , $start_id , $end_id); + NewsUtils::News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); break; case 'description': - $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); - $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); - NewsUtils::news_rebuild ($story_handler , 'story_id' , 'description' , 'story_desc' , 'story_title' , $start_id , $end_id); - News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + $start_id = NewsUtils::News_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = NewsUtils::News_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::News_Rebuild ($story_handler , 'story_id' , 'description' , 'story_desc' , 'story_title' , $start_id , $end_id); + NewsUtils::News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); break; } @@ -160,7 +160,7 @@ $xoopsTpl->assign('navtitle', _NEWS_MI_TOOLS); // Call template file -$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_tools.html'); +$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_tools.html'); // Display Xoops footer include "footer.php"; Modified: XoopsModules/fmcontent/branches/news/admin/topic.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/topic.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/admin/topic.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -20,23 +20,23 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; // Display Admin header xoops_cp_header(); // Define default value -$op = news_CleanVars($_REQUEST, 'op', '', 'string'); +$op = NewsUtils::News_CleanVars($_REQUEST, 'op', '', 'string'); // Initialize content handler $topic_handler = xoops_getmodulehandler('topic', 'news'); $story_handler = xoops_getmodulehandler('story', 'news'); // Define scripts $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); -$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/order.js'); -$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/admin.js'); +$xoTheme->addScript('browse.php?modules/' . $NewsModule->getVar('dirname') . '/js/order.js'); +$xoTheme->addScript('browse.php?modules/' . $NewsModule->getVar('dirname') . '/js/admin.js'); // Add module stylesheet -$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $NewsModule->getVar('dirname') . '/css/admin.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); @@ -44,25 +44,25 @@ { case 'new_topic': $obj = $topic_handler->create(); - $obj->getForm($forMods); + $obj->getForm($NewsModule); break; case 'edit_topic': - $topic_id = news_CleanVars($_REQUEST, 'topic_id', 0, 'int'); + $topic_id = NewsUtils::News_CleanVars($_REQUEST, 'topic_id', 0, 'int'); if ($topic_id > 0) { $obj = $topic_handler->get($topic_id); - $obj->getForm($forMods); + $obj->getForm($NewsModule); } else { - News_Redirect('topic.php', 1, _NEWS_AM_MSG_EDIT_ERROR); + NewsUtils::News_Redirect('topic.php', 1, _NEWS_AM_MSG_EDIT_ERROR); } break; case 'delete_topic': - $topic_id = news_CleanVars($_REQUEST, 'topic_id', 0, 'int'); + $topic_id = NewsUtils::News_CleanVars($_REQUEST, 'topic_id', 0, 'int'); if ($topic_id > 0) { $topic = $topic_handler->get($topic_id); // Prompt message - News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, '"' . $topic->getVar('topic_title') . '"'), $topic_id, 'topic'); + NewsUtils::News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, '"' . $topic->getVar('topic_title') . '"'), $topic_id, 'topic'); // Display Admin footer xoops_cp_footer(); } @@ -88,26 +88,26 @@ default: // get module configs - $topic_perpage = xoops_getModuleOption('admin_perpage_topic', $forMods->getVar('dirname')); - $topic_order = xoops_getModuleOption('admin_showorder_topic', $forMods->getVar('dirname')); - $topic_sort = xoops_getModuleOption('admin_showsort_topic', $forMods->getVar('dirname')); + $topic_perpage = xoops_getModuleOption('admin_perpage_topic', $NewsModule->getVar('dirname')); + $topic_order = xoops_getModuleOption('admin_showorder_topic', $NewsModule->getVar('dirname')); + $topic_sort = xoops_getModuleOption('admin_showsort_topic', $NewsModule->getVar('dirname')); // get limited information if (isset($_REQUEST['limit'])) { - $topic_limit = news_CleanVars($_REQUEST, 'limit', 0, 'int'); + $topic_limit = NewsUtils::News_CleanVars($_REQUEST, 'limit', 0, 'int'); } else { $topic_limit = $topic_perpage; } // get start information if (isset($_REQUEST['start'])) { - $topic_start = news_CleanVars($_REQUEST, 'start', 0, 'int'); + $topic_start = NewsUtils::News_CleanVars($_REQUEST, 'start', 0, 'int'); } else { $topic_start = 0; } - $topics = $topic_handler->getTopics($forMods, $topic_limit, $topic_start, $topic_order, $topic_sort, $topic_menu = null, $topic_online = null , $topic_parent = null); - $topic_numrows = $topic_handler->getTopicCount($forMods); + $topics = $topic_handler->News_GetTopics($NewsModule, $topic_limit, $topic_start, $topic_order, $topic_sort, $topic_menu = null, $topic_online = null , $topic_parent = null); + $topic_numrows = $topic_handler->News_GetTopicCount($NewsModule); if ($topic_numrows > $topic_limit) { $topic_pagenav = new XoopsPageNav($topic_numrows, $topic_limit, $topic_start, 'start', 'limit=' . $topic_limit); @@ -120,11 +120,11 @@ $xoopsTpl->assign('navtitle', _NEWS_MI_TOPIC); $xoopsTpl->assign('topics', $topics); $xoopsTpl->assign('topic_pagenav', $topic_pagenav); - $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); $xoopsTpl->assign('news_tips', _NEWS_AM_TOPIC_TIPS); // Call template file - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_topic.html'); + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_topic.html'); break; } Modified: XoopsModules/fmcontent/branches/news/ajax.php =================================================================== --- XoopsModules/fmcontent/branches/news/ajax.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branches/news/ajax.php 2011-12-23 15:30:28 UTC (rev 8538) @@ -19,19 +19,19 @@ */ require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); +if (!isset($NewsModule)) exit('Module not found'); error_reporting(0); $GLOBALS['xoopsLogger']->activated = false; -$story_id = news_CleanVars($_REQUEST, 'id', '', 'string'); -$story_text = news_CleanVars($_REQUEST, 'value', '', 'string'); +$story_id = NewsUtils::News_CleanVars($_REQUEST, 'id', '', 'string'); +$story_text = NewsUtils::News_CleanVars($_REQUEST, 'value', '', 'string'); list($root, $id) = explode('_', $story_id); if (intval($id) > 0) { // Initialize content handler - $story_handler = xoops_getmodulehandler('story', $forMods->getVar('dirname')); + $story_handler = xoops_getmodulehandler('story', $NewsModule->getVar('dirname')); $content = $story_handler->get($id); $content->setVar('story_text', $story_text); if (!$story_handler->insert($content)) { Modified: XoopsModules/fmcontent/branches/news/article.php =================================================================== --- XoopsModules/fmcontent/branches/news/article.php 2011-12-22 19:31:36 UTC (rev 8537) +++ XoopsModules/fmcontent/branche... [truncated message content] |
From: <be...@us...> - 2011-12-22 19:31:42
|
Revision: 8537 http://xoops.svn.sourceforge.net/xoops/?rev=8537&view=rev Author: beckmi Date: 2011-12-22 19:31:36 +0000 (Thu, 22 Dec 2011) Log Message: ----------- Updating status of Protector Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/xoops_version.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/xoops_version.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/xoops_version.php 2011-12-22 14:42:46 UTC (rev 8536) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/modules/protector/xoops_version.php 2011-12-22 19:31:36 UTC (rev 8537) @@ -37,7 +37,7 @@ $modversion['release_date'] = '2011/10/08'; $modversion["module_website_url"] = "http://www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; -$modversion["module_status"] = "RC"; +$modversion["module_status"] = "Final"; $modversion['min_php']='5.2'; $modversion['min_xoops']="2.5"; // start hack by Mage This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tst...@us...> - 2011-12-22 14:42:56
|
Revision: 8536 http://xoops.svn.sourceforge.net/xoops/?rev=8536&view=rev Author: tstempko Date: 2011-12-22 14:42:46 +0000 (Thu, 22 Dec 2011) Log Message: ----------- Modified Paths: -------------- XoopsLanguages/polish/core/2.5.0/htdocs/modules/system/language/polish/admin/users.php Modified: XoopsLanguages/polish/core/2.5.0/htdocs/modules/system/language/polish/admin/users.php =================================================================== --- XoopsLanguages/polish/core/2.5.0/htdocs/modules/system/language/polish/admin/users.php 2011-12-22 12:06:03 UTC (rev 8535) +++ XoopsLanguages/polish/core/2.5.0/htdocs/modules/system/language/polish/admin/users.php 2011-12-22 14:42:46 UTC (rev 8536) @@ -151,8 +151,8 @@ define("_AM_SYSTEM_USERS_ERROR", "Błąd:<br /><br /> %s"); define("_AM_SYSTEM_USERS_ALLGROUP", "Wszystkie grupy"); define("_AM_SYSTEM_USERS_ALLUSER", "Wszyscy użytkownicy"); -define("_AM_SYSTEM_USERS_ACTIVEUSER", "Tylko aktywni użytkownicy"); -define("_AM_SYSTEM_USERS_INACTIVEUSER", "Tylko nieaktywni użytkownicy"); +define("_AM_SYSTEM_USERS_ACTIVEUSER", "Uaktywnij użytkownika"); +define("_AM_SYSTEM_USERS_INACTIVEUSER", "Dezaktywuj użytkownika"); // Error define("_AM_SYSTEM_USERS_PSEUDO_ERROR","Nazwa użytkownika %s już istnieje"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2011-12-22 12:06:14
|
Revision: 8535 http://xoops.svn.sourceforge.net/xoops/?rev=8535&view=rev Author: voltan1 Date: 2011-12-22 12:06:03 +0000 (Thu, 22 Dec 2011) Log Message: ----------- Add rebuild function Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/tools.php XoopsModules/fmcontent/branches/news/class/utils.php XoopsModules/fmcontent/branches/news/language/arabic/admin.php XoopsModules/fmcontent/branches/news/language/english/admin.php XoopsModules/fmcontent/branches/news/language/persian/admin.php XoopsModules/fmcontent/branches/news/templates/admin/news_tools.html Modified: XoopsModules/fmcontent/branches/news/admin/tools.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/tools.php 2011-12-21 14:07:58 UTC (rev 8534) +++ XoopsModules/fmcontent/branches/news/admin/tools.php 2011-12-22 12:06:03 UTC (rev 8535) @@ -38,22 +38,6 @@ case 'display': default: - // rebuild alias - $form = new XoopsThemeForm(_NEWS_AM_TOOLS_ALIAS_TITLE, 'tools', 'tools.php', 'post'); - $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_ALIAS_CONTENT, 'topic', "1" )); - $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_ALIAS_TOPIC, 'content', "1" )); - $form->addElement(new XoopsFormHidden('op', 'alias')); - $form->addElement(new XoopsFormButton('', 'post', _SUBMIT, 'submit')); - $xoopsTpl->assign('alias', $form->render()); - - // meta alias - $form = new XoopsThemeForm(_NEWS_AM_TOOLS_META_TITLE, 'tools', 'tools.php', 'post'); - $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_META_KEYWORD, 'keyword', "1" )); - $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_META_DESCRIPTION, 'description', "1" )); - $form->addElement(new XoopsFormHidden('op', 'meta')); - $form->addElement(new XoopsFormButton('', 'post', _SUBMIT, 'submit')); - $xoopsTpl->assign('meta', $form->render()); - // Add clone $form = new XoopsThemeForm(_NEWS_AM_TOOLS_FORMFOLDER_TITLE, 'tools', 'tools.php', 'post'); $form->addElement(new XoopsFormText(_NEWS_AM_TOOLS_FORMFOLDER_NAME, 'folder_name', 50, 255, ''), true); @@ -86,6 +70,34 @@ $xoopsTpl->assign('purge', $form->render()); } + // rebuild alias + $form = new XoopsThemeForm(_NEWS_AM_TOOLS_ALIAS_CONTENT, 'tools', 'tools.php', 'post'); + $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_ALIAS_CONTENT, 'content', "1" )); + $form->addElement(new XoopsFormHidden('op', 'alias')); + $form->addElement(new XoopsFormButton('', 'post', _SUBMIT, 'submit')); + $xoopsTpl->assign('alias', $form->render()); + + // rebuild topic alias + $form = new XoopsThemeForm(_NEWS_AM_TOOLS_ALIAS_TOPIC, 'tools', 'tools.php', 'post'); + $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_ALIAS_TOPIC, 'topic', "1" )); + $form->addElement(new XoopsFormHidden('op', 'topicalias')); + $form->addElement(new XoopsFormButton('', 'post', _SUBMIT, 'submit')); + $xoopsTpl->assign('topicalias', $form->render()); + + // rebuild description + $form = new XoopsThemeForm(_NEWS_AM_TOOLS_META_DESCRIPTION, 'tools', 'tools.php', 'post'); + $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_META_DESCRIPTION, 'description', "1" )); + $form->addElement(new XoopsFormHidden('op', 'description')); + $form->addElement(new XoopsFormButton('', 'post', _SUBMIT, 'submit')); + $xoopsTpl->assign('description', $form->render()); + + // rebuild keyword + $form = new XoopsThemeForm(_NEWS_AM_TOOLS_META_KEYWORD, 'tools', 'tools.php', 'post'); + $form->addElement(new XoopsFormRadioYN ( _NEWS_AM_TOOLS_META_KEYWORD, 'keyword', "1" )); + $form->addElement(new XoopsFormHidden('op', 'keyword')); + $form->addElement(new XoopsFormButton('', 'post', _SUBMIT, 'submit')); + $xoopsTpl->assign('keyword', $form->render()); + // other options $xoopsTpl->assign('header', true ); break; @@ -112,88 +124,36 @@ $story_handler->deleteAll(new Criteria('story_modid', $id)); $topic_handler->deleteAll(new Criteria('topic_modid', $id)); } - News_Redirect('tools.php', 1, _NEWS_AM_MSG_WAIT); + News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); break; - - case 'alias': - - - if($_POST['topic']) { - $criteria = new CriteriaCompo (); - $criteria->setSort ( 'topic_id' ); - $criteria->setOrder ( 'DESC' ); - $criteria->setLimit ( 1 ); - $last = $topic_handler->getObjects ( $criteria ); - foreach ( $last as $item ) { - $last_id = $item->getVar ( 'topic_id' ); - } - $topic_id = '1'; - while ($topic_id <= $last_id) { - $obj = $topic_handler->get ( $topic_id ); - if($obj) { - $obj->setVar ( 'topic_alias', News_Filter($obj->getVar ( 'topic_title', 'e' ))); - $topic_handler->insert ( $obj ); - } - $topic_id = $topic_id + 1; - } - } - - if($_POST['content']) { - $criteria = new CriteriaCompo (); - $criteria->setSort ( 'story_id' ); - $criteria->setOrder ( 'DESC' ); - $criteria->setLimit ( 1 ); - $last = $story_handler->getObjects ( $criteria ); - foreach ( $last as $item ) { - $last_id = $item->getVar ( 'story_id' ); - } - $story_id = '1'; - while ($story_id <= $last_id) { - $obj = $story_handler->get ( $story_id ); - if($obj) { - $obj->setVar ( 'story_alias', News_Filter($obj->getVar ( 'story_title', 'e' ))); - $story_handler->insert ( $obj ); - } - $story_id = $story_id + 1; - } - } - News_Redirect('tools.php', 1, _NEWS_AM_MSG_WAIT); - break; + + case 'alias': + $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::news_rebuild ($story_handler , 'story_id' , 'alias' , 'story_alias' , 'story_title' , $start_id , $end_id); + News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + break; + + case 'topicalias': + $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::news_rebuild ($topic_handler , 'topic_id' , 'topicalias' , 'topic_alias' , 'topic_title' , $start_id , $end_id); + News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + break; - case 'meta': - $criteria = new CriteriaCompo (); - $criteria->setSort ( 'story_id' ); - $criteria->setOrder ( 'DESC' ); - $criteria->setLimit ( 1 ); - $last = $story_handler->getObjects ( $criteria ); - foreach ( $last as $item ) { - $last_id = $item->getVar ( 'story_id' ); - } - $story_id = '1'; - - if($_POST['keyword']) { - while ($story_id <= $last_id) { - $obj = $story_handler->get ( $story_id ); - if($obj) { - $obj->setVar ( 'story_words', News_MetaFilter($obj->getVar ( 'story_title', 'e' ))); - $story_handler->insert ( $obj ); - } - $story_id = $story_id + 1; - } - } - - if($_POST['description']) { - while ($story_id <= $last_id) { - $obj = $story_handler->get ( $story_id ); - if($obj) { - $obj->setVar ( 'story_desc', News_AjaxFilter($obj->getVar ( 'story_title', 'e' ))); - $story_handler->insert ( $obj ); - } - $story_id = $story_id + 1; - } - } - News_Redirect('tools.php', 1, _NEWS_AM_MSG_WAIT); - break; + case 'keyword': + $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::news_rebuild ($story_handler , 'story_id' , 'keyword' , 'story_words' , 'story_title' , $start_id , $end_id); + News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + break; + + case 'description': + $start_id = news_CleanVars($_REQUEST, 'start_id', '1', 'int'); + $end_id = news_CleanVars($_REQUEST, 'end_id', '1', 'int'); + NewsUtils::news_rebuild ($story_handler , 'story_id' , 'description' , 'story_desc' , 'story_title' , $start_id , $end_id); + News_Redirect('tools.php', 20, _NEWS_AM_MSG_WAIT); + break; } $xoopsTpl->assign('navigation', 'tools'); Modified: XoopsModules/fmcontent/branches/news/class/utils.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/utils.php 2011-12-21 14:07:58 UTC (rev 8534) +++ XoopsModules/fmcontent/branches/news/class/utils.php 2011-12-22 12:06:03 UTC (rev 8535) @@ -379,6 +379,67 @@ } return true; } + + /** + * Rebuild + */ + function news_rebuild ($handler , $item_id , $op , $set , $get , $start_id, $end_id) { + // check last_id + $criteria = new CriteriaCompo (); + $criteria->setSort ( $item_id ); + $criteria->setOrder ( 'DESC' ); + $criteria->setLimit ( 1 ); + $last = $handler->getObjects ( $criteria ); + foreach ( $last as $item ) { + $last_id = $item->getVar ( $item_id ); + } + // set end_id + $end_id = $end_id + 100; + + // do rebuild + while ($start_id <= $end_id) { + $obj = $handler->get ( $start_id ); + if($obj) { + $new = self::news_dorebuild ($op , $obj->getVar ( $get, 'e' )); + $obj->setVar ( $set , $new); + $handler->insert ( $obj ); + } + $start_id = $start_id + 1; + } + + + // Redirect + if($start_id <= $last_id) { + News_Redirect('tools.php?op='.$op.'&start_id='.$start_id.'&end_id='.$end_id, 20, _NEWS_AM_MSG_INPROC); + xoops_cp_footer (); + exit (); + } + + } + + /** + * Make text for Rebuild + */ + function news_dorebuild ($op , $get) { + switch($op) { + case 'alias': + $item = News_Filter($get); + break; + + case 'topicalias': + $item = News_Filter($get); + break; + + case 'keyword': + $item = News_MetaFilter($get); + break; + + case 'description': + $item = News_AjaxFilter($get); + break; + } + return $item; + } } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/arabic/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/arabic/admin.php 2011-12-21 14:07:58 UTC (rev 8534) +++ XoopsModules/fmcontent/branches/news/language/arabic/admin.php 2011-12-22 12:06:03 UTC (rev 8535) @@ -138,6 +138,7 @@ define('_NEWS_AM_TOOLS_META_TITLE', 'Rebuild Metas'); define('_NEWS_AM_TOOLS_META_KEYWORD', 'Rebuild Meta keywords'); define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'Rebuild Meta Description'); + define('_NEWS_AM_MSG_INPROC', 'Rebuilding ... '); // Permissions define('_NEWS_AM_PERMISSIONS_ACCESS', 'إتاحة العرض'); define('_NEWS_AM_PERMISSIONS_SUBMIT', 'إتاحة الإرسال'); Modified: XoopsModules/fmcontent/branches/news/language/english/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/english/admin.php 2011-12-21 14:07:58 UTC (rev 8534) +++ XoopsModules/fmcontent/branches/news/language/english/admin.php 2011-12-22 12:06:03 UTC (rev 8535) @@ -166,7 +166,8 @@ define('_NEWS_AM_MSG_INSERT_ERROR', 'Could not update database! Insert content error '); define('_NEWS_AM_MSG_CLONE_ERROR', 'This folder already exists !'); define('_NEWS_AM_MSG_NOPERMSSET', 'Permission cannot be set: No Topics created yet! Please create a Topic first.'); - define('_NEWS_AM_MSG_ALIASERROR', 'Your selected Alias is already taken. Please change it and try again'); + define('_NEWS_AM_MSG_ALIASERROR', 'Your selected Alias is already taken. Please change it and try again'); + define('_NEWS_AM_MSG_INPROC', 'Rebuilding ... '); // about define('_NEWS_AM_ABOUT_ADMIN', 'About'); define('_NEWS_AM_ABOUT_DESCRIPTION', 'Description:'); Modified: XoopsModules/fmcontent/branches/news/language/persian/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/persian/admin.php 2011-12-21 14:07:58 UTC (rev 8534) +++ XoopsModules/fmcontent/branches/news/language/persian/admin.php 2011-12-22 12:06:03 UTC (rev 8535) @@ -137,7 +137,8 @@ define('_NEWS_AM_TOOLS_ALIAS_TOPIC', 'دوباره سازی نام مستعار شاخه'); define('_NEWS_AM_TOOLS_META_TITLE', 'Rebuild Metas'); define('_NEWS_AM_TOOLS_META_KEYWORD', 'Rebuild Meta keywords'); - define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'Rebuild Meta Description'); + define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'Rebuild Meta Description'); + define('_NEWS_AM_MSG_INPROC', 'Rebuilding ... '); // Permissions define('_NEWS_AM_PERMISSIONS_ACCESS', 'دسترسی نمایش'); define('_NEWS_AM_PERMISSIONS_SUBMIT', 'دسترسی ارسال'); Modified: XoopsModules/fmcontent/branches/news/templates/admin/news_tools.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/admin/news_tools.html 2011-12-21 14:07:58 UTC (rev 8534) +++ XoopsModules/fmcontent/branches/news/templates/admin/news_tools.html 2011-12-22 12:06:03 UTC (rev 8535) @@ -5,7 +5,9 @@ <{if $folder}><{$folder}><{/if}> <{if $purge}><{$purge}><{/if}> <{if $alias}><{$alias}><{/if}> - <{if $meta}><{$meta}><{/if}> + <{if $topicalias}><{$topicalias}><{/if}> + <{if $description}><{$description}><{/if}> + <{if $keyword}><{$keyword}><{/if}> <{if $messages}> <div id="xo-module-log"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2011-12-21 14:08:11
|
Revision: 8534 http://xoops.svn.sourceforge.net/xoops/?rev=8534&view=rev Author: beckmi Date: 2011-12-21 14:07:58 +0000 (Wed, 21 Dec 2011) Log Message: ----------- Adding Obituaries Added Paths: ----------- XoopsModules/obituaries/ XoopsModules/obituaries/branches/ XoopsModules/obituaries/releases/ XoopsModules/obituaries/releases/2.2/ XoopsModules/obituaries/releases/2.2/obituaries/ XoopsModules/obituaries/releases/2.2/obituaries/admin/ XoopsModules/obituaries/releases/2.2/obituaries/admin/functions.php XoopsModules/obituaries/releases/2.2/obituaries/admin/index.php XoopsModules/obituaries/releases/2.2/obituaries/admin/menu.php XoopsModules/obituaries/releases/2.2/obituaries/blocks/ XoopsModules/obituaries/releases/2.2/obituaries/blocks/b_obituaries.php XoopsModules/obituaries/releases/2.2/obituaries/blocks/index.html XoopsModules/obituaries/releases/2.2/obituaries/class/ XoopsModules/obituaries/releases/2.2/obituaries/class/Numeral.php XoopsModules/obituaries/releases/2.2/obituaries/class/NumeralInterface.php XoopsModules/obituaries/releases/2.2/obituaries/class/PEAR.php XoopsModules/obituaries/releases/2.2/obituaries/class/PersistableObjectHandler.php XoopsModules/obituaries/releases/2.2/obituaries/class/formtextdateselect.php XoopsModules/obituaries/releases/2.2/obituaries/class/index.html XoopsModules/obituaries/releases/2.2/obituaries/class/lite.php XoopsModules/obituaries/releases/2.2/obituaries/class/obituaries_utils.php XoopsModules/obituaries/releases/2.2/obituaries/class/users_obituaries.php XoopsModules/obituaries/releases/2.2/obituaries/comment_delete.php XoopsModules/obituaries/releases/2.2/obituaries/comment_edit.php XoopsModules/obituaries/releases/2.2/obituaries/comment_new.php XoopsModules/obituaries/releases/2.2/obituaries/comment_post.php XoopsModules/obituaries/releases/2.2/obituaries/comment_reply.php XoopsModules/obituaries/releases/2.2/obituaries/doc/ XoopsModules/obituaries/releases/2.2/obituaries/doc/changelog.txt XoopsModules/obituaries/releases/2.2/obituaries/doc/gpl.txt XoopsModules/obituaries/releases/2.2/obituaries/doc/readme.txt XoopsModules/obituaries/releases/2.2/obituaries/doc/readme_arabic.txt XoopsModules/obituaries/releases/2.2/obituaries/footer.php XoopsModules/obituaries/releases/2.2/obituaries/header.php XoopsModules/obituaries/releases/2.2/obituaries/images/ XoopsModules/obituaries/releases/2.2/obituaries/images/bg.png XoopsModules/obituaries/releases/2.2/obituaries/images/crown.png XoopsModules/obituaries/releases/2.2/obituaries/images/delete.png XoopsModules/obituaries/releases/2.2/obituaries/images/edit.png XoopsModules/obituaries/releases/2.2/obituaries/images/hover.gif XoopsModules/obituaries/releases/2.2/obituaries/images/index.html XoopsModules/obituaries/releases/2.2/obituaries/images/left_both.gif XoopsModules/obituaries/releases/2.2/obituaries/images/left_both.png XoopsModules/obituaries/releases/2.2/obituaries/images/logo.png XoopsModules/obituaries/releases/2.2/obituaries/images/modadminbg.gif XoopsModules/obituaries/releases/2.2/obituaries/images/nophoto.jpg XoopsModules/obituaries/releases/2.2/obituaries/images/obituaries_slogo2.png XoopsModules/obituaries/releases/2.2/obituaries/images/right_both.gif XoopsModules/obituaries/releases/2.2/obituaries/images/right_both.png XoopsModules/obituaries/releases/2.2/obituaries/images/selected.gif XoopsModules/obituaries/releases/2.2/obituaries/images/selectedEnd.gif XoopsModules/obituaries/releases/2.2/obituaries/images/selectedStart.gif XoopsModules/obituaries/releases/2.2/obituaries/images/selected_left_F90.gif XoopsModules/obituaries/releases/2.2/obituaries/images/selected_right_F90.gif XoopsModules/obituaries/releases/2.2/obituaries/images/unselected.gif XoopsModules/obituaries/releases/2.2/obituaries/images/unselectedEnd.gif XoopsModules/obituaries/releases/2.2/obituaries/images/unselected_left.gif XoopsModules/obituaries/releases/2.2/obituaries/images/unselected_right.gif XoopsModules/obituaries/releases/2.2/obituaries/include/ XoopsModules/obituaries/releases/2.2/obituaries/include/calendarjs.php XoopsModules/obituaries/releases/2.2/obituaries/include/comment_functions.php XoopsModules/obituaries/releases/2.2/obituaries/include/common.php XoopsModules/obituaries/releases/2.2/obituaries/include/function.php XoopsModules/obituaries/releases/2.2/obituaries/include/index.html XoopsModules/obituaries/releases/2.2/obituaries/include/search.inc.php XoopsModules/obituaries/releases/2.2/obituaries/index.php XoopsModules/obituaries/releases/2.2/obituaries/language/ XoopsModules/obituaries/releases/2.2/obituaries/language/arabic/ XoopsModules/obituaries/releases/2.2/obituaries/language/arabic/admin.php XoopsModules/obituaries/releases/2.2/obituaries/language/arabic/blocks.php XoopsModules/obituaries/releases/2.2/obituaries/language/arabic/index.html XoopsModules/obituaries/releases/2.2/obituaries/language/arabic/main.php XoopsModules/obituaries/releases/2.2/obituaries/language/arabic/modinfo.php XoopsModules/obituaries/releases/2.2/obituaries/language/english/ XoopsModules/obituaries/releases/2.2/obituaries/language/english/admin.php XoopsModules/obituaries/releases/2.2/obituaries/language/english/blocks.php XoopsModules/obituaries/releases/2.2/obituaries/language/english/index.html XoopsModules/obituaries/releases/2.2/obituaries/language/english/main.php XoopsModules/obituaries/releases/2.2/obituaries/language/english/modinfo.php XoopsModules/obituaries/releases/2.2/obituaries/language/french/ XoopsModules/obituaries/releases/2.2/obituaries/language/french/admin.php XoopsModules/obituaries/releases/2.2/obituaries/language/french/blocks.php XoopsModules/obituaries/releases/2.2/obituaries/language/french/index.html XoopsModules/obituaries/releases/2.2/obituaries/language/french/main.php XoopsModules/obituaries/releases/2.2/obituaries/language/french/modinfo.php XoopsModules/obituaries/releases/2.2/obituaries/language/index.html XoopsModules/obituaries/releases/2.2/obituaries/language/italiano/ XoopsModules/obituaries/releases/2.2/obituaries/language/italiano/admin.php XoopsModules/obituaries/releases/2.2/obituaries/language/italiano/blocks.php XoopsModules/obituaries/releases/2.2/obituaries/language/italiano/index.html XoopsModules/obituaries/releases/2.2/obituaries/language/italiano/main.php XoopsModules/obituaries/releases/2.2/obituaries/language/italiano/modinfo.php XoopsModules/obituaries/releases/2.2/obituaries/sql/ XoopsModules/obituaries/releases/2.2/obituaries/sql/index.html XoopsModules/obituaries/releases/2.2/obituaries/sql/mysql.sql XoopsModules/obituaries/releases/2.2/obituaries/templates/ XoopsModules/obituaries/releases/2.2/obituaries/templates/blocks/ XoopsModules/obituaries/releases/2.2/obituaries/templates/blocks/index.html XoopsModules/obituaries/releases/2.2/obituaries/templates/blocks/obituaries_block_last_obituaries.html XoopsModules/obituaries/releases/2.2/obituaries/templates/blocks/obituaries_block_obituaries.html XoopsModules/obituaries/releases/2.2/obituaries/templates/blocks/obituaries_block_random_obituaries.html XoopsModules/obituaries/releases/2.2/obituaries/templates/index.html XoopsModules/obituaries/releases/2.2/obituaries/templates/obituaries_index.html XoopsModules/obituaries/releases/2.2/obituaries/templates/obituaries_user.html XoopsModules/obituaries/releases/2.2/obituaries/templates/obituaries_users.html XoopsModules/obituaries/releases/2.2/obituaries/user.php XoopsModules/obituaries/releases/2.2/obituaries/xoops_version.php XoopsModules/obituaries/trunk/ XoopsModules/obituaries/trunk/obituaries/ XoopsModules/obituaries/trunk/obituaries/admin/ XoopsModules/obituaries/trunk/obituaries/admin/functions.php XoopsModules/obituaries/trunk/obituaries/admin/index.php XoopsModules/obituaries/trunk/obituaries/admin/menu.php XoopsModules/obituaries/trunk/obituaries/blocks/ XoopsModules/obituaries/trunk/obituaries/blocks/b_obituaries.php XoopsModules/obituaries/trunk/obituaries/blocks/index.html XoopsModules/obituaries/trunk/obituaries/class/ XoopsModules/obituaries/trunk/obituaries/class/Numeral.php XoopsModules/obituaries/trunk/obituaries/class/NumeralInterface.php XoopsModules/obituaries/trunk/obituaries/class/PEAR.php XoopsModules/obituaries/trunk/obituaries/class/PersistableObjectHandler.php XoopsModules/obituaries/trunk/obituaries/class/formtextdateselect.php XoopsModules/obituaries/trunk/obituaries/class/index.html XoopsModules/obituaries/trunk/obituaries/class/lite.php XoopsModules/obituaries/trunk/obituaries/class/obituaries_utils.php XoopsModules/obituaries/trunk/obituaries/class/users_obituaries.php XoopsModules/obituaries/trunk/obituaries/comment_delete.php XoopsModules/obituaries/trunk/obituaries/comment_edit.php XoopsModules/obituaries/trunk/obituaries/comment_new.php XoopsModules/obituaries/trunk/obituaries/comment_post.php XoopsModules/obituaries/trunk/obituaries/comment_reply.php XoopsModules/obituaries/trunk/obituaries/doc/ XoopsModules/obituaries/trunk/obituaries/doc/changelog.txt XoopsModules/obituaries/trunk/obituaries/doc/gpl.txt XoopsModules/obituaries/trunk/obituaries/doc/readme.txt XoopsModules/obituaries/trunk/obituaries/doc/readme_arabic.txt XoopsModules/obituaries/trunk/obituaries/footer.php XoopsModules/obituaries/trunk/obituaries/header.php XoopsModules/obituaries/trunk/obituaries/images/ XoopsModules/obituaries/trunk/obituaries/images/bg.png XoopsModules/obituaries/trunk/obituaries/images/crown.png XoopsModules/obituaries/trunk/obituaries/images/delete.png XoopsModules/obituaries/trunk/obituaries/images/edit.png XoopsModules/obituaries/trunk/obituaries/images/hover.gif XoopsModules/obituaries/trunk/obituaries/images/index.html XoopsModules/obituaries/trunk/obituaries/images/left_both.gif XoopsModules/obituaries/trunk/obituaries/images/left_both.png XoopsModules/obituaries/trunk/obituaries/images/logo.png XoopsModules/obituaries/trunk/obituaries/images/modadminbg.gif XoopsModules/obituaries/trunk/obituaries/images/nophoto.jpg XoopsModules/obituaries/trunk/obituaries/images/obituaries_slogo2.png XoopsModules/obituaries/trunk/obituaries/images/right_both.gif XoopsModules/obituaries/trunk/obituaries/images/right_both.png XoopsModules/obituaries/trunk/obituaries/images/selected.gif XoopsModules/obituaries/trunk/obituaries/images/selectedEnd.gif XoopsModules/obituaries/trunk/obituaries/images/selectedStart.gif XoopsModules/obituaries/trunk/obituaries/images/selected_left_F90.gif XoopsModules/obituaries/trunk/obituaries/images/selected_right_F90.gif XoopsModules/obituaries/trunk/obituaries/images/unselected.gif XoopsModules/obituaries/trunk/obituaries/images/unselectedEnd.gif XoopsModules/obituaries/trunk/obituaries/images/unselected_left.gif XoopsModules/obituaries/trunk/obituaries/images/unselected_right.gif XoopsModules/obituaries/trunk/obituaries/include/ XoopsModules/obituaries/trunk/obituaries/include/calendarjs.php XoopsModules/obituaries/trunk/obituaries/include/comment_functions.php XoopsModules/obituaries/trunk/obituaries/include/common.php XoopsModules/obituaries/trunk/obituaries/include/function.php XoopsModules/obituaries/trunk/obituaries/include/index.html XoopsModules/obituaries/trunk/obituaries/include/search.inc.php XoopsModules/obituaries/trunk/obituaries/index.php XoopsModules/obituaries/trunk/obituaries/language/ XoopsModules/obituaries/trunk/obituaries/language/arabic/ XoopsModules/obituaries/trunk/obituaries/language/arabic/admin.php XoopsModules/obituaries/trunk/obituaries/language/arabic/blocks.php XoopsModules/obituaries/trunk/obituaries/language/arabic/index.html XoopsModules/obituaries/trunk/obituaries/language/arabic/main.php XoopsModules/obituaries/trunk/obituaries/language/arabic/modinfo.php XoopsModules/obituaries/trunk/obituaries/language/english/ XoopsModules/obituaries/trunk/obituaries/language/english/admin.php XoopsModules/obituaries/trunk/obituaries/language/english/blocks.php XoopsModules/obituaries/trunk/obituaries/language/english/index.html XoopsModules/obituaries/trunk/obituaries/language/english/main.php XoopsModules/obituaries/trunk/obituaries/language/english/modinfo.php XoopsModules/obituaries/trunk/obituaries/language/french/ XoopsModules/obituaries/trunk/obituaries/language/french/admin.php XoopsModules/obituaries/trunk/obituaries/language/french/blocks.php XoopsModules/obituaries/trunk/obituaries/language/french/index.html XoopsModules/obituaries/trunk/obituaries/language/french/main.php XoopsModules/obituaries/trunk/obituaries/language/french/modinfo.php XoopsModules/obituaries/trunk/obituaries/language/index.html XoopsModules/obituaries/trunk/obituaries/language/italiano/ XoopsModules/obituaries/trunk/obituaries/language/italiano/admin.php XoopsModules/obituaries/trunk/obituaries/language/italiano/blocks.php XoopsModules/obituaries/trunk/obituaries/language/italiano/index.html XoopsModules/obituaries/trunk/obituaries/language/italiano/main.php XoopsModules/obituaries/trunk/obituaries/language/italiano/modinfo.php XoopsModules/obituaries/trunk/obituaries/sql/ XoopsModules/obituaries/trunk/obituaries/sql/index.html XoopsModules/obituaries/trunk/obituaries/sql/mysql.sql XoopsModules/obituaries/trunk/obituaries/templates/ XoopsModules/obituaries/trunk/obituaries/templates/blocks/ XoopsModules/obituaries/trunk/obituaries/templates/blocks/index.html XoopsModules/obituaries/trunk/obituaries/templates/blocks/obituaries_block_last_obituaries.html XoopsModules/obituaries/trunk/obituaries/templates/blocks/obituaries_block_obituaries.html XoopsModules/obituaries/trunk/obituaries/templates/blocks/obituaries_block_random_obituaries.html XoopsModules/obituaries/trunk/obituaries/templates/index.html XoopsModules/obituaries/trunk/obituaries/templates/obituaries_index.html XoopsModules/obituaries/trunk/obituaries/templates/obituaries_user.html XoopsModules/obituaries/trunk/obituaries/templates/obituaries_users.html XoopsModules/obituaries/trunk/obituaries/user.php XoopsModules/obituaries/trunk/obituaries/xoops_version.php Added: XoopsModules/obituaries/releases/2.2/obituaries/admin/functions.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/admin/functions.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/admin/functions.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,67 @@ +<?php +/** + * **************************************************************************** + * Obituaries - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 20 oct. 07 at 14:38:20 + * Version : $Id: + * **************************************************************************** + */ + +function obituaries_adminMenu($currentoption = 0, $breadcrumb = '') +{ + global $xoopsConfig, $xoopsModule; + if(file_exists(XOOPS_ROOT_PATH.'/modules/obituaries/language/'.$xoopsConfig['language'].'/modinfo.php')) { + include_once XOOPS_ROOT_PATH.'/modules/obituaries/language/'.$xoopsConfig['language'].'/modinfo.php'; + } else { + include_once XOOPS_ROOT_PATH.'/modules/obituaries/language/english/modinfo.php'; + } + global $adminmenu; + include 'menu.php'; + + echo "<style type=\"text/css\">\n"; + echo "#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; }\n"; + echo "#buttonbar { float:left; width:100%; background: #e7e7e7 url('../images/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; }\n"; + echo "#buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; }\n"; + echo "#buttonbar li { display:inline; margin:0; padding:0; }"; + echo "#buttonbar a { float:left; background:url('../images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; }\n"; + echo "#buttonbar a span { float:left; display:block; background:url('../images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; }\n"; + echo "/* Commented Backslash Hack hides rule from IE5-Mac \*/\n"; + echo "#buttonbar a span {float:none;}\n"; + echo "/* End IE5-Mac hack */\n"; + echo "#buttonbar a:hover span { color:#333; }\n"; + echo "#buttonbar .current a { background-position:0 -150px; border-width:0; }\n"; + echo "#buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; }\n"; + echo "#buttonbar a:hover { background-position:0% -150px; }\n"; + echo "#buttonbar a:hover span { background-position:100% -150px; }\n"; + echo "</style>\n"; + + echo "<div id=\"buttontop\">\n"; + echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\">\n"; + echo "<tr>\n"; + echo "<td style=\"width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\">\n"; + echo "<a href=\"../index.php\">"._AM_OBITUARIES_GO_TO_MODULE."</a> | <a href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."\">"._AM_OBITUARIES_PREFERENCES."</a> | <a href='index.php?op=maintain'>"._AM_OBITUARIES_MAINTAIN."</a>\n"; + echo "</td>\n"; + echo "<td style=\"width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\">\n"; + echo "<b>".$xoopsModule->getVar('name')." "._AM_OBITUARIES_ADMINISTRATION."</b> ".$breadcrumb."\n"; + echo "</td>\n"; + echo "</tr>\n"; + echo "</table>\n"; + echo "</div>\n"; + echo "<div id=\"buttonbar\">\n"; + echo "<ul>\n"; + foreach($GLOBALS['adminmenu'] as $key=>$link) { + if($key == $currentoption) { + echo "<li class=\"current\">\n"; + } else { + echo "<li>\n"; + } + echo "<a href=\"".XOOPS_URL."/modules/obituaries/".$link['link']."\"><span>".$link['title']."</span></a>\n"; + echo "</li>\n"; + } + echo "</ul>\n"; + echo "</div>\n"; + echo "<br style=\"clear:both;\" />\n"; + +} +?> \ No newline at end of file Added: XoopsModules/obituaries/releases/2.2/obituaries/admin/index.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/admin/index.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/admin/index.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,164 @@ +<?php +/** + * **************************************************************************** + * Obituaries - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 10 juil. 08 at 11:38:52 + * Version : $Id: + * **************************************************************************** + */ +require_once '../../../include/cp_header.php'; +require_once '../include/common.php'; +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +require_once 'functions.php'; +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; + +$op = 'default'; +if (isset($_POST['op'])) { + $op = $_POST['op']; +} elseif ( isset($_GET['op'])) { + $op = $_GET['op']; +} + +// Lecture de certains param\xE8tres de l'application ******************************************************************** +$limit = obituaries_utils::getModuleOption('perpage'); // Nombre maximum d'\xE9l\xE9ments \xE0 afficher +$baseurl = OBITUARIES_URL.'admin/'.basename(__FILE__); // URL de ce script +$conf_msg = obituaries_utils::javascriptLinkConfirm(_AM_OBITUARIES_CONF_DELITEM); +$images_width = obituaries_utils::getModuleOption('images_width'); +$images_height = obituaries_utils::getModuleOption('images_height'); +$destname = ''; + +$cacheFolder = XOOPS_UPLOAD_PATH.'/'.OBITUARIES_DIRNAME; +if(!is_dir($cacheFolder)) { + mkdir($cacheFolder, 0777); + file_put_contents($cacheFolder.'/index.html', '<script>history.go(-1);</script>'); +} + + +switch($op) +{ + // **************************************************************************************************************** + case 'default': // List obituariess and show form to add a someone + // **************************************************************************************************************** + xoops_cp_header(); + obituaries_adminMenu(0); + echo '<h1>'.obituaries_utils::getModuleName().'</h1>'; + $start = isset($_GET['start']) ? intval($_GET['start']) : 0; + $itemsCount = $hBdUsersObituaries->getCount(); + if($itemsCount > $limit) { + $pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start'); + } + if(isset($pagenav) && is_object($pagenav)) { + echo "<div align='right'>".$pagenav->renderNav()."</div>"; + } + if($itemsCount > 0) { + $class = ''; + $items = $hBdUsersObituaries->getItems($start, $limit, 'obituaries_lastname'); + echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; + echo "<tr><th align='center'>"._OBITUARIES_DATE."</th><th align='center'>"._OBITUARIES_USERNAME."</th><th align='center'>"._OBITUARIES_LASTNAME.'<br />'._OBITUARIES_FIRSTNAME."</th><th align='center'>"._AM_OBITUARIES_ACTION."</th></tr>"; + foreach ($items as $item) { + $class = ($class == 'even') ? 'odd' : 'even'; + $id = $item->getVar('obituaries_id'); + $user = null; + $user = $item->getXoopsUser(); + $uname = ''; + if(is_object($user)) { + $uname = $user->getVar('uname'); + } + $action_edit = "<a href='$baseurl?op=edit&id=".$id."' title='"._EDIT."'>".$birdthday_icones['edit'].'</a>'; + $action_delete = "<a href='$baseurl?op=delete&id=".$id."' title='"._DELETE."'".$conf_msg.">".$birdthday_icones['delete'].'</a>'; + + echo "<tr class='".$class."'>\n"; + echo "<td align='center'>".obituaries_utils::SQLDateToHuman($item->getVar('obituaries_date'))."</td>"; + echo "<td align='center'>".$uname.'</td>'; + echo "<td align='left'>".$item->getFullName().'</td>'; + echo "<td align='center'>".$action_edit.' '.$action_delete.'</td>'; + echo "</tr>\n"; + } + echo "</table>\n"; + if(isset($pagenav) && is_object($pagenav)) { + echo "<div align='left'>".$pagenav->renderNav()."</div>"; + } + echo "<br /><br />\n"; + } + $item = $hBdUsersObituaries->create(true); + $form = $hBdUsersObituaries->getForm($item, $baseurl); + $form->display(); + break; + + // **************************************************************************************************************** + case 'maintain': // Maintenance des tables et du cache + // **************************************************************************************************************** + xoops_cp_header(); + obituaries_adminMenu(); + require_once '../xoops_version.php'; + $tables = array(); + foreach ($modversion['tables'] as $table) { + $tables[] = $xoopsDB->prefix($table); + } + if(count($tables) > 0) { + $list = implode(',', $tables); + $xoopsDB->queryF('CHECK TABLE '.$list); + $xoopsDB->queryF('ANALYZE TABLE '.$list); + $xoopsDB->queryF('OPTIMIZE TABLE '.$list); + } + obituaries_utils::updateCache(); + $hBdUsersObituaries->forceCacheClean(); + obituaries_utils::redirect(_AM_OBITUARIES_SAVE_OK, $baseurl, 2); + break; + + // **************************************************************************************************************** + case 'edit': // Edition d'un utilisateur existant + // **************************************************************************************************************** + xoops_cp_header(); + obituaries_adminMenu(); + $id = isset($_GET['id']) ? intval($_GET['id']) : 0; + if(empty($id)) { + obituaries_utils::redirect(_AM_OBITUARIES_ERROR_1, $baseurl, 5); + } + // Item exits ? + $item = null; + $item = $hBdUsersObituaries->get($id); + if(!is_object($item)) { + obituaries_utils::redirect(_AM_OBITUARIES_NOT_FOUND, $baseurl, 5); + } + $form = $hBdUsersObituaries->getForm($item, $baseurl); + $form->display(); + break; + + // **************************************************************************************************************** + case 'saveedit': // Enregistrement des modifications + // **************************************************************************************************************** + xoops_cp_header(); + obituaries_adminMenu(); + $result = $hBdUsersObituaries->saveUser(); + if($result) { + obituaries_utils::redirect(_AM_OBITUARIES_SAVE_OK, $baseurl, 1); + } else { + obituaries_utils::redirect(_AM_OBITUARIES_SAVE_PB, $baseurl, 3); + } + break; + + // **************************************************************************************************************** + case 'delete': // Suppression d'un utilisateur + // **************************************************************************************************************** + $id = isset($_GET['id']) ? intval($_GET['id']) : 0; + if(empty($id)) { + obituaries_utils::redirect(_AM_OBITUARIES_ERROR_1, $baseurl, 5); + } + // Item exits ? + $item = null; + $item = $hBdUsersObituaries->get($id); + if(!is_object($item)) { + obituaries_utils::redirect(_AM_OBITUARIES_NOT_FOUND, $baseurl, 5); + } + $result = $hBdUsersObituaries->deleteUser($item); + if($result) { + obituaries_utils::redirect(_AM_OBITUARIES_SAVE_OK, $baseurl, 1); + } else { + obituaries_utils::redirect(_AM_OBITUARIES_SAVE_PB, $baseurl, 3); + } + +} +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/obituaries/releases/2.2/obituaries/admin/menu.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/admin/menu.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/admin/menu.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,11 @@ +<?php +/** + * **************************************************************************** + * Obituaries - MODULE FOR XOOPS + * Based on birthday module made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 10 jully. 08 at 11:32:40 + * **************************************************************************** + */ +$adminmenu[0]['title'] = _MI_OBITUARIES_HOME; +$adminmenu[0]['link'] = "admin/index.php"; +?> \ No newline at end of file Added: XoopsModules/obituaries/releases/2.2/obituaries/blocks/b_obituaries.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/blocks/b_obituaries.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/blocks/b_obituaries.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,135 @@ +<?php +function b_obituaries_show($options) { + global $xoopsUser; + $block = array(); + include XOOPS_ROOT_PATH.'/modules/obituaries/include/common.php'; + $start = 0; + $limit = intval($options[0]); + $itemsCount = $hBdUsersObituaries->getTodayObituariessCount(); + $users = $hBdUsersObituaries->getTodayObituariess($start, $limit); + if(count($users) > 0) { + foreach($users as $user) { + $block['obituaries_today_users'][] = $user->toArray(); + } + } + if($itemsCount > $limit) { + $block['obituaries_today_more'] = true; + } else { + $block['obituaries_today_more'] = false; + } + + if (is_object($xoopsUser)) { + $block['obituaries_today_mypage'] = true; + } else { + $block['obituaries_today_mypage'] = false; + } + $block['obituaries_display_picture'] = intval($options[1]); + $block['obituaries_picture_width'] = $options[2]; + return $block; +} + +function b_obituaries_edit($options) +{ + include XOOPS_ROOT_PATH.'/modules/obituaries/include/common.php'; + $form = ''; + $form .= "<table border='0'>"; + $form .= '<tr><td>'._MB_OBITUARIES_MAX_ITEMS."</td><td><input type='text' name='options[]' id='options' value='".$options[0]."' /></td></tr>\n"; + $form .= "<tr><td>"._MB_OBITUARIES_DISPLAY_PICTURE."</td><td><input type='radio' id='options[]' name='options[]' value='1'"; + if ($options[1] == 1) { + $form .= " checked='checked'"; + } + $form .= " /> "._YES."<input type='radio' id='options[]' name='options[]' value='0'"; + if ($options[1] == 0) { + $form .= " checked='checked'"; + } + $form .= " /> "._NO."</td></tr>\n"; + $form .= '<tr><td>'._MB_OBITUARIES_PICTURE_WIDTH."</td><td><input type='text' name='options[]' id='options' value='".$options[2]."' /></td></tr>\n"; + $form .= "</table>\n"; + return $form; +} + +function b_obituaries_random_show($options) { + $block = array(); + include XOOPS_ROOT_PATH.'/modules/obituaries/include/common.php'; + $start = 0; + $limit = intval($options[0]); + + $users = $hBdUsersObituaries->getRandomObituariess($start, $limit); + if(count($users) > 0) { + foreach($users as $user) { + $block['obituaries_random_users'][] = $user->toArray(); + } + } + + $block['obituaries_display_picture'] = intval($options[1]); + $block['obituaries_picture_width'] = $options[2]; + return $block; +} + +function b_obituaries_random_edit($options) +{ + include XOOPS_ROOT_PATH.'/modules/obituaries/include/common.php'; + $form = ''; + $form .= "<table border='0'>"; + $form .= '<tr><td>'._MB_OBITUARIES_MAX_ITEMS."</td><td><input type='text' name='options[]' id='options' value='".$options[0]."' /></td></tr>\n"; + $form .= "<tr><td>"._MB_OBITUARIES_DISPLAY_PICTURE."</td><td><input type='radio' id='options[]' name='options[]' value='1'"; + if ($options[1] == 1) { + $form .= " checked='checked'"; + } + $form .= " /> "._YES."<input type='radio' id='options[]' name='options[]' value='0'"; + if ($options[1] == 0) { + $form .= " checked='checked'"; + } + $form .= " /> "._NO."</td></tr>\n"; + $form .= '<tr><td>'._MB_OBITUARIES_PICTURE_WIDTH."</td><td><input type='text' name='options[]' id='options' value='".$options[2]."' /></td></tr>\n"; + $form .= "</table>\n"; + return $form; +} + +function b_obituaries_last_show($options) { + $block = array(); + include XOOPS_ROOT_PATH.'/modules/obituaries/include/common.php'; + $start = 0; + $limit = intval($options[0]); + + if(obituaries_utils::getModuleOption('userslist_sortorder') == 1) { // Sort by date + $sort = 'obituaries_date'; + $order = 'DESC'; + } else { + $sort = 'obituaries_lastname'; + $order = 'ASC'; + } + $users = $hBdUsersObituaries->getLastObituariess($start, $limit, $sort, $order); + + if(count($users) > 0) { + foreach($users as $user) { + $block['obituaries_last_users'][] = $user->toArray(); + } + } + + $block['obituaries_display_picture'] = intval($options[1]); + $block['obituaries_picture_width'] = $options[2]; + return $block; +} + +function b_obituaries_last_edit($options) +{ + include XOOPS_ROOT_PATH.'/modules/obituaries/include/common.php'; + $form = ''; + $form .= "<table border='0'>"; + $form .= '<tr><td>'._MB_OBITUARIES_MAX_ITEMS."</td><td><input type='text' name='options[]' id='options' value='".$options[0]."' /></td></tr>\n"; + $form .= "<tr><td>"._MB_OBITUARIES_DISPLAY_PICTURE."</td><td><input type='radio' id='options[]' name='options[]' value='1'"; + if ($options[1] == 1) { + $form .= " checked='checked'"; + } + $form .= " /> "._YES."<input type='radio' id='options[]' name='options[]' value='0'"; + if ($options[1] == 0) { + $form .= " checked='checked'"; + } + $form .= " /> "._NO."</td></tr>\n"; + $form .= '<tr><td>'._MB_OBITUARIES_PICTURE_WIDTH."</td><td><input type='text' name='options[]' id='options' value='".$options[2]."' /></td></tr>\n"; + $form .= "</table>\n"; + return $form; +} + +?> \ No newline at end of file Added: XoopsModules/obituaries/releases/2.2/obituaries/blocks/index.html =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/blocks/index.html (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/blocks/index.html 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/obituaries/releases/2.2/obituaries/class/Numeral.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/class/Numeral.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/class/Numeral.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,580 @@ +<?php +require_once XOOPS_ROOT_PATH.'/modules/obituaries/class/NumeralInterface.php'; +// {{{ Class Text_CAPTCHA_Numeral +// +----------------------------------------------------------------------+ +// | PHP version 5 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1998-2007 David Coallier | +// | All rights reserved. | +// +----------------------------------------------------------------------+ +// | | +// | Redistribution and use in source and binary forms, with or without | +// | modification, are permitted provided that the following conditions | +// | are met: | +// | | +// | Redistributions of source code must retain the above copyright | +// | notice, this list of conditions and the following disclaimer. | +// | | +// | Redistributions in binary form must reproduce the above copyright | +// | notice, this list of conditions and the following disclaimer in the | +// | documentation and/or other materials provided with the distribution. | +// | | +// | Neither the name of David Coallier nor the names of his contributors | +// | may be used to endorse | +// | or promote products derived from this software without specific prior| +// | written permission. | +// | | +// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | +// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | +// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | +// | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | +// | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | +// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | +// | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS| +// | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | +// | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | +// | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY| +// | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | +// | POSSIBILITY OF SUCH DAMAGE. | +// +----------------------------------------------------------------------+ +// | Author: David Coallier <da...@ag...> | +// +----------------------------------------------------------------------+ +// +/** + * Class used for numeral captchas + * + * This class is intended to be used to generate + * numeral captchas as such as: + * Example: + * Give me the answer to "54 + 2" to prove that you are human. + * + * @author David Coallier <da...@ag...> + * @package Text_CAPTCHA_Numeral + * @category CAPTCHA + */ +class obituaries_Text_CAPTCHA_Numeral implements obituaries_Text_CAPTCHA_Numeral_Interface +{ + // {{{ Variables + /** + * Minimum range value + * + * This variable holds the minimum range value + * default set to "1" + * + * @access private + * @var integer $minValue The minimum range value + */ + private $minValue = '1'; + + /** + * Maximum range value + * + * This variable holds the maximum range value + * default set to "50" + * + * @access private + * @var integer $maxValue The maximum value of the number range + */ + private $maxValue = '50'; + + /** + * Operators + * + * The valid operators to use + * in the numeral captcha. We could + * use / and * but not yet. + * + * @access private + * @var array $operators The operations for the captcha + */ + private $operators = array(); + + /** + * Operator to use + * + * This variable is basically the operation + * that we're going to be using in the + * numeral captcha we are about to generate. + * + * @access private + * @var string $operator The operation's operator + */ + private $operator = ''; + + /** + * Mathematical Operation + * + * This is the mathematical operation + * that we are displaying to the user. + * + * @access private + * @var string $operation The math operation + */ + private $operation = ''; + + /** + * First number of the operation + * + * This variable holds the first number + * of the numeral operation we are about + * to generate. + * + * @access private + * @var integer $firstNumber The first number of the operation + */ + private $firstNumber = ''; + + /** + * Second Number of the operation + * + * This variable holds the value of the + * second variable of the operation we are + * about to generate for the captcha. + * + * @access private + * @var integer $secondNumber The second number of the operation + */ + private $secondNumber = ''; + + /** + * The operation answer + * + * The answer to the numeral operation + * we are about to do. + * + * @access private + * @var integer $answer The mathematical operation answer value. + */ + private $answer; + + /** + * A constant that indicates the complexity of mathematical operations + * + * @access public + * + */ + const TEXT_CAPTCHA_NUMERAL_COMPLEXITY_ELEMENTARY = 1; + + + /** + * A constant that indicates the complexity of mathematical operations + * + * @access public + * + */ + const TEXT_CAPTCHA_NUMERAL_COMPLEXITY_HIGH_SCHOOL = 2; + + + /** + * A constant that indicates the complexity of mathematical operations + * + * @access public + * + */ + const TEXT_CAPTCHA_NUMERAL_COMPLEXITY_UNIVERSITY = 4; + + + + // }}} + // {{{ Constructor + /** + * Constructor with different levels of mathematical operations sets + * + * @param constant $complexityType + */ + public function __construct($complexityType = self::TEXT_CAPTCHA_NUMERAL_COMPLEXITY_ELEMENTARY) + { + + switch ($complexityType) { + case 2: + $this->operators = array('+', '-', '*'); + break; + case 4: + $this->operators = array('+', '-', '*', '%', '/'); + break; + case 1: + default: + $this->operators = array('-', '+'); + break; + } + + $this->generateFirstNumber(); + $this->generateSecondNumber(); + $this->generateOperator(); + $this->generateOperation(); + } + // }}} + // {{{ private function setRangeMinimum + /** + * Set Range Minimum value + * + * This function give the developer the ability + * to set the range minimum value so the operations + * can be bigger, smaller, etc. + * + * @access private + * @param integer $minValue The minimum value + */ + private function setRangeMinimum($minValue = '1') + { + $this->minValue = (int)$minValue; + } + // }}} + // {{{ private function generateFirstNumber + /** + * Sets the first number + * + * This function sets the first number + * of the operation by calling the generateNumber + * function that generates a random number. + * + * @access private + * @see $this->firstNumber, $this->generateNumber + */ + private function generateFirstNumber() + { + $this->setFirstNumber($this->generateNumber()); + } + // }}} + // {{{ private function generateSecondNumber + /** + * Sets second number + * + * This function sets the second number of the + * operation by calling generateNumber() + * + * @access private + * @see $this->secondNumber, $this->generateNumber() + */ + private function generateSecondNumber() + { + $this->setSecondNumber($this->generateNumber()); + } + // }}} + // {{{ private function generateOperator + /** + * Sets the operation operator + * + * This function sets the operation operator by + * getting the array value of an array_rand() of + * the $this->operators() array. + * + * @access private + * @see $this->operators, $this->operator + */ + private function generateOperator() + { + $this->operator = $this->operators[array_rand($this->operators)]; + } + // }}} + // {{{ private function setAnswer + /** + * Sets the answer value + * + * This function will accept the parameters which is + * basically the result of the function we have done + * and it will set $this->answer with it. + * + * @access private + * @param integer $answerValue The answer value + * @see $this->answer + */ + private function setAnswer($answerValue) + { + $this->answer = $answerValue; + return $this; + } + // }}} + // {{{ private function setFirstNumber + /** + * Set First number + * + * This function sets the first number + * to the value passed to the function + * + * @access private + * @param integer $value The first number value. + * @return object $this The self object + */ + private function setFirstNumber($value) + { + $this->firstNumber = (int)$value; + return $this; + } + // }}} + // {{{ private function setSecondNumber + /** + * Sets the second number + * + * This function sets the second number + * with the value passed to it. + * + * @access private + * @param integer $value The second number new value. + * @return object $this The self object + */ + private function setSecondNumber($value) + { + $this->secondNumber = (int)$value; + return $this; + } + // }}} + // {{{ private function setOperation + /** + * Set operation + * + * This variable sets the operation variable + * by taking the firstNumber, secondNumber and operator + * + * @access private + * @see $this->operation + */ + private function setOperation() + { + $this->operation = $this->getFirstNumber() . ' ' . + $this->operator . ' ' . + $this->getSecondNumber(); + return $this; + } + // }}} + // {{{ private function generateNumber + /** + * Generate a number + * + * This function takes the parameters that are in + * the $this->maxValue and $this->minValue and get + * the random number from them using mt_rand() + * + * @access private + * @return integer Random value between minValue and maxValue + */ + private function generateNumber() + { + return mt_rand($this->minValue, $this->maxValue); + } + // }}} + // {{{ private function doAdd + /** + * Adds values + * + * This function will add the firstNumber and the + * secondNumber value and then call setAnswer to + * set the answer value. + * + * @access private + * @see $this->firstNumber, $this->secondNumber, $this->setAnswer() + */ + private function doAdd() + { + $answer = $this->getFirstNumber() + $this->getSecondNumber(); + $this->setAnswer($answer); + } + // }}} + // {{{ private function doMultiplication + /** + * Do Multiplication + * + * This method will multiply two numbers + * + * @access private + * @see $this->firstNumber, $this->secondNumber, $this->setAnswer + * + */ + private function doMultiplication() + { + $this->setAnswer($this->getFirstNumber() * $this->getSecondNumber()); + } + // }}} + // {{{ private function doDivision + /** + * Do Division + * + * This function executes a division based on the two + * numbers. + * + * @param integer $firstNumber The first number of the operation. + * This is by default set to null. + * + * @param integer $secondNumber The second number of the operation + * This is by default set to null. + * + */ + private function doDivision($firstNumber = null, $secondNumber = null) + { + if (is_null($firstNumber)) { + $firstNumber = $this->getFirstNumber(); + } + + if (is_null($secondNumber)) { + $secondNumber = $this->getSecondNumber(); + } + + if ($secondNumber == 0) { + ++$secondNumber; + $this->doDivision($firstNumber, $secondNumber); + return; + } + + if ($firstNumber % $secondNumber != 0) { + --$firstNumber; + --$secondNumber; + + $this->doDivision($firstNumber, $secondNumber); + return; + } + + $this->setFirstNumber($firstNumber) + ->setSecondNumber($secondNumber) + ->setOperation() + ->setAnswer($this->getFirstNumber() / $this->getSecondNumber()); + } + // }}} + // {{{ private function doModulus + /** + * Do modulus + * + * This method will do a modulus operation between two numbers + * + * + * @access private + * @see $this->firstNumber, $this->secondNumber, $this->setAnswer() + * + */ + private function doModulus() + { + $this->setAnswer($this->getFirstNumber() % $this->getSecondNumber()); + } + // }}} + // {{{ private function doSubstract + /** + * Does a substract on the values + * + * This function executes a substraction on the firstNumber + * and the secondNumber to then call $this->setAnswer to set + * the answer value. + * + * If the firstnumber value is smaller than the secondnumber value + * then we regenerate the first number and regenerate the operation. + * + * @access private + * @see $this->firstNumber, $this->secondNumber, $this->setAnswer() + */ + private function doSubstract() + { + $first = $this->getFirstNumber(); + $second = $this->getSecondNumber(); + + /** + * Check if firstNumber is smaller than secondNumber + */ + if ($first < $second) { + $this->setFirstNumber($second) + ->setSecondNumber($first) + ->setOperation(); + } + + $answer = $this->getFirstNumber() - $this->getSecondNumber(); + $this->setAnswer($answer); + } + // }}} + // {{{ private function generateOperation + /** + * Generate the operation + * + * This function will call the setOperation() function + * to set the operation string that will be called + * to display the operation, and call the function necessary + * depending on which operation is set by this->operator. + * + * @access private + * @see $this->setOperation(), $this->operator + */ + private function generateOperation() + { + $this->setOperation(); + + switch ($this->operator) { + case '+': + $this->doAdd(); + break; + case '-': + $this->doSubstract(); + break; + case '*': + $this->doMultiplication(); + break; + case '%': + $this->doModulus(); + break; + case '/': + $this->doDivision(); + break; + default: + $this->doAdd(); + break; + } + } + // }}} + // {{{ public function getOperation + /** + * Get operation + * + * This function will get the operation + * string from $this->operation + * + * @access public + * @return string The operation String + */ + public function getOperation() + { + return $this->operation; + } + // }}} + // {{{ public function getAnswer + /** + * Get the answer value + * + * This function will retrieve the answer + * value from this->answer and return it so + * we can then display it to the user. + * + * @access public + * @return string The operation answer value. + */ + public function getAnswer() + { + return $this->answer; + } + // }}} + // {{{ public function getFirstNumber + /** + * Get the first number + * + * This function will get the first number + * value from $this->firstNumber + * + * @access public + * @return integer $this->firstNumber The firstNumber + */ + public function getFirstNumber() + { + return $this->firstNumber; + } + // }}} + // {{{ public function getSecondNumber + /** + * Get the second number value + * + * This function will return the second number value + * + * @access public + * @return integer $this->secondNumber The second number + */ + public function getSecondNumber() + { + return $this->secondNumber; + } + // }}} +} +// }}} +?> Added: XoopsModules/obituaries/releases/2.2/obituaries/class/NumeralInterface.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/class/NumeralInterface.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/class/NumeralInterface.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,102 @@ +<?php +// {{{ Disclaimer +// +----------------------------------------------------------------------+ +// | PHP version 5 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1998-2006 David Coallier | +// | All rights reserved. | +// +----------------------------------------------------------------------+ +// | | +// | Redistribution and use in source and binary forms, with or without | +// | modification, are permitted provided that the following conditions | +// | are met: | +// | | +// | Redistributions of source code must retain the above copyright | +// | notice, this list of conditions and the following disclaimer. | +// | | +// | Redistributions in binary form must reproduce the above copyright | +// | notice, this list of conditions and the following disclaimer in the | +// | documentation and/or other materials provided with the distribution. | +// | | +// | Neither the name of David Coallier nor the names of his contributors | +// | may be used to endorse | +// | or promote products derived from this software without specific prior| +// | written permission. | +// | | +// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | +// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | +// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | +// | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | +// | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | +// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | +// | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS| +// | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | +// | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | +// | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY| +// | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | +// | POSSIBILITY OF SUCH DAMAGE. | +// +----------------------------------------------------------------------+ +// | Author: David Coallier <da...@ag...> | +// +----------------------------------------------------------------------+ +// }}} +// {{{ Text_CAPTCHA_Numeral_Interface +/** + * Text CAPTCHA Numeral Interface + * + * This is the textcaptchanumeral interface + * that is called everytime a new instance of + * Text_CAPTCHA_Numeral is called. + * + * @author David Coallier <da...@ag...> + * @package Text_CAPTCHA_Numeral + * @category CAPTCHA + */ +interface obituaries_Text_CAPTCHA_Numeral_Interface +{ + // {{{ public function getOperation + /** + * Get operation + * + * This function will get the operation + * string from $this->operation + * + * @access public + */ + public function getOperation(); + // }}} + // {{{ public function getAnswer + /** + * Get the answer value + * + * This function will retrieve the answer + * value from this->answer and return it so + * we can then display it to the user. + * + * @access public + */ + public function getAnswer(); + // }}} + // {{{ public function getFirstNumber + /** + * Get the first number + * + * This function will get the first number + * value from $this->firstNumber + * + * @access public + */ + public function getFirstNumber(); + // }}} + // {{{ public function getSecondNumber + /** + * Get the second number value + * + * This function will return the second number value + * + * @access public + */ + public function getSecondNumber(); + // }}} +} +// }}} +?> Added: XoopsModules/obituaries/releases/2.2/obituaries/class/PEAR.php =================================================================== --- XoopsModules/obituaries/releases/2.2/obituaries/class/PEAR.php (rev 0) +++ XoopsModules/obituaries/releases/2.2/obituaries/class/PEAR.php 2011-12-21 14:07:58 UTC (rev 8534) @@ -0,0 +1,1108 @@ +<?php +/** + * PEAR, the PHP Extension and Application Repository + * + * PEAR class and PEAR_Error class + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to li...@ph... so we can mail you a copy immediately. + * + * @category pear + * @package PEAR + * @author Sterling Hughes <ste...@ph...> + * @author Stig Bakken <ss...@ph...> + * @author Tomas V.V.Cox <co...@id...> + * @author Greg Beaver <ce...@ph...> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: PEAR.php,v 1.101 2006/04/25 02:41:03 cellog Exp $ + * @link http://pear.php.net/package/PEAR + * @since File available since Release 0.1 + */ + +/**#@+ + * ERROR constants + */ +define('obituaries_PEAR_ERROR_RETURN', 1); +define('obituaries_PEAR_ERROR_PRINT', 2); +define('obituaries_PEAR_ERROR_TRIGGER', 4); +define('obituaries_PEAR_ERROR_DIE', 8); +define('obituaries_PEAR_ERROR_CALLBACK', 16); +/** + * WARNING: obsolete + * @deprecated + */ +define('obituaries_PEAR_ERROR_EXCEPTION', 32); +/**#@-*/ +define('obituaries_PEAR_ZE2', (function_exists('version_compare') && + version_compare(zend_version(), "2-dev", "ge"))); + +if (substr(PHP_OS, 0, 3) == 'WIN') { + define('obituaries_OS_WINDOWS', true); + define('obituaries_OS_UNIX', false); + define('obituaries_PEAR_OS', 'Windows'); +} else { + define('obituaries_OS_WINDOWS', false); + define('obituaries_OS_UNIX', true); + define('obituaries_PEAR_OS', 'Unix'); // blatant assumption +} + +// instant backwards compatibility +if (!defined('PATH_SEPARATOR')) { + if (obituaries_OS_WINDOWS) { + define('PATH_SEPARATOR', ';'); + } else { + define('PATH_SEPARATOR', ':'); + } +} + +$GLOBALS['_PEAR_default_error_mode'] = obituaries_PEAR_ERROR_RETURN; +$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE; +$GLOBALS['_PEAR_destructor_object_list'] = array(); +$GLOBALS['_PEAR_shutdown_funcs'] = array(); +$GLOBALS['_PEAR_error_handler_stack'] = array(); + +@ini_set('track_errors', true); + +/** + * Base class for other PEAR classes. Provides rudimentary + * emulation of destructors. + * + * If you want a destructor in your class, inherit PEAR and make a + * destructor method called _yourclassname (same name as the + * constructor, but with a "_" prefix). Also, in your constructor you + * have to call the PEAR constructor: $this->PEAR();. + * The destructor method will be called without parameters. Note that + * at in some SAPI implementations (such as Apache), any output during + * the request shutdown (in which destructors are called) seems to be + * discarded. If you need to get any debug information from your + * destructor, use error_log(), syslog() or something similar. + * + * IMPORTANT! To use the emulated destructors you need to create the + * objects by reference: $obj =& new PEAR_child; + * + * @category pear + * @package PEAR + * @author Stig Bakken <ss...@ph...> + * @author Tomas V.V. Cox <co...@id...> + * @author Greg Beaver <ce...@ph...> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: 1.5.4 + * @link http://pear.php.net/package/PEAR + * @see PEAR_Error + * @since Class available since PHP 4.0.2 + * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear + */ +class obituaries_PEAR +{ + // {{{ properties + + /** + * Whether to enable internal debug messages. + * + * @var bool + * @access private + */ + public $_debug = false; + + /** + * Defau... [truncated message content] |
From: <be...@us...> - 2011-12-21 13:19:24
|
Revision: 8533 http://xoops.svn.sourceforge.net/xoops/?rev=8533&view=rev Author: beckmi Date: 2011-12-21 13:19:09 +0000 (Wed, 21 Dec 2011) Log Message: ----------- Updating jupload to 5.07 Modified Paths: -------------- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/mimetypes.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/svn.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_de.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_en.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_eo.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_es.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_fr.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_hr.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_hu.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_il.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_it.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ja.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_nl.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_no.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_pl.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_pt.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_pt_BR.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ru.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_sk.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_tr.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_zh.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_zh_TW.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/EmptyApplet.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/JUploadApplet.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadException.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadExceptionTooBigFile.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadExceptionUploadFailed.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadIOException.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/filedata/DefaultFileData.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/filedata/FileData.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/filedata/PictureFileData.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/filedata/helper/ImageHelper.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/filedata/helper/ImageReaderWriterHelper.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/DebugDialog.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/DnDListener.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/IconWorker.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadDebugPopupMenu.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadFileChooser.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadFileView.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadMainPopupMenu.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadPanel.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadTextArea.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadTransferHandler.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/ColumnComparator.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/DateRenderer.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/FilePanel.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/FilePanelDataModel2.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/FilePanelJTable.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/FilePanelTableImp.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/SizeRenderer.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/filepanel/SortHeaderRenderer.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/image/DialogPicturePanel.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/image/JUploadImagePreview.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/image/LoadImageThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/image/PictureDialog.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/image/PicturePanel.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/CoppermineUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/CustomizedNbFilesPerRequestUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/DefaultUploadPolicy$1.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/DefaultUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/FileByFileUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/FilesTogetherUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/PictureUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/UploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/UploadPolicyFactory.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/DefaultFileUploadThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/FileUploadManagerThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/FileUploadThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/FileUploadThreadFTP.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/FileUploadThreadHTTP.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/UploadFileData.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/ByteArrayEncoder.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/ByteArrayEncoderHTTP.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/CookieJar$Cookie.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/CookieJar.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/HTTPConnectionHelper.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/HTTPInputStreamReader.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/HttpConnect.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/InteractiveTrustManager.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk.jupload.jar Added Paths: ----------- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/default_daemon.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar_SA.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_bg.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_cs.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_da.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_fi.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ro.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_sl.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_sv.properties XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/JUploadApplet$1JUploadAppletDestroyer.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/JUploadApplet$1JUploadAppletInitializer.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/JUploadDaemon$1.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/JUploadDaemon.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/DefaultJUploadContext$1PropertySetter.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/DefaultJUploadContext$Callback.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/DefaultJUploadContext.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/JUploadContext.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/JUploadContextApplet.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/JUploadContextExecutable.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/context/JavascriptHandler.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadEOFException.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadExceptionUploadFailedSuccessNotFound.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/exception/JUploadInterrupted.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/filedata/helper/ImageFileConversionInfo.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/DialogUploadRetry$1.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/DialogUploadRetry.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadPanelImpl.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/gui/JUploadTextArea$LogMessageThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/SilverpeasUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/policies/SuperSimpleUploadPolicy.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/FilePreparationThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/FileUploadManagerThreadImpl.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/PacketConstructionThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/UploadFileDataPoisonned.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/UploadFilePacket.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/UploadFilePacketPoisonned.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/HttpConnect$1.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/HttpConnect$TM.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/HttpProtocolFinderThread.class XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/upload/helper/ProgressBarManager.class Removed Paths: ------------- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/lang/ Added: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/default_daemon.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/default_daemon.properties (rev 0) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/default_daemon.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -0,0 +1,6 @@ +# +# This file contains default values for the daemon JUpload. These default values override the +# default values defined in UploadPolicy, due to the specific needs of a standalone application +# + +readCookieFromNavigator = false Modified: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/mimetypes.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/mimetypes.properties 2011-12-21 11:51:09 UTC (rev 8532) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/mimetypes.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -4,6 +4,7 @@ # # Thanks to them! # +# etienne_sf, 12 march 2010: add of Office 2007 support (thanks to jsibby) stl=application/SLA step=application/STEP stp=application/STEP @@ -205,3 +206,21 @@ ice=x-conference/x-cooltalk vrm=x-world/x-vrml vrml=x-world/x-vrml + +#JTS: Support for Office 2007 +docm=application/vnd.ms-word.document.macroEnabled.12 +docx=application/vnd.openxmlformats-officedocument.wordprocessingml.document +dotx=application/vnd.openxmlformats-officedocument.wordprocessingml.template +potm=application/vnd.ms-powerpoint.template.macroEnabled.12 +potx=application/vnd.openxmlformats-officedocument.presentationml.template +ppam=application/vnd.ms-powerpoint.addin.macroEnabled.12 +ppsm=application/vnd.ms-powerpoint.slideshow.macroEnabled.12 +ppsx=application/vnd.openxmlformats-officedocument.presentationml.slideshow +pptm=application/vnd.ms-powerpoint.presentation.macroEnabled.12 +pptx=application/vnd.openxmlformats-officedocument.presentationml.presentation +xlam=application/vnd.ms-excel.addin.macroEnabled.12 +xlsb=application/vnd.ms-excel.sheet.binary.macroEnabled.12 +xlsm=application/vnd.ms-excel.sheet.macroEnabled.12 +xlsx=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet +xltm=application/vnd.ms-excel.template.macroEnabled.12 +xltx=application/vnd.openxmlformats-officedocument.spreadsheetml.template Modified: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/svn.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/svn.properties 2011-12-21 11:51:09 UTC (rev 8532) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/conf/svn.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -1,14 +1,17 @@ -# WARNING - This file is auto-generated -# ANY CHANGES WILL BE OVERWRITTEN BY THE BUILD-PROCESS! +# JUpload version +jupload.version = 5.0.7 # Date of the compilation -buildDate = 12/14/2008 03:54 PM +jupload.buildTimestamp = 1318538299406 +#Build number. Allows to identify each build. Reset to 1, after a clean +jupload.buildNumber = 1583 + #Last revision commited. This compilation may contain other uncommitted changes. -revision = 573 +jupload.svn.revision = ${svn.revision} #Date of the last src directory commit. #Caution: file by file commit doesn't change this date. -lastSrcDirModificationDate = 12/03/2008 09:57 AM +jupload.lastSrcDirModificationDate = A source modification date \ No newline at end of file Modified: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/wjhk/jupload2/lang/lang.properties 2011-12-21 11:51:09 UTC (rev 8532) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -1,11 +1,50 @@ # -# Default translation. This file contains a value for each key. In english, as default language. # -# Maintainer: - +# HOW TO ADD PROPERTIES: +# If you want to add new properties, either create your own lang files, or add this property first to the +# lang.properties file, which is the reference for all existing properties. +# Each property missing in lang.properties, will be removed from all other properties file in the next execution +# of build_translation.xml # -# The %1$d (and similar) code sequences are placeholders for varable substitution, +# +# HOW TO UPDATE TRANSLATIONS: +# All information for contributors is available here: +# +# http://jupload.sourceforge.net/howto-translation.html +# +# +# QUICK DESCRIPTION: +# Please update the files in the /src/main/lang.utf-16/ directory. +# As the directory is named, they are all in UTF-16 format. Then execute the build_translation.xml file, to +# report these modifications to the wjhk/jupload/lang pacakge, for use in the applet. +# +# Doing this, allows: +# - To have all translation in Human readable text, instead of unicode text. +# - To mark all missing text, in other languages (important note: the lang.properties file is the reference for all properties). +# +# +# The %1$d (and similar) code sequences are placeholders for variable substitution, # The sequence %% represents a single percent-character. +########################################################################################################################## +#First section: general information about this translation. +########################################################################################################################## +#These parameters are used by the translation maven plugin. +#They are used to generate the transation part of JUpload web site, to display existing translations to translators. They +#can then check translation, and submit updated or new translations. +generateHtmlFileForTranslators = true +language = English (default language file) +contributor = Core translation file (no contributor) +#A link to the Coppermine plugin language file. No link with the applet itself. This plugin +#uses the applet, and I linked both translations this way. +coppermine.language = english +########################################################################################################################## + + +########################################################################################################################## +#Second section: the translation itself. +########################################################################################################################## + #JUploadPanel buttonBrowse = Browse ... buttonRemoveSelected = Remove Selected @@ -25,12 +64,14 @@ timefmt_s = %1$d seconds timefmt_unknown = unknown status_msg = JUpload %1$d%% done, Transfer rate: %2$s, ETA: %3$s +menuitem_paste = Paste #JUploadExceptionTooBigFile errFileTooBig = The file length for '%1$s' is too big (%2$s) #FileUploadThread preparingFile = Preparing file %1$d/%2$d +filesPrepared = %1$d files prepared infoUploading = Uploading files %1$s infoUploaded = %1$s file(s) uploaded. Waiting for server response ... infoAborted = Upload aborted after %1$d File(s). @@ -39,6 +80,16 @@ errHttpResponse = Upload failed: unexpected HTTP response questionSendMailOnError = An error occurred during upload. Do you want to send all relevant information to the webmaster? +#DialogUploadRetry +dialogUploadRetryText = An error occurs occured during the upload of the files to the server. Do you want to retry uploading these files?\n\nThe upload will automatically be re-executed in %1$d seconds. +dialogUploadRetryTitle = Retry the upload? +buttonDetails = Details +buttonYes = Yes +buttonNo = No + +#FileUploadManagerThread +errorDuringUpload = The following error occured during upload:\n%1$s\n\nDo you want to go on with the current upload? + #FilePanelDataModel colName = Name colSize = Size @@ -54,6 +105,9 @@ chooseAlbumFirst = Please, choose an album first. coppermineUploadOk = The pictures have been correctly loaded on the server, in the selected album.\n\nClick on Ok now to associate names and comments to these pictures.\n\nDon't forget to click on the 'Apply modification button' to save your modifications on the server ! +#SuperSimpleUploadPolicy +dragDirectoriesAndFilesToHere = Drag directories an files to here + #PictureFileData tooBigPicture = Picture '%1$s' is too big. It will be uploaded unchanged (no rotation, resizing...). notAPicture = The file named '%1$s' is not a picture. It is not added to the list of files to be uploaded. Added: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar.properties (rev 0) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -0,0 +1,158 @@ +# +# +# HOW TO ADD PROPERTIES: +# If you want to add new properties, either create your own lang files, or add this property first to the +# lang.properties file, which is the reference for all existing properties. +# Each property missing in lang.properties, will be removed from all other properties file in the next execution +# of build_translation.xml +# +# +# HOW TO UPDATE TRANSLATIONS: +# All information for contributors is available here: +# +# http://jupload.sourceforge.net/howto-translation.html +# +# +# QUICK DESCRIPTION: +# Please update the files in the /src/main/lang.utf-16/ directory. +# As the directory is named, they are all in UTF-16 format. Then execute the build_translation.xml file, to +# report these modifications to the wjhk/jupload/lang pacakge, for use in the applet. +# +# Doing this, allows: +# - To have all translation in Human readable text, instead of unicode text. +# - To mark all missing text, in other languages (important note: the lang.properties file is the reference for all properties). +# +# +# The %1$d (and similar) code sequences are placeholders for variable substitution, +# The sequence %% represents a single percent-character. + +########################################################################################################################## +#First section: general information about this translation. +########################################################################################################################## +#These parameters are used by the translation maven plugin. +#They are used to generate the transation part of JUpload web site, to display existing translations to translators. They +#can then check translation, and submit updated or new translations. +generateHtmlFileForTranslators = true +language = Arabic +contributor = "Abdulrhman Alkhodiry" <alm...@gm...> +#A link to the Coppermine plugin language file. No link with the applet itself. This plugin +#uses the applet, and I linked both translations this way. +coppermine.language = arabic +########################################################################################################################## + + +########################################################################################################################## +#Second section: the translation itself. +########################################################################################################################## + +#JUploadPanel +buttonBrowse = \u0627\u0633\u062a\u0639\u0631\u0627\u0636 ... +buttonRemoveSelected = \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631 +buttonRemoveAll = \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0643\u0644 +buttonRotateLeft = \u0627\u062f\u0627\u0631\u0629 \u0644\u0644\u064a\u0633\u0627\u0631 +buttonRotateRight = \u0627\u062f\u0627\u0631\u0629 \u0644\u0644\u064a\u0645\u064a\u0646 +buttonUpload = \u0631\u0641\u0639 +buttonStop = \u0627\u064a\u0642\u0627\u0641 +#MISSING messageLogWindowCopiedToClipboard = Debugging messages have been copied to the clipboard. +#JUploadPanel, The components of the status line +speedunit_gb_per_second = Gb/s +speedunit_mb_per_second = Mb/s +speedunit_kb_per_second = Kb/s +speedunit_b_per_second = b/s +timefmt_hms = %1$dh, %2$d \u062f\u0642\u064a\u0642\u0629. \u0648 %3$d \u062b\u0627\u0646\u064a\u0629. +timefmt_ms = %1$d \u062f\u0642\u064a\u0642\u0629. \u0648 %2$d \u062b\u0627\u0646\u064a\u0629. +timefmt_s = %1$d \u062b\u0648\u0627\u0646\u064a +timefmt_unknown = \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641 +status_msg = \u062c\u064a \u0627\u0628\u0644\u0648\u062f %1$d%% \u0627\u0646\u062a\u0647\u0649, \u0633\u0631\u0639\u0629 \u0627\u0644\u0646\u0642\u0644: %2$s, \u062a\u0642\u0631\u064a\u0628\u0627: %3$s +#MISSING menuitem_paste = Paste + +#JUploadExceptionTooBigFile +errFileTooBig = \u062d\u062c\u0645 \u0627\u0644\u0645\u0644\u0641 \u0644\u0640 '%1$s' \u0643\u0628\u064a\u0631 (%2$s) + +#FileUploadThread +preparingFile = \u062a\u062d\u0636\u064a\u0631 \u0627\u0644\u0645\u0644\u0641 %1$d/%2$d +#MISSING filesPrepared = %1$d files prepared +infoUploading = \u0631\u0641\u0639 \u0627\u0644\u0645\u0644\u0641\u0627\u062a %1$s +infoUploaded = %1$s \u0645\u0644\u0641 \u0631\u0641\u0639\u0629. \u0627\u0646\u062a\u0638\u0627\u0631 \u0631\u062f \u0627\u0644\u0633\u064a\u0631\u0641\u0631 ... +infoAborted = \u062a\u0645 \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0631\u0641\u0639 %1$d \u0645\u0644\u0641. +nbUploadedFiles = %1$d \u0627\u0644\u0645\u0644\u0641 \u0627\u0648 \u0627\u0644\u0644\u0641\u0627\u062a \u0631\u0641\u0639\u0629 +errDuringUpload = \u062a\u0645 \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0631\u0641\u0639 \u0628\u0623\u062e\u0637\u0627\u0621 +errHttpResponse = \u0627\u0644\u0631\u0641\u0639 \u0641\u0634\u0644: \u0631\u062f \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u063a\u064a\u0631 \u0645\u062a\u0648\u0642\u0639 +questionSendMailOnError = \u062d\u062f\u062b \u062e\u0637\u0627\u0621 \u0627\u062b\u0646\u0627\u0621 \u0627\u0644\u0631\u0641\u0639. \u0647\u0644 \u062a\u0631\u064a\u062f \u0627\u0631\u0633\u0627\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062e\u0637\u0623 \u0627\u0644\u0649 \u0645\u062f\u064a\u0631 \u0627\u0644\u0645\u0648\u0642\u0639? + +#DialogUploadRetry +#MISSING dialogUploadRetryText = An error occurs occured during the upload of the files to the server. Do you want to retry uploading these files?\n\nThe upload will automatically be re-executed in %1$d seconds. +#MISSING dialogUploadRetryTitle = Retry the upload? +#MISSING buttonDetails = Details +#MISSING buttonYes = Yes +#MISSING buttonNo = No + +#FileUploadManagerThread +#MISSING errorDuringUpload = The following error occured during upload:\n%1$s\n\nDo you want to go on with the current upload? + +#FilePanelDataModel +colName = \u0627\u0644\u0627\u0633\u0645 +colSize = \u0627\u0644\u062d\u062c\u0645 +colDirectory = \u0627\u0644\u0645\u062c\u0644\u062f +colModified = \u0639\u062f\u0644 +colReadable = \u0642\u0627\u0628\u0644 \u0644\u0644\u0642\u0631\u0627\u0621\u0629? +errForbiddenExtension = \u0627\u0645\u062a\u062f\u0627\u062f\u0627\u062a \u063a\u064a\u0631 \u0645\u0633\u0645\u0648\u062d\u0629. + +#DefaultUploadPolicy +errDuringLogManagement = \u062d\u062f\u062b \u062e\u0637\u0623 \u0627\u062b\u0646\u0627\u0621 \u0627\u062f\u0627\u0631\u0629 \u0627\u0644\u0633\u062c\u0644 + +#CoppermineFileUploadPolicy +chooseAlbumFirst = \u0627\u0644\u0631\u062c\u0627\u0621, \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0627\u0644\u0628\u0648\u0645 \u0627\u0648\u0644\u0627. +coppermineUploadOk = \u062a\u0645 \u0631\u0641\u0639 \u0627\u0644\u0635\u0648\u0631 \u0628\u0646\u062c\u0627\u062d, \u0641\u064a \u0627\u0644\u0627\u0644\u0628\u0648\u0645 \u0627\u0644\u0645\u062e\u062a\u0627\u0631.\n\n \u0627\u0646\u0642\u0631 \u0627\u0648\u0643\u064a\u0629 \u0644\u062a\u0639\u062f\u064a\u0644 \u0627\u0633\u0645 \u0648 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0635\u0648\u0631.\n\n \u0644\u0627 \u062a\u0646\u0633\u0649 \u0627\u0644\u0646\u0642\u0631 \u0639\u0644\u0649 '\u0632\u0631 \u062a\u0646\u0641\u064a\u0630 \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a' \u0644\u064a\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a \u0641\u064a \u0627\u0644\u0633\u064a\u0631\u0641\u0631 ! + +#SuperSimpleUploadPolicy +#MISSING dragDirectoriesAndFilesToHere = Drag directories an files to here + +#PictureFileData +tooBigPicture = \u0627\u0644\u0635\u0648\u0631\u0629 '%1$s' \u0643\u0628\u064a\u0631\u0629 \u062c\u062f\u0627. \u0633\u0648\u0641 \u064a\u062a\u0645 \u0631\u0641\u0639\u0647\u0627 \u0628\u062f\u0648\u0646 \u062a\u0639\u062f\u064a\u0644 (\u062a\u0635\u063a\u064a\u0631 \u0627\u0648 \u0638\u063a\u0637...). +notAPicture = \u0627\u0644\u0645\u0644\u0641 \u0628\u0623\u0633\u0645 '%1$s' \u0644\u064a\u0633 \u0635\u0648\u0631\u0629. \u0644\u0646 \u064a\u062a\u0645 \u0627\u0636\u0627\u0641\u062a\u0647 \u0627\u0644\u0649 \u0627\u0644\u0645\u0644\u0641\u0627\u062a \u0627\u0644\u0645\u0631\u0641\u0648\u0639\u0629. + +#PictureDialog +buttonClose = \u0627\u063a\u0644\u0627\u0642 + +#DateRenderer +dateformat = yyyy-MM-dd hh:mm aaa + +#SizeRenderer. See http://en.wikipedia.org/wiki/KiB +unitBytes = b +unitGigabytes = GiB +unitMegabytes = MiB +unitKilobytes = KiB + +#sendDebugInformation +Confirm = \u062a\u0623\u0643\u064a\u062f + +#InteractiveTrustManager +itm_title_pass = \u0627\u062f\u062e\u0644 %1$s \u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631 +itm_prompt_pass = %1$s \u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631: +itm_cert_alert = SSL Certificate Alert +itm_cert_details = Certificate details: +itm_cert_subject = \u0627\u0644\u0645\u0648\u0636\u0648\u0639: +itm_cert_issuer = \u0627\u0644\u0645\u0634\u0643\u0644\u0629: +itm_cert_nbefore = \u0644\u064a\u0633 \u0642\u0628\u0644: +itm_cert_nafter = \u0644\u064a\u0633 \u0628\u0639\u062f: +itm_cert_serial = \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u062a\u0633\u0644\u0633\u0644\u064a: +itm_cert_fprint = %1$s \u0628\u0635\u0645\u0629: +itm_cert_C = \u0627\u0644\u0628\u0644\u062f: +itm_cert_CN = \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0626\u0639: +itm_cert_L = \u0627\u0644\u0645\u0648\u0642\u0639: +itm_cert_ST = \u0627\u0644\u0648\u0644\u0627\u064a\u0629 \u0627\u0648 \u0627\u0644\u0645\u0642\u0627\u0637\u0639\u0629: +itm_cert_O = \u0627\u0644\u0645\u0624\u0633\u0633\u0629: +itm_cert_OU = Organizational unit: +itm_reasons = \u0627\u0644\u0627\u0633\u0628\u0627\u0628: +itm_reason_cnmatch = \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0626\u0639 \u0644\u0627 \u064a\u0637\u0627\u0628\u0642 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u0636\u064a\u0641 (%1$s). +itm_reason_itrust = \u0627\u0644\u062a\u0631\u062e\u064a\u0635 \u063a\u064a\u0631 \u0645\u0648\u062b\u0648\u0642. +itm_reason_expired = \u0627\u0644\u062a\u0631\u062e\u064a\u0635 \u0627\u0646\u062a\u0647\u0649. +itm_reason_notyet = \u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u0644\u062a\u0631\u062e\u064a\u0635. +itm_fail_verify = \u0627\u0644\u062a\u0631\u062e\u064a\u0635, \u0645\u0646 \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u0644\u0645 \u064a\u062a\u0645 \u062a\u0623\u0643\u064a\u062f\u0647. +itm_accept_prompt = \u0647\u0644 \u062a\u0631\u064a\u062f \u0642\u0628\u0648\u0644 \u0627\u0644\u062a\u0631\u062e\u064a\u0635? +itm_accept_always = \u062f\u0627\u0626\u0645\u0627 +itm_accept_now = \u0644\u0647\u0630\u0647 \u0627\u0644\u062c\u0644\u0633\u0629 \u0641\u0642\u0637 +itm_accept_no = \u0644\u0627 +itm_new_tstore = \u0645\u0643\u0627\u0646 \u062a\u062e\u0632\u064a\u0646 \u0645\u0648\u062b\u0648\u0642 \u062c\u062f\u064a\u062f +itm_tstore = \u0645\u0643\u0627\u0646 \u062a\u062e\u0632\u064a\u0646 Added: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar_SA.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar_SA.properties (rev 0) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_ar_SA.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -0,0 +1,158 @@ +# +# +# HOW TO ADD PROPERTIES: +# If you want to add new properties, either create your own lang files, or add this property first to the +# lang.properties file, which is the reference for all existing properties. +# Each property missing in lang.properties, will be removed from all other properties file in the next execution +# of build_translation.xml +# +# +# HOW TO UPDATE TRANSLATIONS: +# All information for contributors is available here: +# +# http://jupload.sourceforge.net/howto-translation.html +# +# +# QUICK DESCRIPTION: +# Please update the files in the /src/main/lang.utf-16/ directory. +# As the directory is named, they are all in UTF-16 format. Then execute the build_translation.xml file, to +# report these modifications to the wjhk/jupload/lang pacakge, for use in the applet. +# +# Doing this, allows: +# - To have all translation in Human readable text, instead of unicode text. +# - To mark all missing text, in other languages (important note: the lang.properties file is the reference for all properties). +# +# +# The %1$d (and similar) code sequences are placeholders for variable substitution, +# The sequence %% represents a single percent-character. + +########################################################################################################################## +#First section: general information about this translation. +########################################################################################################################## +#These parameters are used by the translation maven plugin. +#They are used to generate the transation part of JUpload web site, to display existing translations to translators. They +#can then check translation, and submit updated or new translations. +generateHtmlFileForTranslators = false +language = Arabic +contributor = "Abdulrhman Alkhodiry" <alm...@gm...> +#A link to the Coppermine plugin language file. No link with the applet itself. This plugin +#uses the applet, and I linked both translations this way. +coppermine.language = arabic +########################################################################################################################## + + +########################################################################################################################## +#Second section: the translation itself. +########################################################################################################################## + +#JUploadPanel +buttonBrowse = \u0627\u0633\u062a\u0639\u0631\u0627\u0636 ... +buttonRemoveSelected = \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631 +buttonRemoveAll = \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0643\u0644 +buttonRotateLeft = \u0627\u062f\u0627\u0631\u0629 \u0644\u0644\u064a\u0633\u0627\u0631 +buttonRotateRight = \u0627\u062f\u0627\u0631\u0629 \u0644\u0644\u064a\u0645\u064a\u0646 +buttonUpload = \u0631\u0641\u0639 +buttonStop = \u0627\u064a\u0642\u0627\u0641 +#MISSING messageLogWindowCopiedToClipboard = Debugging messages have been copied to the clipboard. +#JUploadPanel, The components of the status line +speedunit_gb_per_second = Gb/s +speedunit_mb_per_second = Mb/s +speedunit_kb_per_second = Kb/s +speedunit_b_per_second = b/s +timefmt_hms = %1$dh, %2$d \u062f\u0642\u064a\u0642\u0629. \u0648 %3$d \u062b\u0627\u0646\u064a\u0629. +timefmt_ms = %1$d \u062f\u0642\u064a\u0642\u0629. \u0648 %2$d \u062b\u0627\u0646\u064a\u0629. +timefmt_s = %1$d \u062b\u0648\u0627\u0646\u064a +timefmt_unknown = \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641 +status_msg = \u062c\u064a \u0627\u0628\u0644\u0648\u062f %1$d%% \u0627\u0646\u062a\u0647\u0649, \u0633\u0631\u0639\u0629 \u0627\u0644\u0646\u0642\u0644: %2$s, \u062a\u0642\u0631\u064a\u0628\u0627: %3$s +#MISSING menuitem_paste = Paste + +#JUploadExceptionTooBigFile +errFileTooBig = \u062d\u062c\u0645 \u0627\u0644\u0645\u0644\u0641 \u0644\u0640 '%1$s' \u0643\u0628\u064a\u0631 (%2$s) + +#FileUploadThread +preparingFile = \u062a\u062d\u0636\u064a\u0631 \u0627\u0644\u0645\u0644\u0641 %1$d/%2$d +#MISSING filesPrepared = %1$d files prepared +infoUploading = \u0631\u0641\u0639 \u0627\u0644\u0645\u0644\u0641\u0627\u062a %1$s +infoUploaded = %1$s \u0645\u0644\u0641 \u0631\u0641\u0639\u0629. \u0627\u0646\u062a\u0638\u0627\u0631 \u0631\u062f \u0627\u0644\u0633\u064a\u0631\u0641\u0631 ... +infoAborted = \u062a\u0645 \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0631\u0641\u0639 %1$d \u0645\u0644\u0641. +nbUploadedFiles = %1$d \u0627\u0644\u0645\u0644\u0641 \u0627\u0648 \u0627\u0644\u0644\u0641\u0627\u062a \u0631\u0641\u0639\u0629 +errDuringUpload = \u062a\u0645 \u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u0631\u0641\u0639 \u0628\u0623\u062e\u0637\u0627\u0621 +errHttpResponse = \u0627\u0644\u0631\u0641\u0639 \u0641\u0634\u0644: \u0631\u062f \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u063a\u064a\u0631 \u0645\u062a\u0648\u0642\u0639 +questionSendMailOnError = \u062d\u062f\u062b \u062e\u0637\u0627\u0621 \u0627\u062b\u0646\u0627\u0621 \u0627\u0644\u0631\u0641\u0639. \u0647\u0644 \u062a\u0631\u064a\u062f \u0627\u0631\u0633\u0627\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062e\u0637\u0623 \u0627\u0644\u0649 \u0645\u062f\u064a\u0631 \u0627\u0644\u0645\u0648\u0642\u0639? + +#DialogUploadRetry +#MISSING dialogUploadRetryText = An error occurs occured during the upload of the files to the server. Do you want to retry uploading these files?\n\nThe upload will automatically be re-executed in %1$d seconds. +#MISSING dialogUploadRetryTitle = Retry the upload? +#MISSING buttonDetails = Details +#MISSING buttonYes = Yes +#MISSING buttonNo = No + +#FileUploadManagerThread +#MISSING errorDuringUpload = The following error occured during upload:\n%1$s\n\nDo you want to go on with the current upload? + +#FilePanelDataModel +colName = \u0627\u0644\u0627\u0633\u0645 +colSize = \u0627\u0644\u062d\u062c\u0645 +colDirectory = \u0627\u0644\u0645\u062c\u0644\u062f +colModified = \u0639\u062f\u0644 +colReadable = \u0642\u0627\u0628\u0644 \u0644\u0644\u0642\u0631\u0627\u0621\u0629? +errForbiddenExtension = \u0627\u0645\u062a\u062f\u0627\u062f\u0627\u062a \u063a\u064a\u0631 \u0645\u0633\u0645\u0648\u062d\u0629. + +#DefaultUploadPolicy +errDuringLogManagement = \u062d\u062f\u062b \u062e\u0637\u0623 \u0627\u062b\u0646\u0627\u0621 \u0627\u062f\u0627\u0631\u0629 \u0627\u0644\u0633\u062c\u0644 + +#CoppermineFileUploadPolicy +chooseAlbumFirst = \u0627\u0644\u0631\u062c\u0627\u0621, \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0627\u0644\u0628\u0648\u0645 \u0627\u0648\u0644\u0627. +coppermineUploadOk = \u062a\u0645 \u0631\u0641\u0639 \u0627\u0644\u0635\u0648\u0631 \u0628\u0646\u062c\u0627\u062d, \u0641\u064a \u0627\u0644\u0627\u0644\u0628\u0648\u0645 \u0627\u0644\u0645\u062e\u062a\u0627\u0631.\n\n \u0627\u0646\u0642\u0631 \u0627\u0648\u0643\u064a\u0629 \u0644\u062a\u0639\u062f\u064a\u0644 \u0627\u0633\u0645 \u0648 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0635\u0648\u0631.\n\n \u0644\u0627 \u062a\u0646\u0633\u0649 \u0627\u0644\u0646\u0642\u0631 \u0639\u0644\u0649 '\u0632\u0631 \u062a\u0646\u0641\u064a\u0630 \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a' \u0644\u064a\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u062a\u0639\u062f\u064a\u0644\u0627\u062a \u0641\u064a \u0627\u0644\u0633\u064a\u0631\u0641\u0631 ! + +#SuperSimpleUploadPolicy +#MISSING dragDirectoriesAndFilesToHere = Drag directories an files to here + +#PictureFileData +tooBigPicture = \u0627\u0644\u0635\u0648\u0631\u0629 '%1$s' \u0643\u0628\u064a\u0631\u0629 \u062c\u062f\u0627. \u0633\u0648\u0641 \u064a\u062a\u0645 \u0631\u0641\u0639\u0647\u0627 \u0628\u062f\u0648\u0646 \u062a\u0639\u062f\u064a\u0644 (\u062a\u0635\u063a\u064a\u0631 \u0627\u0648 \u0638\u063a\u0637...). +notAPicture = \u0627\u0644\u0645\u0644\u0641 \u0628\u0623\u0633\u0645 '%1$s' \u0644\u064a\u0633 \u0635\u0648\u0631\u0629. \u0644\u0646 \u064a\u062a\u0645 \u0627\u0636\u0627\u0641\u062a\u0647 \u0627\u0644\u0649 \u0627\u0644\u0645\u0644\u0641\u0627\u062a \u0627\u0644\u0645\u0631\u0641\u0648\u0639\u0629. + +#PictureDialog +buttonClose = \u0627\u063a\u0644\u0627\u0642 + +#DateRenderer +dateformat = yyyy-MM-dd hh:mm aaa + +#SizeRenderer. See http://en.wikipedia.org/wiki/KiB +unitBytes = b +unitGigabytes = GiB +unitMegabytes = MiB +unitKilobytes = KiB + +#sendDebugInformation +Confirm = \u062a\u0623\u0643\u064a\u062f + +#InteractiveTrustManager +itm_title_pass = \u0627\u062f\u062e\u0644 %1$s \u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631 +itm_prompt_pass = %1$s \u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631: +itm_cert_alert = SSL Certificate Alert +itm_cert_details = Certificate details: +itm_cert_subject = \u0627\u0644\u0645\u0648\u0636\u0648\u0639: +itm_cert_issuer = \u0627\u0644\u0645\u0634\u0643\u0644\u0629: +itm_cert_nbefore = \u0644\u064a\u0633 \u0642\u0628\u0644: +itm_cert_nafter = \u0644\u064a\u0633 \u0628\u0639\u062f: +itm_cert_serial = \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u062a\u0633\u0644\u0633\u0644\u064a: +itm_cert_fprint = %1$s \u0628\u0635\u0645\u0629: +itm_cert_C = \u0627\u0644\u0628\u0644\u062f: +itm_cert_CN = \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0626\u0639: +itm_cert_L = \u0627\u0644\u0645\u0648\u0642\u0639: +itm_cert_ST = \u0627\u0644\u0648\u0644\u0627\u064a\u0629 \u0627\u0648 \u0627\u0644\u0645\u0642\u0627\u0637\u0639\u0629: +itm_cert_O = \u0627\u0644\u0645\u0624\u0633\u0633\u0629: +itm_cert_OU = Organizational unit: +itm_reasons = \u0627\u0644\u0627\u0633\u0628\u0627\u0628: +itm_reason_cnmatch = \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0626\u0639 \u0644\u0627 \u064a\u0637\u0627\u0628\u0642 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u0636\u064a\u0641 (%1$s). +itm_reason_itrust = \u0627\u0644\u062a\u0631\u062e\u064a\u0635 \u063a\u064a\u0631 \u0645\u0648\u062b\u0648\u0642. +itm_reason_expired = \u0627\u0644\u062a\u0631\u062e\u064a\u0635 \u0627\u0646\u062a\u0647\u0649. +itm_reason_notyet = \u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u0644\u062a\u0631\u062e\u064a\u0635. +itm_fail_verify = \u0627\u0644\u062a\u0631\u062e\u064a\u0635, \u0645\u0646 \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u0644\u0645 \u064a\u062a\u0645 \u062a\u0623\u0643\u064a\u062f\u0647. +itm_accept_prompt = \u0647\u0644 \u062a\u0631\u064a\u062f \u0642\u0628\u0648\u0644 \u0627\u0644\u062a\u0631\u062e\u064a\u0635? +itm_accept_always = \u062f\u0627\u0626\u0645\u0627 +itm_accept_now = \u0644\u0647\u0630\u0647 \u0627\u0644\u062c\u0644\u0633\u0629 \u0641\u0642\u0637 +itm_accept_no = \u0644\u0627 +itm_new_tstore = \u0645\u0643\u0627\u0646 \u062a\u062e\u0632\u064a\u0646 \u0645\u0648\u062b\u0648\u0642 \u062c\u062f\u064a\u062f +itm_tstore = \u0645\u0643\u0627\u0646 \u062a\u062e\u0632\u064a\u0646 Added: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_bg.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_bg.properties (rev 0) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_bg.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -0,0 +1,158 @@ +# +# +# HOW TO ADD PROPERTIES: +# If you want to add new properties, either create your own lang files, or add this property first to the +# lang.properties file, which is the reference for all existing properties. +# Each property missing in lang.properties, will be removed from all other properties file in the next execution +# of build_translation.xml +# +# +# HOW TO UPDATE TRANSLATIONS: +# All information for contributors is available here: +# +# http://jupload.sourceforge.net/howto-translation.html +# +# +# QUICK DESCRIPTION: +# Please update the files in the /src/main/lang.utf-16/ directory. +# As the directory is named, they are all in UTF-16 format. Then execute the build_translation.xml file, to +# report these modifications to the wjhk/jupload/lang pacakge, for use in the applet. +# +# Doing this, allows: +# - To have all translation in Human readable text, instead of unicode text. +# - To mark all missing text, in other languages (important note: the lang.properties file is the reference for all properties). +# +# +# The %1$d (and similar) code sequences are placeholders for variable substitution, +# The sequence %% represents a single percent-character. + +########################################################################################################################## +#First section: general information about this translation. +########################################################################################################################## +#These parameters are used by the translation maven plugin. +#They are used to generate the transation part of JUpload web site, to display existing translations to translators. They +#can then check translation, and submit updated or new translations. +generateHtmlFileForTranslators = true +language = Bulgarian +contributor = \u0418\u043b\u0438\u0430\u043d \u0425\u0440\u0438\u0441\u0442\u043e\u0434\u043e\u0440\u043e\u0432 (zu...@zu...) +#A link to the Coppermine plugin language file. No link with the applet itself. This plugin +#uses the applet, and I linked both translations this way. +coppermine.language = bulgarian +########################################################################################################################## + + +########################################################################################################################## +#Second section: the translation itself. +########################################################################################################################## + +#JUploadPanel +buttonBrowse = \u041f\u0440\u0435\u0433\u043b\u0435\u0434 ... +buttonRemoveSelected = \u0418\u0437\u0442\u0440\u0438\u0439 \u0438\u0437\u0431\u0440\u0430\u043d\u043e\u0442\u043e +buttonRemoveAll = \u0418\u0437\u0440\u0438\u0439 \u0432\u0441\u0438\u0447\u043a\u043e +buttonRotateLeft = \u0417\u0430\u0432\u044a\u0440\u0442\u0438 \u043d\u0430 \u043b\u044f\u0432\u043e +buttonRotateRight = \u0417\u0430\u0432\u044a\u0440\u0442\u0438 \u043d\u0430 \u0434\u044f\u0441\u043d\u043e +buttonUpload = \u041a\u0430\u0447\u0432\u0430\u043d\u0435 +buttonStop = \u0421\u0422\u041e\u041f +messageLogWindowCopiedToClipboard = Debugging messages have been copied to the clipboard. +#JUploadPanel, The components of the status line +speedunit_gb_per_second = \u0413\u0431/\u0441 +speedunit_mb_per_second = \u041c\u0431/\u0441 +speedunit_kb_per_second = \u041a\u0431/\u0441 +speedunit_b_per_second = \u0431/\u0441 +timefmt_hms = %1$d\u0447, %2$d \u043c\u0438\u043d. \u0438 %3$d \u0441\u0435\u043a. +timefmt_ms = %1$d \u043c\u0438\u043d. \u0438 %2$d \u0441\u0435\u043a. +timefmt_s = %1$d \u0441\u0435\u043a\u0443\u043d\u0434\u0438 +timefmt_unknown = \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e +status_msg = \u041a\u0430\u0447\u0432\u0430\u043d\u0435\u0442\u043e %1$d%% \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0438, \u0422\u0440\u0430\u043d\u0441\u0444\u0435\u0440 \u0441\u0442\u0430\u0442\u0443\u0441: %2$s, ETA: %3$s +#MISSING menuitem_paste = Paste + +#JUploadExceptionTooBigFile +errFileTooBig = \u0413\u043e\u043b\u0435\u043c\u0438\u043d\u0430\u0442\u0430 \u043d\u0430 \u0445\u0430\u0439\u043b\u0430 '%1$s' \u0435 \u043c\u043d\u043e\u0433\u043e \u0433\u043e\u043b\u044f\u043c\u0430 (%2$s) + +#FileUploadThread +preparingFile = \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b\u0430 %1$d/%2$d +#MISSING filesPrepared = %1$d files prepared +infoUploading = \u041a\u0430\u0447\u0432\u0430\u043d\u0435 \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 %1$s +infoUploaded = %1$s \u0444\u0430\u0439\u043b(\u0430) \u043a\u0430\u0447\u0432\u0430\u043d\u0435. \u0427\u0430\u043a\u0430\u043d\u0435 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u043e\u0442 \u0441\u044a\u0440\u0432\u0430\u0440\u0430 ... +infoAborted = \u041a\u0430\u0447\u0432\u0430\u043d\u0435\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0435\u043d\u043e \u0441\u043b\u0435\u0434 %1$d \u0424\u0430\u0439\u043b(\u0430). +nbUploadedFiles = %1$d \u0444\u0430\u0439\u043b(\u0430) \u043a\u0430\u0447\u0435\u043d\u0438 +errDuringUpload = \u041a\u0430\u0447\u0432\u0430\u043d\u0435\u0442\u043e \u0441\u043f\u0440\u044f \u0437\u0430\u0440\u0430\u0434\u0438 \u0433\u0440\u0435\u0448\u043a\u0438 +errHttpResponse = \u041a\u0430\u0447\u0432\u0430\u043d\u0435\u0442\u043e \u043f\u0440\u043e\u043f\u0430\u0434\u043d\u0430: \u043d\u0435\u043e\u0447\u0430\u043a\u0432\u0430\u043d\u0438 HTTP \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438 +questionSendMailOnError = \u0412\u044a\u0437\u043d\u0438\u043a\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435 \u043d\u0430 \u043a\u0430\u0447\u0432\u0430\u043d\u0435\u0442\u043e. \u0418\u0441\u043a\u0430\u0442\u0435 \u043b\u0438 \u0434\u0430 \u0438\u0437\u043f\u0440\u0430\u0442\u0438\u0442\u0435 \u0446\u044f\u043b\u0430\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u0443\u0435\u0431\u043c\u0430\u0441\u0442\u044a\u0440\u0430? + +#DialogUploadRetry +#MISSING dialogUploadRetryText = An error occurs occured during the upload of the files to the server. Do you want to retry uploading these files?\n\nThe upload will automatically be re-executed in %1$d seconds. +#MISSING dialogUploadRetryTitle = Retry the upload? +#MISSING buttonDetails = Details +#MISSING buttonYes = Yes +#MISSING buttonNo = No + +#FileUploadManagerThread +#MISSING errorDuringUpload = The following error occured during upload:\n%1$s\n\nDo you want to go on with the current upload? + +#FilePanelDataModel +colName = \u0418\u043c\u0435 +colSize = \u0420\u0430\u0437\u043c\u0435\u0440 +colDirectory = \u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f +colModified = \u041f\u0440\u043e\u043c\u0435\u043d\u0435\u043d\u043e +colReadable = \u0427\u0435\u0442\u043b\u0438\u0432\u043e? +errForbiddenExtension = \u0417\u0430\u0431\u0440\u0430\u043d\u0435\u043d\u043e \u0444\u0430\u0439\u043b\u043e\u0432\u043e \u0440\u0430\u0437\u0448\u0438\u0440\u0435\u043d\u0438\u0435. + +#DefaultUploadPolicy +errDuringLogManagement = \u0412\u044a\u0437\u043d\u0438\u043a\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0442\u043e + +#CoppermineFileUploadPolicy +chooseAlbumFirst = \u041c\u043e\u043b\u044f, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0430\u043b\u0431\u0443\u043c. +coppermineUploadOk = \u0421\u043d\u0438\u043c\u043a\u0438\u0442\u0435 \u0441\u0430 \u0437\u0430\u0440\u0435\u0434\u0435\u043d\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e \u043d\u0430 \u0441\u044a\u0440\u0432\u044a\u0440\u0430, \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u0438\u044f \u0430\u043b\u0431\u0443\u043c. .\n\n\u041a\u043b\u0438\u043a\u043d\u0435\u0442\u0430 \u043d\u0430 Ok \u0441\u0435\u0433\u0430 \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0430\u0441\u043e\u0446\u0438\u0438\u0440\u0430\u0442 \u0438\u043c\u0435\u043d\u0430\u0442\u0430 \u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0442\u0435 \u043d\u0430 \u0442\u0435\u0437\u0438 \u0441\u043d\u0438\u043c\u043a\u0438.\n\n\u041d\u0435 \u0437\u0430\u0431\u0440\u0430\u0432\u044f\u0439\u0442\u0435 \u0434\u0430 \u043a\u043b\u0438\u043a\u043d\u0435\u0442\u0435 \u0432\u044a\u0440\u0445\u0443'Apply modification button' , \u0437\u0430 \u0434\u0430 \u0437\u0430\u043f\u0430\u0437\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u044a\u0440\u0432\u044a\u0440\u0430! + +#SuperSimpleUploadPolicy +#MISSING dragDirectoriesAndFilesToHere = Drag directories an files to here + +#PictureFileData +tooBigPicture = \u0421\u043d\u0438\u043c\u043a\u0430\u0442\u0430 '%1$s' \u0435 \u043f\u0440\u0435\u043a\u0430\u043b\u0435\u043d\u043e \u0433\u043e\u043b\u044f\u043c\u0430. \u0422\u0447 \u0449\u0435 \u0431\u044a\u0434\u0435 \u043a\u0430\u0447\u0435\u043d\u0430 \u043d\u0435\u043f\u0440\u043e\u043c\u0435\u043d\u0435\u043d\u0430 (\u043d\u044f\u043c\u0430 \u0432\u044a\u0440\u0442\u0435\u043d\u0435, \u043f\u0440\u0435\u043e\u0440\u0430\u0437\u043c\u0435\u0440\u044f\u0432\u0430\u043d\u0435 ...). +notAPicture = \u0418\u043c\u0435\u0442\u043e\u043d\u0430 \u0444\u0430\u0439\u043b\u0430 '%1$s' \u043d\u0435 \u0435 \u0441\u043d\u0438\u043c\u043a\u0430. \u0422\u043e\u0432\u0430 \u043d\u0435 \u0435 \u0434\u043e\u0431\u0430\u0432\u0435\u043d\u043e \u043a\u044a\u043c \u0441\u043f\u0438\u0441\u044a\u043a\u0430 \u043d\u0430 \u043f\u043e\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0442\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u0435. + +#PictureDialog +buttonClose = \u0417\u0430\u0442\u0432\u043e\u0440\u0438 + +#DateRenderer +dateformat = yyyy-MM-dd hh:mm aaa + +#SizeRenderer. See http://en.wikipedia.org/wiki/KiB +unitBytes = b +unitGigabytes = GiB +unitMegabytes = MiB +unitKilobytes = KiB + +#sendDebugInformation +Confirm = \u041f\u043e\u0442\u0432\u044a\u0440\u0434\u0438 + +#InteractiveTrustManager +itm_title_pass = \u041d\u0430\u043f\u0438\u0448\u0438 %1$s \u043f\u0430\u0440\u043e\u043b\u0430 +itm_prompt_pass = %1$s \u043f\u0430\u0440\u043e\u043b\u0430: +itm_cert_alert = SSL \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 +itm_cert_details = \u0414\u0435\u0442\u0430\u0438\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430: +itm_cert_subject = \u0422\u0435\u043c\u0430: +itm_cert_issuer = \u0415\u043c\u0438\u0442\u0435\u043d\u0442: +itm_cert_nbefore = \u041d\u0435, \u043f\u0440\u0435\u0434\u0438 \u0434\u0430: +itm_cert_nafter = \u041d\u0435 \u0441\u043b\u0435\u0434: +itm_cert_serial = \u0421\u0435\u0440\u0438\u0435\u043d: +itm_cert_fprint = %1$s \u041e\u0442\u043f\u0435\u0447\u0430\u0442\u044a\u043a: +itm_cert_C = \u0414\u044a\u0440\u0436\u0430\u0432\u0430: +itm_cert_CN = \u041e\u0431\u0449\u043e\u043f\u0440\u0438\u0435\u0442\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: +itm_cert_L = \u041c\u0435\u0441\u0442\u043d\u043e\u0441\u0442: +itm_cert_ST = \u0429\u0430\u0442 \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0438\u043d\u0446\u0438\u044f: +itm_cert_O = \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f: +itm_cert_OU = \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e \u0437\u0432\u0435\u043d\u043e: +itm_reasons = \u041f\u0440\u0438\u0447\u0438\u043d\u0430(\u0438): +itm_reason_cnmatch = \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044a\u0442 \u043e\u0431\u0449\u043e\u0442\u043e \u0438\u043c\u0435 \u043d\u0435 \u0441\u044a\u0432\u043f\u0430\u0434\u0430 \u0441 \u0438\u043c\u0435\u0442\u043e \u043d\u0430 \u0445\u043e\u0441\u0442\u0430 (%1$s). +itm_reason_itrust = \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044f\u0442 \u043d\u0435 \u0435 \u043d\u0430\u0434\u0435\u0436\u0434\u0435\u043d. +itm_reason_expired = \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044a\u0442 \u0435 \u0441 \u0438\u0437\u0442\u0435\u043a\u044a\u043b \u0441\u0440\u043e\u043a. +itm_reason_notyet = \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044a\u0442 \u0432\u0441\u0435 \u043e\u0449\u0435 \u043d\u0435 \u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d. +itm_fail_verify = \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044a\u0442, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0435\u043d \u043e\u0442 \u0441\u044a\u0440\u0432\u044a\u0440\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0431\u044a\u0434\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d. +itm_accept_prompt = \u0418\u0441\u043a\u0430\u0442\u0435 \u043b\u0438 \u0434\u0430 \u043f\u0440\u0438\u0435\u043c\u0435\u0442\u0435 \u0442\u043e\u0437\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442? +itm_accept_always = \u0412\u0438\u043d\u0430\u0433\u0438 +itm_accept_now = \u0421\u0430\u043c\u043e \u0437\u0430 \u0442\u0430\u0437\u0438 \u0441\u0435\u0441\u0438\u044f +itm_accept_no = \u041d\u0435 +itm_new_tstore = \u041d\u043e\u0432\u0430 TrustStore +itm_tstore = TrustStore Added: XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_cs.properties =================================================================== --- XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_cs.properties (rev 0) +++ XoopsModules/extgallery/trunk/modules/extgallery/include/applet/lang/lang_cs.properties 2011-12-21 13:19:09 UTC (rev 8533) @@ -0,0 +1,158 @@ +# +# +# HOW TO ADD PROPERTIES: +# If you want to add new properties, either create your own lang files, or add this property first to the +# lang.properties file, which is the reference for all existing properties. +# Each property missing in lang.properties, will be removed from all other properties file in the next execution +# of build_translation.xml +# +# +# HOW TO UPDATE TRANSLATIONS: +# All information for contributors is available here: +# +# http://jupload.sourceforge.net/howto-translation.html +# +# +# QUICK DESCRIPTION: +# Please update the files in the /src/main/lang.utf-16/ directory. +# As the directory is named, they are all in UTF-16 format. Then execute the build_translation.xml file, to +# report these modifications to the wjhk/jupload/lang pacakge, for use in the applet. +# +# Doing this, allows: +# - To have all translation in Human readable text, instead of unicode text. +# - To mark all missing text, in other languages (important note: the lang.properties file is the reference for all properties). +# +# +# The %1$d (and similar) code sequences are placeholders for variable substitution, +# The sequence %% represents a single percent-character. + +###############################################... [truncated message content] |
From: <be...@us...> - 2011-12-21 11:51:23
|
Revision: 8532 http://xoops.svn.sourceforge.net/xoops/?rev=8532&view=rev Author: beckmi Date: 2011-12-21 11:51:09 +0000 (Wed, 21 Dec 2011) Log Message: ----------- - Converted to XOOPS 2.5.x GUI - Updated Cache Lite - Update PEAR.php - Correction of a bug in the comments - made "Editor List" dynamic based on available editors - update module Logo to "Blue Move" - replaced BD_XoopsFormTextDateSelect back to XoopsFormTextDateSelect in users_birthday.php Modified Paths: -------------- XoopsModules/birthday/trunk/birthday/admin/index.php XoopsModules/birthday/trunk/birthday/admin/menu.php XoopsModules/birthday/trunk/birthday/class/PEAR.php XoopsModules/birthday/trunk/birthday/class/lite.php XoopsModules/birthday/trunk/birthday/class/users_birthday.php XoopsModules/birthday/trunk/birthday/images/birthday_slogo2.png XoopsModules/birthday/trunk/birthday/language/english/admin.php XoopsModules/birthday/trunk/birthday/language/english/modinfo.php XoopsModules/birthday/trunk/birthday/xoops_version.php Added Paths: ----------- XoopsModules/birthday/trunk/birthday/admin/about.php XoopsModules/birthday/trunk/birthday/admin/admin_footer.php XoopsModules/birthday/trunk/birthday/admin/admin_header.php XoopsModules/birthday/trunk/birthday/admin/main.php XoopsModules/birthday/trunk/birthday/class/PEAR5.php XoopsModules/birthday/trunk/birthday/docs/ XoopsModules/birthday/trunk/birthday/docs/changelog.txt XoopsModules/birthday/trunk/birthday/docs/credits.txt XoopsModules/birthday/trunk/birthday/docs/index.html XoopsModules/birthday/trunk/birthday/docs/install.txt XoopsModules/birthday/trunk/birthday/docs/lang_diff.txt XoopsModules/birthday/trunk/birthday/docs/licence.txt XoopsModules/birthday/trunk/birthday/docs/readme.txt XoopsModules/birthday/trunk/birthday/images/cake.png XoopsModules/birthday/trunk/birthday/images/maintenance.png XoopsModules/birthday/trunk/birthday/language/english/help/ XoopsModules/birthday/trunk/birthday/language/english/help/help.html XoopsModules/birthday/trunk/birthday/language/english/help/index.html Removed Paths: ------------- XoopsModules/birthday/trunk/birthday/Readme.txt XoopsModules/birthday/trunk/birthday/changelog.txt XoopsModules/birthday/trunk/birthday/lang.diff Deleted: XoopsModules/birthday/trunk/birthday/Readme.txt =================================================================== --- XoopsModules/birthday/trunk/birthday/Readme.txt 2011-12-21 10:23:39 UTC (rev 8531) +++ XoopsModules/birthday/trunk/birthday/Readme.txt 2011-12-21 11:51:09 UTC (rev 8532) @@ -1,32 +0,0 @@ -######################################################### -# # -# Module Birthday 1.0.1 # -# by Sultan El Turrah (www.theclubbing.com) # -# # -# bas\xE9 sur le travail de # -# XtremDj (www.clubxtrem.net) # -# Lmaix (www.bahut.com) # -# Solo (www.wolfpackclan.com) # -# # -# Copyright \xA9 2005 # -# # # # -######################################################### - -Module Birthday 1.0.1 - -Ce module permet d'afficher et de souhaiter les anniversaires des membres. - -Si vous souhaitez afficher le lien dans le menu utilisateur, \xE9ditez le fichier 'system_block_user.html' fourni avec le module et remplacez le texte "My birthday" par "Mon anniversaire". - /!\ N'oubliez pas de mettre \xE0 jour le module 'system'. - ------------------------ - -This module allows you to show and wish your members birthday. - -If you want to show a link in the user menu, replace the the original 'system_block_user.html' file by the one included. - /!\ Don't forget to update the 'system' module. - ------------------------ - -Sultan El Turrah (alias Sultan - www.theclubbing.com) - Added: XoopsModules/birthday/trunk/birthday/admin/about.php =================================================================== --- XoopsModules/birthday/trunk/birthday/admin/about.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/admin/about.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -0,0 +1,29 @@ +<?php +/** + * Birthday module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package birthday + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ + **/ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/birthday/trunk/birthday/admin/admin_footer.php =================================================================== --- XoopsModules/birthday/trunk/birthday/admin/admin_footer.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/admin/admin_footer.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -0,0 +1,27 @@ +<?php +/** + * Birthday module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package birthday + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ +**/ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_BIRTHDAY_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/birthday/trunk/birthday/admin/admin_header.php =================================================================== --- XoopsModules/birthday/trunk/birthday/admin/admin_header.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/admin/admin_header.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -0,0 +1,45 @@ +<?php +/** + * Birthday module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package birthday + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ +**/ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/birthday/trunk/birthday/admin/index.php =================================================================== --- XoopsModules/birthday/trunk/birthday/admin/index.php 2011-12-21 10:23:39 UTC (rev 8531) +++ XoopsModules/birthday/trunk/birthday/admin/index.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -1,164 +1,34 @@ <?php /** * **************************************************************************** - * birthday - MODULE FOR XOOPS - * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) - * Created on 10 juil. 08 at 11:38:52 + * Birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard (http://www.herve-thouzard.com) + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Herv\xE9 Thouzard (http://www.herve-thouzard.com) + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package birthday + * @author Herv\xE9 Thouzard (http://www.herve-thouzard.com) + * * Version : $Id: * **************************************************************************** */ -require_once '../../../include/cp_header.php'; -require_once '../include/common.php'; -require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; -require_once 'functions.php'; -require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; -$op = 'default'; -if (isset($_POST['op'])) { - $op = $_POST['op']; -} elseif ( isset($_GET['op'])) { - $op = $_GET['op']; -} -// Lecture de certains param\xE8tres de l'application ******************************************************************** -$limit = birthday_utils::getModuleOption('perpage'); // Nombre maximum d'\xE9l\xE9ments \xE0 afficher -$baseurl = BIRTHDAY_URL.'admin/'.basename(__FILE__); // URL de ce script -$conf_msg = birthday_utils::javascriptLinkConfirm(_AM_BIRTHDAY_CONF_DELITEM); -$images_width = birthday_utils::getModuleOption('images_width'); -$images_height = birthday_utils::getModuleOption('images_height'); -$destname = ''; +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; -$cacheFolder = XOOPS_UPLOAD_PATH.'/'.BIRTHDAY_DIRNAME; -if(!is_dir($cacheFolder)) { - mkdir($cacheFolder, 0777); - file_put_contents($cacheFolder.'/index.html', '<script>history.go(-1);</script>'); -} +xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); -switch($op) -{ - // **************************************************************************************************************** - case 'default': // List birthdays and show form to add a someone - // **************************************************************************************************************** - xoops_cp_header(); - birthday_adminMenu(0); - echo '<h1>'.birthday_utils::getModuleName().'</h1>'; - $start = isset($_GET['start']) ? intval($_GET['start']) : 0; - $itemsCount = $hBdUsersBirthday->getCount(); - if($itemsCount > $limit) { - $pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start'); - } - if(isset($pagenav) && is_object($pagenav)) { - echo "<div align='right'>".$pagenav->renderNav()."</div>"; - } - if($itemsCount > 0) { - $class = ''; - $items = $hBdUsersBirthday->getItems($start, $limit, 'birthday_lastname'); - echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; - echo "<tr><th align='center'>"._BIRTHDAY_DATE."</th><th align='center'>"._BIRTHDAY_USERNAME."</th><th align='center'>"._BIRTHDAY_LASTNAME.'<br />'._BIRTHDAY_FIRSTNAME."</th><th align='center'>"._AM_BIRTHDAY_ACTION."</th></tr>"; - foreach ($items as $item) { - $class = ($class == 'even') ? 'odd' : 'even'; - $id = $item->getVar('birthday_id'); - $user = null; - $user = $item->getXoopsUser(); - $uname = ''; - if(is_object($user)) { - $uname = $user->getVar('uname'); - } - $action_edit = "<a href='$baseurl?op=edit&id=".$id."' title='"._EDIT."'>".$birdthday_icones['edit'].'</a>'; - $action_delete = "<a href='$baseurl?op=delete&id=".$id."' title='"._DELETE."'".$conf_msg.">".$birdthday_icones['delete'].'</a>'; + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); - echo "<tr class='".$class."'>\n"; - echo "<td align='center'>".birthday_utils::SQLDateToHuman($item->getVar('birthday_date'))."</td>"; - echo "<td align='center'>".$uname.'</td>'; - echo "<td align='left'>".$item->getFullName().'</td>'; - echo "<td align='center'>".$action_edit.' '.$action_delete.'</td>'; - echo "</tr>\n"; - } - echo "</table>\n"; - if(isset($pagenav) && is_object($pagenav)) { - echo "<div align='left'>".$pagenav->renderNav()."</div>"; - } - echo "<br /><br />\n"; - } - $item = $hBdUsersBirthday->create(true); - $form = $hBdUsersBirthday->getForm($item, $baseurl); - $form->display(); - break; - - // **************************************************************************************************************** - case 'maintain': // Maintenance des tables et du cache - // **************************************************************************************************************** - xoops_cp_header(); - birthday_adminMenu(); - require_once '../xoops_version.php'; - $tables = array(); - foreach ($modversion['tables'] as $table) { - $tables[] = $xoopsDB->prefix($table); - } - if(count($tables) > 0) { - $list = implode(',', $tables); - $xoopsDB->queryF('CHECK TABLE '.$list); - $xoopsDB->queryF('ANALYZE TABLE '.$list); - $xoopsDB->queryF('OPTIMIZE TABLE '.$list); - } - birthday_utils::updateCache(); - $hBdUsersBirthday->forceCacheClean(); - birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, $baseurl, 2); - break; - - // **************************************************************************************************************** - case 'edit': // Edition d'un utilisateur existant - // **************************************************************************************************************** - xoops_cp_header(); - birthday_adminMenu(); - $id = isset($_GET['id']) ? intval($_GET['id']) : 0; - if(empty($id)) { - birthday_utils::redirect(_AM_BIRTHDAY_ERROR_1, $baseurl, 5); - } - // Item exits ? - $item = null; - $item = $hBdUsersBirthday->get($id); - if(!is_object($item)) { - birthday_utils::redirect(_AM_BIRTHDAY_NOT_FOUND, $baseurl, 5); - } - $form = $hBdUsersBirthday->getForm($item, $baseurl); - $form->display(); - break; - - // **************************************************************************************************************** - case 'saveedit': // Enregistrement des modifications - // **************************************************************************************************************** - xoops_cp_header(); - birthday_adminMenu(); - $result = $hBdUsersBirthday->saveUser(); - if($result) { - birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, $baseurl, 1); - } else { - birthday_utils::redirect(_AM_BIRTHDAY_SAVE_PB, $baseurl, 3); - } - break; - - // **************************************************************************************************************** - case 'delete': // Suppression d'un utilisateur - // **************************************************************************************************************** - $id = isset($_GET['id']) ? intval($_GET['id']) : 0; - if(empty($id)) { - birthday_utils::redirect(_AM_BIRTHDAY_ERROR_1, $baseurl, 5); - } - // Item exits ? - $item = null; - $item = $hBdUsersBirthday->get($id); - if(!is_object($item)) { - birthday_utils::redirect(_AM_BIRTHDAY_NOT_FOUND, $baseurl, 5); - } - $result = $hBdUsersBirthday->deleteUser($item); - if($result) { - birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, $baseurl, 1); - } else { - birthday_utils::redirect(_AM_BIRTHDAY_SAVE_PB, $baseurl, 3); - } - -} -xoops_cp_footer(); -?> \ No newline at end of file +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/birthday/trunk/birthday/admin/main.php =================================================================== --- XoopsModules/birthday/trunk/birthday/admin/main.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/admin/main.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -0,0 +1,168 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 10 juil. 08 at 11:38:52 + * Version : $Id: + * **************************************************************************** + */ +require_once '../../../include/cp_header.php'; +require_once '../include/common.php'; +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; +include_once 'admin_header.php'; + +$indexAdmin = new ModuleAdmin(); + +$op = 'default'; +if (isset($_POST['op'])) { + $op = $_POST['op']; +} elseif ( isset($_GET['op'])) { + $op = $_GET['op']; +} + +// Lecture de certains param\xE8tres de l'application ******************************************************************** +$limit = birthday_utils::getModuleOption('perpage'); // Nombre maximum d'\xE9l\xE9ments \xE0 afficher +$baseurl = BIRTHDAY_URL.'admin/'.basename(__FILE__); // URL de ce script +$conf_msg = birthday_utils::javascriptLinkConfirm(_AM_BIRTHDAY_CONF_DELITEM); +$images_width = birthday_utils::getModuleOption('images_width'); +$images_height = birthday_utils::getModuleOption('images_height'); +$destname = ''; + +$cacheFolder = XOOPS_UPLOAD_PATH.'/'.BIRTHDAY_DIRNAME; +if(!is_dir($cacheFolder)) { + mkdir($cacheFolder, 0777); + file_put_contents($cacheFolder.'/index.html', '<script>history.go(-1);</script>'); +} + + +switch($op) +{ + // **************************************************************************************************************** + case 'default': // List birthdays and show form to add a someone + // **************************************************************************************************************** + xoops_cp_header(); + //echo '<h1>'.birthday_utils::getModuleName().'</h1>'; + echo $indexAdmin->addNavigation('main.php'); + + + + $start = isset($_GET['start']) ? intval($_GET['start']) : 0; + $itemsCount = $hBdUsersBirthday->getCount(); + if($itemsCount > $limit) { + $pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start'); + } + if(isset($pagenav) && is_object($pagenav)) { + echo "<div align='right'>".$pagenav->renderNav()."</div>"; + } + if($itemsCount > 0) { + $class = ''; + $items = $hBdUsersBirthday->getItems($start, $limit, 'birthday_lastname'); + echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; + echo "<tr><th align='center'>"._BIRTHDAY_DATE."</th><th align='center'>"._BIRTHDAY_USERNAME."</th><th align='center'>"._BIRTHDAY_LASTNAME.'<br />'._BIRTHDAY_FIRSTNAME."</th><th align='center'>"._AM_BIRTHDAY_ACTION."</th></tr>"; + foreach ($items as $item) { + $class = ($class == 'even') ? 'odd' : 'even'; + $id = $item->getVar('birthday_id'); + $user = null; + $user = $item->getXoopsUser(); + $uname = ''; + if(is_object($user)) { + $uname = $user->getVar('uname'); + } + $action_edit = "<a href='$baseurl?op=edit&id=".$id."' title='"._EDIT."'>".$birdthday_icones['edit'].'</a>'; + $action_delete = "<a href='$baseurl?op=delete&id=".$id."' title='"._DELETE."'".$conf_msg.">".$birdthday_icones['delete'].'</a>'; + + echo "<tr class='".$class."'>\n"; + echo "<td align='center'>".birthday_utils::SQLDateToHuman($item->getVar('birthday_date'))."</td>"; + echo "<td align='center'>".$uname.'</td>'; + echo "<td align='left'>".$item->getFullName().'</td>'; + echo "<td align='center'>".$action_edit.' '.$action_delete.'</td>'; + echo "</tr>\n"; + } + echo "</table>\n"; + if(isset($pagenav) && is_object($pagenav)) { + echo "<div align='left'>".$pagenav->renderNav()."</div>"; + } + echo "<br /><br />\n"; + } + $item = $hBdUsersBirthday->create(true); + $form = $hBdUsersBirthday->getForm($item, $baseurl); + $form->display(); + break; + + // **************************************************************************************************************** + case 'maintain': // Maintenance des tables et du cache + // **************************************************************************************************************** + xoops_cp_header(); + require_once '../xoops_version.php'; + $tables = array(); + foreach ($modversion['tables'] as $table) { + $tables[] = $xoopsDB->prefix($table); + } + if(count($tables) > 0) { + $list = implode(',', $tables); + $xoopsDB->queryF('CHECK TABLE '.$list); + $xoopsDB->queryF('ANALYZE TABLE '.$list); + $xoopsDB->queryF('OPTIMIZE TABLE '.$list); + } + birthday_utils::updateCache(); + $hBdUsersBirthday->forceCacheClean(); + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, $baseurl, 2); + break; + + // **************************************************************************************************************** + case 'edit': // Edition d'un utilisateur existant + // **************************************************************************************************************** + xoops_cp_header(); + echo $indexAdmin->addNavigation('main.php'); + $id = isset($_GET['id']) ? intval($_GET['id']) : 0; + if(empty($id)) { + birthday_utils::redirect(_AM_BIRTHDAY_ERROR_1, $baseurl, 5); + } + // Item exits ? + $item = null; + $item = $hBdUsersBirthday->get($id); + if(!is_object($item)) { + birthday_utils::redirect(_AM_BIRTHDAY_NOT_FOUND, $baseurl, 5); + } + $form = $hBdUsersBirthday->getForm($item, $baseurl); + $form->display(); + break; + + // **************************************************************************************************************** + case 'saveedit': // Enregistrement des modifications + // **************************************************************************************************************** + xoops_cp_header(); + echo $indexAdmin->addNavigation('main.php'); + $result = $hBdUsersBirthday->saveUser(); + if($result) { + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, $baseurl, 1); + } else { + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_PB, $baseurl, 3); + } + break; + + // **************************************************************************************************************** + case 'delete': // Suppression d'un utilisateur + // **************************************************************************************************************** + $id = isset($_GET['id']) ? intval($_GET['id']) : 0; + if(empty($id)) { + birthday_utils::redirect(_AM_BIRTHDAY_ERROR_1, $baseurl, 5); + } + // Item exits ? + $item = null; + $item = $hBdUsersBirthday->get($id); + if(!is_object($item)) { + birthday_utils::redirect(_AM_BIRTHDAY_NOT_FOUND, $baseurl, 5); + } + $result = $hBdUsersBirthday->deleteUser($item); + if($result) { + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, $baseurl, 1); + } else { + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_PB, $baseurl, 3); + } + +} +include "admin_footer.php"; +//xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/birthday/trunk/birthday/admin/menu.php =================================================================== --- XoopsModules/birthday/trunk/birthday/admin/menu.php 2011-12-21 10:23:39 UTC (rev 8531) +++ XoopsModules/birthday/trunk/birthday/admin/menu.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -5,7 +5,30 @@ * Script made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) * Created on 10 jully. 08 at 11:32:40 * **************************************************************************** - */ -$adminmenu[0]['title'] = _MI_BIRTHDAY_HOME; -$adminmenu[0]['link'] = "admin/index.php"; -?> \ No newline at end of file + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]["title"] = _MI_BIRTHDAY_HOME; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; +$i++; +$adminmenu[$i]["title"] = _MI_BIRTHDAY_BIRTHDAYS; +$adminmenu[$i]["link"] = "admin/main.php"; +$adminmenu[$i]["icon"] = './images/cake.png'; +$i++; +$adminmenu[$i]["title"] = _MI_BIRTHDAY_MAINTAIN; +$adminmenu[$i]["link"] = "admin/main.php?op=maintain"; +$adminmenu[$i]["icon"] = './images/maintenance.png'; +$i++; + +$adminmenu[$i]["title"] =_MI_BIRTHDAY_ABOUT; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Deleted: XoopsModules/birthday/trunk/birthday/changelog.txt =================================================================== --- XoopsModules/birthday/trunk/birthday/changelog.txt 2011-12-21 10:23:39 UTC (rev 8531) +++ XoopsModules/birthday/trunk/birthday/changelog.txt 2011-12-21 11:51:09 UTC (rev 8532) @@ -1,33 +0,0 @@ -Changelog -******* -v.2.2 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) -******* -- The module is now Xoops 2.3 compatible -- Minor change in the module's administration -- The module will not add asterisks to forms under Xoops 2.3 -- Correction of a bug in the comments - -******* -v.2.1 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) -******* -- You have a new option to select how to order the users list -- You also have a new option to activate a captcha on the user's page -- Addition of a lang.diff file for translators - - -******* -v.2.0 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) -******* -- Addition of a module's administration where you can show, edit and add birthdays -- You can add a description to each birthday -- You can select the text editor to use -- You can upload a picture to each birthday (pictures are automatically resized) -- Birthdays can be created for persons who are not users of your site -- Integration of the Xoops comments system -- Integrated to the Xoops search -- You can see a user's birthday (there is a specific page for this) -- You can see a list of all the birthdays -- Now the module completly uses Smarty -- You can prohibit users to fill out their form (this is useful in case where you use the module to present other persons than those who use your site) - -Notes : The modules requires Php 5 and is not compatible with previous versions of this module Modified: XoopsModules/birthday/trunk/birthday/class/PEAR.php =================================================================== --- XoopsModules/birthday/trunk/birthday/class/PEAR.php 2011-12-21 10:23:39 UTC (rev 8531) +++ XoopsModules/birthday/trunk/birthday/class/PEAR.php 2011-12-21 11:51:09 UTC (rev 8532) @@ -6,20 +6,14 @@ * * PHP versions 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to li...@ph... so we can mail you a copy immediately. - * * @category pear * @package PEAR * @author Sterling Hughes <ste...@ph...> * @author Stig Bakken <ss...@ph...> * @author Tomas V.V.Cox <co...@id...> * @author Greg Beaver <ce...@ph...> - * @copyright 1997-2006 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @copyright 1997-2010 The Authors + * @license http://opensource.org/licenses/bsd-license.php New BSD License * @version CVS: $Id$ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 @@ -28,40 +22,31 @@ /**#@+ * ERROR constants */ -define('birthday_PEAR_ERROR_RETURN', 1); -define('birthday_PEAR_ERROR_PRINT', 2); -define('birthday_PEAR_ERROR_TRIGGER', 4); -define('birthday_PEAR_ERROR_DIE', 8); -define('birthday_PEAR_ERROR_CALLBACK', 16); +define('PEAR_ERROR_RETURN', 1); +define('PEAR_ERROR_PRINT', 2); +define('PEAR_ERROR_TRIGGER', 4); +define('PEAR_ERROR_DIE', 8); +define('PEAR_ERROR_CALLBACK', 16); /** * WARNING: obsolete * @deprecated */ -define('birthday_PEAR_ERROR_EXCEPTION', 32); +define('PEAR_ERROR_EXCEPTION', 32); /**#@-*/ -define('birthday_PEAR_ZE2', (function_exists('version_compare') && +define('PEAR_ZE2', (function_exists('version_compare') && version_compare(zend_version(), "2-dev", "ge"))); if (substr(PHP_OS, 0, 3) == 'WIN') { - define('birthday_OS_WINDOWS', true); - define('birthday_OS_UNIX', false); - define('birthday_PEAR_OS', 'Windows'); + define('OS_WINDOWS', true); + define('OS_UNIX', false); + define('PEAR_OS', 'Windows'); } else { - define('birthday_OS_WINDOWS', false); - define('birthday_OS_UNIX', true); - define('birthday_PEAR_OS', 'Unix'); // blatant assumption + define('OS_WINDOWS', false); + define('OS_UNIX', true); + define('PEAR_OS', 'Unix'); // blatant assumption } -// instant backwards compatibility -if (!defined('PATH_SEPARATOR')) { - if (birthday_OS_WINDOWS) { - define('PATH_SEPARATOR', ';'); - } else { - define('PATH_SEPARATOR', ':'); - } -} - -$GLOBALS['_PEAR_default_error_mode'] = birthday_PEAR_ERROR_RETURN; +$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN; $GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE; $GLOBALS['_PEAR_destructor_object_list'] = array(); $GLOBALS['_PEAR_shutdown_funcs'] = array(); @@ -92,24 +77,22 @@ * @author Tomas V.V. Cox <co...@id...> * @author Greg Beaver <ce...@ph...> * @copyright 1997-2006 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.5.4 + * @license http://opensource.org/licenses/bsd-license.php New BSD License + * @version Release: 1.9.2 * @link http://pear.php.net/package/PEAR * @see PEAR_Error * @since Class available since PHP 4.0.2 * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear */ -class birthday_PEAR +class PEAR { - // {{{ properties - /** * Whether to enable internal debug messages. * * @var bool * @access private */ - public $_debug = false; + var $_debug = false; /** * Default error mode for this object. @@ -117,25 +100,25 @@ * @var int * @access private */ - public $_default_error_mode = null; + var $_default_error_mode = null; /** * Default error options used for this object when error mode - * is birthday_PEAR_ERROR_TRIGGER. + * is PEAR_ERROR_TRIGGER. * * @var int * @access private */ - public $_default_error_options = null; + var $_default_error_options = null; /** * Default error handler (callback) for this object, if error mode is - * birthday_PEAR_ERROR_CALLBACK. + * PEAR_ERROR_CALLBACK. * * @var string * @access private */ - public $_default_error_handler = ''; + var $_default_error_handler = ''; /** * Which class to use for error objects. @@ -143,7 +126,7 @@ * @var string * @access private */ - public $_error_class = 'PEAR_Error'; + var $_error_class = 'PEAR_Error'; /** * An array of expected errors. @@ -151,12 +134,8 @@ * @var array * @access private */ - public $_expected_errors = array(); + var $_expected_errors = array(); - // }}} - - // {{{ constructor - /** * Constructor. Registers this object in * $_PEAR_destructor_object_list for destructor emulation if a @@ -167,22 +146,24 @@ * @access public * @return void */ - function __construct($error_class = null) + function PEAR($error_class = null) { $classname = strtolower(get_class($this)); if ($this->_debug) { print "PEAR constructor called, class=$classname\n"; } + if ($error_class !== null) { $this->_error_class = $error_class; } + while ($classname && strcasecmp($classname, "pear")) { $destructor = "_$classname"; if (method_exists($this, $destructor)) { global $_PEAR_destructor_object_list; $_PEAR_destructor_object_list[] = &$this; if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { - register_shutdown_function("birthday_PEAR_call_destructors"); + register_shutdown_function("_PEAR_call_destructors"); $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; } break; @@ -192,9 +173,6 @@ } } - // }}} - // {{{ destructor - /** * Destructor (the emulated type of...). Does nothing right now, * but is included for forward compatibility, so subclass @@ -212,13 +190,10 @@ } } - // }}} - // {{{ getStaticProperty() - /** * If you have a class that's mostly/entirely static, and you need static * properties, you can use this method to simulate them. Eg. in your method(s) - * do this: $myVar = &birthday_PEAR::getStaticProperty('myclass', 'myVar'); + * do this: $myVar = &PEAR::getStaticProperty('myclass', 'myVar'); * You MUST use a reference, or they will not persist! * * @access public @@ -233,15 +208,14 @@ if (!isset($properties[$class])) { $properties[$class] = array(); } + if (!array_key_exists($var, $properties[$class])) { $properties[$class][$var] = null; } + return $properties[$class][$var]; } - // }}} - // {{{ registerShutdownFunc() - /** * Use this function to register a shutdown method for static * classes. @@ -256,15 +230,12 @@ // if we are called statically, there is a potential // that no shutdown func is registered. Bug #6445 if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { - register_shutdown_function("birthday__PEAR_call_destructors"); + register_shutdown_function("_PEAR_call_destructors"); $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; } $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args); } - // }}} - // {{{ isError() - /** * Tell whether a value is a PEAR error. * @@ -278,21 +249,19 @@ */ function isError($data, $code = null) { - if (is_a($data, 'PEAR_Error')) { - if (is_null($code)) { - return true; - } elseif (is_string($code)) { - return $data->getMessage() == $code; - } else { - return $data->getCode() == $code; - } + if (!is_a($data, 'PEAR_Error')) { + return false; } - return false; - } - // }}} - // {{{ setErrorHandling() + if (is_null($code)) { + return true; + } elseif (is_string($code)) { + return $data->getMessage() == $code; + } + return $data->getCode() == $code; + } + /** * Sets how errors generated by this object should be handled. * Can be invoked both in objects and statically. If called @@ -301,37 +270,36 @@ * the default behaviour for that object. * * @param int $mode - * One of birthday_PEAR_ERROR_RETURN, birthday_PEAR_ERROR_PRINT, - * birthday_PEAR_ERROR_TRIGGER, birthday_PEAR_ERROR_DIE, - * birthday_PEAR_ERROR_CALLBACK or birthday_PEAR_ERROR_EXCEPTION. + * One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, + * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, + * PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION. * * @param mixed $options - * When $mode is birthday_PEAR_ERROR_TRIGGER, this is the error level (one + * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one * of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). * - * When $mode is birthday_PEAR_ERROR_CALLBACK, this parameter is expected + * When $mode is PEAR_ERROR_CALLBACK, this parameter is expected * to be the callback function or method. A callback * function is a string with the name of the function, a * callback method is an array of two elements: the element * at index 0 is the object, and the element at index 1 is * the name of the method to call in the object. * - * When $mode is birthday_PEAR_ERROR_PRINT or birthday_PEAR_ERROR_DIE, this is + * When $mode is PEAR_ERROR_PRINT or PEAR_ERROR_DIE, this is * a printf format string used when printing the error * message. * * @access public * @return void - * @see birthday_PEAR_ERROR_RETURN - * @see birthday_PEAR_ERROR_PRINT - * @see birthday_PEAR_ERROR_TRIGGER - * @see birthday_PEAR_ERROR_DIE - * @see birthday_PEAR_ERROR_CALLBACK - * @see birthday_PEAR_ERROR_EXCEPTION + * @see PEAR_ERROR_RETURN + * @see PEAR_ERROR_PRINT + * @see PEAR_ERROR_TRIGGER + * @see PEAR_ERROR_DIE + * @see PEAR_ERROR_CALLBACK + * @see PEAR_ERROR_EXCEPTION * * @since PHP 4.0.5 */ - function setErrorHandling($mode = null, $options = null) { if (isset($this) && is_a($this, 'PEAR')) { @@ -343,17 +311,17 @@ } switch ($mode) { - case birthday_PEAR_ERROR_EXCEPTION: - case birthday_PEAR_ERROR_RETURN: - case birthday_PEAR_ERROR_PRINT: - case birthday_PEAR_ERROR_TRIGGER: - case birthday_PEAR_ERROR_DIE: + case PEAR_ERROR_EXCEPTION: + case PEAR_ERROR_RETURN: + case PEAR_ERROR_PRINT: + case PEAR_ERROR_TRIGGER: + case PEAR_ERROR_DIE: case null: $setmode = $mode; $setoptions = $options; break; - case birthday_PEAR_ERROR_CALLBACK: + case PEAR_ERROR_CALLBACK: $setmode = $mode; // class/object method callback if (is_callable($options)) { @@ -369,13 +337,10 @@ } } - // }}} - // {{{ expectError() - /** * This method is used to tell which errors you expect to get. * Expected errors are always returned with error mode - * birthday_PEAR_ERROR_RETURN. Expected error codes are stored in a stack, + * PEAR_ERROR_RETURN. Expected error codes are stored in a stack, * and this method pushes a new element onto it. The list of * expected errors are in effect until they are popped off the * stack with the popExpect() method. @@ -394,12 +359,9 @@ } else { array_push($this->_expected_errors, array($code)); } - return sizeof($this->_expected_errors); + return count($this->_expected_errors); } - // }}} - // {{{ popExpect() - /** * This method pops one element off the expected error codes * stack. @@ -411,9 +373,6 @@ return array_pop($this->_expected_errors); } - // }}} - // {{{ _checkDelExpect() - /** * This method checks unsets an error code if available * @@ -425,8 +384,7 @@ function _checkDelExpect($error_code) { $deleted = false; - - foreach ($this->_expected_errors AS $key => $error_array) { + foreach ($this->_expected_errors as $key => $error_array) { if (in_array($error_code, $error_array)) { unset($this->_expected_errors[$key][array_search($error_code, $error_array)]); $deleted = true; @@ -437,12 +395,10 @@ unset($this->_expected_errors[$key]); } } + return $deleted; } - // }}} - // {{{ delExpect() - /** * This method deletes all occurences of the specified element from * the expected error codes stack. @@ -455,35 +411,27 @@ function delExpect($error_code) { $deleted = false; - if ((is_array($error_code) && (0 != count($error_code)))) { - // $error_code is a non-empty array here; - // we walk through it trying to unset all - // values - foreach($error_code as $key => $error) { - if ($this->_checkDelExpect($error)) { - $deleted = true; - } else { - $deleted = false; - } + // $error_code is a non-empty array here; we walk through it trying + // to unset all values + foreach ($error_code as $key => $error) { + $deleted = $this->_checkDelExpect($error) ? true : false; } - return $deleted ? true : birthday_PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME + + return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME } elseif (!empty($error_code)) { // $error_code comes alone, trying to unset it if ($this->_checkDelExpect($error_code)) { return true; - } else { - return birthday_PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME } - } else { - // $error_code is empty - return birthday_PEAR::raiseError("The expected error you submitted is empty"); // IMPROVE ME + + return PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME } + + // $error_code is empty + return PEAR::raiseError("The expected error you submitted is empty"); // IMPROVE ME } - // }}} - // {{{ raiseError() - /** * This method is a wrapper that returns an instance of the * configured error class with this object's default error @@ -495,14 +443,14 @@ * @param int $code a numeric error code (it is up to your class * to define these if you want to use codes) * - * @param int $mode One of birthday_PEAR_ERROR_RETURN, birthday_PEAR_ERROR_PRINT, - * birthday_PEAR_ERROR_TRIGGER, birthday_PEAR_ERROR_DIE, - * birthday_PEAR_ERROR_CALLBACK, birthday_PEAR_ERROR_EXCEPTION. + * @param int $mode One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, + * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, + * PEAR_ERROR_CALLBACK, PEAR_ERROR_EXCEPTION. * - * @param mixed $options If $mode is birthday_PEAR_ERROR_TRIGGER, this parameter + * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter * specifies the PHP-internal error level (one of * E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). - * If $mode is birthday_PEAR_ERROR_CALLBACK, this + * If $mode is PEAR_ERROR_CALLBACK, this * parameter specifies the callback function or * method. In other error modes this parameter * is ignored. @@ -518,7 +466,7 @@ * * @access public * @return object a PEAR error object - * @see birthday_PEAR::setErrorHandling + * @see PEAR::setErrorHandling * @since PHP 4.0.5 */ function &raiseError($message = null, @@ -538,13 +486,20 @@ $message = $message->getMessage(); } - if (isset($this) && isset($this->_expected_errors) && sizeof($this->_expected_errors) > 0 && sizeof($exp = end($this->_expected_errors))) { + if ( + isset($this) && + isset($this->_expected_errors) && + count($this->_expected_errors) > 0 && + count($exp = end($this->_expected_errors)) + ) { if ($exp[0] == "*" || (is_int(reset($exp)) && in_array($code, $exp)) || - (is_string(reset($exp)) && in_array($message, $exp))) { - $mode = birthday_PEAR_ERROR_RETURN; + (is_string(reset($exp)) && in_array($message, $exp)) + ) { + $mode = PEAR_ERROR_RETURN; } } + // No mode given, try global ones if ($mode === null) { // Class error handler @@ -563,59 +518,69 @@ } elseif (isset($this) && isset($this->_error_class)) { $ec = $this->_error_class; } else { - $ec = 'birthday_PEAR_Error'; + $ec = 'PEAR_Error'; } - if ($skipmsg) { - $a = &new $ec($code, $mode, $options, $userinfo); + + if (intval(PHP_VERSION) < 5) { + // little non-eval hack to fix bug #12147 + include 'PEAR/FixPHP5PEARWarnings.php'; return $a; + } + + if ($skipmsg) { + $a = new $ec($code, $mode, $options, $userinfo); } else { - $a = &new $ec($message, $code, $mode, $options, $userinfo); - return $a; + $a = new $ec($message, $code, $mode, $options, $userinfo); } + + return $a; } - // }}} - // {{{ throwError() - /** * Simpler form of raiseError with fewer options. In most cases * message, code and userinfo are enough. * - * @param string $message + * @param mixed $message a text error message or a PEAR error object * + * @param int $code a numeric error code (it is up to your class + * to define these if you want to use codes) + * + * @param string $userinfo If you need to pass along for example debug + * information, this parameter is meant for that. + * + * @access public + * @return object a PEAR error object + * @see PEAR::raiseError */ - function &throwError($message = null, - $code = null, - $userinfo = null) + function &throwError($message = null, $code = null, $userinfo = null) { if (isset($this) && is_a($this, 'PEAR')) { $a = &$this->raiseError($message, $code, null, null, $userinfo); return $a; - } else { - $a = &birthday_PEAR::raiseError($message, $code, null, null, $userinfo); - return $a; } + + $a = &PEAR::raiseError($message, $code, null, null, $userinfo); + return $a; } - // }}} function staticPushErrorHandling($mode, $options = null) { - $stack = &$GLOBALS['_PEAR_error_handler_stack']; + $stack = &$GLOBALS['_PEAR_error_handler_stack']; $def_mode = &$GLOBALS['_PEAR_default_error_mode']; $def_options = &$GLOBALS['_PEAR_default_error_options']; $stack[] = array($def_mode, $def_options); switch ($mode) { - case birthday_PEAR_ERROR_EXCEPTION: - case birthday_PEAR_ERROR_RETURN: - case birthday_PEAR_ERROR_PRINT: - case birthday_PEAR_ERROR_TRIGGER: - case birthday_PEAR_ERROR_DIE: + case PEAR_ERROR_EXCEPTION: + case PEAR_ERROR_RETURN: + case PEAR_ERROR_PRINT: + case PEAR_ERROR_TRIGGER: + case PEAR_ERROR_DIE: case null: $def_mode = $mode; $def_options = $options; break; - case birthday_PEAR_ERROR_CALLBACK: + case PEAR_ERROR_CALLBACK: $def_mode = $mode; // class/object method callback if (is_callable($options)) { @@ -642,17 +607,17 @@ list($mode, $options) = $stack[sizeof($stack) - 1]; array_pop($stack); switch ($mode) { - case birthday_PEAR_ERROR_EXCEPTION: - case birthday_PEAR_ERROR_RETURN: - case birthday_PEAR_ERROR_PRINT: - case birthday_PEAR_ERROR_TRIGGER: - case birthday_PEAR_ERROR_DIE: + case PEAR_ERROR_EXCEPTION: + case PEAR_ERROR_RETURN: + case PEAR_ERROR_PRINT: + case PEAR_ERROR_TRIGGER: + case PEAR_ERROR_DIE: case null: $setmode = $mode; $setoptions = $options; break; - case birthday_PEAR_ERROR_CALLBACK: + case PEAR_ERROR_CALLBACK: $setmode = $mode; // class/object method callback if (is_callable($options)) { @@ -669,8 +634,6 @@ return true; } - // {{{ pushErrorHandling() - /** * Push a new error handler on top of the error handler options stack. With this * you can easily override the actual error handler for some code and restore @@ -681,7 +644,7 @@ * * @return bool Always true * - * @see birthday_PEAR::setErrorHandling + * @see PEAR::setErrorHandling */ function pushErrorHandling($mode, $options = null) { @@ -698,21 +661,18 @@ if (isset($this) && is_a($this, 'PEAR')) { $this->setErrorHandling($mode, $options); } else { - birthday_PEAR::setErrorHandling($mode, $options); + PEAR::setErrorHandling($mode, $options); } $stack[] = array($mode, $options); return true; } - // }}} - // {{{ popErrorHandling() - /** * Pop the last error handler used * * @return bool Always true * - * @see birthday_PEAR::pushErrorHandling + * @see PEAR::pushErrorHandling */ function popErrorHandling() { @@ -723,14 +683,11 @@ if (isset($this) && is_a($this, 'PEAR')) { $this->setErrorHandling($mode, $options); } else { - birthday_PEAR::setErrorHandling($mode, $options); + PEAR::setErrorHandling($mode, $options); } return true; } - // }}} - // {{{ loadExtension() - /** * OS independant PHP extension load. Remember to take care * on the correct extension name for case sensitive OSes. @@ -740,42 +697,56 @@ */ function loadExtension($ext) { - if (!extension_loaded($ext)) { - // if either returns true dl() will produce a FATAL error, stop that - if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) { - return false; - } - if (birthday_OS_WINDOWS) { - $suffix = '.dll'; - } elseif (PHP_OS == 'HP-UX') { - $suffix = '.sl'; - } elseif (PHP_OS == 'AIX') { - $suffix = '.a'; - } elseif (PHP_OS == 'OSX') { - $suffix = '.bundle'; - } else { - $suffix = '.so'; - } - return @dl('php_'.$ext.$suffix) || @dl($ext.$suffix); + if (extension_loaded($ext)) { + return true; } - return true; + + // if either returns true dl() will produce a FATAL error, stop that + if ( + function_exists('dl') === false || + ini_get('enable_dl') != 1 || + ini_get('safe_mode') == 1 + ) { + return false; + } + + if (OS_WINDOWS) { + $suffix = '.dll'; + } elseif (PHP_OS == 'HP-UX') { + $suffix = '.sl'; + } elseif (PHP_OS == 'AIX') { + $suffix = '.a'; + } elseif (PHP_OS == 'OSX') { + $suffix = '.bundle'; + } else { + $suffix = '.so'; + } + + return @dl('php_'.$ext.$suffix) || @dl($ext.$suffix); } +} - // }}} +if (PEAR_ZE2) { + include_once 'PEAR5.php'; } -// {{{ _PEAR_call_destructors() - -function birthday_PEAR_call_destructors() +function _PEAR_call_destructors() { global $_PEAR_destructor_object_list; if (is_array($_PEAR_destructor_object_list) && sizeof($_PEAR_destructor_object_list)) { reset($_PEAR_destructor_object_list); - if (birthday_PEAR::getStaticProperty('PEAR', 'destructlifo')) { + if (PEAR_ZE2) { + $destructLifoExists = PEAR5::getStaticProperty('PEAR', 'destructlifo'); + } else { + $destructLifoExists = PEAR::getStaticProperty('PEAR', 'destructlifo'); + } + + if ($destructLifoExists) { $_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list); } + while (list($k, $objref) = each($_PEAR_destructor_object_list)) { $classname = get_class($objref); while ($classname) { @@ -794,14 +765,17 @@ } // Now call the shutdown functions - if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND !empty($GLOBALS['_PEAR_shutdown_funcs'])) { + if ( + isset($GLOBALS['_PEAR_shutdown_funcs']) && + is_array($GLOBALS['_PEAR_shutdown_funcs']) && + !empty($GLOBALS['_PEAR_shutdown_funcs']) + ) { foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) { call_user_func_array($value[0], $value[1]); } } } -// }}} /** * Standard PEAR error class for PHP 4 * @@ -813,27 +787,22 @@ * @author Tomas V.V. Cox <co...@id...> * @author Gregory Beaver <ce...@ph...> * @copyright 1997-2006 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.5.4 + * @license http://opensource.org/licenses/bsd-license.php New BSD License + * @version Release: 1.9.2 * @link http://pear.php.net/manual/en/core.pear.pear-error.php - * @see birthday_PEAR::raiseError(), PEAR::throwError() + * @see PEAR::raiseError(), PEAR::throwError() * @since Class available since PHP 4.0.2 */ -class birthday_PEAR_Error +class PEAR_Error { - // {{{ properties + var $error_message_prefix = ''; + var $mode = PEAR_ERROR_RETURN; + var $level = E_USER_NOTICE; + var $code = -1; + var $message = ''; + var $userinfo = ''; + var $backtrace = null; - public $error_message_prefix = ''; - public $mode = birthday_PEAR_ERROR_RETURN; - public $level = E_USER_NOTICE; - public $code = -1; - public $message = ''; - public $userinfo = ''; - public $backtrace = null; - - // }}} - // {{{ constructor - /** * PEAR_Error constructor * @@ -841,12 +810,12 @@ * * @param int $code (optional) error code * - * @param int $mode (optional) error mode, one of: birthday_PEAR_ERROR_RETURN, - * birthday_PEAR_ERROR_PRINT, birthday_PEAR_ERROR_DIE, birthday_PEAR_ERROR_TRIGGER, - * birthday_PEAR_ERROR_CALLBACK or birthday_PEAR_ERROR_EXCEPTION + * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN, + * PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER, + * PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION * * @param mixed $options (optional) error level, _OR_ in the case of - * birthday_PEAR_ERROR_CALLBACK, the callback function or object/method + * PEAR_ERROR_CALLBACK, the callback function or object/method * tuple. * * @param string $userinfo (optional) additional user/debug info @@ -854,44 +823,57 @@ * @access public * */ - function __construct($message = 'unknown error', $code = null, + function PEAR_Error($message = 'unknown error', $code = null, $mode = null, $options = null, $userinfo = null) { if ($mode === null) { - $mode = birthday_PEAR_ERROR_RETURN; + $mode = PEAR_ERROR_RETURN; } $this->message = $message; $this->code = $code; $this->mode = $mode; $this->userinfo = $userinfo; - if (!birthday_PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { + + if (PEAR_ZE2) { + $skiptrace = PEAR5::getStaticProperty('PEAR_Error', 'skiptrace'); + } else { + $skiptrace = PEAR::getStaticProperty('PEAR_Error', 'skiptrace'); + } + + if (!$skiptrace) { $this->backtrace = debug_backtrace(); if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) { unset($this->backtrace[0]['object']); } } - if ($mode & birthday_PEAR_ERROR_CALLBACK) { + + if ($mode & PEAR_ERROR_CALLBACK) { $this->level = E_USER_NOTICE; $this->callback = $options; } else { if ($options === null) { $options = E_USER_NOTICE; } + $this->level = $options; $this->callback = null; } - if ($this->mode & birthday_PEAR_ERROR_PRINT) { + + if ($this->mode & PEAR_ERROR_PRINT) { if (is_null($options) || is_int($options)) { $format = "%s"; } else { $format = $options; } + printf($format, $this->getMessage()); } - if ($this->mode & birthday_PEAR_ERROR_TRIGGER) { + + if ($this->mode & PEAR_ERROR_TRIGGER) { trigger_error($this->getMessage(), $this->level); } - if ($this->mode & birthday_PEAR_ERROR_DIE) { + + if ($this->mode & PEAR_ERROR_DIE) { $msg = $this->getMessage(); if (is_null($options) || is_int($options)) { $format = "%s"; @@ -903,47 +885,39 @@ } die(sprintf($format, $msg)); } - if ($this->mode & birthday_PEAR_ERROR_CALLBACK) { - if (is_callable($this->callback)) { - call_user_func($this->callback, $this); - } + + if ($this->mode & PEAR_ERROR_CALLBACK && is_callable($this->callback)) { + call_user_func($this->callback, $this); } - if ($this->mode & birthday_PEAR_ERROR_EXCEPTION) { - trigger_error("birthday_PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception for exceptions", ... [truncated message content] |
From: <be...@us...> - 2011-12-21 10:23:53
|
Revision: 8531 http://xoops.svn.sourceforge.net/xoops/?rev=8531&view=rev Author: beckmi Date: 2011-12-21 10:23:39 +0000 (Wed, 21 Dec 2011) Log Message: ----------- changing folder structure Added Paths: ----------- XoopsModules/birthday/trunk/birthday/Readme.txt XoopsModules/birthday/trunk/birthday/admin/ XoopsModules/birthday/trunk/birthday/blocks/ XoopsModules/birthday/trunk/birthday/changelog.txt XoopsModules/birthday/trunk/birthday/class/ XoopsModules/birthday/trunk/birthday/comment_delete.php XoopsModules/birthday/trunk/birthday/comment_edit.php XoopsModules/birthday/trunk/birthday/comment_new.php XoopsModules/birthday/trunk/birthday/comment_post.php XoopsModules/birthday/trunk/birthday/comment_reply.php XoopsModules/birthday/trunk/birthday/footer.php XoopsModules/birthday/trunk/birthday/header.php XoopsModules/birthday/trunk/birthday/images/ XoopsModules/birthday/trunk/birthday/include/ XoopsModules/birthday/trunk/birthday/index.php XoopsModules/birthday/trunk/birthday/lang.diff XoopsModules/birthday/trunk/birthday/language/ XoopsModules/birthday/trunk/birthday/sql/ XoopsModules/birthday/trunk/birthday/system ?\195?\160 mettre ds system de xoops/ XoopsModules/birthday/trunk/birthday/templates/ XoopsModules/birthday/trunk/birthday/user.php XoopsModules/birthday/trunk/birthday/users.php XoopsModules/birthday/trunk/birthday/xoops_users_birthday.sql XoopsModules/birthday/trunk/birthday/xoops_version.php Removed Paths: ------------- XoopsModules/birthday/trunk/Readme.txt XoopsModules/birthday/trunk/admin/ XoopsModules/birthday/trunk/blocks/ XoopsModules/birthday/trunk/changelog.txt XoopsModules/birthday/trunk/class/ XoopsModules/birthday/trunk/comment_delete.php XoopsModules/birthday/trunk/comment_edit.php XoopsModules/birthday/trunk/comment_new.php XoopsModules/birthday/trunk/comment_post.php XoopsModules/birthday/trunk/comment_reply.php XoopsModules/birthday/trunk/footer.php XoopsModules/birthday/trunk/header.php XoopsModules/birthday/trunk/images/ XoopsModules/birthday/trunk/include/ XoopsModules/birthday/trunk/index.php XoopsModules/birthday/trunk/lang.diff XoopsModules/birthday/trunk/language/ XoopsModules/birthday/trunk/sql/ XoopsModules/birthday/trunk/system ?\195?\160 mettre ds system de xoops/ XoopsModules/birthday/trunk/templates/ XoopsModules/birthday/trunk/user.php XoopsModules/birthday/trunk/users.php XoopsModules/birthday/trunk/xoops_users_birthday.sql XoopsModules/birthday/trunk/xoops_version.php Deleted: XoopsModules/birthday/trunk/Readme.txt =================================================================== --- XoopsModules/birthday/trunk/Readme.txt 2011-12-21 10:16:37 UTC (rev 8530) +++ XoopsModules/birthday/trunk/Readme.txt 2011-12-21 10:23:39 UTC (rev 8531) @@ -1,32 +0,0 @@ -######################################################### -# # -# Module Birthday 1.0.1 # -# by Sultan El Turrah (www.theclubbing.com) # -# # -# bas\xE9 sur le travail de # -# XtremDj (www.clubxtrem.net) # -# Lmaix (www.bahut.com) # -# Solo (www.wolfpackclan.com) # -# # -# Copyright \xA9 2005 # -# # # # -######################################################### - -Module Birthday 1.0.1 - -Ce module permet d'afficher et de souhaiter les anniversaires des membres. - -Si vous souhaitez afficher le lien dans le menu utilisateur, \xE9ditez le fichier 'system_block_user.html' fourni avec le module et remplacez le texte "My birthday" par "Mon anniversaire". - /!\ N'oubliez pas de mettre \xE0 jour le module 'system'. - ------------------------ - -This module allows you to show and wish your members birthday. - -If you want to show a link in the user menu, replace the the original 'system_block_user.html' file by the one included. - /!\ Don't forget to update the 'system' module. - ------------------------ - -Sultan El Turrah (alias Sultan - www.theclubbing.com) - Copied: XoopsModules/birthday/trunk/birthday/Readme.txt (from rev 8512, XoopsModules/birthday/trunk/Readme.txt) =================================================================== --- XoopsModules/birthday/trunk/birthday/Readme.txt (rev 0) +++ XoopsModules/birthday/trunk/birthday/Readme.txt 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,32 @@ +######################################################### +# # +# Module Birthday 1.0.1 # +# by Sultan El Turrah (www.theclubbing.com) # +# # +# bas\xE9 sur le travail de # +# XtremDj (www.clubxtrem.net) # +# Lmaix (www.bahut.com) # +# Solo (www.wolfpackclan.com) # +# # +# Copyright \xA9 2005 # +# # # # +######################################################### + +Module Birthday 1.0.1 + +Ce module permet d'afficher et de souhaiter les anniversaires des membres. + +Si vous souhaitez afficher le lien dans le menu utilisateur, \xE9ditez le fichier 'system_block_user.html' fourni avec le module et remplacez le texte "My birthday" par "Mon anniversaire". + /!\ N'oubliez pas de mettre \xE0 jour le module 'system'. + +----------------------- + +This module allows you to show and wish your members birthday. + +If you want to show a link in the user menu, replace the the original 'system_block_user.html' file by the one included. + /!\ Don't forget to update the 'system' module. + +----------------------- + +Sultan El Turrah (alias Sultan - www.theclubbing.com) + Copied: XoopsModules/birthday/trunk/birthday/changelog.txt (from rev 8512, XoopsModules/birthday/trunk/changelog.txt) =================================================================== --- XoopsModules/birthday/trunk/birthday/changelog.txt (rev 0) +++ XoopsModules/birthday/trunk/birthday/changelog.txt 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,33 @@ +Changelog +******* +v.2.2 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) +******* +- The module is now Xoops 2.3 compatible +- Minor change in the module's administration +- The module will not add asterisks to forms under Xoops 2.3 +- Correction of a bug in the comments + +******* +v.2.1 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) +******* +- You have a new option to select how to order the users list +- You also have a new option to activate a captcha on the user's page +- Addition of a lang.diff file for translators + + +******* +v.2.0 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) +******* +- Addition of a module's administration where you can show, edit and add birthdays +- You can add a description to each birthday +- You can select the text editor to use +- You can upload a picture to each birthday (pictures are automatically resized) +- Birthdays can be created for persons who are not users of your site +- Integration of the Xoops comments system +- Integrated to the Xoops search +- You can see a user's birthday (there is a specific page for this) +- You can see a list of all the birthdays +- Now the module completly uses Smarty +- You can prohibit users to fill out their form (this is useful in case where you use the module to present other persons than those who use your site) + +Notes : The modules requires Php 5 and is not compatible with previous versions of this module Copied: XoopsModules/birthday/trunk/birthday/comment_delete.php (from rev 8512, XoopsModules/birthday/trunk/comment_delete.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/comment_delete.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/comment_delete.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,14 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 20 oct. 07 at 14:38:20 + * Version : $Id: + * **************************************************************************** + */ + +require '../../mainfile.php'; +require 'header.php'; +require XOOPS_ROOT_PATH.'/include/comment_delete.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/comment_edit.php (from rev 8512, XoopsModules/birthday/trunk/comment_edit.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/comment_edit.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/comment_edit.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,13 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 20 oct. 07 at 14:38:20 + * Version : $Id: + * **************************************************************************** + */ +require '../../mainfile.php'; +require 'header.php'; +require XOOPS_ROOT_PATH.'/include/comment_edit.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/comment_new.php (from rev 8512, XoopsModules/birthday/trunk/comment_new.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/comment_new.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/comment_new.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,25 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 20 oct. 07 at 14:38:20 + * Version : $Id: + * **************************************************************************** + */ + +require '../../mainfile.php'; +require 'header.php'; +$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0; +if ($com_itemid > 0) { + include XOOPS_ROOT_PATH.'/modules/birthday/include/common.php'; + $user = null; + $user = $hBdUsersBirthday->get($com_itemid); + if(is_object($user)) { + $com_replytitle = $user->getFullName(); + require XOOPS_ROOT_PATH.'/include/comment_new.php'; + } else { + exit(); + } +} +?> Copied: XoopsModules/birthday/trunk/birthday/comment_post.php (from rev 8512, XoopsModules/birthday/trunk/comment_post.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/comment_post.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/comment_post.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,13 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 20 oct. 07 at 14:38:20 + * Version : $Id: + * **************************************************************************** + */ +require '../../mainfile.php'; +require 'header.php'; +require XOOPS_ROOT_PATH.'/include/comment_post.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/comment_reply.php (from rev 8512, XoopsModules/birthday/trunk/comment_reply.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/comment_reply.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/comment_reply.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,13 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 20 oct. 07 at 14:38:20 + * Version : $Id: + * **************************************************************************** + */ +require '../../mainfile.php'; +require 'header.php'; +require XOOPS_ROOT_PATH.'/include/comment_reply.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/footer.php (from rev 8512, XoopsModules/birthday/trunk/footer.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/footer.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/footer.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,4 @@ +<?php +// insertion du pied de page +require '../../footer.php'; +?> Copied: XoopsModules/birthday/trunk/birthday/header.php (from rev 8512, XoopsModules/birthday/trunk/header.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/header.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/header.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,5 @@ +<?php +// Appel obligatoire du mainfile +require '../../mainfile.php'; +require_once XOOPS_ROOT_PATH.'/modules/birthday/include/common.php'; +?> Copied: XoopsModules/birthday/trunk/birthday/index.php (from rev 8512, XoopsModules/birthday/trunk/index.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/index.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/index.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,51 @@ +<?php + +/** + * Permet \xE0 l'utilisateur courant de modifier sa fiche (si l'option ad\xE9quate est activ\xE9e) + */ +require 'header.php'; +$xoopsOption['template_main'] = 'birthday_index.html'; +require_once XOOPS_ROOT_PATH.'/header.php'; +require XOOPS_ROOT_PATH.'/modules/birthday/include/function.php'; + +$baseurl = BIRTHDAY_URL.basename(__FILE__); // URL de ce script +$uid = 0; +if (is_object($xoopsUser) && birthday_utils::getModuleOption('enable_users')) { + $uid = intval($xoopsUser->getVar('uid')); +} else { + birthday_utils::redirect(_BIRTHDAY_ERROR1, 'users.php', 4); +} + +$op = isset($_POST['op']) ? $_POST['op'] : 'default'; + + +switch($op) { + case 'default': + $item = $hBdUsersBirthday->getFromUid($uid); + $captcha = ''; + if(birthday_utils::getModuleOption('use_captcha')) { + require_once BIRTHDAY_PATH.'class/Numeral.php'; + $numcap = new birthday_Text_CAPTCHA_Numeral; + $_SESSION['birthday_answer'] = $numcap->getAnswer(); + $captcha = $numcap->getOperation(); + } + $form = $hBdUsersBirthday->getForm($item, $baseurl, false, $captcha); + $xoopsTpl->assign('form', $form->render()); + break; + + case 'saveedit': + if(birthday_utils::getModuleOption('use_captcha') && isset($_POST['captcha']) && isset($_SESSION['birthday_answer'])) { + if ($_POST['captcha'] != $_SESSION['birthday_answer']) { + birthday_utils::redirect(_BIRTHDAY_CAPTCHA_WRONG, 'index.php', 4); + } + } + $result = $hBdUsersBirthday->saveUser(true); + if($result) { + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_OK, 'users.php', 1); + } else { + birthday_utils::redirect(_AM_BIRTHDAY_SAVE_PB, $baseurl, 3); + } + break; +} +require_once XOOPS_ROOT_PATH.'/footer.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/lang.diff (from rev 8512, XoopsModules/birthday/trunk/lang.diff) =================================================================== --- XoopsModules/birthday/trunk/birthday/lang.diff (rev 0) +++ XoopsModules/birthday/trunk/birthday/lang.diff 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,18 @@ +Legend : ++ Added +- Removed +* Modified + + +********* +* v.2.1 * +********* +modinfo.php ++ _MI_BIRTHDAY_SORT_ORDER ++ _MI_BIRTHDAY_SORT_ORDER1 ++ _MI_BIRTHDAY_SORT_ORDER2 ++ _MI_BIRTHDAY_USE_CAPTCHA + +main.php ++ _BIRTHDAY_PLEASESOLVE ++ _BIRTHDAY_CAPTCHA_WRONG \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/user.php (from rev 8512, XoopsModules/birthday/trunk/user.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/user.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/user.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,59 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 10 juil. 08 at 18:39:52 + * Version : $Id: + * **************************************************************************** + */ + +/** + * Affichage de la page d'un utilisateur + */ +require 'header.php'; +$xoopsOption['template_main'] = 'birthday_user.html'; +require_once XOOPS_ROOT_PATH.'/header.php'; + +$case = 0; +if(isset($_GET['birthday_id'])) { + $uid = intval($_GET['birthday_id']); + $case = 1; +} elseif(isset($_GET['birthday_uid'])) { + $uid = intval($_GET['birthday_uid']); + $case = 2; +} elseif(isset($xoopsUser) && is_object($xoopsUser)) { + $uid = $xoopsUser->getVar('uid'); + $case = 3; +} + +$user = null; +switch($case) { + case 0: // Unknow user + birthday_utils::redirect(_BIRTHDAY_ERROR2, 'users.php', 3); + break; + + case 1: // birthday_id + $user = $hBdUsersBirthday->get($uid); + break; + + case 2: // birthday_uid + case 3: // uid + $user = $hBdUsersBirthday->getFromUid($uid); + break; +} +if(is_object($user)) { + $xoopsTpl->assign('birthday_user', $user->toArray()); + $pageTitle = $user->getFullName().' - '.birthday_utils::getModuleName(); + $metaDescription = $pageTitle; + $metaKeywords = birthday_utils::createMetaKeywords($user->getVar('birthday_description')); + birthday_utils::setMetas($pageTitle, $metaDescription, $metaKeywords); +} +$path = array( BIRTHDAY_URL.'users.php' => _BIRTHDAY_USERS_LIST, + BIRTHDAY_URL.'user.php' => $user->getFullName() + ); +$breadcrumb = birthday_utils::breadcrumb($path); +$xoopsTpl->assign('breadcrumb', $breadcrumb); +include_once XOOPS_ROOT_PATH.'/include/comment_view.php'; +require_once XOOPS_ROOT_PATH.'/footer.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/users.php (from rev 8512, XoopsModules/birthday/trunk/users.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/users.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/users.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,67 @@ +<?php +/** + * **************************************************************************** + * birthday - MODULE FOR XOOPS + * Copyright (c) Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) + * Created on 10 juil. 08 at 19:41:07 + * Version : $Id: + * **************************************************************************** + */ + +/** + * Affiche la liste de tous les utilisateurs (ou de tous les utilisateurs dont c'est l'anniversaire aujourd'hui) + */ +require 'header.php'; +$xoopsOption['template_main'] = 'birthday_users.html'; +require_once XOOPS_ROOT_PATH.'/header.php'; +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; + +$start = isset($_GET['start']) ? intval($_GET['start']) : 0; +$limit = birthday_utils::getModuleOption('perpage'); // Nombre maximum d'\xE9l\xE9ments \xE0 afficher +$users = array(); + +if (isset($xoopsConfig) && file_exists(BIRTHDAY_PATH.'language/'.$xoopsConfig['language'].'/blocks.php')) { + require_once BIRTHDAY_PATH.'language/'.$xoopsConfig['language'].'/blocks.php'; +} else { + require_once BIRTHDAY_PATH.'language/english/blocks.php'; +} + +if(isset($_GET['op']) && $_GET['op'] == 'today') { // Les utilisateurs dont l'anniversaire est aujourd'hui + $itemsCount = $hBdUsersBirthday->getTodayBirthdaysCount(); + if($itemsCount > $limit) { + $pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start', 'op=today'); + } + $users = $hBdUsersBirthday->getTodayBirthdays($start, $limit); +} else { // Tous les utilisateurs + $itemsCount = $hBdUsersBirthday->getAllUsersCount(); + if($itemsCount > $limit) { + $pagenav = new XoopsPageNav($itemsCount, $limit, $start, 'start'); + } + if(birthday_utils::getModuleOption('userslist_sortorder') == 1) { // Sort by date + $sort = 'birthday_date'; + $order = 'ASC'; + } else { + $sort = 'birthday_lastname'; + $order = 'ASC'; + } + $users = $hBdUsersBirthday->getAllUsers($start, $limit, $sort, $order); +} +if(count($users) > 0) { + foreach($users as $user) { + $xoopsTpl->append('birthday_users', $user->toArray()); + } +} +if(isset($pagenav) && is_object($pagenav)) { + $xoopsTpl->assign('pagenav', $pagenav->renderNav()); +} +$pageTitle = _BIRTHDAY_USERS_LIST.' - '.birthday_utils::getModuleName(); +$metaDescription = $pageTitle; +$metaKeywords = ''; +birthday_utils::setMetas($pageTitle, $metaDescription, $metaKeywords); + + +$path = array(BIRTHDAY_URL.'users.php' => _BIRTHDAY_USERS_LIST); +$breadcrumb = birthday_utils::breadcrumb($path); +$xoopsTpl->assign('breadcrumb', $breadcrumb); +require_once XOOPS_ROOT_PATH.'/footer.php'; +?> \ No newline at end of file Copied: XoopsModules/birthday/trunk/birthday/xoops_users_birthday.sql (from rev 8512, XoopsModules/birthday/trunk/xoops_users_birthday.sql) =================================================================== --- XoopsModules/birthday/trunk/birthday/xoops_users_birthday.sql (rev 0) +++ XoopsModules/birthday/trunk/birthday/xoops_users_birthday.sql 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,249 @@ +-- phpMyAdmin SQL Dump +-- version 2.11.7 +-- http://www.phpmyadmin.net +-- +-- Serveur: localhost +-- Généré le : Sam 12 Juillet 2008 à 11:46 +-- Version du serveur: 5.0.45 +-- Version de PHP: 5.2.6 + +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +-- +-- Base de données: `xoops3` +-- + +-- -------------------------------------------------------- + +-- +-- Structure de la table `xoops_users_birthday` +-- + +DROP TABLE IF EXISTS `xoops_users_birthday`; +CREATE TABLE `xoops_users_birthday` ( + `birthday_id` int(10) unsigned NOT NULL auto_increment, + `birthday_uid` int(11) unsigned NOT NULL default '0', + `birthday_date` date NOT NULL, + `birthday_photo` varchar(255) NOT NULL, + `birthday_description` text NOT NULL, + `birthday_firstname` varchar(150) NOT NULL, + `birthday_lastname` varchar(150) NOT NULL, + `birthday_comments` int(10) unsigned NOT NULL, + PRIMARY KEY (`birthday_id`), + KEY `birthday_lastname` (`birthday_lastname`), + KEY `birthday_date` (`birthday_date`), + KEY `birthday_uid` (`birthday_uid`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=204 ; + +-- +-- Contenu de la table `xoops_users_birthday` +-- + +INSERT INTO `xoops_users_birthday` (`birthday_id`, `birthday_uid`, `birthday_date`, `birthday_photo`, `birthday_description`, `birthday_firstname`, `birthday_lastname`, `birthday_comments`) VALUES +(1, 0, '1970-07-11', '7f00000138f337ca.jpg', '001dezaedez zed ze zez zezea ze ', 'Hervé001', 'Thouzard001', 0), +(2, 0, '1970-07-11', '7f00000138f337ca.jpg', '002dezaedez zed ze zez zezea ze ', 'Hervé002', 'Thouzard002', 0), +(3, 0, '1970-07-11', '7f00000138f337ca.jpg', '003dezaedez zed ze zez zezea ze ', 'Hervé003', 'Thouzard003', 0), +(4, 0, '1970-07-11', '7f00000138f337ca.jpg', '004dezaedez zed ze zez zezea ze ', 'Hervé004', 'Thouzard004', 0), +(5, 0, '1970-07-11', '7f00000138f337ca.jpg', '005dezaedez zed ze zez zezea ze ', 'Hervé005', 'Thouzard005', 0), +(6, 0, '1970-07-11', '7f00000138f337ca.jpg', '006dezaedez zed ze zez zezea ze ', 'Hervé006', 'Thouzard006', 0), +(7, 0, '1970-07-11', '7f00000138f337ca.jpg', '007dezaedez zed ze zez zezea ze ', 'Hervé007', 'Thouzard007', 0), +(8, 0, '1970-07-11', '7f00000138f337ca.jpg', '008dezaedez zed ze zez zezea ze ', 'Hervé008', 'Thouzard008', 0), +(9, 0, '1970-07-11', '7f00000138f337ca.jpg', '009dezaedez zed ze zez zezea ze ', 'Hervé009', 'Thouzard009', 0), +(10, 0, '1970-07-11', '7f00000138f337ca.jpg', '010dezaedez zed ze zez zezea ze ', 'Hervé010', 'Thouzard010', 0), +(11, 0, '1970-07-11', '7f00000138f337ca.jpg', '011dezaedez zed ze zez zezea ze ', 'Hervé011', 'Thouzard011', 0), +(12, 0, '1970-07-11', '7f00000138f337ca.jpg', '012dezaedez zed ze zez zezea ze ', 'Hervé012', 'Thouzard012', 0), +(13, 0, '1970-07-11', '7f00000138f337ca.jpg', '013dezaedez zed ze zez zezea ze ', 'Hervé013', 'Thouzard013', 0), +(14, 0, '1970-07-11', '7f00000138f337ca.jpg', '014dezaedez zed ze zez zezea ze ', 'Hervé014', 'Thouzard014', 0), +(15, 0, '1970-07-11', '7f00000138f337ca.jpg', '015dezaedez zed ze zez zezea ze ', 'Hervé015', 'Thouzard015', 0), +(16, 0, '1970-07-11', '7f00000138f337ca.jpg', '016dezaedez zed ze zez zezea ze ', 'Hervé016', 'Thouzard016', 0), +(17, 0, '1970-07-11', '7f00000138f337ca.jpg', '017dezaedez zed ze zez zezea ze ', 'Hervé017', 'Thouzard017', 0), +(18, 0, '1970-07-11', '7f00000138f337ca.jpg', '018dezaedez zed ze zez zezea ze ', 'Hervé018', 'Thouzard018', 0), +(19, 0, '1970-07-11', '7f00000138f337ca.jpg', '019dezaedez zed ze zez zezea ze ', 'Hervé019', 'Thouzard019', 0), +(20, 0, '1970-07-11', '7f00000138f337ca.jpg', '020dezaedez zed ze zez zezea ze ', 'Hervé020', 'Thouzard020', 0), +(21, 0, '1970-07-11', '7f00000138f337ca.jpg', '021dezaedez zed ze zez zezea ze ', 'Hervé021', 'Thouzard021', 0), +(22, 0, '1970-07-11', '7f00000138f337ca.jpg', '022dezaedez zed ze zez zezea ze ', 'Hervé022', 'Thouzard022', 0), +(23, 0, '1970-07-11', '7f00000138f337ca.jpg', '023dezaedez zed ze zez zezea ze ', 'Hervé023', 'Thouzard023', 0), +(24, 0, '1970-07-11', '7f00000138f337ca.jpg', '024dezaedez zed ze zez zezea ze ', 'Hervé024', 'Thouzard024', 0), +(25, 0, '1970-07-11', '7f00000138f337ca.jpg', '025dezaedez zed ze zez zezea ze ', 'Hervé025', 'Thouzard025', 0), +(26, 0, '1970-07-11', '7f00000138f337ca.jpg', '026dezaedez zed ze zez zezea ze ', 'Hervé026', 'Thouzard026', 0), +(27, 0, '1970-07-11', '7f00000138f337ca.jpg', '027dezaedez zed ze zez zezea ze ', 'Hervé027', 'Thouzard027', 0), +(28, 0, '1970-07-11', '7f00000138f337ca.jpg', '028dezaedez zed ze zez zezea ze ', 'Hervé028', 'Thouzard028', 0), +(29, 0, '1970-07-11', '7f00000138f337ca.jpg', '029dezaedez zed ze zez zezea ze ', 'Hervé029', 'Thouzard029', 0), +(30, 0, '1970-07-11', '7f00000138f337ca.jpg', '030dezaedez zed ze zez zezea ze ', 'Hervé030', 'Thouzard030', 0), +(31, 0, '1970-07-11', '7f00000138f337ca.jpg', '031dezaedez zed ze zez zezea ze ', 'Hervé031', 'Thouzard031', 0), +(32, 0, '1970-07-11', '7f00000138f337ca.jpg', '032dezaedez zed ze zez zezea ze ', 'Hervé032', 'Thouzard032', 0), +(33, 0, '1970-07-11', '7f00000138f337ca.jpg', '033dezaedez zed ze zez zezea ze ', 'Hervé033', 'Thouzard033', 0), +(34, 0, '1970-07-11', '7f00000138f337ca.jpg', '034dezaedez zed ze zez zezea ze ', 'Hervé034', 'Thouzard034', 0), +(35, 0, '1970-07-11', '7f00000138f337ca.jpg', '035dezaedez zed ze zez zezea ze ', 'Hervé035', 'Thouzard035', 0), +(36, 0, '1970-07-11', '7f00000138f337ca.jpg', '036dezaedez zed ze zez zezea ze ', 'Hervé036', 'Thouzard036', 0), +(37, 0, '1970-07-11', '7f00000138f337ca.jpg', '037dezaedez zed ze zez zezea ze ', 'Hervé037', 'Thouzard037', 0), +(38, 0, '1970-07-11', '7f00000138f337ca.jpg', '038dezaedez zed ze zez zezea ze ', 'Hervé038', 'Thouzard038', 0), +(39, 0, '1970-07-11', '7f00000138f337ca.jpg', '039dezaedez zed ze zez zezea ze ', 'Hervé039', 'Thouzard039', 0), +(40, 0, '1970-07-11', '7f00000138f337ca.jpg', '040dezaedez zed ze zez zezea ze ', 'Hervé040', 'Thouzard040', 0), +(41, 0, '1970-07-11', '7f00000138f337ca.jpg', '041dezaedez zed ze zez zezea ze ', 'Hervé041', 'Thouzard041', 0), +(42, 0, '1970-07-11', '7f00000138f337ca.jpg', '042dezaedez zed ze zez zezea ze ', 'Hervé042', 'Thouzard042', 0), +(43, 0, '1970-07-11', '7f00000138f337ca.jpg', '043dezaedez zed ze zez zezea ze ', 'Hervé043', 'Thouzard043', 0), +(44, 0, '1970-07-11', '7f00000138f337ca.jpg', '044dezaedez zed ze zez zezea ze ', 'Hervé044', 'Thouzard044', 0), +(45, 0, '1970-07-11', '7f00000138f337ca.jpg', '045dezaedez zed ze zez zezea ze ', 'Hervé045', 'Thouzard045', 0), +(46, 0, '1970-07-11', '7f00000138f337ca.jpg', '046dezaedez zed ze zez zezea ze ', 'Hervé046', 'Thouzard046', 0), +(47, 0, '1970-07-11', '7f00000138f337ca.jpg', '047dezaedez zed ze zez zezea ze ', 'Hervé047', 'Thouzard047', 0), +(48, 0, '1970-07-11', '7f00000138f337ca.jpg', '048dezaedez zed ze zez zezea ze ', 'Hervé048', 'Thouzard048', 0), +(49, 0, '1970-07-11', '7f00000138f337ca.jpg', '049dezaedez zed ze zez zezea ze ', 'Hervé049', 'Thouzard049', 0), +(50, 0, '1970-07-11', '7f00000138f337ca.jpg', '050dezaedez zed ze zez zezea ze ', 'Hervé050', 'Thouzard050', 0), +(51, 0, '1970-07-11', '7f00000138f337ca.jpg', '051dezaedez zed ze zez zezea ze ', 'Hervé051', 'Thouzard051', 0), +(52, 0, '1970-07-11', '7f00000138f337ca.jpg', '052dezaedez zed ze zez zezea ze ', 'Hervé052', 'Thouzard052', 0), +(53, 0, '1970-07-11', '7f00000138f337ca.jpg', '053dezaedez zed ze zez zezea ze ', 'Hervé053', 'Thouzard053', 0), +(54, 0, '1970-07-11', '7f00000138f337ca.jpg', '054dezaedez zed ze zez zezea ze ', 'Hervé054', 'Thouzard054', 0), +(55, 0, '1970-07-11', '7f00000138f337ca.jpg', '055dezaedez zed ze zez zezea ze ', 'Hervé055', 'Thouzard055', 0), +(56, 0, '1970-07-11', '7f00000138f337ca.jpg', '056dezaedez zed ze zez zezea ze ', 'Hervé056', 'Thouzard056', 0), +(57, 0, '1970-07-11', '7f00000138f337ca.jpg', '057dezaedez zed ze zez zezea ze ', 'Hervé057', 'Thouzard057', 0), +(58, 0, '1970-07-11', '7f00000138f337ca.jpg', '058dezaedez zed ze zez zezea ze ', 'Hervé058', 'Thouzard058', 0), +(59, 0, '1970-07-11', '7f00000138f337ca.jpg', '059dezaedez zed ze zez zezea ze ', 'Hervé059', 'Thouzard059', 0), +(60, 0, '1970-07-11', '7f00000138f337ca.jpg', '060dezaedez zed ze zez zezea ze ', 'Hervé060', 'Thouzard060', 0), +(61, 0, '1970-07-11', '7f00000138f337ca.jpg', '061dezaedez zed ze zez zezea ze ', 'Hervé061', 'Thouzard061', 0), +(62, 0, '1970-07-11', '7f00000138f337ca.jpg', '062dezaedez zed ze zez zezea ze ', 'Hervé062', 'Thouzard062', 0), +(63, 0, '1970-07-11', '7f00000138f337ca.jpg', '063dezaedez zed ze zez zezea ze ', 'Hervé063', 'Thouzard063', 0), +(64, 0, '1970-07-11', '7f00000138f337ca.jpg', '064dezaedez zed ze zez zezea ze ', 'Hervé064', 'Thouzard064', 0), +(65, 0, '1970-07-11', '7f00000138f337ca.jpg', '065dezaedez zed ze zez zezea ze ', 'Hervé065', 'Thouzard065', 0), +(66, 0, '1970-07-11', '7f00000138f337ca.jpg', '066dezaedez zed ze zez zezea ze ', 'Hervé066', 'Thouzard066', 0), +(67, 0, '1970-07-11', '7f00000138f337ca.jpg', '067dezaedez zed ze zez zezea ze ', 'Hervé067', 'Thouzard067', 0), +(68, 0, '1970-07-11', '7f00000138f337ca.jpg', '068dezaedez zed ze zez zezea ze ', 'Hervé068', 'Thouzard068', 0), +(69, 0, '1970-07-11', '7f00000138f337ca.jpg', '069dezaedez zed ze zez zezea ze ', 'Hervé069', 'Thouzard069', 0), +(70, 0, '1970-07-11', '7f00000138f337ca.jpg', '070dezaedez zed ze zez zezea ze ', 'Hervé070', 'Thouzard070', 0), +(71, 0, '1970-07-11', '7f00000138f337ca.jpg', '071dezaedez zed ze zez zezea ze ', 'Hervé071', 'Thouzard071', 0), +(72, 0, '1970-07-11', '7f00000138f337ca.jpg', '072dezaedez zed ze zez zezea ze ', 'Hervé072', 'Thouzard072', 0), +(73, 0, '1970-07-11', '7f00000138f337ca.jpg', '073dezaedez zed ze zez zezea ze ', 'Hervé073', 'Thouzard073', 0), +(74, 0, '1970-07-11', '7f00000138f337ca.jpg', '074dezaedez zed ze zez zezea ze ', 'Hervé074', 'Thouzard074', 0), +(75, 0, '1970-07-11', '7f00000138f337ca.jpg', '075dezaedez zed ze zez zezea ze ', 'Hervé075', 'Thouzard075', 0), +(76, 0, '1970-07-11', '7f00000138f337ca.jpg', '076dezaedez zed ze zez zezea ze ', 'Hervé076', 'Thouzard076', 0), +(77, 0, '1970-07-11', '7f00000138f337ca.jpg', '077dezaedez zed ze zez zezea ze ', 'Hervé077', 'Thouzard077', 0), +(78, 0, '1970-07-11', '7f00000138f337ca.jpg', '078dezaedez zed ze zez zezea ze ', 'Hervé078', 'Thouzard078', 0), +(79, 0, '1970-07-11', '7f00000138f337ca.jpg', '079dezaedez zed ze zez zezea ze ', 'Hervé079', 'Thouzard079', 0), +(80, 0, '1970-07-11', '7f00000138f337ca.jpg', '080dezaedez zed ze zez zezea ze ', 'Hervé080', 'Thouzard080', 0), +(81, 0, '1970-07-11', '7f00000138f337ca.jpg', '081dezaedez zed ze zez zezea ze ', 'Hervé081', 'Thouzard081', 0), +(82, 0, '1970-07-11', '7f00000138f337ca.jpg', '082dezaedez zed ze zez zezea ze ', 'Hervé082', 'Thouzard082', 0), +(83, 0, '1970-07-11', '7f00000138f337ca.jpg', '083dezaedez zed ze zez zezea ze ', 'Hervé083', 'Thouzard083', 0), +(84, 0, '1970-07-11', '7f00000138f337ca.jpg', '084dezaedez zed ze zez zezea ze ', 'Hervé084', 'Thouzard084', 0), +(85, 0, '1970-07-11', '7f00000138f337ca.jpg', '085dezaedez zed ze zez zezea ze ', 'Hervé085', 'Thouzard085', 0), +(86, 0, '1970-07-11', '7f00000138f337ca.jpg', '086dezaedez zed ze zez zezea ze ', 'Hervé086', 'Thouzard086', 0), +(87, 0, '1970-07-11', '7f00000138f337ca.jpg', '087dezaedez zed ze zez zezea ze ', 'Hervé087', 'Thouzard087', 0), +(88, 0, '1970-07-11', '7f00000138f337ca.jpg', '088dezaedez zed ze zez zezea ze ', 'Hervé088', 'Thouzard088', 0), +(89, 0, '1970-07-11', '7f00000138f337ca.jpg', '089dezaedez zed ze zez zezea ze ', 'Hervé089', 'Thouzard089', 0), +(90, 0, '1970-07-11', '7f00000138f337ca.jpg', '090dezaedez zed ze zez zezea ze ', 'Hervé090', 'Thouzard090', 0), +(91, 0, '1970-07-11', '7f00000138f337ca.jpg', '091dezaedez zed ze zez zezea ze ', 'Hervé091', 'Thouzard091', 0), +(92, 0, '1970-07-11', '7f00000138f337ca.jpg', '092dezaedez zed ze zez zezea ze ', 'Hervé092', 'Thouzard092', 0), +(93, 0, '1970-07-11', '7f00000138f337ca.jpg', '093dezaedez zed ze zez zezea ze ', 'Hervé093', 'Thouzard093', 0), +(94, 0, '1970-07-11', '7f00000138f337ca.jpg', '094dezaedez zed ze zez zezea ze ', 'Hervé094', 'Thouzard094', 0), +(95, 0, '1970-07-11', '7f00000138f337ca.jpg', '095dezaedez zed ze zez zezea ze ', 'Hervé095', 'Thouzard095', 0), +(96, 0, '1970-07-11', '7f00000138f337ca.jpg', '096dezaedez zed ze zez zezea ze ', 'Hervé096', 'Thouzard096', 0), +(97, 0, '1970-07-11', '7f00000138f337ca.jpg', '097dezaedez zed ze zez zezea ze ', 'Hervé097', 'Thouzard097', 0), +(98, 0, '1970-07-11', '7f00000138f337ca.jpg', '098dezaedez zed ze zez zezea ze ', 'Hervé098', 'Thouzard098', 0), +(99, 0, '1970-07-11', '7f00000138f337ca.jpg', '099dezaedez zed ze zez zezea ze ', 'Hervé099', 'Thouzard099', 0), +(100, 0, '1970-07-11', '7f00000138f337ca.jpg', '100dezaedez zed ze zez zezea ze ', 'Hervé100', 'Thouzard100', 0), +(101, 0, '1970-07-11', '7f00000138f337ca.jpg', '101dezaedez zed ze zez zezea ze ', 'Hervé101', 'Thouzard101', 0), +(102, 0, '1970-07-11', '7f00000138f337ca.jpg', '102dezaedez zed ze zez zezea ze ', 'Hervé102', 'Thouzard102', 0), +(103, 0, '1970-07-11', '7f00000138f337ca.jpg', '103dezaedez zed ze zez zezea ze ', 'Hervé103', 'Thouzard103', 0), +(104, 0, '1970-07-11', '7f00000138f337ca.jpg', '104dezaedez zed ze zez zezea ze ', 'Hervé104', 'Thouzard104', 0), +(105, 0, '1970-07-11', '7f00000138f337ca.jpg', '105dezaedez zed ze zez zezea ze ', 'Hervé105', 'Thouzard105', 0), +(106, 0, '1970-07-11', '7f00000138f337ca.jpg', '106dezaedez zed ze zez zezea ze ', 'Hervé106', 'Thouzard106', 0), +(107, 0, '1970-07-11', '7f00000138f337ca.jpg', '107dezaedez zed ze zez zezea ze ', 'Hervé107', 'Thouzard107', 0), +(108, 0, '1970-07-11', '7f00000138f337ca.jpg', '108dezaedez zed ze zez zezea ze ', 'Hervé108', 'Thouzard108', 0), +(109, 0, '1970-07-11', '7f00000138f337ca.jpg', '109dezaedez zed ze zez zezea ze ', 'Hervé109', 'Thouzard109', 0), +(110, 0, '1970-07-11', '7f00000138f337ca.jpg', '110dezaedez zed ze zez zezea ze ', 'Hervé110', 'Thouzard110', 0), +(111, 0, '1970-07-11', '7f00000138f337ca.jpg', '111dezaedez zed ze zez zezea ze ', 'Hervé111', 'Thouzard111', 0), +(112, 0, '1970-07-11', '7f00000138f337ca.jpg', '112dezaedez zed ze zez zezea ze ', 'Hervé112', 'Thouzard112', 0), +(113, 0, '1970-07-11', '7f00000138f337ca.jpg', '113dezaedez zed ze zez zezea ze ', 'Hervé113', 'Thouzard113', 0), +(114, 0, '1970-07-11', '7f00000138f337ca.jpg', '114dezaedez zed ze zez zezea ze ', 'Hervé114', 'Thouzard114', 0), +(115, 0, '1970-07-11', '7f00000138f337ca.jpg', '115dezaedez zed ze zez zezea ze ', 'Hervé115', 'Thouzard115', 0), +(116, 0, '1970-07-11', '7f00000138f337ca.jpg', '116dezaedez zed ze zez zezea ze ', 'Hervé116', 'Thouzard116', 0), +(117, 0, '1970-07-11', '7f00000138f337ca.jpg', '117dezaedez zed ze zez zezea ze ', 'Hervé117', 'Thouzard117', 0), +(118, 0, '1970-07-11', '7f00000138f337ca.jpg', '118dezaedez zed ze zez zezea ze ', 'Hervé118', 'Thouzard118', 0), +(119, 0, '1970-07-11', '7f00000138f337ca.jpg', '119dezaedez zed ze zez zezea ze ', 'Hervé119', 'Thouzard119', 0), +(120, 0, '1970-07-11', '7f00000138f337ca.jpg', '120dezaedez zed ze zez zezea ze ', 'Hervé120', 'Thouzard120', 0), +(121, 0, '1970-07-11', '7f00000138f337ca.jpg', '121dezaedez zed ze zez zezea ze ', 'Hervé121', 'Thouzard121', 0), +(122, 0, '1970-07-11', '7f00000138f337ca.jpg', '122dezaedez zed ze zez zezea ze ', 'Hervé122', 'Thouzard122', 0), +(123, 0, '1970-07-11', '7f00000138f337ca.jpg', '123dezaedez zed ze zez zezea ze ', 'Hervé123', 'Thouzard123', 0), +(124, 0, '1970-07-11', '7f00000138f337ca.jpg', '124dezaedez zed ze zez zezea ze ', 'Hervé124', 'Thouzard124', 0), +(125, 0, '1970-07-11', '7f00000138f337ca.jpg', '125dezaedez zed ze zez zezea ze ', 'Hervé125', 'Thouzard125', 0), +(126, 0, '1970-07-11', '7f00000138f337ca.jpg', '126dezaedez zed ze zez zezea ze ', 'Hervé126', 'Thouzard126', 0), +(127, 0, '1970-07-11', '7f00000138f337ca.jpg', '127dezaedez zed ze zez zezea ze ', 'Hervé127', 'Thouzard127', 0), +(128, 0, '1970-07-11', '7f00000138f337ca.jpg', '128dezaedez zed ze zez zezea ze ', 'Hervé128', 'Thouzard128', 0), +(129, 0, '1970-07-11', '7f00000138f337ca.jpg', '129dezaedez zed ze zez zezea ze ', 'Hervé129', 'Thouzard129', 0), +(130, 0, '1970-07-11', '7f00000138f337ca.jpg', '130dezaedez zed ze zez zezea ze ', 'Hervé130', 'Thouzard130', 0), +(131, 0, '1970-07-11', '7f00000138f337ca.jpg', '131dezaedez zed ze zez zezea ze ', 'Hervé131', 'Thouzard131', 0), +(132, 0, '1970-07-11', '7f00000138f337ca.jpg', '132dezaedez zed ze zez zezea ze ', 'Hervé132', 'Thouzard132', 0), +(133, 0, '1970-07-11', '7f00000138f337ca.jpg', '133dezaedez zed ze zez zezea ze ', 'Hervé133', 'Thouzard133', 0), +(134, 0, '1970-07-11', '7f00000138f337ca.jpg', '134dezaedez zed ze zez zezea ze ', 'Hervé134', 'Thouzard134', 0), +(135, 0, '1970-07-11', '7f00000138f337ca.jpg', '135dezaedez zed ze zez zezea ze ', 'Hervé135', 'Thouzard135', 0), +(136, 0, '1970-07-11', '7f00000138f337ca.jpg', '136dezaedez zed ze zez zezea ze ', 'Hervé136', 'Thouzard136', 0), +(137, 0, '1970-07-11', '7f00000138f337ca.jpg', '137dezaedez zed ze zez zezea ze ', 'Hervé137', 'Thouzard137', 0), +(138, 0, '1970-07-11', '7f00000138f337ca.jpg', '138dezaedez zed ze zez zezea ze ', 'Hervé138', 'Thouzard138', 0), +(139, 0, '1970-07-11', '7f00000138f337ca.jpg', '139dezaedez zed ze zez zezea ze ', 'Hervé139', 'Thouzard139', 0), +(140, 0, '1970-07-11', '7f00000138f337ca.jpg', '140dezaedez zed ze zez zezea ze ', 'Hervé140', 'Thouzard140', 0), +(141, 0, '1970-07-11', '7f00000138f337ca.jpg', '141dezaedez zed ze zez zezea ze ', 'Hervé141', 'Thouzard141', 0), +(142, 0, '1970-07-11', '7f00000138f337ca.jpg', '142dezaedez zed ze zez zezea ze ', 'Hervé142', 'Thouzard142', 0), +(143, 0, '1970-07-11', '7f00000138f337ca.jpg', '143dezaedez zed ze zez zezea ze ', 'Hervé143', 'Thouzard143', 0), +(144, 0, '1970-07-11', '7f00000138f337ca.jpg', '144dezaedez zed ze zez zezea ze ', 'Hervé144', 'Thouzard144', 0), +(145, 0, '1970-07-11', '7f00000138f337ca.jpg', '145dezaedez zed ze zez zezea ze ', 'Hervé145', 'Thouzard145', 0), +(146, 0, '1970-07-11', '7f00000138f337ca.jpg', '146dezaedez zed ze zez zezea ze ', 'Hervé146', 'Thouzard146', 0), +(147, 0, '1970-07-11', '7f00000138f337ca.jpg', '147dezaedez zed ze zez zezea ze ', 'Hervé147', 'Thouzard147', 0), +(148, 0, '1970-07-11', '7f00000138f337ca.jpg', '148dezaedez zed ze zez zezea ze ', 'Hervé148', 'Thouzard148', 0), +(149, 0, '1970-07-11', '7f00000138f337ca.jpg', '149dezaedez zed ze zez zezea ze ', 'Hervé149', 'Thouzard149', 0), +(150, 0, '1970-07-11', '7f00000138f337ca.jpg', '150dezaedez zed ze zez zezea ze ', 'Hervé150', 'Thouzard150', 0), +(151, 0, '1970-07-11', '7f00000138f337ca.jpg', '151dezaedez zed ze zez zezea ze ', 'Hervé151', 'Thouzard151', 0), +(152, 0, '1970-07-11', '7f00000138f337ca.jpg', '152dezaedez zed ze zez zezea ze ', 'Hervé152', 'Thouzard152', 0), +(153, 0, '1970-07-11', '7f00000138f337ca.jpg', '153dezaedez zed ze zez zezea ze ', 'Hervé153', 'Thouzard153', 0), +(154, 0, '1970-07-11', '7f00000138f337ca.jpg', '154dezaedez zed ze zez zezea ze ', 'Hervé154', 'Thouzard154', 0), +(155, 0, '1970-07-11', '7f00000138f337ca.jpg', '155dezaedez zed ze zez zezea ze ', 'Hervé155', 'Thouzard155', 0), +(156, 0, '1970-07-11', '7f00000138f337ca.jpg', '156dezaedez zed ze zez zezea ze ', 'Hervé156', 'Thouzard156', 0), +(157, 0, '1970-07-11', '7f00000138f337ca.jpg', '157dezaedez zed ze zez zezea ze ', 'Hervé157', 'Thouzard157', 0), +(158, 0, '1970-07-11', '7f00000138f337ca.jpg', '158dezaedez zed ze zez zezea ze ', 'Hervé158', 'Thouzard158', 0), +(159, 0, '1970-07-11', '7f00000138f337ca.jpg', '159dezaedez zed ze zez zezea ze ', 'Hervé159', 'Thouzard159', 0), +(160, 0, '1970-07-11', '7f00000138f337ca.jpg', '160dezaedez zed ze zez zezea ze ', 'Hervé160', 'Thouzard160', 0), +(161, 0, '1970-07-11', '7f00000138f337ca.jpg', '161dezaedez zed ze zez zezea ze ', 'Hervé161', 'Thouzard161', 0), +(162, 0, '1970-07-11', '7f00000138f337ca.jpg', '162dezaedez zed ze zez zezea ze ', 'Hervé162', 'Thouzard162', 0), +(163, 0, '1970-07-11', '7f00000138f337ca.jpg', '163dezaedez zed ze zez zezea ze ', 'Hervé163', 'Thouzard163', 0), +(164, 0, '1970-07-11', '7f00000138f337ca.jpg', '164dezaedez zed ze zez zezea ze ', 'Hervé164', 'Thouzard164', 0), +(165, 0, '1970-07-11', '7f00000138f337ca.jpg', '165dezaedez zed ze zez zezea ze ', 'Hervé165', 'Thouzard165', 0), +(166, 0, '1970-07-11', '7f00000138f337ca.jpg', '166dezaedez zed ze zez zezea ze ', 'Hervé166', 'Thouzard166', 0), +(167, 0, '1970-07-11', '7f00000138f337ca.jpg', '167dezaedez zed ze zez zezea ze ', 'Hervé167', 'Thouzard167', 0), +(168, 0, '1970-07-11', '7f00000138f337ca.jpg', '168dezaedez zed ze zez zezea ze ', 'Hervé168', 'Thouzard168', 0), +(169, 0, '1970-07-11', '7f00000138f337ca.jpg', '169dezaedez zed ze zez zezea ze ', 'Hervé169', 'Thouzard169', 0), +(170, 0, '1970-07-11', '7f00000138f337ca.jpg', '170dezaedez zed ze zez zezea ze ', 'Hervé170', 'Thouzard170', 0), +(171, 0, '1970-07-11', '7f00000138f337ca.jpg', '171dezaedez zed ze zez zezea ze ', 'Hervé171', 'Thouzard171', 0), +(172, 0, '1970-07-11', '7f00000138f337ca.jpg', '172dezaedez zed ze zez zezea ze ', 'Hervé172', 'Thouzard172', 0), +(173, 0, '1970-07-11', '7f00000138f337ca.jpg', '173dezaedez zed ze zez zezea ze ', 'Hervé173', 'Thouzard173', 0), +(174, 0, '1970-07-11', '7f00000138f337ca.jpg', '174dezaedez zed ze zez zezea ze ', 'Hervé174', 'Thouzard174', 0), +(175, 0, '1970-07-11', '7f00000138f337ca.jpg', '175dezaedez zed ze zez zezea ze ', 'Hervé175', 'Thouzard175', 0), +(176, 0, '1970-07-11', '7f00000138f337ca.jpg', '176dezaedez zed ze zez zezea ze ', 'Hervé176', 'Thouzard176', 0), +(177, 0, '1970-07-11', '7f00000138f337ca.jpg', '177dezaedez zed ze zez zezea ze ', 'Hervé177', 'Thouzard177', 0), +(178, 0, '1970-07-11', '7f00000138f337ca.jpg', '178dezaedez zed ze zez zezea ze ', 'Hervé178', 'Thouzard178', 0), +(179, 0, '1970-07-11', '7f00000138f337ca.jpg', '179dezaedez zed ze zez zezea ze ', 'Hervé179', 'Thouzard179', 0), +(180, 0, '1970-07-11', '7f00000138f337ca.jpg', '180dezaedez zed ze zez zezea ze ', 'Hervé180', 'Thouzard180', 0), +(181, 0, '1970-07-11', '7f00000138f337ca.jpg', '181dezaedez zed ze zez zezea ze ', 'Hervé181', 'Thouzard181', 0), +(182, 0, '1970-07-11', '7f00000138f337ca.jpg', '182dezaedez zed ze zez zezea ze ', 'Hervé182', 'Thouzard182', 0), +(183, 0, '1970-07-11', '7f00000138f337ca.jpg', '183dezaedez zed ze zez zezea ze ', 'Hervé183', 'Thouzard183', 0), +(184, 0, '1970-07-11', '7f00000138f337ca.jpg', '184dezaedez zed ze zez zezea ze ', 'Hervé184', 'Thouzard184', 0), +(185, 0, '1970-07-11', '7f00000138f337ca.jpg', '185dezaedez zed ze zez zezea ze ', 'Hervé185', 'Thouzard185', 0), +(186, 0, '1970-07-11', '7f00000138f337ca.jpg', '186dezaedez zed ze zez zezea ze ', 'Hervé186', 'Thouzard186', 0), +(187, 0, '1970-07-11', '7f00000138f337ca.jpg', '187dezaedez zed ze zez zezea ze ', 'Hervé187', 'Thouzard187', 0), +(188, 0, '1970-07-11', '7f00000138f337ca.jpg', '188dezaedez zed ze zez zezea ze ', 'Hervé188', 'Thouzard188', 0), +(189, 0, '1970-07-11', '7f00000138f337ca.jpg', '189dezaedez zed ze zez zezea ze ', 'Hervé189', 'Thouzard189', 0), +(190, 0, '1970-07-11', '7f00000138f337ca.jpg', '190dezaedez zed ze zez zezea ze ', 'Hervé190', 'Thouzard190', 0), +(191, 0, '1970-07-11', '7f00000138f337ca.jpg', '191dezaedez zed ze zez zezea ze ', 'Hervé191', 'Thouzard191', 0), +(192, 0, '1970-07-11', '7f00000138f337ca.jpg', '192dezaedez zed ze zez zezea ze ', 'Hervé192', 'Thouzard192', 0), +(193, 0, '1970-07-11', '7f00000138f337ca.jpg', '193dezaedez zed ze zez zezea ze ', 'Hervé193', 'Thouzard193', 0), +(194, 0, '1970-07-11', '7f00000138f337ca.jpg', '194dezaedez zed ze zez zezea ze ', 'Hervé194', 'Thouzard194', 0), +(195, 0, '1970-07-11', '7f00000138f337ca.jpg', '195dezaedez zed ze zez zezea ze ', 'Hervé195', 'Thouzard195', 0), +(196, 0, '1970-07-11', '7f00000138f337ca.jpg', '196dezaedez zed ze zez zezea ze ', 'Hervé196', 'Thouzard196', 0), +(197, 0, '1970-07-11', '7f00000138f337ca.jpg', '197dezaedez zed ze zez zezea ze ', 'Hervé197', 'Thouzard197', 0), +(198, 0, '1970-07-11', '7f00000138f337ca.jpg', '198dezaedez zed ze zez zezea ze ', 'Hervé198', 'Thouzard198', 0), +(199, 0, '1970-07-11', '7f00000138f337ca.jpg', '199dezaedez zed ze zez zezea ze ', 'Hervé199', 'Thouzard199', 0), +(200, 0, '1970-07-11', '7f00000138f337ca.jpg', '200dezaedez zed ze zez zezea ze ', 'Hervé200', 'Thouzard200', 0), +(203, 1, '1970-07-11', '7f000001ffaa5df5.jpg', '<div id="TheTexte" class="Texte"> <p align="justify">Dumque ibi diu moratur commeatus opperiens, quorum translationem ex Aquitania verni imbres solito crebriores prohibebant auctique torrentes, Herculanus advenit protector domesticus, Hermogenis ex magistro equitum filius, apud Constantinopolim, ut supra rettulimus, populari quondam turbela discerpti. quo verissime referente quae Gallus egerat, damnis super praeteritis maerens et futurorum timore suspensus angorem animi quam diu potuit emendabat.</p> <p align="justify">Et quoniam inedia gravi adflictabantur, locum petivere Paleas nomine, vergentem in mare, valido muro firmatum, ubi conduntur nunc usque commeatus distribui militibus omne latus Isauriae defendentibus adsueti. circumstetere igitur hoc munimentum per triduum et trinoctium et cum neque adclivitas ipsa sine discrimine adiri letali, nec cuniculis quicquam geri posset, nec procederet ullum obsidionale commentum, maesti excedunt postrema vi subigente maiora viribus adgressuri.</p> <p align="justify">Et eodem impetu Domitianum praecipitem per scalas itidem funibus constrinxerunt, eosque coniunctos per ampla spatia civitatis acri raptavere discursu. iamque artuum et membrorum divulsa conpage superscandentes corpora mortuorum ad ultimam truncata deformitatem velut exsaturati mox abiecerunt in flumen.</p> </div>', 'Hervé', 'Thouzard', 0); Copied: XoopsModules/birthday/trunk/birthday/xoops_version.php (from rev 8512, XoopsModules/birthday/trunk/xoops_version.php) =================================================================== --- XoopsModules/birthday/trunk/birthday/xoops_version.php (rev 0) +++ XoopsModules/birthday/trunk/birthday/xoops_version.php 2011-12-21 10:23:39 UTC (rev 8531) @@ -0,0 +1,236 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + die("XOOPS root path not defined"); +} + +$modversion['name'] = _MI_BD_TITRE; +$modversion['version'] = 2.2; +$modversion['description'] = _MI_BD_DESC; +$modversion['author'] = "Herv\xE9 Thouzard sur la base du module r\xE9alis\xE9 par Sultan El Turrah<br />http://www.theclubbing.com<br /> Sur base du travail de Lmaix <br />http://www.bahut.com"; +$modversion['credits'] = "The XOOPS Project"; +$modversion['help'] = ""; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 0; +$modversion['image'] = 'images/birthday_slogo2.png'; +$modversion['dirname'] = "birthday"; + +// ******************************************************************************************************************** +// Administration ***************************************************************************************************** +// ******************************************************************************************************************** +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = 'admin/index.php'; +$modversion['adminmenu'] = 'admin/menu.php'; + + +// ******************************************************************************************************************** +// Blocks ************************************************************************************************************* +// ******************************************************************************************************************** +$cptb = 0; + +$cptb++; +$modversion['blocks'][$cptb]['file'] = 'b_birthday.php'; +$modversion['blocks'][$cptb]['name'] = _MI_BD_TITRE; +$modversion['blocks'][$cptb]['description'] = '_MI_BD_DESC'; +$modversion['blocks'][$cptb]['show_func'] = 'b_birthday_show'; +$modversion['blocks'][$cptb]['edit_func'] = 'b_birthday_edit'; +$modversion['blocks'][$cptb]['options'] = '5'; // nombre d'\xE9l\xE9ments visibles +$modversion['blocks'][$cptb]['template'] = 'birthday_block_birthday.html'; + + +// ******************************************************************************************************************** +// Search ************************************************************************************************************* +// ******************************************************************************************************************** +$modversion['hasSearch'] = 1; +$modversion['search']['file'] = 'include/search.inc.php'; +$modversion['search']['func'] = 'birthday_search'; + + +// ******************************************************************************************************************** +// Templates ********************************************************************************************************** +// ******************************************************************************************************************** +$cptt = 0; + +$cptt++; +$modversion['templates'][$cptt]['file'] = 'birthday_index.html'; +$modversion['templates'][$cptt]['description'] = "Index page"; + +$cptt++; +$modversion['templates'][$cptt]['file'] = 'birthday_user.html'; +$modversion['templates'][$cptt]['description'] = "Display a user page"; + +$cptt++; +$modversion['templates'][$cptt]['file'] = 'birthday_users.html'; +$modversion['templates'][$cptt]['description'] = "List of Users"; + + +// ******************************************************************************************************************** +// Menu *************************************************************************************************************** +// ******************************************************************************************************************** +$modversion['hasMain'] = 1; + +$cptm = 0; +$cptm++; +$modversion['sub'][$cptm]['name'] = _MI_BIRTHDAY_USERS_LIST; +$modversion['sub'][$cptm]['url'] = 'users.php'; + + +// ******************************************************************************************************************** +// Tables ************************************************************************************************************* +// ******************************************************************************************************************** +$modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; +$modversion['tables'][0] = 'users_birthday'; + +// ******************************************************************************************************************** +// Preferences ******************************************************************************************************** +// ******************************************************************************************************************** +$cpto = 0; + +/** + * Images width + */ +$cpto++; +$modversion['config'][$cpto]['name']= 'images_width'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_IMAGES_WIDTH'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textbox'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['default'] = 150; + + +/** + * Images height + */ +$cpto++; +$modversion['config'][$cpto]['name']= 'images_height'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_IMAGES_HEIGHT'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textbox'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['default'] = 150; + +/** + * Folder's path (where to save pictures) + */ +$cpto++; +$modversion['config'][$cpto]['name']= 'folder_path'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_FOLDER_PATH'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textbox'; +$modversion['config'][$cpto]['valuetype'] = 'text'; +$modversion['config'][$cpto]['default'] = XOOPS_UPLOAD_PATH; + +/** + * Folder's url (where to save pictures) + */ +$cpto++; +$modversion['config'][$cpto]['name']= 'folder_url'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_FOLDER_URL'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textbox'; +$modversion['config'][$cpto]['valuetype'] = 'text'; +$modversion['config'][$cpto]['default'] = XOOPS_UPLOAD_URL; + +/** + * Items count per page + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'perpage'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_PERPAGE'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textbox'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['default'] = 15; + +/** + * Mime Types + * Default values : Web pictures (png, jpeg) + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'mimetypes'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_MIMETYPES'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textarea'; +$modversion['config'][$cpto]['valuetype'] = 'text'; +$modversion['config'][$cpto]['default'] = "image/jpeg\nimage/pjpeg\nimage/x-png\nimage/png"; + +/** + * MAX Filesize Upload in kilo bytes + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'maxuploadsize'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_UPLOADFILESIZE'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'textbox'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['default'] = 1048576; + +/** + * Editor to use + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'form_options'; +$modversion['config'][$cpto]['title'] = "_MI_BIRTHDAY_FORM_OPTIONS"; +$modversion['config'][$cpto]['description'] = '_MI_BIRTHDAY_FORM_OPTIONS_DESC'; +$modversion['config'][$cpto]['formtype'] = 'select'; +$modversion['config'][$cpto]['valuetype'] = 'text'; +$modversion['config'][$cpto]['options'] = array( + _MI_BIRTHDAY_FORM_DHTML=>'dhtml', + _MI_BIRTHDAY_FORM_COMPACT=>'textarea', + _MI_BIRTHDAY_FORM_SPAW=>'spaw', + _MI_BIRTHDAY_FORM_HTMLAREA=>'htmlarea', + _MI_BIRTHDAY_FORM_KOIVI=>'koivi', + _MI_BIRTHDAY_FORM_FCK=>'fck', + _MI_BIRTHDAY_FORM_TINYEDITOR=>'tinyeditor' + ); +$modversion['config'][$cpto]['default'] = 'dhtml'; + +/** + * Enable users of your site to fill their form ? + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'enable_users'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_ENABLE_USERS'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'yesno'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['default'] = 1; + +/** + * Sort order + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'userslist_sortorder'; +$modversion['config'][$cpto]['title'] = "_MI_BIRTHDAY_SORT_ORDER"; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'select'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['options'] = array( + _MI_BIRTHDAY_SORT_ORDER1 => 1, + _MI_BIRTHDAY_SORT_ORDER2 => 2 + ); +$modversion['config'][$cpto]['default'] = 2; + +/** + * Activate CAPTCHA ? + */ +$cpto++; +$modversion['config'][$cpto]['name'] = 'use_captcha'; +$modversion['config'][$cpto]['title'] = '_MI_BIRTHDAY_USE_CAPTCHA'; +$modversion['config'][$cpto]['description'] = ''; +$modversion['config'][$cpto]['formtype'] = 'yesno'; +$modversion['config'][$cpto]['valuetype'] = 'int'; +$modversion['config'][$cpto]['default'] = 0; + + +// ******************************************************************************************************************** +// Comments *********************************************************************************************************** +// ******************************************************************************************************************** +$modversion['hasComments'] = 1; +$modversion['comments']['itemName'] = 'birthday_id'; +$modversion['comments']['pageName'] = 'user.php'; + +// Comment callback functions +$modversion['comments']['callbackFile'] = 'include/comment_functions.php'; +$modversion['comments']['callback']['approve'] = 'birthday_com_approve'; +$modversion['comments']['callback']['update'] = 'birthday_com_update'; +?> \ No newline at end of file Deleted: XoopsModules/birthday/trunk/changelog.txt =================================================================== --- XoopsModules/birthday/trunk/changelog.txt 2011-12-21 10:16:37 UTC (rev 8530) +++ XoopsModules/birthday/trunk/changelog.txt 2011-12-21 10:23:39 UTC (rev 8531) @@ -1,33 +0,0 @@ -Changelog -******* -v.2.2 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) -******* -- The module is now Xoops 2.3 compatible -- Minor change in the module's administration -- The module will not add asterisks to forms under Xoops 2.3 -- Correction of a bug in the comments - -******* -v.2.1 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) -******* -- You have a new option to select how to order the users list -- You also have a new option to activate a captcha on the user's page -- Addition of a lang.diff file for translators - - -******* -v.2.0 Changes made by Herv\xE9 Thouzard of Instant Zero (http://www.instant-zero.com) -******* -- Addition of a module's administration where you can show, edit and add birthdays -- You can add a description to each birthday -- You can select the text editor... [truncated message content] |
From: <be...@us...> - 2011-12-21 10:16:48
|
Revision: 8530 http://xoops.svn.sourceforge.net/xoops/?rev=8530&view=rev Author: beckmi Date: 2011-12-21 10:16:37 +0000 (Wed, 21 Dec 2011) Log Message: ----------- changing folder structure Added Paths: ----------- XoopsModules/birthday/trunk/birthday/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2011-12-21 08:32:19
|
Revision: 8529 http://xoops.svn.sourceforge.net/xoops/?rev=8529&view=rev Author: beckmi Date: 2011-12-21 08:32:10 +0000 (Wed, 21 Dec 2011) Log Message: ----------- reverting Xortify Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2011-12-21 08:28:34
|
Revision: 8528 http://xoops.svn.sourceforge.net/xoops/?rev=8528&view=rev Author: beckmi Date: 2011-12-21 08:28:26 +0000 (Wed, 21 Dec 2011) Log Message: ----------- reverting Xortify Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php 2011-12-19 15:54:31 UTC (rev 8527) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php 2011-12-21 08:28:26 UTC (rev 8528) @@ -1,55 +0,0 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Nexoork Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @author Richardo Costa TRABIS - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -class SystemXortifyPreload extends XoopsPreloadItem -{ - - static function init() { - $xoops = Xoops::getInstance(); - $module_handler = $xoops->getHandler('module'); - $config_handler = $xoops->getHandler('config'); - $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); - if (is_object($GLOBALS['xortifyModule'])) { - $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); - } else { - $GLOBALS['xortifyModuleConfig']['fault_delay'] = 600; - } - XoopsLoad::load('xoopscache'); - } - - - static function eventCoreIncludeCommonEnd($args) - { - SystemXortifyPreload::init(); - $result = XoopsCache::read('xortify_core_include_common_end_cron'); - if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { - XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); - switch ($GLOBALS['xortifyModuleConfig']['crontype']) { - case 'preloader': - $read = XoopsCache::read('xortify_pause_preload'); - if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { - XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); - $GLOBALS['xortify_preloader']=true; - ob_start(); - include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); - ob_end_clean(); - } - break; - } - XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); - } - - } -} - -?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php 2011-12-19 15:54:31 UTC (rev 8527) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php 2011-12-21 08:28:26 UTC (rev 8528) @@ -437,7 +437,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'), '', strtoupper($GLOBALS['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->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['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->getVar('name')); break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tst...@us...> - 2011-12-19 15:54:42
|
Revision: 8527 http://xoops.svn.sourceforge.net/xoops/?rev=8527&view=rev Author: tstempko Date: 2011-12-19 15:54:31 +0000 (Mon, 19 Dec 2011) Log Message: ----------- Modified Paths: -------------- XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/user.php Modified: XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/user.php =================================================================== --- XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/user.php 2011-12-19 11:47:33 UTC (rev 8526) +++ XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/user.php 2011-12-19 15:54:31 UTC (rev 8527) @@ -58,7 +58,7 @@ define('_US_VERIFYPASS', 'Powtórz hasło'); define('_US_SUBMIT', 'Zatwierdź'); define('_US_USERNAME', 'Nazwa użytkownika'); -define('_US_FINISH', 'Koniec'); +define('_US_FINISH', 'Potwierdź rejestrację'); define('_US_REGISTERNG', 'Nie można zarejestrować nowego użytkownika.'); define('_US_MAILOK', 'Pozwolić administratorowi i <br /> moderatorom na wysyłanie wiadomości?'); define('_US_DISCLAIMER', 'Regulamin'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2011-12-19 11:47:44
|
Revision: 8526 http://xoops.svn.sourceforge.net/xoops/?rev=8526&view=rev Author: voltan1 Date: 2011-12-19 11:47:33 +0000 (Mon, 19 Dec 2011) Log Message: ----------- Fix some bugs Modified Paths: -------------- XoopsModules/fmcontent/branches/news/blocks/list.php XoopsModules/fmcontent/branches/news/class/story.php XoopsModules/fmcontent/branches/news/sql/mysql.sql Modified: XoopsModules/fmcontent/branches/news/blocks/list.php =================================================================== --- XoopsModules/fmcontent/branches/news/blocks/list.php 2011-12-19 09:13:05 UTC (rev 8525) +++ XoopsModules/fmcontent/branches/news/blocks/list.php 2011-12-19 11:47:33 UTC (rev 8526) @@ -19,14 +19,16 @@ * @author Hossein Azizabadi (Aka Voltan) * @version $Id$ */ - -require dirname(__FILE__) . '/header.php'; -if (!isset($forMods)) exit('Module not found'); function news_list_show($options) { $story_handler = xoops_getmodulehandler ( 'story', 'news' ); $topic_handler = xoops_getmodulehandler ( 'topic', 'news' ); + $module_handler = xoops_gethandler('module'); + + require_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php'; + require_once XOOPS_ROOT_PATH . '/modules/news/class/perm.php'; + require_once XOOPS_ROOT_PATH . '/modules/news/class/utils.php'; global $xoTheme; @@ -42,7 +44,11 @@ $width = $options[8]; $float = $options[9]; $story_infos['story_order'] = $options[10]; - + $block['showmore'] = $options[11]; + $block['morelink'] = $options[12]; + + array_shift($options); + array_shift($options); array_shift($options); array_shift($options); array_shift($options); @@ -51,12 +57,12 @@ array_shift($options); array_shift($options); array_shift($options); - array_shift($options); array_shift($options); array_shift($options); + array_shift($options); - $module_handler = xoops_gethandler('module'); $forMods = $module_handler->getByDirname($forMods); + $options0 = $options[0]; $story_infos ['topics'] = $topic_handler->getall (); Modified: XoopsModules/fmcontent/branches/news/class/story.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/story.php 2011-12-19 09:13:05 UTC (rev 8525) +++ XoopsModules/fmcontent/branches/news/class/story.php 2011-12-19 11:47:33 UTC (rev 8526) @@ -563,18 +563,17 @@ function getContentBlockList($forMods, $story_infos ,$options) { $ret = array (); $criteria = new CriteriaCompo (); - $criteria->add ( new Criteria ( 'story_type', 'news' ) ); $criteria->add ( new Criteria ( 'story_status', '1' ) ); - $access_topic = NewsPermission::getItemIds ( 'news_access', $forMods); - $criteria->add ( new Criteria ( 'story_topic', '(' . implode ( ',', $access_topic ) . ')', 'IN' ) ); - if (! (count ( $options ) == 1 && $options [0] == 0)) { - $criteria->add ( new Criteria ( 'story_topic', '(' . implode ( ',', $options ) . ')', 'IN' ) ); - } $criteria->add ( new Criteria ( 'story_publish', time() , '<=' )); $criteria->add ( new Criteria ( 'story_publish', 0 , '>' )); $criteria->add ( new Criteria ( 'story_expire', time() , '>=' )); $criteria->add ( new Criteria ( 'story_expire', 0 ) ,'OR'); $criteria->add ( new Criteria ( 'story_modid', $forMods->getVar ( 'mid' ) ) ); + $access_topic = NewsPermission::getItemIds ( 'news_access', $forMods); + $criteria->add ( new Criteria ( 'story_topic', '(' . implode ( ',', $access_topic ) . ')', 'IN' ) ); + if (! (count ( $options ) == 1 && $options [0] == 0)) { + $criteria->add ( new Criteria ( 'story_topic', '(' . implode ( ',', $options ) . ')', 'IN' ) ); + } $criteria->setSort ( $story_infos ['story_sort'] ); $criteria->setOrder ( $story_infos ['story_order'] ); $criteria->setLimit ( $story_infos ['story_limit'] ); Modified: XoopsModules/fmcontent/branches/news/sql/mysql.sql =================================================================== --- XoopsModules/fmcontent/branches/news/sql/mysql.sql 2011-12-19 09:13:05 UTC (rev 8525) +++ XoopsModules/fmcontent/branches/news/sql/mysql.sql 2011-12-19 11:47:33 UTC (rev 8526) @@ -35,9 +35,12 @@ `doimage` tinyint(1) NOT NULL, `dosmiley` tinyint(1) NOT NULL, `doxcode` tinyint(1) NOT NULL, -PRIMARY KEY (`story_id`,`story_modid`), -UNIQUE KEY `story_id` (`story_id`,`story_modid`) -) ENGINE=MyISAM ; +PRIMARY KEY (`story_id`), +KEY `idxstoriestopic` (`story_topic`), +KEY `story_title` (`story_title`), +KEY `story_create` (`story_create`), +FULLTEXT KEY `search` (`story_title`,`story_short`,`story_text`,`story_subtitle`) +) ENGINE=MyISAM; CREATE TABLE `news_topic` ( @@ -68,8 +71,11 @@ `topic_alias` varchar(255) NOT NULL, `topic_homepage` tinyint (4) NOT NULL , `topic_show` tinyint (1) NOT NULL default '1', -PRIMARY KEY (`topic_id`,`topic_modid`), -UNIQUE KEY `topic_id` (`topic_id`,`topic_modid`) + PRIMARY KEY (`story_id`), + KEY `idxstoriestopic` (`story_topic`), + KEY `story_title` (`story_title`), + KEY `story_create` (`story_create`), + FULLTEXT KEY `search` (`story_title`,`story_short`,`story_text`,`story_subtitle`) ) ENGINE=MyISAM; CREATE TABLE `news_file` ( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2011-12-19 09:13:16
|
Revision: 8525 http://xoops.svn.sourceforge.net/xoops/?rev=8525&view=rev Author: voltan1 Date: 2011-12-19 09:13:05 +0000 (Mon, 19 Dec 2011) Log Message: ----------- fix query Modified Paths: -------------- XoopsModules/fmcontent/branches/news/class/story.php Modified: XoopsModules/fmcontent/branches/news/class/story.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/story.php 2011-12-19 08:31:19 UTC (rev 8524) +++ XoopsModules/fmcontent/branches/news/class/story.php 2011-12-19 09:13:05 UTC (rev 8525) @@ -504,24 +504,23 @@ $ret = array (); $criteria = new CriteriaCompo (); $criteria->add ( new Criteria ( 'story_status', $story_infos ['story_status'] ) ); - $criteria->add ( new Criteria ( 'story_topic', '0', '>' ) ); $access_topic = NewsPermission::getItemIds ( 'news_access', $forMods); $topic_handler = xoops_getmodulehandler ( 'topic', 'news' ); $topic_show = $topic_handler->allVisible($forMods,$story_infos ['topics'],$story_infos ['story_topic']); $topiclist = array_intersect($access_topic , $topic_show); $criteria->add ( new Criteria ( 'story_topic', '(' . implode ( ',', $topiclist ) . ')', 'IN' ) ); $criteria->add ( new Criteria ( 'story_modid', $forMods->getVar ( 'mid' ) ) ); + $criteria->add ( new Criteria ( 'story_publish', time() , '<=' )); + $criteria->add ( new Criteria ( 'story_publish', 0 , '>' )); + $criteria->add ( new Criteria ( 'story_expire', time() , '>=' )); + $criteria->add ( new Criteria ( 'story_expire', 0 ) ,'OR'); + $criteria->add ( new Criteria ( 'story_uid', $story_infos ['story_user'] ) ); $criteria->add ( new Criteria ( 'story_topic', $story_infos ['story_topic'] ) ); if(isset($story_infos ['story_subtopic'])) { foreach ($story_infos ['story_subtopic'] as $subtopic){ $criteria->add ( new Criteria ( 'story_topic', $subtopic ) ,'OR'); } } - $criteria->add ( new Criteria ( 'story_publish', time() , '<=' )); - $criteria->add ( new Criteria ( 'story_publish', 0 , '>' )); - $criteria->add ( new Criteria ( 'story_expire', time() , '>=' )); - $criteria->add ( new Criteria ( 'story_expire', 0 ) ,'OR'); - $criteria->add ( new Criteria ( 'story_uid', $story_infos ['story_user'] ) ); $criteria->setSort ( $story_infos ['story_sort'] ); $criteria->setOrder ( $story_infos ['story_order'] ); $criteria->setLimit ( $story_infos ['story_limit'] ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2011-12-19 08:31:35
|
Revision: 8524 http://xoops.svn.sourceforge.net/xoops/?rev=8524&view=rev Author: voltan1 Date: 2011-12-19 08:31:19 +0000 (Mon, 19 Dec 2011) Log Message: ----------- Add cloned news module from fmcontent Added Paths: ----------- XoopsModules/fmcontent/branches/news/ XoopsModules/fmcontent/branches/news/admin/ XoopsModules/fmcontent/branches/news/admin/about.php XoopsModules/fmcontent/branches/news/admin/action.module.php XoopsModules/fmcontent/branches/news/admin/ajax.php XoopsModules/fmcontent/branches/news/admin/article.php XoopsModules/fmcontent/branches/news/admin/backend.php XoopsModules/fmcontent/branches/news/admin/file.php XoopsModules/fmcontent/branches/news/admin/footer.php XoopsModules/fmcontent/branches/news/admin/header.php XoopsModules/fmcontent/branches/news/admin/index.html XoopsModules/fmcontent/branches/news/admin/index.php XoopsModules/fmcontent/branches/news/admin/menu.php XoopsModules/fmcontent/branches/news/admin/permissions.php XoopsModules/fmcontent/branches/news/admin/tools.php XoopsModules/fmcontent/branches/news/admin/topic.php XoopsModules/fmcontent/branches/news/ajax.php XoopsModules/fmcontent/branches/news/article.php XoopsModules/fmcontent/branches/news/blocks/ XoopsModules/fmcontent/branches/news/blocks/header.php XoopsModules/fmcontent/branches/news/blocks/index.html XoopsModules/fmcontent/branches/news/blocks/list.php XoopsModules/fmcontent/branches/news/blocks/page.php XoopsModules/fmcontent/branches/news/class/ XoopsModules/fmcontent/branches/news/class/file.php XoopsModules/fmcontent/branches/news/class/folder.php XoopsModules/fmcontent/branches/news/class/index.html XoopsModules/fmcontent/branches/news/class/perm.php XoopsModules/fmcontent/branches/news/class/registry.php XoopsModules/fmcontent/branches/news/class/story.php XoopsModules/fmcontent/branches/news/class/topic.php XoopsModules/fmcontent/branches/news/class/utils.php XoopsModules/fmcontent/branches/news/class/wideimage/ XoopsModules/fmcontent/branches/news/class/wideimage/Canvas.class.php XoopsModules/fmcontent/branches/news/class/wideimage/Dimension.class.php XoopsModules/fmcontent/branches/news/class/wideimage/Exception.class.php XoopsModules/fmcontent/branches/news/class/wideimage/FileMapperFactory.class.php XoopsModules/fmcontent/branches/news/class/wideimage/Image.class.php XoopsModules/fmcontent/branches/news/class/wideimage/OpFactory.class.php XoopsModules/fmcontent/branches/news/class/wideimage/PaletteImage.class.php XoopsModules/fmcontent/branches/news/class/wideimage/TrueColorImage.class.php XoopsModules/fmcontent/branches/news/class/wideimage/WideImage.inc.php XoopsModules/fmcontent/branches/news/class/wideimage/fonts/ XoopsModules/fmcontent/branches/news/class/wideimage/fonts/Font_GDF.class.php XoopsModules/fmcontent/branches/news/class/wideimage/fonts/Font_TTF.class.php XoopsModules/fmcontent/branches/news/class/wideimage/mappers/ XoopsModules/fmcontent/branches/news/class/wideimage/mappers/ImageFileMapper_GD.class.php XoopsModules/fmcontent/branches/news/class/wideimage/mappers/ImageFileMapper_GD2.class.php XoopsModules/fmcontent/branches/news/class/wideimage/mappers/ImageFileMapper_GIF.class.php XoopsModules/fmcontent/branches/news/class/wideimage/mappers/ImageFileMapper_JPEG.class.php XoopsModules/fmcontent/branches/news/class/wideimage/mappers/ImageFileMapper_PNG.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/ XoopsModules/fmcontent/branches/news/class/wideimage/operations/ApplyConvolution.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/ApplyFilter.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/ApplyMask.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/AsGrayscale.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/CopyChannelsPalette.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/CopyChannelsTrueColor.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/CorrectGamma.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Crop.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Flip.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/GetMask.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Merge.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Mirror.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Resize.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Rotate.class.php XoopsModules/fmcontent/branches/news/class/wideimage/operations/Unsharp.class.php XoopsModules/fmcontent/branches/news/comment_delete.php XoopsModules/fmcontent/branches/news/comment_edit.php XoopsModules/fmcontent/branches/news/comment_new.php XoopsModules/fmcontent/branches/news/comment_post.php XoopsModules/fmcontent/branches/news/comment_reply.php XoopsModules/fmcontent/branches/news/css/ XoopsModules/fmcontent/branches/news/css/admin.css XoopsModules/fmcontent/branches/news/css/blocks.css XoopsModules/fmcontent/branches/news/css/index.html XoopsModules/fmcontent/branches/news/css/jquery.wysiwyg.css XoopsModules/fmcontent/branches/news/css/legacy.css XoopsModules/fmcontent/branches/news/css/print.css XoopsModules/fmcontent/branches/news/css/style.css XoopsModules/fmcontent/branches/news/docs/ XoopsModules/fmcontent/branches/news/docs/backend.php XoopsModules/fmcontent/branches/news/docs/changelog.txt XoopsModules/fmcontent/branches/news/docs/fmcontent_changelog.txt XoopsModules/fmcontent/branches/news/docs/index.html XoopsModules/fmcontent/branches/news/docs/modules-unicode.htaccess XoopsModules/fmcontent/branches/news/docs/modules.htaccess XoopsModules/fmcontent/branches/news/docs/readme.txt XoopsModules/fmcontent/branches/news/docs/root-unicode.htaccess XoopsModules/fmcontent/branches/news/docs/root.htaccess XoopsModules/fmcontent/branches/news/header.php XoopsModules/fmcontent/branches/news/images/ XoopsModules/fmcontent/branches/news/images/admin/ XoopsModules/fmcontent/branches/news/images/admin/about.png XoopsModules/fmcontent/branches/news/images/admin/administration.png XoopsModules/fmcontent/branches/news/images/admin/category.png XoopsModules/fmcontent/branches/news/images/admin/content.png XoopsModules/fmcontent/branches/news/images/admin/file.png XoopsModules/fmcontent/branches/news/images/admin/help.png XoopsModules/fmcontent/branches/news/images/admin/home.png XoopsModules/fmcontent/branches/news/images/admin/index.html XoopsModules/fmcontent/branches/news/images/admin/permissions.png XoopsModules/fmcontent/branches/news/images/admin/xoopsmicrobutton.gif XoopsModules/fmcontent/branches/news/images/ajax.gif XoopsModules/fmcontent/branches/news/images/bookmarks/ XoopsModules/fmcontent/branches/news/images/bookmarks/balatarin.png XoopsModules/fmcontent/branches/news/images/bookmarks/blinklist.gif XoopsModules/fmcontent/branches/news/images/bookmarks/delicious.gif XoopsModules/fmcontent/branches/news/images/bookmarks/designfloat.png XoopsModules/fmcontent/branches/news/images/bookmarks/diggman.gif XoopsModules/fmcontent/branches/news/images/bookmarks/facebook_share_icon.gif XoopsModules/fmcontent/branches/news/images/bookmarks/fark.gif XoopsModules/fmcontent/branches/news/images/bookmarks/furl.gif XoopsModules/fmcontent/branches/news/images/bookmarks/google-icon.png XoopsModules/fmcontent/branches/news/images/bookmarks/google-reader-icon.png XoopsModules/fmcontent/branches/news/images/bookmarks/google_buzz_icon.png XoopsModules/fmcontent/branches/news/images/bookmarks/index.html XoopsModules/fmcontent/branches/news/images/bookmarks/mixx.png XoopsModules/fmcontent/branches/news/images/bookmarks/myspace.jpg XoopsModules/fmcontent/branches/news/images/bookmarks/newsvine.gif XoopsModules/fmcontent/branches/news/images/bookmarks/reddit.gif XoopsModules/fmcontent/branches/news/images/bookmarks/scriptandstyle.png XoopsModules/fmcontent/branches/news/images/bookmarks/simpy.png XoopsModules/fmcontent/branches/news/images/bookmarks/spurl.gif XoopsModules/fmcontent/branches/news/images/bookmarks/stumbleupon.png XoopsModules/fmcontent/branches/news/images/bookmarks/technorati.png XoopsModules/fmcontent/branches/news/images/bookmarks/twitter_share_icon.gif XoopsModules/fmcontent/branches/news/images/bookmarks/yahoomyweb.gif XoopsModules/fmcontent/branches/news/images/forum.gif XoopsModules/fmcontent/branches/news/images/icons/ XoopsModules/fmcontent/branches/news/images/icons/blank.png XoopsModules/fmcontent/branches/news/images/icons/cancel.png XoopsModules/fmcontent/branches/news/images/icons/delete.png XoopsModules/fmcontent/branches/news/images/icons/display.png XoopsModules/fmcontent/branches/news/images/icons/down.png XoopsModules/fmcontent/branches/news/images/icons/edit.png XoopsModules/fmcontent/branches/news/images/icons/file.png XoopsModules/fmcontent/branches/news/images/icons/idea.png XoopsModules/fmcontent/branches/news/images/icons/index.html XoopsModules/fmcontent/branches/news/images/icons/link.png XoopsModules/fmcontent/branches/news/images/icons/mail.png XoopsModules/fmcontent/branches/news/images/icons/news.png XoopsModules/fmcontent/branches/news/images/icons/next.png XoopsModules/fmcontent/branches/news/images/icons/off.png XoopsModules/fmcontent/branches/news/images/icons/ok.png XoopsModules/fmcontent/branches/news/images/icons/on.png XoopsModules/fmcontent/branches/news/images/icons/pdf.png XoopsModules/fmcontent/branches/news/images/icons/prev.png XoopsModules/fmcontent/branches/news/images/icons/printer.png XoopsModules/fmcontent/branches/news/images/icons/puce.png XoopsModules/fmcontent/branches/news/images/icons/section.png XoopsModules/fmcontent/branches/news/images/icons/separator.png XoopsModules/fmcontent/branches/news/images/icons/up.png XoopsModules/fmcontent/branches/news/images/icons/user.png XoopsModules/fmcontent/branches/news/images/index.html XoopsModules/fmcontent/branches/news/images/indicator.gif XoopsModules/fmcontent/branches/news/images/jquery.wysiwyg.gif XoopsModules/fmcontent/branches/news/images/logo.png XoopsModules/fmcontent/branches/news/images/minus.gif XoopsModules/fmcontent/branches/news/images/plus.gif XoopsModules/fmcontent/branches/news/images/rss.png XoopsModules/fmcontent/branches/news/images/stop.png XoopsModules/fmcontent/branches/news/include/ XoopsModules/fmcontent/branches/news/include/comment_functions.php XoopsModules/fmcontent/branches/news/include/functions.php XoopsModules/fmcontent/branches/news/include/index.html XoopsModules/fmcontent/branches/news/include/plugin.tag.php XoopsModules/fmcontent/branches/news/include/search.inc.php XoopsModules/fmcontent/branches/news/index.php XoopsModules/fmcontent/branches/news/js/ XoopsModules/fmcontent/branches/news/js/admin.js XoopsModules/fmcontent/branches/news/js/audio/ XoopsModules/fmcontent/branches/news/js/audio/audio-player-noswfobject.js XoopsModules/fmcontent/branches/news/js/audio/audio-player-uncompressed.js XoopsModules/fmcontent/branches/news/js/audio/audio-player.js XoopsModules/fmcontent/branches/news/js/audio/audio-player.swf XoopsModules/fmcontent/branches/news/js/audio/index.html XoopsModules/fmcontent/branches/news/js/index.html XoopsModules/fmcontent/branches/news/js/jeditable/ XoopsModules/fmcontent/branches/news/js/jeditable/index.html XoopsModules/fmcontent/branches/news/js/jeditable/jquery.jeditable.js XoopsModules/fmcontent/branches/news/js/jeditable/jquery.jeditable.mini.js XoopsModules/fmcontent/branches/news/js/jeditable/jquery.jeditable.wysiwyg.js XoopsModules/fmcontent/branches/news/js/jeditable/jquery.wysiwyg.js XoopsModules/fmcontent/branches/news/js/jwplayer/ XoopsModules/fmcontent/branches/news/js/jwplayer/index.html XoopsModules/fmcontent/branches/news/js/jwplayer/jwplayer.js XoopsModules/fmcontent/branches/news/js/jwplayer/license.txt XoopsModules/fmcontent/branches/news/js/jwplayer/player.swf XoopsModules/fmcontent/branches/news/js/jwplayer/swfobject.js XoopsModules/fmcontent/branches/news/js/order.js XoopsModules/fmcontent/branches/news/language/ XoopsModules/fmcontent/branches/news/language/arabic/ XoopsModules/fmcontent/branches/news/language/arabic/admin.php XoopsModules/fmcontent/branches/news/language/arabic/blocks.php XoopsModules/fmcontent/branches/news/language/arabic/help/ XoopsModules/fmcontent/branches/news/language/arabic/help/help.html XoopsModules/fmcontent/branches/news/language/arabic/help/index.html XoopsModules/fmcontent/branches/news/language/arabic/images/ XoopsModules/fmcontent/branches/news/language/arabic/images/arrow.png XoopsModules/fmcontent/branches/news/language/arabic/images/index.html XoopsModules/fmcontent/branches/news/language/arabic/images/lightbox-blank.gif XoopsModules/fmcontent/branches/news/language/arabic/images/lightbox-btn-close.gif XoopsModules/fmcontent/branches/news/language/arabic/images/lightbox-btn-next.gif XoopsModules/fmcontent/branches/news/language/arabic/images/lightbox-btn-prev.gif XoopsModules/fmcontent/branches/news/language/arabic/images/lightbox-ico-loading.gif XoopsModules/fmcontent/branches/news/language/arabic/index.html XoopsModules/fmcontent/branches/news/language/arabic/main.php XoopsModules/fmcontent/branches/news/language/arabic/modinfo.php XoopsModules/fmcontent/branches/news/language/english/ XoopsModules/fmcontent/branches/news/language/english/admin.php XoopsModules/fmcontent/branches/news/language/english/blocks.php XoopsModules/fmcontent/branches/news/language/english/help/ XoopsModules/fmcontent/branches/news/language/english/help/help.html XoopsModules/fmcontent/branches/news/language/english/help/index.html XoopsModules/fmcontent/branches/news/language/english/images/ XoopsModules/fmcontent/branches/news/language/english/images/arrow.png XoopsModules/fmcontent/branches/news/language/english/images/index.html XoopsModules/fmcontent/branches/news/language/english/images/lightbox-blank.gif XoopsModules/fmcontent/branches/news/language/english/images/lightbox-btn-close.gif XoopsModules/fmcontent/branches/news/language/english/images/lightbox-btn-next.gif XoopsModules/fmcontent/branches/news/language/english/images/lightbox-btn-prev.gif XoopsModules/fmcontent/branches/news/language/english/images/lightbox-ico-loading.gif XoopsModules/fmcontent/branches/news/language/english/index.html XoopsModules/fmcontent/branches/news/language/english/main.php XoopsModules/fmcontent/branches/news/language/english/modinfo.php XoopsModules/fmcontent/branches/news/language/index.html XoopsModules/fmcontent/branches/news/language/persian/ XoopsModules/fmcontent/branches/news/language/persian/admin.php XoopsModules/fmcontent/branches/news/language/persian/blocks.php XoopsModules/fmcontent/branches/news/language/persian/help/ XoopsModules/fmcontent/branches/news/language/persian/help/help.html XoopsModules/fmcontent/branches/news/language/persian/help/index.html XoopsModules/fmcontent/branches/news/language/persian/images/ XoopsModules/fmcontent/branches/news/language/persian/images/arrow.png XoopsModules/fmcontent/branches/news/language/persian/images/index.html XoopsModules/fmcontent/branches/news/language/persian/images/lightbox-blank.gif XoopsModules/fmcontent/branches/news/language/persian/images/lightbox-btn-close.gif XoopsModules/fmcontent/branches/news/language/persian/images/lightbox-btn-next.gif XoopsModules/fmcontent/branches/news/language/persian/images/lightbox-btn-prev.gif XoopsModules/fmcontent/branches/news/language/persian/images/lightbox-ico-loading.gif XoopsModules/fmcontent/branches/news/language/persian/index.html XoopsModules/fmcontent/branches/news/language/persian/main.php XoopsModules/fmcontent/branches/news/language/persian/modinfo.php XoopsModules/fmcontent/branches/news/list.tag.php XoopsModules/fmcontent/branches/news/pdf.php XoopsModules/fmcontent/branches/news/print.php XoopsModules/fmcontent/branches/news/rss.php XoopsModules/fmcontent/branches/news/sql/ XoopsModules/fmcontent/branches/news/sql/index.html XoopsModules/fmcontent/branches/news/sql/mysql.sql XoopsModules/fmcontent/branches/news/submit.php XoopsModules/fmcontent/branches/news/templates/ XoopsModules/fmcontent/branches/news/templates/admin/ XoopsModules/fmcontent/branches/news/templates/admin/index.html XoopsModules/fmcontent/branches/news/templates/admin/news_about.html XoopsModules/fmcontent/branches/news/templates/admin/news_article.html XoopsModules/fmcontent/branches/news/templates/admin/news_confirm.html XoopsModules/fmcontent/branches/news/templates/admin/news_file.html XoopsModules/fmcontent/branches/news/templates/admin/news_header.html XoopsModules/fmcontent/branches/news/templates/admin/news_index.html XoopsModules/fmcontent/branches/news/templates/admin/news_level.html XoopsModules/fmcontent/branches/news/templates/admin/news_permissions.html XoopsModules/fmcontent/branches/news/templates/admin/news_redirect.html XoopsModules/fmcontent/branches/news/templates/admin/news_tools.html XoopsModules/fmcontent/branches/news/templates/admin/news_topic.html XoopsModules/fmcontent/branches/news/templates/blocks/ XoopsModules/fmcontent/branches/news/templates/blocks/index.html XoopsModules/fmcontent/branches/news/templates/blocks/news_list.html XoopsModules/fmcontent/branches/news/templates/blocks/news_page.html XoopsModules/fmcontent/branches/news/templates/index.html XoopsModules/fmcontent/branches/news/templates/news_article.html XoopsModules/fmcontent/branches/news/templates/news_bookmarkme.html XoopsModules/fmcontent/branches/news/templates/news_header.html XoopsModules/fmcontent/branches/news/templates/news_index.html XoopsModules/fmcontent/branches/news/templates/news_index_default.html XoopsModules/fmcontent/branches/news/templates/news_index_list.html XoopsModules/fmcontent/branches/news/templates/news_index_news.html XoopsModules/fmcontent/branches/news/templates/news_index_photo.html XoopsModules/fmcontent/branches/news/templates/news_index_table.html XoopsModules/fmcontent/branches/news/templates/news_print.html XoopsModules/fmcontent/branches/news/templates/news_rss.html XoopsModules/fmcontent/branches/news/templates/news_topic.html XoopsModules/fmcontent/branches/news/topic.php XoopsModules/fmcontent/branches/news/view.tag.php XoopsModules/fmcontent/branches/news/xoops_version.php Added: XoopsModules/fmcontent/branches/news/admin/about.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/about.php (rev 0) +++ XoopsModules/fmcontent/branches/news/admin/about.php 2011-12-19 08:31:19 UTC (rev 8524) @@ -0,0 +1,61 @@ +<?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. +*/ + +/** + * News Admin page + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Gregory Mage (AKA Mage) + * @author Michael Beck (AKA Mamba) + * @author Hossein Azizabadi (AKA Voltan) + * @version $Id$ + */ + +require dirname(__FILE__) . '/header.php'; +if (!isset($forMods)) exit('Module not found'); +// Display Admin header +xoops_cp_header(); +// Add module stylesheet +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); + +// Add Changelog +$file = XOOPS_ROOT_PATH . "/modules/" . $forMods->getVar("dirname") . "/docs/changelog.txt"; +if (is_readable($file)) { + $xoopsTpl->assign('module_changelog', utf8_encode(implode("<br />", file($file)))); +} else { + $xoopsTpl->assign('module_changelog', 'File Not find'); +} + +$xoopsTpl->assign('navigation', 'about'); +$xoopsTpl->assign('navtitle', _NEWS_MI_ABOUT); +$xoopsTpl->assign('module_name', $forMods->getInfo("name")); +$xoopsTpl->assign('module_description', $forMods->getInfo("description")); +$xoopsTpl->assign('module_icon', $forMods->getInfo("image")); +$xoopsTpl->assign('module_version', $forMods->getInfo("version")); +$xoopsTpl->assign('module_author', $forMods->getInfo("author")); +$xoopsTpl->assign('module_credits', $forMods->getInfo("credits")); +$xoopsTpl->assign('module_license', $forMods->getInfo("license")); +$xoopsTpl->assign('module_license_url', $forMods->getInfo("license_url")); +$xoopsTpl->assign('module_release_date', $forMods->getInfo("release_date")); +$xoopsTpl->assign('module_last_update', formatTimestamp($xoopsModule->getVar("last_update"), "m")); +$xoopsTpl->assign('module_status', $forMods->getInfo("module_status")); +$xoopsTpl->assign('module_website_url', $forMods->getInfo("module_website_url")); +$xoopsTpl->assign('module_website_name', $forMods->getInfo("module_website_name")); + +// Call template file +$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_about.html'); + +include "footer.php"; +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/fmcontent/branches/news/admin/action.module.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/action.module.php (rev 0) +++ XoopsModules/fmcontent/branches/news/admin/action.module.php 2011-12-19 08:31:19 UTC (rev 8524) @@ -0,0 +1,166 @@ +<?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. +*/ + +/** + * News action script file + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Andricq Nicolas (AKA MusS) + * @author Hossein Azizabadi (AKA Voltan) + * @version $Id$ + */ +require dirname(__FILE__) . '/header.php'; +function xoops_module_pre_install_news($module) { + $db =& $GLOBALS["xoopsDB"]; + $error = false; + if (substr(XOOPS_VERSION, 0, 9) < "XOOPS 2.5") { + $module->setErrors("The module only works for XOOPS 2.5+"); + return false; + } + + $sqlfile = array('mysql' => 'sql/mysql.sql'); + + $indexFile = XOOPS_ROOT_PATH . "/uploads/index.html"; + $blankFile = XOOPS_ROOT_PATH . "/uploads/blank.gif"; + + //Creation du fichier creator dans uploads + $module_uploads = XOOPS_ROOT_PATH . "/uploads/news"; + if (!is_dir($module_uploads)) { + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/index.html"); + } + + //Creation du fichier price dans uploads + $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img"; + if (!is_dir($module_uploads)) { + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/blank.gif"); + } + + //Creation du fichier price dans uploads + $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img/original"; + if (!is_dir($module_uploads)) { + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/original/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/original/blank.gif"); + } + + //Creation du fichier price dans uploads + $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img/medium"; + if (!is_dir($module_uploads)) { + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/medium/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/medium/blank.gif"); + } + + //Creation du fichier price dans uploads + $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/img/thumb"; + if (!is_dir($module_uploads)) { + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/img/thumb/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/img/thumb/blank.gif"); + } + + //Creation du fichier price dans uploads + $module_uploads = XOOPS_ROOT_PATH . "/uploads/news/file"; + if (!is_dir($module_uploads)) { + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); + copy($indexFile, XOOPS_ROOT_PATH . "/uploads/news/file/index.html"); + copy($blankFile, XOOPS_ROOT_PATH . "/uploads/news/file/blank.gif"); + } + + if (is_array($sqlfile) && !empty($sqlfile[XOOPS_DB_TYPE])) { + $sql_file_path = XOOPS_ROOT_PATH . "/modules/news/" . $sqlfile[XOOPS_DB_TYPE]; + if (!file_exists($sql_file_path)) { + $module->setErrors("<p>" . sprintf(_NEWS_MI_SQL_NOT_FOUND, "<strong>{$sql_file_path}</strong>")); + $error = true; + } else { + $msgs[] = "<p>" . sprintf(_NEWS_MI_SQL_FOUND, "<strong>{$sql_file_path}</strong>") . "<br />" . _NEWS_MI_CREATE_TABLES; + + require_once $GLOBALS['xoops']->path('/class/database/sqlutility.php'); + $sql_query = fread(fopen($sql_file_path, 'r'), filesize($sql_file_path)); + $sql_query = trim($sql_query); + SqlUtility::splitMySqlFile($pieces, $sql_query); + $created_tables = array(); + foreach ($pieces as $piece) { + // [0] contains the prefixed query + // [4] contains unprefixed table name + $prefixed_query = SqlUtility::prefixQuery($piece, $db->prefix()); + if (!$prefixed_query) { + $module->setErrors("<p>" . sprintf(_NEWS_MI_SQL_NOT_VALID, "<strong>" . $piece . "</strong>")); + $error = true; + break; + } + + if (!isset($reservedTables)) { + $reservedTables = array(); + } + // check if the table name is reserved + if (!in_array($prefixed_query[4], $reservedTables)) { + // not reserved, so try to create one + if (!$db->query($prefixed_query[0])) { + $errs[] = $db->error(); + $error = true; + break; + } else { + if (!in_array($prefixed_query[4], $created_tables)) { + $msgs[] = " " . sprintf(_NEWS_MI_TABLE_CREATED, "<strong>" . $db->prefix($prefixed_query[4]) . "</strong>"); + $created_tables[] = $prefixed_query[4]; + } else { + $msgs[] = " " . sprintf(_NEWS_MI_INSERT_DATA, "<strong>" . $db->prefix($prefixed_query[4]) . "</strong>"); + } + } + } else { + // the table name is reserved, so halt the installation + $module->setErrors(" " . sprintf(_NEWS_MI_TABLE_RESERVED, "<strong>" . $prefixed_query[4] . "</strong>")); + $error = true; + break; + } + } + // if there was an error, delete the tables created so far, so the next installation will not fail + if ($error == true) { + foreach ($created_tables as $ct) { + $db->query("DROP TABLE " . $db->prefix($ct)); + } + return false; + } + } + return true; + } + return false; +} + +function xoops_module_update_news($module, $version) { + +} + +function xoops_module_uninstall_news($module) { + $db =& $GLOBALS["xoopsDB"]; + + //$created_tables = array(0 => 'news'); + $created_tables = array(0 => 'news_story', 1 => 'news_topic' , 2 => 'news_file'); + + foreach ($created_tables as $ct) { + $db->query("DROP TABLE " . $db->prefix($ct)); + } + return true; + +} + +?> \ No newline at end of file Added: XoopsModules/fmcontent/branches/news/admin/ajax.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/ajax.php (rev 0) +++ XoopsModules/fmcontent/branches/news/admin/ajax.php 2011-12-19 08:31:19 UTC (rev 8524) @@ -0,0 +1,47 @@ +<?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. +*/ + +/** + * News edit in place file + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Andricq Nicolas (AKA MusS) + * @author Hossein Azizabadi (AKA Voltan) + * @version $Id$ + */ + +require dirname(__FILE__) . '/header.php'; +if (!isset($forMods)) exit('Module not found'); + +error_reporting(0); +$GLOBALS['xoopsLogger']->activated = false; + +$ajax_type = news_CleanVars($_REQUEST, 'type', '', 'string'); + +switch ($ajax_type) { + case 'filter': + $value = $func = news_CleanVars($_REQUEST, 'value', '', 'string'); + echo News_Filter($value); + break; + + case 'words': + $value = $func = news_CleanVars($_REQUEST, 'value', '', 'string'); + echo News_MetaFilter($value); + break; + + case 'desc': + $value = $func = news_CleanVars($_REQUEST, 'value', '', 'string'); + echo News_AjaxFilter($value); + break; +} + +?> \ No newline at end of file Added: XoopsModules/fmcontent/branches/news/admin/article.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/article.php (rev 0) +++ XoopsModules/fmcontent/branches/news/admin/article.php 2011-12-19 08:31:19 UTC (rev 8524) @@ -0,0 +1,253 @@ +<?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. +*/ + +/** + * News Admin page + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Andricq Nicolas (AKA MusS) + * @author Hossein Azizabadi (AKA Voltan) + * @version $Id$ + */ + +require dirname(__FILE__) . '/header.php'; +if (!isset($forMods)) exit('Module not found'); +include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; + +// Display Admin header +xoops_cp_header(); +// Define default value +$op = news_CleanVars($_REQUEST, 'op', '', 'string'); +// Initialize content handler +$topic_handler = xoops_getmodulehandler('topic', 'news'); +$story_handler = xoops_getmodulehandler('story', 'news'); + +// Define scripts +$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); +$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); +$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/order.js'); +$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/admin.js'); + +// Add module stylesheet +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); + +// get module configs +$story_perpage = xoops_getModuleOption('admin_perpage', $forMods->getVar('dirname')); +$story_order = xoops_getModuleOption('admin_showorder', $forMods->getVar('dirname')); +$story_sort = xoops_getModuleOption('admin_showsort', $forMods->getVar('dirname')); + +// get user id content +if (isset($_REQUEST["user"])) { + $story_user = news_CleanVars($_REQUEST, 'user', 0, 'int'); +} else { + $story_user = null; +} + +// get limited information +if (isset($_REQUEST['limit'])) { + $story_limit = news_CleanVars($_REQUEST, 'limit', 0, 'int'); +} else { + $story_limit = $story_perpage; +} + +// get start information +if (isset($_REQUEST['start'])) { + $story_start = news_CleanVars($_REQUEST, 'start', 0, 'int'); +} else { + $story_start = 0; +} + +// get topic information +if (isset($_REQUEST['topic'])) { + $story_topic = news_CleanVars($_REQUEST, 'topic', 0, 'int'); + if ($story_topic) { + $topics = $topic_handler->getall($story_topic); + $topic_title = NewsTopicHandler::getTopicFromId ( $story_topic ); + } else { + $topics = $topic_title = _NEWS_AM_CONTENT_STATICS; + } +} else { + $story_topic = null; + $topic_title = null; + $topics = $topic_handler->getall($story_topic); +} + +switch ($op) +{ + case 'new_content': + $story_type = news_CleanVars($_REQUEST, 'story_type', 'news', 'string'); + $obj = $story_handler->create(); + $obj->getContentForm($forMods, $story_type); + break; + + case 'edit_content': + $story_id = news_CleanVars($_REQUEST, 'story_id', 0, 'int'); + if ($story_id > 0) { + $obj = $story_handler->get($story_id); + $obj->getContentForm($forMods); + } else { + News_Redirect('article.php', 1, _NEWS_AM_MSG_EDIT_ERROR); + } + break; + + case 'delete': + $story_id = news_CleanVars($_REQUEST, 'story_id', '0', 'int'); + if ($story_id > 0) { + $content = $story_handler->get($story_id); + // Prompt message + News_Message('backend.php', sprintf(_NEWS_AM_MSG_DELETE, $content->getVar('story_type') . ': "' . $content->getVar('story_title') . '"'), $story_id, 'content'); + // Display Admin footer + xoops_cp_footer(); + } + break; + + case 'order': + if (isset($_POST['mod'])) { + $i = 1; + foreach ($_POST['mod'] as $order) { + if ($order > 0) { + $contentorder = $story_handler->get($order); + $contentorder->setVar('story_order', $i); + if (!$story_handler->insert($contentorder)) { + $error = true; + } + $i++; + } + } + } + exit; + break; + + case 'expire': + + $story_infos = array( + 'topics' => $topics, + 'story_limit' => $story_limit, + 'story_topic' => $story_topic, + 'story_user' => $story_user, + 'story_start' => $story_start, + 'story_order' => $story_order, + 'story_sort' => $story_sort, + 'story_status' => 1, + 'story_static' => false, + ); + + $contents = $story_handler->getExpireContentList($forMods, $story_infos); + $story_numrows = $story_handler->getExpireContentCount($forMods, $story_infos); + + if ($story_numrows > $story_limit) { + $story_pagenav = new XoopsPageNav($story_numrows, $story_limit, $story_start, 'start', 'limit=' . $story_limit . '&op=offline'); + $story_pagenav = $story_pagenav->renderNav(4); + } else { + $story_pagenav = ''; + } + + $xoopsTpl->assign('navigation', 'content'); + $xoopsTpl->assign('navtitle', _NEWS_MI_CONTENT); + $xoopsTpl->assign('topic_title', $topic_title); + $xoopsTpl->assign('contents', $contents); + $xoopsTpl->assign('story_pagenav', $story_pagenav); + $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); + + // Call template file + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_article.html'); + + break; + + case 'offline': + + $story_infos = array( + 'topics' => $topics, + 'story_limit' => $story_limit, + 'story_topic' => $story_topic, + 'story_user' => $story_user, + 'story_start' => $story_start, + 'story_order' => $story_order, + 'story_sort' => $story_sort, + 'story_status' => 0, + 'story_static' => false, + ); + + $contents = $story_handler->getAdminContentList($forMods, $story_infos); + $story_numrows = $story_handler->getOfflineContentCount($forMods, $story_infos); + + if ($story_numrows > $story_limit) { + $story_pagenav = new XoopsPageNav($story_numrows, $story_limit, $story_start, 'start', 'limit=' . $story_limit . '&op=offline'); + $story_pagenav = $story_pagenav->renderNav(4); + } else { + $story_pagenav = ''; + } + + $xoopsTpl->assign('navigation', 'content'); + $xoopsTpl->assign('navtitle', _NEWS_MI_CONTENT); + $xoopsTpl->assign('topic_title', $topic_title); + $xoopsTpl->assign('contents', $contents); + $xoopsTpl->assign('story_pagenav', $story_pagenav); + $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); + + // Call template file + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_article.html'); + + break; + + default: + + $story_infos = array( + 'topics' => $topics, + 'story_limit' => $story_limit, + 'story_topic' => $story_topic, + 'story_user' => $story_user, + 'story_start' => $story_start, + 'story_order' => $story_order, + 'story_sort' => $story_sort, + 'story_status' => false, + 'story_static' => false, + ); + + $contents = $story_handler->getAdminContentList($forMods, $story_infos); + $story_numrows = $story_handler->getAdminContentCount($forMods, $story_infos); + + if ($story_numrows > $story_limit) { + if ($story_topic) { + $story_pagenav = new XoopsPageNav($story_numrows, $story_limit, $story_start, 'start', 'limit=' . $story_limit . '&topic=' . $story_topic); + } else { + $story_pagenav = new XoopsPageNav($story_numrows, $story_limit, $story_start, 'start', 'limit=' . $story_limit); + } + $story_pagenav = $story_pagenav->renderNav(4); + } else { + $story_pagenav = ''; + } + + $xoopsTpl->assign('navigation', 'content'); + $xoopsTpl->assign('navtitle', _NEWS_MI_CONTENT); + $xoopsTpl->assign('topic_title', $topic_title); + $xoopsTpl->assign('contents', $contents); + $xoopsTpl->assign('story_pagenav', $story_pagenav); + $xoopsTpl->assign('xoops_dirname', $forMods->getVar('dirname')); + $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); + + // Call template file + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $forMods->getVar('dirname') . '/templates/admin/news_article.html'); + + break; + +} + +// Admin Footer +include "footer.php"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/fmcontent/branches/news/admin/backend.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/backend.php (rev 0) +++ XoopsModules/fmcontent/branches/news/admin/backend.php 2011-12-19 08:31:19 UTC (rev 8524) @@ -0,0 +1,485 @@ +<?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. +*/ + +/** + * News Admin page + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Andricq Nicolas (AKA MusS) + * @author Hossein Azizabadi (AKA Voltan) + * @version $Id$ + */ + +require dirname(__FILE__) . '/header.php'; +if (! isset ( $forMods )) exit ( 'Module not found' ); + +// Define default value +$op = news_CleanVars ( $_REQUEST, 'op', 'new', 'string' ); +// Admin header +xoops_cp_header (); +// Redirect to content page +if (! isset ( $op )) { + News_Redirect ( 'index.php', 0, _NEWS_AM_MSG_WAIT ); + // Include footer + xoops_cp_footer (); + exit (); +} + +// Initialize content handler +$story_handler = xoops_getmodulehandler ( 'story', 'news' ); +$topic_handler = xoops_getmodulehandler ( 'topic', 'news' ); +$file_handler = xoops_getmodulehandler ( 'file', 'news' ); + +switch ($op) { + + case 'add_topic' : + $obj = $topic_handler->create (); + $obj->setVars ( $_REQUEST ); + + if($topic_handler->existAlias($forMods,$_REQUEST)) { + News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + xoops_cp_footer (); + exit (); + } + + $obj->setVar ( 'topic_date_created', time () ); + $obj->setVar ( 'topic_date_update', time () ); + $obj->setVar ( 'topic_weight', $topic_handler->setorder($forMods) ); + + //image + NewsUtils::uploadimg ( $forMods, 'topic_img', $obj, $_REQUEST ['topic_img'] ); + + if (! $topic_handler->insert ( $obj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + + $topic_id = $obj->db->getInsertId (); + + //permission + NewsPermission::setpermission ( $forMods, 'news_access', $_POST ['groups_view'], $topic_id, true ); + NewsPermission::setpermission ( $forMods, 'news_submit', $_POST ['groups_submit'], $topic_id, true ); + + // Redirect page + News_Redirect ( 'topic.php', 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; + + case 'edit_topic' : + $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + if ($topic_id > 0) { + + $obj = $topic_handler->get ( $topic_id ); + $obj->setVars ( $_POST ); + $obj->setVar ( 'topic_date_update', time () ); + + if($topic_handler->existAlias($forMods,$_REQUEST)) { + News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + xoops_cp_footer (); + exit (); + } + + //image + NewsUtils::uploadimg ( $forMods, 'topic_img', $obj, $_REQUEST ['topic_img'] ); + if (isset ( $_POST ['deleteimage'] ) && intval ( $_POST ['deleteimage'] ) == 1) { + NewsUtils::deleteimg ( $forMods, 'topic_img', $obj ); + } + //permission + NewsPermission::setpermission ( $forMods, 'news_access', $_POST ['groups_view'], $topic_id, false ); + NewsPermission::setpermission ( $forMods, 'news_submit', $_POST ['groups_submit'], $topic_id, false ); + + if (! $topic_handler->insert ( $obj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + } + + // Redirect page + News_Redirect ( 'topic.php', 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; + + case 'add' : + $groups = (isset ( $_POST ['story_groups'] )) ? $_POST ['story_groups'] : ''; + $groups = (is_array ( $groups )) ? implode ( " ", $groups ) : ''; + + $obj = $story_handler->create (); + $obj->setVars ( $_REQUEST ); + + if($story_handler->existAlias($forMods,$_REQUEST)) { + News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + xoops_cp_footer (); + exit (); + } + + if(!$_REQUEST ['story_default'] && $_REQUEST ['story_topic'] == 0) { + $criteria = new CriteriaCompo (); + $criteria->add ( new Criteria ( 'story_modid', $forMods->getVar ( 'mid' ) ) ); + $criteria->add ( new Criteria ( 'story_topic', 0) ); + $criteria->add ( new Criteria ( 'story_default', 1 ) ); + if(!$story_handler->getCount ( $criteria )) { + $obj->setVar ( 'story_default', '1' ); + } + } + + $obj->setVar ( 'story_order', $story_handler->setorder($forMods) ); + $obj->setVar ( 'story_next', $story_handler->setNext($forMods, $_REQUEST ['story_topic']) ); + $obj->setVar ( 'story_prev', $story_handler->setPrevious($forMods, $_REQUEST ['story_topic']) ); + $obj->setVar ( 'story_groups', $groups ); + $obj->setVar ( 'story_create', time () ); + $obj->setVar ( 'story_update', time () ); + + // Set publish and expire + if($_REQUEST ['autopublish'] && $_REQUEST ['story_publish']) { + $obj->setVar ( 'story_publish', strtotime($_REQUEST ['story_publish']['date']) + $_REQUEST ['story_publish']['time'] ); + } else { + $obj->setVar ( 'story_publish', time () ); + } + + if($_REQUEST ['autoexpire'] && $_REQUEST ['story_expire']) { + $obj->setVar ( 'story_expire', strtotime($_REQUEST ['story_expire']['date']) + $_REQUEST ['story_expire']['time'] ); + } else { + $obj->setVar ( 'story_expire', 0 ); + } + + //image + NewsUtils::uploadimg ( $forMods, 'story_img', $obj, $_REQUEST ['story_img'] ); + + $story_handler->updateposts ( $_REQUEST ['story_uid'], $_REQUEST ['story_status'], $story_action = 'add' ); + + + if (! $story_handler->insert ( $obj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + + // Reset next and previous content + $story_handler->resetNext($forMods, $_REQUEST ['story_topic'] , $obj->getVar ( 'story_id' )); + $story_handler->resetPrevious($forMods, $_REQUEST ['story_topic'] , $obj->getVar ( 'story_id' )); + + // tag + if ((xoops_getModuleOption ( 'usetag', $forMods->getVar ( 'dirname' ) )) and (is_dir ( XOOPS_ROOT_PATH . '/modules/tag' ))) { + $tag_handler = xoops_getmodulehandler ( 'tag', 'tag' ); + $tag_handler->updateByItem ( $_POST ["item_tag"], $obj->getVar ( 'story_id' ), $forMods->getVar ( "dirname" ), 0 ); + } + + // file + if($_REQUEST ['file_name']) { + $fileobj = $file_handler->create (); + $fileobj->setVar ( 'file_date', time () ); + $fileobj->setVar ( 'file_modid', $forMods->getVar ( 'mid' ) ); + $fileobj->setVar ( 'file_title', $_REQUEST ['story_title'] ); + $fileobj->setVar ( 'file_content', $obj->getVar ( 'story_id' ) ); + $fileobj->setVar ( 'file_status', 1 ); + + NewsUtils::uploadfile ( $forMods, 'file_name', $fileobj, $_REQUEST ['file_name'] ); + $story_handler->contentfile('add',$obj->getVar ( 'story_id' )); + if (! $file_handler->insert ( $fileobj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + } + + // Redirect page + News_Redirect ( 'article.php', 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; + + case 'edit' : + $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + if ($story_id > 0) { + $groups = (isset ( $_POST ['story_groups'] )) ? $_POST ['story_groups'] : ''; + $groups = (is_array ( $groups )) ? implode ( " ", $groups ) : ''; + + $obj = $story_handler->get ( $story_id ); + $obj->setVars ( $_REQUEST ); + $obj->setVar ( 'story_groups', $groups ); + $obj->setVar ( 'story_update', time () ); + + // Set publish and expire + if($_REQUEST ['autopublish'] && $_REQUEST ['story_publish']) { + $obj->setVar ( 'story_publish', strtotime($_REQUEST ['story_publish']['date']) + $_REQUEST ['story_publish']['time'] ); + } else { + $obj->setVar ( 'story_publish', $obj->getVar ( 'story_create' ) ); + } + + if($_REQUEST ['autoexpire'] && $_REQUEST ['story_expire']) { + $obj->setVar ( 'story_expire', strtotime($_REQUEST ['story_expire']['date']) + $_REQUEST ['story_expire']['time'] ); + } else { + $obj->setVar ( 'story_expire', 0 ); + } + + if($story_handler->existAlias($forMods,$_REQUEST)) { + News_Redirect ( "javascript:history.go(-1)", 3, _NEWS_AM_MSG_ALIASERROR ); + xoops_cp_footer (); + exit (); + } + + if (! isset ( $_REQUEST ['story_titleview'] )) { + $obj->setVar ( 'story_titleview', 0 ); + } + + if (! isset ( $_REQUEST ['dohtml'] )) { + $obj->setVar ( 'dohtml', 0 ); + } + + if (! isset ( $_REQUEST ['dobr'] )) { + $obj->setVar ( 'dobr', 0 ); + } + + if (! isset ( $_REQUEST ['doimage'] )) { + $obj->setVar ( 'doimage', 0 ); + } + + if (! isset ( $_REQUEST ['dosmiley'] )) { + $obj->setVar ( 'dosmiley', 0 ); + } + + if (! isset ( $_REQUEST ['doxcode'] )) { + $obj->setVar ( 'doxcode', 0 ); + } + + //image + NewsUtils::uploadimg ( $forMods, 'story_img', $obj, $_REQUEST ['story_img'] ); + if (isset ( $_POST ['deleteimage'] ) && intval ( $_POST ['deleteimage'] ) == 1) { + NewsUtils::deleteimg ( $forMods, 'story_img', $obj ); + } + + if (! $story_handler->insert ( $obj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + + //tag + if ((xoops_getModuleOption ( 'usetag', $forMods->getVar ( 'dirname' ) )) and (is_dir ( XOOPS_ROOT_PATH . '/modules/tag' ))) { + $tag_handler = xoops_getmodulehandler ( 'tag', 'tag' ); + $tag_handler->updateByItem ( $_POST ["item_tag"], $story_id, $forMods->getVar ( "dirname" ), $catid = 0 ); + } + + // file + if($_REQUEST ['file_name']) { + $fileobj = $file_handler->create (); + $fileobj->setVar ( 'file_date', time () ); + $fileobj->setVar ( 'file_modid', $forMods->getVar ( 'mid' ) ); + $fileobj->setVar ( 'file_title', $_REQUEST ['story_title'] ); + $fileobj->setVar ( 'file_content', $obj->getVar ( 'story_id' ) ); + $fileobj->setVar ( 'file_status', 1 ); + + NewsUtils::uploadfile ( $forMods, 'file_name', $fileobj, $_REQUEST ['file_name'] ); + $story_handler->contentfile('add',$obj->getVar ( 'story_id' )); + if (! $file_handler->insert ( $fileobj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + } + + } + + // Redirect page + News_Redirect ( 'article.php', 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; + + case 'add_file' : + + $obj = $file_handler->create (); + $obj->setVars ( $_REQUEST ); + $obj->setVar ( 'file_date', time () ); + + NewsUtils::uploadfile ( $forMods, 'file_name', $obj, $_REQUEST ['file_name'] ); + $story_handler->contentfile('add',$_REQUEST['file_content']); + if (! $file_handler->insert ( $obj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + + // Redirect page + News_Redirect ( 'file.php', 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; + + case 'edit_file' : + $file_id = news_CleanVars ( $_REQUEST, 'file_id', 0, 'int' ); + if ($file_id > 0) { + + $obj = $file_handler->get ( $file_id ); + $obj->setVars ( $_REQUEST ); + + if($_REQUEST['file_content'] != $_REQUEST['file_previous']) { + $story_handler->contentfile('add', $_REQUEST['file_content']); + $story_handler->contentfile('delete',$_REQUEST['file_previous']); + } + + if (! $file_handler->insert ( $obj )) { + News_Redirect ( 'onclick="javascript:history.go(-1);"', 1, _NEWS_AM_MSG_ERROR ); + xoops_cp_footer (); + exit (); + } + } + // Redirect page + News_Redirect ( 'file.php', 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; + + case 'status' : + $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + if ($story_id > 0) { + $obj = & $story_handler->get ( $story_id ); + $old = $obj->getVar ( 'story_status' ); + $story_handler->updateposts ( $obj->getVar ( 'story_uid' ), $obj->getVar ( 'story_status' ), $story_action = 'status' ); + $obj->setVar ( 'story_status', ! $old ); + if ($story_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'default' : + $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + if ($story_id > 0) { + $criteria = new CriteriaCompo (); + $criteria->add ( new Criteria ( 'story_topic', $topic_id ) ); + $story_handler->updateAll ( 'story_default', 0, $criteria ); + $obj = & $story_handler->get ( $story_id ); + $obj->setVar ( 'story_default', 1 ); + if ($story_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'important' : + $story_id = news_CleanVars ( $_REQUEST, 'story_id', 0, 'int' ); + if ($story_id > 0) { + $obj = & $story_handler->get ( $story_id ); + $old = $obj->getVar ( 'story_important' ); + $obj->setVar ( 'story_important', ! $old ); + if ($story_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'topic_asmenu' : + $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + if ($topic_id > 0) { + $obj = & $topic_handler->get ( $topic_id ); + $old = $obj->getVar ( 'topic_asmenu' ); + $obj->setVar ( 'topic_asmenu', ! $old ); + if ($topic_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'topic_online' : + $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + if ($topic_id > 0) { + $obj = & $topic_handler->get ( $topic_id ); + $old = $obj->getVar ( 'topic_online' ); + $obj->setVar ( 'topic_online', ! $old ); + if ($topic_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'topic_show' : + $topic_id = news_CleanVars ( $_REQUEST, 'topic_id', 0, 'int' ); + if ($topic_id > 0) { + $obj = & $topic_handler->get ( $topic_id ); + $old = $obj->getVar ( 'topic_show' ); + $obj->setVar ( 'topic_show', ! $old ); + if ($topic_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'file_status' : + $file_id = news_CleanVars ( $_REQUEST, 'file_id', 0, 'int' ); + if ($file_id > 0) { + $obj = & $file_handler->get ( $file_id ); + $old = $obj->getVar ( 'file_status' ); + $obj->setVar ( 'file_status', ! $old ); + if ($file_handler->insert ( $obj )) { + exit (); + } + echo $obj->getHtmlErrors (); + } + break; + + case 'delete' : + //print_r($_POST); + $id = news_CleanVars ( $_REQUEST, 'id', 0, 'int' ); + $handler = news_CleanVars ( $_REQUEST, 'handler', 0, 'string' ); + if ($id > 0 && $handler) { + switch($handler) { + case 'content': + $obj = $story_handler->get ( $id ); + $url = 'article.php'; + $story_handler->updateposts ( $obj->getVar ( 'story_uid' ), $obj->getVar ( 'story_status' ), $story_action = 'delete' ); + if (! $story_handler->delete ( $obj )) { + echo $obj->getHtmlErrors (); + } + break; + case 'topic': + $obj = $topic_handler->get ( $id ); + $url = 'topic.php'; + if (! $topic_handler->delete ( $obj )) { + echo $obj->getHtmlErrors (); + } + break; + case 'file': + $obj = $file_handler->get ( $id ); + $url = 'file.php'; + $story_handler->contentfile('delete',$obj->getVar ( 'file_content' )); + if (! $file_handler->delete ( $obj )) { + echo $obj->getHtmlErrors (); + } + break; + } + } + + // Redirect page + News_Redirect ( $url , 1, _NEWS_AM_MSG_WAIT ); + xoops_cp_footer (); + exit (); + break; +} + +// Redirect page +News_Redirect ( 'index.php', 1, _NEWS_AM_MSG_WAIT ); +// Include footer +xoops_cp_footer (); + +?> \ No newline at end of file Added: XoopsModules/fmcontent/branches/news/admin/file.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/file.php (rev 0) +++ XoopsModules/fmcontent/branches/news/admin/file.php 2011-12-19 08:31:19 UTC (rev 8524) @@ -0,0 +1,134 @@ +<?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. +*/ + +/** + * News Admin page + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Hossein Azizabadi (AKA Voltan) + * @version $Id$ + */ + +require dirname(__FILE__) . '/header.php'; +if (!isset($forMods)) exit('Module not found'); +include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; + +// Display Admin header +xoops_cp_header(); +// Define default value +$op = news_CleanVars($_REQUEST, 'op', '', 'string'); +// Initialize content handler +$file_handler = xoops_getmodulehandler('file', 'news'); +$story_handler = xoops_getmodulehandler('story', 'news'); +// Define scripts +$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); +$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); +$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/order.js'); +$xoTheme->addScript('browse.php?modules/' . $forMods->getVar('dirname') . '/js/admin.js'); +// Add module stylesheet +$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $forMods->getVar('dirname') . '/css/admin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); + +switch ($op) +{ + case 'new_file': + $obj = $file_handler->create(); + $obj->getForm($forMods); + break; + + case 'edit_file': + $file_id = news_CleanVars($_REQUEST, 'file_id', 0, 'int'); + if ($file_id > 0) { + $obj = $file_ha... [truncated message content] |
From: <wis...@us...> - 2011-12-18 20:57:36
|
Revision: 8523 http://xoops.svn.sourceforge.net/xoops/?rev=8523&view=rev Author: wishcraft Date: 2011-12-18 20:57:24 +0000 (Sun, 18 Dec 2011) Log Message: ----------- Myalbum-p 3.03 (Stable) - For XOOPS 2.5 - Categorised Gallery for XOOPS with Tagging and SEO .htaccess provided! Added Paths: ----------- XoopsModules/myalbum/branches/wishcraft/3.03/ XoopsModules/myalbum/branches/wishcraft/3.03/docs/ XoopsModules/myalbum/branches/wishcraft/3.03/docs/.htaccess XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.admission.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.batch.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.export.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.import.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.index.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.permissions.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.photomanager.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.redothumbs.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.admission.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.batch.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.export.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.import.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.index.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.permissions.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.photomanager.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.redothumbs.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/about.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admin_header.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admission.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/batch.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/dashboard.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/export.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/groupperm_global.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/import.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/index.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/menu.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/mygroupperm.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/mygrouppermform.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/photomanager.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/redothumbs.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/.htaccess.dist XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum0_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum1_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum2_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum_block_tag.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum_rphoto.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum_tophits.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/blocks/myalbum_topnews.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/cat.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/comments.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/myuploader.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/photos.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/text.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/class/votedata.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/close.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/comment_delete.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/comment_edit.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/comment_new.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/comment_post.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/comment_reply.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/changelog.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/copying.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/credits.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/install.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/lang_diff.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/licence.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/readme.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/docs/todo.txt XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/editphoto.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/header.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/asx.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/avi.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/bmp.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/default.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/doc.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/gif.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/jpg.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/mid.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/mov.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/mp3.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/mpeg.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/mpg.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/pdf.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/png.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/ram.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/rar.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/swf.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/txt.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/wav.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/wmv.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/xls.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/icons/zip.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/imagemanager.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/0.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/1.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/2.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/3.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/4.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/5.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/6.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/7.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/8.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/9.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/Thumbs.db XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/alignbigcenter.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/alignbigleft.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/alignbigright.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/aligncenter.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/alignleft.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/alignright.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/cat_add.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/cat_edit.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/clock.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/comments.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/deadlink.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/down.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/editicon.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/folder16.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/folder32.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/folder32_old.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/folder_open.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/hits.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/icon_rotate180.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/icon_rotate270.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/icon_rotate90.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/jaquette dvd.png XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/logo.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/mk_slogo.sh XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/myalbum0_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/myalbum1_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/myalbum2_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/myalbum_slogo.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/myphotos.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/newred.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/pict.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/pictadd.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/pixel_trans.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/plus.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/pop.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank0.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank1.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank2.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank3.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank4.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank5.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank6.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank7.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank8.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank9.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rank_none.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/rss.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/subcat.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/submitter.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/tellafriend.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/up.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/update.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/vote.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/images/watermark_sample.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/.htaccess XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/assign_globals.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/blocksadmin.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/comment_functions.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/draw_functions.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/functions.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/get_perms.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/gtickets.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/myalbum.forms.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/notification.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/oninstall.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/onupdate.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/photo_orders.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/preferences.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/read_configs.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/search.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/updateblock.inc.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/include/waiting.plugin.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/index.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/.htaccess XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/admin.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/blocks.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/mail_template/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/mail_template/category_newphoto_notify.tpl XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/mail_template/global_newphoto_notify.tpl XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/main.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/modinfo.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/english/myalbum_constants.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/language/index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/list.tag.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/notification_update.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/photo.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/ratephoto.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/rss.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/sql/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/sql/.htaccess XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/sql/myalbum.sql XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/sql/myalbum0.sql XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/sql/myalbum1.sql XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/sql/myalbum2.sql XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/submit.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/.htaccess XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum0_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum1_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum2_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_block_rphoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_block_tophits.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_block_tophits_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_block_topnews.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_block_topnews_p.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_tag_block_cloud.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/blocks/myalbum_tag_block_top.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_categories.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_footer.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_header.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_photo.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_rss.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_topten.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum0_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_categories.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_footer.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_header.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_photo.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_rss.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_topten.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum1_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_categories.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_footer.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_header.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_photo.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_rss.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_topten.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum2_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_categories.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_cpanel_admission.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_cpanel_batch.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_cpanel_export.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_cpanel_import.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_cpanel_permissions.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_footer.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_header.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_imagemanager.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_index.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_photo.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_photo_in_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_ratephoto.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_rss.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_topten.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_viewcat_list.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/templates/myalbum_viewcat_table.html XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/topten.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/view.tag.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/viewcat.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/xoops_version.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/sitemap/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/sitemap/plugin/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/sitemap/plugin/myalbum.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/tag/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/tag/plugin/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/tag/plugin/myalbum.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/tag/plugin/myalbum0.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/tag/plugin/myalbum1.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/tag/plugin/myalbum2.php XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/uploads/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/uploads/myalbum/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/uploads/myalbum/watermarks/ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/uploads/myalbum/watermarks/Thumbs.db XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/uploads/myalbum/watermarks/default.gif XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/uploads/myalbum/watermarks/default.ttf Added: XoopsModules/myalbum/branches/wishcraft/3.03/docs/.htaccess =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.03/docs/.htaccess (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.03/docs/.htaccess 2011-12-18 20:57:24 UTC (rev 8523) @@ -0,0 +1,29 @@ + +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/(.*?)/(.*?)/([0-9]+),([0-9]+).html modules/myalbum/photo.php?lid=$3&cid=$4 [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/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=$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=$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/(.*?)/(.*?)/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/(.*?)/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/(.*?) modules/myalbum/$1 [L,NC,QSA] + Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.admission.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.admission.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.batch.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.batch.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.export.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.export.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.import.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.photomanager.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.photomanager.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.redothumbs.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/16/myalbum.redothumbs.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.admission.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.admission.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.batch.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.batch.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.export.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.export.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.import.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.photomanager.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.photomanager.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.redothumbs.png =================================================================== (Binary files differ) Property changes on: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/Frameworks/moduleclasses/icons/32/myalbum.redothumbs.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/about.php =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/about.php (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/about.php 2011-12-18 20:57:24 UTC (rev 8523) @@ -0,0 +1,75 @@ +<?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 ('admin_header.php'); + + xoops_cp_header(); + myalbum_adminMenu(basename(__FILE__), 9); + $paypalitemno='MYALBUMP301'; + $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">'._AM_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['myalbumModule']->getVar('dirname')), strtoupper($GLOBALS['myalbumModule']->getVar('dirname')). ' '.$GLOBALS['myalbumModule']->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)); + myalbum_footer_adminMenu(); + xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admin_header.php =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admin_header.php (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admin_header.php 2011-12-18 20:57:24 UTC (rev 8523) @@ -0,0 +1,81 @@ +<?php + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + require_once (dirname(dirname(__FILE__))).'/include/functions.php'; + require_once (dirname(dirname(__FILE__))).'/include/read_configs.php'; + + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['myalbumModule'] = $module_handler->getByDirname($GLOBALS['mydirname']); + $GLOBALS['myalbumModuleConfig'] = $config_handler->getConfigList($GLOBALS['myalbumModule']->getVar('mid')); + $GLOBALS['myalbum_mid'] = $GLOBALS['myalbumModule']->getVar('mid'); + $GLOBALS['photos_dir'] = XOOPS_ROOT_PATH.$GLOBALS['myalbumModuleConfig']['myalbum_photospath']; + $GLOBALS['thumbs_dir'] = XOOPS_ROOT_PATH.$GLOBALS['myalbumModuleConfig']['myalbum_thumbspath']; + $GLOBALS['photos_url'] = XOOPS_URL.$GLOBALS['myalbumModuleConfig']['myalbum_photospath']; + $GLOBALS['thumbs_url'] = XOOPS_URL.$GLOBALS['myalbumModuleConfig']['myalbum_thumbspath']; + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'tree.php'); + + $cat_handler = xoops_getmodulehandler('cat'); + $cats = $cat_handler->getObjects(NULL, true); + $GLOBALS['cattree'] = new XoopsObjectTree( $cats , 'cid' , 'pid', 0 ) ; + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + } + + $GLOBALS['myalbumImageIcon'] = XOOPS_URL .'/'. $GLOBALS['myalbumModule']->getInfo('icons16'); + $GLOBALS['myalbumImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['myalbumModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['myalbumModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + xoops_loadLanguage('user'); + xoops_loadLanguage('admin', $mydirname); + xoops_loadLanguage('main', $mydirname); + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['myalbumImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['myalbumImageAdmin']); + + if( isset( $_GET['lid'] ) ) { + $lid = intval( $_GET['lid' ] ) ; + $result = $GLOBALS['xoopsDB']->query("SELECT submitter FROM $table_photos where lid=$lid",0); + list( $submitter ) = $GLOBALS['xoopsDB']->fetchRow( $result ) ; + } else { + $submitter = $GLOBALS['xoopsUser']->getVar('uid') ; + } + + if ($GLOBALS['myalbumModuleConfig']['tag']) { + include_once $GLOBALS['xoops']->path('modules'.DS.'tag'.DS.'include'.DS.'formtag.php'); + } + + extract($GLOBALS['myalbumModuleConfig']); + +?> \ No newline at end of file Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admission.php =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admission.php (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/admission.php 2011-12-18 20:57:24 UTC (rev 8523) @@ -0,0 +1,70 @@ +<?php +// ------------------------------------------------------------------------- // +// myAlbum-P - XOOPS photo album // +// <http://www.peak.ne.jp/> // +// ------------------------------------------------------------------------- // + +include( "admin_header.php" ) ; + +// GET vars +$pos = empty( $_GET[ 'pos' ] ) ? 0 : intval( $_GET[ 'pos' ] ) ; +$num = empty( $_GET[ 'num' ] ) ? 20 : intval( $_GET[ 'num' ] ) ; +$txt = empty( $_GET[ 'txt' ] ) ? '' : $GLOBALS['myts']->stripSlashesGPC( trim( $_GET[ 'txt' ] ) ) ; + + +if( ! empty( $_POST['action'] ) && $_POST['action'] == 'admit' && isset( $_POST['ids'] ) && is_array( $_POST['ids'] ) ) { + + $photosHandler = xoops_getmodulehandler('photos', $GLOBALS['mydirname']); + @$photosHandler->setStatus($_POST[ 'ids' ], 1); + redirect_header( 'admission.php' , 2 , _ALBM_AM_ADMITTING ) ; + exit ; + +} else if( ! empty( $_POST['action'] ) && $_POST['action'] == 'delete' && isset( $_POST['ids'] ) && is_array( $_POST['ids'] ) ) { + + // remove records + + // Double check for anti-CSRF + if( ! xoops_refcheck() ) die( "XOOPS_URL is not included in your REFERER" ) ; + + $photosHandler = xoops_getmodulehandler('photos', $GLOBALS['mydirname']); + @$photosHandler->deletePhotos($_POST[ 'ids' ]); + + redirect_header( "admission.php" , 2 , _ALBM_DELETINGPHOTO ) ; + exit ; +} + +$photosHandler = xoops_getmodulehandler('photos'); + +// extracting by free word +$criteria = new CriteriaCompo(new Criteria('`status`', '0', '<=')); +if( $txt != "" ) { + $keywords = explode( " " , $txt ) ; + foreach( $keywords as $keyword ) { + $criteria->add(new Criteria('CONCAT( l.title , l.ext )', '%'.$keyword.'%', 'LIKE'), "AND"); + } +} +xoops_cp_header(); +myalbum_adminMenu(basename(__FILE__), 3); +$GLOBALS['xoopsTpl']->assign('admin_title', sprintf(_AM_H3_FMT_ADMISSION,$xoopsModule->name())); +$GLOBALS['xoopsTpl']->assign('mydirname', $GLOBALS['mydirname']); +$GLOBALS['xoopsTpl']->assign('photos_url', $GLOBALS['photos_url']); +$GLOBALS['xoopsTpl']->assign('thumb_url', $GLOBALS['thumbs_url']); +$GLOBALS['xoopsTpl']->assign('txt', $txt); +$GLOBALS['xoopsTpl']->assign('num', $num); +$GLOBALS['xoopsTpl']->assign('pos', $pos); + +// query for listing count +$numrows = $photosHandler->getCount($criteria); +$nav = new XoopsPageNav( $numrows , $num , $pos , 'pos' , "num=$num&txt=" . urlencode($txt) ) ; +$GLOBALS['xoopsTpl']->assign('nav_html', $nav->renderNav( 10 )); + +foreach( $photosHandler->getObjects($criteria, true) as $lid => $photo) { + $GLOBALS['xoopsTpl']->append('photos', $photo->toArray()); +} + +$GLOBALS['xoopsTpl']->display('db:'.$GLOBALS['mydirname'].'_cpanel_admission.html'); + +// check $xoopsModule +myalbum_footer_adminMenu(); +xoops_cp_footer(); +?> Added: XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/batch.php =================================================================== --- XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/batch.php (rev 0) +++ XoopsModules/myalbum/branches/wishcraft/3.03/htdocs/modules/myalbum/admin/batch.php 2011-12-18 20:57:24 UTC (rev 8523) @@ -0,0 +1,138 @@ +<?php +// ------------------------------------------------------------------------- // +// myAlbum-P - XOOPS photo album // +// <http://www.peak.ne.jp/> // +// ------------------------------------------------------------------------- // + +include( "admin_header.php" ) ; + +// GPCS vars +$submitter = empty( $_POST['submitter'] ) ? $my_uid : intval( $_POST['submitter'] ) ; +if( isset( $_POST['cid'] ) ) $cid = intval( $_POST['cid'] ) ; +else if( isset( $_GET['cid'] ) ) $cid = intval( $_GET['cid'] ) ; +else $cid = 0 ; +$dir4edit = isset( $_POST['dir'] ) ? $GLOBALS['myts']->htmlSpecialChars( $_POST['dir'] ) : '' ; +$title4edit = isset( $_POST['title'] ) ? $GLOBALS['myts']->htmlSpecialChars( $_POST['title'] ) : '' ; +$desc4edit = isset( $_POST['desc'] ) ? $GLOBALS['myts']->htmlSpecialChars( $_POST['desc'] ) : '' ; + + +// reject Not Admin +if( ! $isadmin ) { + redirect_header( $mod_url , 2 , _ALBM_MUSTREGFIRST ) ; + exit ; +} + + +$catHandler = xoops_getmodulehandler('cat'); +// check Categories exist +$count = $catHandler->getCount(); +if( $count < 1 ) { + redirect_header(XOOPS_URL."/modules/$mydirname/",2,_ALBM_MUSTADDCATFIRST); + exit(); +} + +$photosHandler = xoops_getmodulehandler('photos'); +$textHandler = xoops_getmodulehandler('text'); + +if( isset( $_POST['submit'] ) && $_POST['submit'] != "" ) { + ob_start() ; + + // Check Directory + $dir = $GLOBALS['myts']->stripSlashesGPC( $_POST['dir'] ) ; + if( empty( $dir ) || ! is_dir( $dir ) ) { + if( ord( $dir ) != 0x2f ) $dir = "/$dir" ; + $prefix = XOOPS_ROOT_PATH ; + while( strlen( $prefix ) > 0 ) { + if( is_dir( "$prefix$dir" ) ) { + $dir = "$prefix$dir" ; + break ; + } + $prefix = substr( $prefix , 0 , strrpos( $prefix , '/' ) ) ; + } + if( ! is_dir( $dir ) ) { + redirect_header( 'batch.php' , 3 , _ALBM_MES_INVALIDDIRECTORY . "<br />$dir4edit" ) ; + exit ; + } + } + if( substr( $dir , -1 ) == '/' ) $dir = substr( $dir , 0 , -1 ) ; + + $title4save = $GLOBALS['myts']->htmlSpecialChars( $_POST['title'] ) ; + $desc4save = $GLOBALS['myts']->makeTareaData4Save( $_POST['desc'] ) ; + + $date = strtotime( $_POST['post_date'] ) ; + if( $date == -1 ) $date = time() ; + + $dir_h = opendir( $dir ) ; + if( $dir_h === false ) { + redirect_header( 'batch.php' , 3 , _ALBM_MES_INVALIDDIRECTORY . "<br />$dir4edit" ) ; + exit ; + } + $filecount = 1 ; + while( $file_name = readdir( $dir_h ) ) { + + // Skip '.' , '..' and hidden file + if( substr( $file_name , 0 , 1 ) == '.' ) continue ; + + $ext = substr( strrchr( $file_name , '.' ... [truncated message content] |
From: <wis...@us...> - 2011-12-18 19:23:02
|
Revision: 8522 http://xoops.svn.sourceforge.net/xoops/?rev=8522&view=rev Author: wishcraft Date: 2011-12-18 19:22:55 +0000 (Sun, 18 Dec 2011) Log Message: ----------- Xortify 2.99 (Stable) - For XOOPS 2.5 - Client for Xortify Security Cloud - Spam, Harvesting and Hacking Prevention from pre-aware honey-pots. Modified Paths: -------------- XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/providers.php Added Paths: ----------- XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png Removed Paths: ------------- XoopsModules/xortify/releases/2.99/extras/ Added: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.loader.mainfile.php =================================================================== --- XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.loader.mainfile.php 2011-12-18 18:38:48 UTC (rev 8521) +++ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.loader.mainfile.php 2011-12-18 19:22:55 UTC (rev 8522) @@ -10,7 +10,7 @@ include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); - require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xortifyModuleConfig']['xortify_api'].'.php' ); + include_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xortifyModuleConfig']['xortify_api'].'.php' ); $check = new Providers('postcheck'); ?> \ No newline at end of file Modified: XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/providers.php =================================================================== --- XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/providers.php 2011-12-18 18:38:48 UTC (rev 8521) +++ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/providers.php 2011-12-18 19:22:55 UTC (rev 8522) @@ -60,9 +60,7 @@ $config_handler = xoops_gethandler('config'); if (!isset($GLOBALS['xortifyModule'])) $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); if (is_object($GLOBALS['xortifyModule'])) { - if (!isset($GLOBALS['xortifyModuleConfig'])) $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); - } else { - $GLOBALS['xortifyModuleConfig']['fault_delay'] = 120; + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2011-12-18 18:38:55
|
Revision: 8521 http://xoops.svn.sourceforge.net/xoops/?rev=8521&view=rev Author: wishcraft Date: 2011-12-18 18:38:48 +0000 (Sun, 18 Dec 2011) Log Message: ----------- Xortify 3.03 (Stable) - Strict Mode Obeyed, Tested on SVN Copy of 2.6.0 - Client for Xortify Security Cloud - Spam, Harvesting and Hacking Prevention from pre-aware honey-pots. Modified Paths: -------------- XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php Modified: XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php 2011-12-18 18:38:48 UTC (rev 8520) +++ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php 2011-12-18 18:38:48 UTC (rev 8521) @@ -437,7 +437,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['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->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'), '', strtoupper($GLOBALS['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->getVar('name')); break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2011-12-18 18:38:54
|
Revision: 8520 http://xoops.svn.sourceforge.net/xoops/?rev=8520&view=rev Author: wishcraft Date: 2011-12-18 18:38:48 +0000 (Sun, 18 Dec 2011) Log Message: ----------- Xortify 3.03 (Stable) - Strict Mode Obeyed, Tested on SVN Copy of 2.6.0 - Client for Xortify Security Cloud - Spam, Harvesting and Hacking Prevention from pre-aware honey-pots. Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php 2011-12-18 18:07:48 UTC (rev 8519) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php 2011-12-18 18:38:48 UTC (rev 8520) @@ -437,7 +437,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['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->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'), '', strtoupper($GLOBALS['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->getVar('name')); break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2011-12-18 18:07:58
|
Revision: 8519 http://xoops.svn.sourceforge.net/xoops/?rev=8519&view=rev Author: wishcraft Date: 2011-12-18 18:07:48 +0000 (Sun, 18 Dec 2011) Log Message: ----------- Xortify 3.03 (Stable) - Strict Mode Obeyed, Tested on SVN Copy of 2.6.0 - Client for Xortify Security Cloud - Spam, Harvesting and Hacking Prevention from pre-aware honey-pots. Added Paths: ----------- XoopsModules/xortify/branch/2.6/3.03/ XoopsModules/xortify/branch/2.6/3.03/docs/ XoopsModules/xortify/branch/2.6/3.03/docs/INSTALL XoopsModules/xortify/branch/2.6/3.03/docs/UPGRADE XoopsModules/xortify/branch/2.6/3.03/docs/licence.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/ XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/ XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/system/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/system/preloads/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/system/preloads/xortify.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/json.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/log.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/cron/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/images/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/images/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/install.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/post.header.endcache.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/include/update.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/language/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/preloads/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/sql/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/admin/ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/admin/xortify_cpanel_bans.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/admin/xortify_cpanel_log.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/admin/xortify_cpanel_signup_form.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/admin/xortify_cpanel_signup_nocommunication.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/branch/2.6/3.03/docs/INSTALL =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/docs/INSTALL (rev 0) +++ XoopsModules/xortify/branch/2.6/3.03/docs/INSTALL 2011-12-18 18:07:48 UTC (rev 8519) @@ -0,0 +1,46 @@ ++-----------------------------------------------------------------------------------+ +| | +| XXX XXX OOOOO RRRRR TTTTTT IIIIII FFFFFF YYY YYY | +| XX XX OO OO RR RR TT II FF YY YY | +| XXX OO OO RRRR TT II FFFF YYYY | +| XX XX OO OO RR RR TT II FF YY | +| XXX XXX OOOOO RR RR TT IIIIII FF YY version 3.03 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.xx) | +| * Xortify Network Security Drone | +| | +| Sign up a username for Xortify.com you can do this in the module if everything | +| is working fine and there isn't any problem with the API SOAP communications. | +| | +| You will recieve an activation notice but you account will already be active. | +| | +| You will need to alter mainfile.php and do the following:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.6 Series Preloads. | +| | ++--[ Step 1 - 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 an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| 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\xortify\cron\serverup.php | +| | +| 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. | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/branch/2.6/3.03/docs/UPGRADE =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/branch/2.6/3.03/docs/UPGRADE 2011-12-18 18:07:48 UTC (rev 8519) @@ -0,0 +1,74 @@ ++-----------------------------------------------------------------------------------+ +| | +| XXX XXX OOOOO RRRRR TTTTTT IIIIII FFFFFF YYY YYY | +| XX XX OO OO RR RR TT II FF YY YY | +| XXX OO OO RRRR TT II FFFF YYYY | +| XX XX OO OO RR RR TT II FF YY | +| XXX XXX OOOOO RR RR TT IIIIII FF YY version 3.03 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.xx) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 3.03. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.6 Series Preloads. | +| | ++--[ Step 1 - 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 an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| 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\xortify\cron\serverup.php | +| | +| 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. | +| | ++--[ Step 2 - mainfile.php ]--------------------------------------------------------+ +| | +| You will need to remove the following the main file has the following code on it | +| | +| [code] | +| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { | +| include XOOPS_ROOT_PATH."/include/common.php"; | +| } | +| [/code] | +| | +| You will need to alter that to this after it is all install. | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/pre.loader.mainfile.php' ); | +| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { | +| include XOOPS_ROOT_PATH."/include/common.php"; | +| } | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.mainfile.php' ); | +| [/code] | +| | ++--[ Step 3 - footer.php ----------------------------------------------------------+ +| | +| At the bottom of footer.php remove this line without the [|] Of course. | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.footer.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/branch/2.6/3.03/docs/licence.txt =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/docs/licence.txt (rev 0) +++ XoopsModules/xortify/branch/2.6/3.03/docs/licence.txt 2011-12-18 18:07:48 UTC (rev 8519) @@ -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/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/branch/2.6/3.03/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/system/preloads/xortify.php =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/system/preloads/xortify.php (rev 0) +++ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/system/preloads/xortify.php 2011-12-18 18:07:48 UTC (rev 8519) @@ -0,0 +1,55 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class SystemXortifyPreload extends XoopsPreloadItem +{ + + static function init() { + $xoops = Xoops::getInstance(); + $module_handler = $xoops->getHandler('module'); + $config_handler = $xoops->getHandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } else { + $GLOBALS['xortifyModuleConfig']['fault_delay'] = 600; + } + XoopsLoad::load('xoopscache'); + } + + + static function eventCoreIncludeCommonEnd($args) + { + SystemXortifyPreload::init(); + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.html 2011-12-18 18:07:48 UTC (rev 8519) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/branch/2.6/3.03/htdocs/modules/xortify/admin/index.php 2011-12-18 18:07:48 UTC (rev 8519) @@ -0,0 +1,455 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include(dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + $GLOBALS['xoops'] = Xoops::getInstance(); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = $GLOBALS['xoops']->getHandler('module'); + $config_handler = $GLOBALS['xoops']->getHandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + + include_once $GLOBALS['xoops']->path('class'.DS.'cache'.DS.'xoopscache.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'pagenav.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopslists.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'tree.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsformloader.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'class'.DS.'auth'.DS.'authfactory.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo $GLOBALS['xoops']->error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['xortifyImageIcon'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons16'); + $GLOBALS['xortifyImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons32'); + + $myts = MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler = $GLOBALS['xoops']->getHandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xortifyModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + $GLOBALS['xoops']->redirect(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + $GLOBALS['xoops']->redirect(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + $GLOBALS['xoops']->loadLanguage('admin', 'xortify'); + $GLOBALS['xoops']->loadLanguage('modinfo', 'xortify'); + + $GLOBALS['xoops']->header(); + $GLOBALS['xoops']->tpl->assign('pathImageIcon', $GLOBALS['xortifyImageIcon']); + $GLOBALS['xoops']->tpl->assign('pathImageAdmin', $GLOBALS['xortifyImageAdmin']); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth = XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $myts = MyTextSanitizer::getInstance(); + $uname = isset($_POST['uname']) ? $myts->stripSlashesGPC(trim($_POST['uname'])) : ''; + $email = isset($_POST['email']) ? $myts->stripSlashesGPC(trim($_POST['email'])) : ''; + $url = isset($_POST['url']) ? $myts->stripSlashesGPC(trim($_POST['url'])) : ''; + $pass = isset($_POST['pass']) ? $myts->stripSlashesGPC(trim($_POST['pass'])) : ''; + $vpass = isset($_POST['vpass']) ? $myts->stripSlashesGPC(trim($_POST['vpass'])) : ''; + $agree = (isset($_POST['agree']) && intval($_POST['agree'])) ? 1 : 0; + + if ($agree != 1) { + $stop .= _US_UNEEDAGREE . '<br />'; + } + + $validate = $xortifyAuth->validate($uname, $email, $pass, $vpass); + + if ($validate!=false) + $stop .= "User details didn't validate with Xortify.com<br/>$validate"; + + XoopsLoad::load("captcha"); + $xoopsCaptcha = XoopsCaptcha::getInstance(); + if (! $xoopsCaptcha->verify() ) { + $stop .= $xoopsCaptcha->getMessage(); + } + + if ($stop!='') { + + echo xortify_adminMenu(2); + echo "<p align='center' style='font-size: 15px; color: #FF0000;'>$stop</p>"; + $GLOBALS['xoops'] = Xoops::getInstance(); + $xortifyAuth = XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $disclaimer = $xortifyAuth->network_disclaimer(); + if (strlen(trim($disclaimer))==0) + { + $disclaimer = _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER; + } + if ($disclaimer != _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER) { + $uname = new XoopsFormText('', "uname", 35, 128, (isset($_POST['uname'])?$_POST['uname']:'')); + $pass = new XoopsFormPassword('', "pass", 35, 128, (isset($_POST['pass'])?$_POST['pass']:'')); + $vpass = new XoopsFormPassword('', "vpass", 35, 128, (isset($_POST['vpass'])?$_POST['vpass']:'')); + $email = new XoopsFormText('', "email", 35, 128, (isset($_POST['email'])?$_POST['email']:'')); + $url = new XoopsFormText('', "url", 35, 128, (isset($_POST['url'])?$_POST['url']:'')); + $viewemail = new XoopsFormRadioYN('', "viewemail", (isset($_POST['viewemail'])?$_POST['viewemail']:false)); + $timezone = new XoopsFormSelectTimezone('', "timezone", (isset($_POST['timezone'])?$_POST['timezone']:'')); + $myts = MyTextSanitizer::getInstance(); + $disclaim = new XoopsFormLabel('', $myts->nl2br($disclaimer)); + $agree = new XoopsFormRadioYN('', "agree", false); + $captcha = new XoopsFormCaptcha('', 'xoopscaptcha', false); + $op = new XoopsFormHidden('op', 'signup'); + $fct = new XoopsFormHidden('fct', 'save'); + $submit = new XoopsFormButton('', 'submit', _XOR_FRM_REGISTER, 'submit'); + $GLOBALS['xoops']->tpl->assign('uname',$uname->render()); + $GLOBALS['xoops']->tpl->assign('pass',$pass->render()); + $GLOBALS['xoops']->tpl->assign('vpass',$vpass->render()); + $GLOBALS['xoops']->tpl->assign('email',$email->render()); + $GLOBALS['xoops']->tpl->assign('yoururl',$url->render()); + $GLOBALS['xoops']->tpl->assign('viewemail',$viewemail->render()); + $GLOBALS['xoops']->tpl->assign('timezone',$timezone->render()); + $GLOBALS['xoops']->tpl->assign('disclaimer',$disclaim->render()); + $GLOBALS['xoops']->tpl->assign('agree',$agree->render()); + $GLOBALS['xoops']->tpl->assign('captcha',$captcha->render()); + $GLOBALS['xoops']->tpl->assign('op',$op->render()); + $GLOBALS['xoops']->tpl->assign('fct',$fct->render()); + $GLOBALS['xoops']->tpl->assign('submit',$submit->render()); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_form.html'); + xortify_footer_adminMenu(); + $GLOBALS['xoops']->footer(); + exit; + } else { + $GLOBALS['xoops']->tpl->assign('protocol', $GLOBALS['xortifyModuleConfig']['protocol']); + switch($GLOBALS['xortifyModuleConfig']['protocol']) { + case 'curlserialised': + case 'wgetserialised': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_uriserial']); + break; + case 'curl': + case 'json': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urijson']); + break; + case 'curlxml': + case 'wgetxml': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urixml']); + break; + case 'soap': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urisoap']); + break; + } + $GLOBALS['xoops']->tpl->assign('error', $disclaimer); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_nocommunication.html'); + } + } else { + @$xortifyAuth->create_user( $_POST['viewemail'], $uname, $email, $url, $actkey, + $pass, $_POST['timezone'], $_POST['mailok'], $xortifyAuth->check_siteinfo(array())); + + $moduleHandler = $GLOBALS['xoops']->getHandler('module'); + $configHandler = $GLOBALS['xoops']->getHandler('config'); + $GLOBALS['xortifyModule'] = $moduleHandler->getByDirname('xortify'); + $configs = $configHandler->getConfigs(new Criteria('conf_modid', $GLOBALS['xortifyModule']->mid()) ); + foreach($configs as $id => $config) + switch($config->getVar('conf_name')) { + case 'xortify_username': + $config->setVar('conf_value', $uname); + @$configHandler->insertConfig($config); + break; + case 'xortify_password': + $config->setVar('conf_value', $pass); + @$configHandler->insertConfig($config); + break; + } + + $GLOBALS['xoops']->redirect("index.php", 4, _XOR_USERCREATED_PLEASEACTIVATE); + exit(0); + } + break; + default: + case "signup": + + echo xortify_adminMenu(4); + $GLOBALS['xoops'] = Xoops::getInstance(); + + $disclaimer = XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol'])->network_disclaimer(); + + if (strlen(trim($disclaimer))==0) + { + $disclaimer = _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER; + } + if ($disclaimer != _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER) { + + $uname = new XoopsFormText('', "uname", 35, 128, (isset($_POST['uname'])?$_POST['uname']:'')); + $pass = new XoopsFormPassword('', "pass", 35, 128, (isset($_POST['pass'])?$_POST['pass']:'')); + $vpass = new XoopsFormPassword('', "vpass", 35, 128, (isset($_POST['vpass'])?$_POST['vpass']:'')); + $email = new XoopsFormText('', "email", 35, 128, (isset($_POST['email'])?$_POST['email']:'')); + $url = new XoopsFormText('', "yoururl", 35, 128, (isset($_POST['url'])?$_POST['url']:'')); + $viewemail = new XoopsFormRadioYN('', "viewemail", (isset($_POST['viewemail'])?$_POST['viewemail']:false)); + $timezone = new XoopsFormSelectTimezone('', "timezone", (isset($_POST['timezone'])?$_POST['timezone']:'')); + $myts = MyTextSanitizer::getInstance(); + $disclaim = new XoopsFormLabel('', $myts->nl2br($disclaimer)); + $agree = new XoopsFormRadioYN('', "agree", false); + $captcha = new XoopsFormCaptcha('', 'xoopscaptcha', false); + $op = new XoopsFormHidden('op', 'signup'); + $fct = new XoopsFormHidden('fct', 'save'); + $submit = new XoopsFormButton('', 'submit', _XOR_FRM_REGISTER, 'submit'); + $GLOBALS['xoops']->tpl->assign('uname',$uname->render()); + $GLOBALS['xoops']->tpl->assign('pass',$pass->render()); + $GLOBALS['xoops']->tpl->assign('vpass',$vpass->render()); + $GLOBALS['xoops']->tpl->assign('email',$email->render()); + $GLOBALS['xoops']->tpl->assign('yoururl',$url->render()); + $GLOBALS['xoops']->tpl->assign('viewemail',$viewemail->render()); + $GLOBALS['xoops']->tpl->assign('timezone',$timezone->render()); + $GLOBALS['xoops']->tpl->assign('disclaimer',$disclaim->render()); + $GLOBALS['xoops']->tpl->assign('agree',$agree->render()); + $GLOBALS['xoops']->tpl->assign('captcha',$captcha->render()); + $GLOBALS['xoops']->tpl->assign('op',$op->render()); + $GLOBALS['xoops']->tpl->assign('fct',$fct->render()); + $GLOBALS['xoops']->tpl->assign('submit',$submit->render()); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_form.html'); + + xortify_footer_adminMenu(); + $GLOBALS['xoops']->footer(); + exit; + } else { + + $GLOBALS['xoops']->tpl->assign('protocol', $GLOBALS['xortifyModuleConfig']['protocol']); + switch($GLOBALS['xortifyModuleConfig']['protocol']) { + case 'curlserialised': + case 'wgetserialised': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_uriserial']); + break; + case 'curl': + case 'json': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urijson']); + break; + case 'curlxml': + case 'wgetxml': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urixml']); + break; + case 'soap': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urisoap']); + break; + } + $GLOBALS['xoops']->tpl->assign('error', $disclaimer); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_nocommunication.html'); + + } + break; + } + break; + case "log": + echo xortify_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $log_handler = $GLOBALS['xoops']->getModuleHandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_POST['limit'])?intval(... [truncated message content] |
From: <wis...@us...> - 2011-12-18 18:04:01
|
Revision: 8518 http://xoops.svn.sourceforge.net/xoops/?rev=8518&view=rev Author: wishcraft Date: 2011-12-18 18:03:50 +0000 (Sun, 18 Dec 2011) Log Message: ----------- Xortify 3.03 (Stable) - Strict Mode Obeyed, Tested on SVN Copy of 2.6.0 - Client for Xortify Security Cloud - Spam, Harvesting and Hacking Prevention from pre-aware honey-pots. Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/ XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/ XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/ XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_json.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_soap.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/authfactory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/curl.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/curlserialised.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/curlxml.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/json.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/log.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/soap.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/wgetserialised.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/wgetxml.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/cron/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/cron/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/cron/serverup.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/install.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/lang_diff.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/licence.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/images/accessdenied.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/images/left_both.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/images/right_both.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/images/xortify_slogo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/JSON.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/forms.objects.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/forms.xortify.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/post.header.addmeta.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/post.header.endcache.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/include/update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/ban.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/protector.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/spiders.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/plugin/xortify.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/protector/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/protector/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/providers.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/spiders/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/xortify/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/xortify/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/admin/xortify_cpanel_bans.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/admin/xortify_cpanel_log.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/admin/xortify_cpanel_signup_form.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/admin/xortify_cpanel_signup_nocommunication.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16 ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32 ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,55 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class SystemXortifyPreload extends XoopsPreloadItem +{ + + static function init() { + $xoops = Xoops::getInstance(); + $module_handler = $xoops->getHandler('module'); + $config_handler = $xoops->getHandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } else { + $GLOBALS['xortifyModuleConfig']['fault_delay'] = 600; + } + XoopsLoad::load('xoopscache'); + } + + + static function eventCoreIncludeCommonEnd($args) + { + SystemXortifyPreload::init(); + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + + } +} + +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/xortify.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.html 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,455 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include(dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + $GLOBALS['xoops'] = Xoops::getInstance(); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = $GLOBALS['xoops']->getHandler('module'); + $config_handler = $GLOBALS['xoops']->getHandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + + include_once $GLOBALS['xoops']->path('class'.DS.'cache'.DS.'xoopscache.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'pagenav.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopslists.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'tree.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsformloader.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'class'.DS.'auth'.DS.'authfactory.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo $GLOBALS['xoops']->error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['xortifyImageIcon'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons16'); + $GLOBALS['xortifyImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons32'); + + $myts = MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler = $GLOBALS['xoops']->getHandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xortifyModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + $GLOBALS['xoops']->redirect(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + $GLOBALS['xoops']->redirect(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + $GLOBALS['xoops']->loadLanguage('admin', 'xortify'); + $GLOBALS['xoops']->loadLanguage('modinfo', 'xortify'); + + $GLOBALS['xoops']->header(); + $GLOBALS['xoops']->tpl->assign('pathImageIcon', $GLOBALS['xortifyImageIcon']); + $GLOBALS['xoops']->tpl->assign('pathImageAdmin', $GLOBALS['xortifyImageAdmin']); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth = XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $myts = MyTextSanitizer::getInstance(); + $uname = isset($_POST['uname']) ? $myts->stripSlashesGPC(trim($_POST['uname'])) : ''; + $email = isset($_POST['email']) ? $myts->stripSlashesGPC(trim($_POST['email'])) : ''; + $url = isset($_POST['url']) ? $myts->stripSlashesGPC(trim($_POST['url'])) : ''; + $pass = isset($_POST['pass']) ? $myts->stripSlashesGPC(trim($_POST['pass'])) : ''; + $vpass = isset($_POST['vpass']) ? $myts->stripSlashesGPC(trim($_POST['vpass'])) : ''; + $agree = (isset($_POST['agree']) && intval($_POST['agree'])) ? 1 : 0; + + if ($agree != 1) { + $stop .= _US_UNEEDAGREE . '<br />'; + } + + $validate = $xortifyAuth->validate($uname, $email, $pass, $vpass); + + if ($validate!=false) + $stop .= "User details didn't validate with Xortify.com<br/>$validate"; + + XoopsLoad::load("captcha"); + $xoopsCaptcha = XoopsCaptcha::getInstance(); + if (! $xoopsCaptcha->verify() ) { + $stop .= $xoopsCaptcha->getMessage(); + } + + if ($stop!='') { + + echo xortify_adminMenu(2); + echo "<p align='center' style='font-size: 15px; color: #FF0000;'>$stop</p>"; + $GLOBALS['xoops'] = Xoops::getInstance(); + $xortifyAuth = XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $disclaimer = $xortifyAuth->network_disclaimer(); + if (strlen(trim($disclaimer))==0) + { + $disclaimer = _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER; + } + if ($disclaimer != _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER) { + $uname = new XoopsFormText('', "uname", 35, 128, (isset($_POST['uname'])?$_POST['uname']:'')); + $pass = new XoopsFormPassword('', "pass", 35, 128, (isset($_POST['pass'])?$_POST['pass']:'')); + $vpass = new XoopsFormPassword('', "vpass", 35, 128, (isset($_POST['vpass'])?$_POST['vpass']:'')); + $email = new XoopsFormText('', "email", 35, 128, (isset($_POST['email'])?$_POST['email']:'')); + $url = new XoopsFormText('', "url", 35, 128, (isset($_POST['url'])?$_POST['url']:'')); + $viewemail = new XoopsFormRadioYN('', "viewemail", (isset($_POST['viewemail'])?$_POST['viewemail']:false)); + $timezone = new XoopsFormSelectTimezone('', "timezone", (isset($_POST['timezone'])?$_POST['timezone']:'')); + $myts = MyTextSanitizer::getInstance(); + $disclaim = new XoopsFormLabel('', $myts->nl2br($disclaimer)); + $agree = new XoopsFormRadioYN('', "agree", false); + $captcha = new XoopsFormCaptcha('', 'xoopscaptcha', false); + $op = new XoopsFormHidden('op', 'signup'); + $fct = new XoopsFormHidden('fct', 'save'); + $submit = new XoopsFormButton('', 'submit', _XOR_FRM_REGISTER, 'submit'); + $GLOBALS['xoops']->tpl->assign('uname',$uname->render()); + $GLOBALS['xoops']->tpl->assign('pass',$pass->render()); + $GLOBALS['xoops']->tpl->assign('vpass',$vpass->render()); + $GLOBALS['xoops']->tpl->assign('email',$email->render()); + $GLOBALS['xoops']->tpl->assign('yoururl',$url->render()); + $GLOBALS['xoops']->tpl->assign('viewemail',$viewemail->render()); + $GLOBALS['xoops']->tpl->assign('timezone',$timezone->render()); + $GLOBALS['xoops']->tpl->assign('disclaimer',$disclaim->render()); + $GLOBALS['xoops']->tpl->assign('agree',$agree->render()); + $GLOBALS['xoops']->tpl->assign('captcha',$captcha->render()); + $GLOBALS['xoops']->tpl->assign('op',$op->render()); + $GLOBALS['xoops']->tpl->assign('fct',$fct->render()); + $GLOBALS['xoops']->tpl->assign('submit',$submit->render()); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_form.html'); + xortify_footer_adminMenu(); + $GLOBALS['xoops']->footer(); + exit; + } else { + $GLOBALS['xoops']->tpl->assign('protocol', $GLOBALS['xortifyModuleConfig']['protocol']); + switch($GLOBALS['xortifyModuleConfig']['protocol']) { + case 'curlserialised': + case 'wgetserialised': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_uriserial']); + break; + case 'curl': + case 'json': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urijson']); + break; + case 'curlxml': + case 'wgetxml': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urixml']); + break; + case 'soap': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urisoap']); + break; + } + $GLOBALS['xoops']->tpl->assign('error', $disclaimer); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_nocommunication.html'); + } + } else { + @$xortifyAuth->create_user( $_POST['viewemail'], $uname, $email, $url, $actkey, + $pass, $_POST['timezone'], $_POST['mailok'], $xortifyAuth->check_siteinfo(array())); + + $moduleHandler = $GLOBALS['xoops']->getHandler('module'); + $configHandler = $GLOBALS['xoops']->getHandler('config'); + $GLOBALS['xortifyModule'] = $moduleHandler->getByDirname('xortify'); + $configs = $configHandler->getConfigs(new Criteria('conf_modid', $GLOBALS['xortifyModule']->mid()) ); + foreach($configs as $id => $config) + switch($config->getVar('conf_name')) { + case 'xortify_username': + $config->setVar('conf_value', $uname); + @$configHandler->insertConfig($config); + break; + case 'xortify_password': + $config->setVar('conf_value', $pass); + @$configHandler->insertConfig($config); + break; + } + + $GLOBALS['xoops']->redirect("index.php", 4, _XOR_USERCREATED_PLEASEACTIVATE); + exit(0); + } + break; + default: + case "signup": + + echo xortify_adminMenu(4); + $GLOBALS['xoops'] = Xoops::getInstance(); + + $disclaimer = XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol'])->network_disclaimer(); + + if (strlen(trim($disclaimer))==0) + { + $disclaimer = _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER; + } + if ($disclaimer != _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER) { + + $uname = new XoopsFormText('', "uname", 35, 128, (isset($_POST['uname'])?$_POST['uname']:'')); + $pass = new XoopsFormPassword('', "pass", 35, 128, (isset($_POST['pass'])?$_POST['pass']:'')); + $vpass = new XoopsFormPassword('', "vpass", 35, 128, (isset($_POST['vpass'])?$_POST['vpass']:'')); + $email = new XoopsFormText('', "email", 35, 128, (isset($_POST['email'])?$_POST['email']:'')); + $url = new XoopsFormText('', "yoururl", 35, 128, (isset($_POST['url'])?$_POST['url']:'')); + $viewemail = new XoopsFormRadioYN('', "viewemail", (isset($_POST['viewemail'])?$_POST['viewemail']:false)); + $timezone = new XoopsFormSelectTimezone('', "timezone", (isset($_POST['timezone'])?$_POST['timezone']:'')); + $myts = MyTextSanitizer::getInstance(); + $disclaim = new XoopsFormLabel('', $myts->nl2br($disclaimer)); + $agree = new XoopsFormRadioYN('', "agree", false); + $captcha = new XoopsFormCaptcha('', 'xoopscaptcha', false); + $op = new XoopsFormHidden('op', 'signup'); + $fct = new XoopsFormHidden('fct', 'save'); + $submit = new XoopsFormButton('', 'submit', _XOR_FRM_REGISTER, 'submit'); + $GLOBALS['xoops']->tpl->assign('uname',$uname->render()); + $GLOBALS['xoops']->tpl->assign('pass',$pass->render()); + $GLOBALS['xoops']->tpl->assign('vpass',$vpass->render()); + $GLOBALS['xoops']->tpl->assign('email',$email->render()); + $GLOBALS['xoops']->tpl->assign('yoururl',$url->render()); + $GLOBALS['xoops']->tpl->assign('viewemail',$viewemail->render()); + $GLOBALS['xoops']->tpl->assign('timezone',$timezone->render()); + $GLOBALS['xoops']->tpl->assign('disclaimer',$disclaim->render()); + $GLOBALS['xoops']->tpl->assign('agree',$agree->render()); + $GLOBALS['xoops']->tpl->assign('captcha',$captcha->render()); + $GLOBALS['xoops']->tpl->assign('op',$op->render()); + $GLOBALS['xoops']->tpl->assign('fct',$fct->render()); + $GLOBALS['xoops']->tpl->assign('submit',$submit->render()); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_form.html'); + + xortify_footer_adminMenu(); + $GLOBALS['xoops']->footer(); + exit; + } else { + + $GLOBALS['xoops']->tpl->assign('protocol', $GLOBALS['xortifyModuleConfig']['protocol']); + switch($GLOBALS['xortifyModuleConfig']['protocol']) { + case 'curlserialised': + case 'wgetserialised': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_uriserial']); + break; + case 'curl': + case 'json': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urijson']); + break; + case 'curlxml': + case 'wgetxml': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urixml']); + break; + case 'soap': + $GLOBALS['xoops']->tpl->assign('port', $GLOBALS['xortifyModuleConfig']['xortify_urisoap']); + break; + } + $GLOBALS['xoops']->tpl->assign('error', $disclaimer); + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_signup_nocommunication.html'); + + } + break; + } + break; + case "log": + echo xortify_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $log_handler = $GLOBALS['xoops']->getModuleHandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_POST['limit'])?intval($_POST['limit']):30; + $start = !empty($_POST['start'])?intval($_POST['start']):0; + $order = !empty($_POST['order'])?$_POST['order']:'DESC'; + $sort = !empty($_POST['sort'])?''.$_POST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xoops']->tpl->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xoops']->tpl->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xoops']->tpl->append('log', $log->toArray()); + } + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_log.html'); + + break; + case "list": + + echo xortify_adminMenu(2); + + XoopsLoad::load("xoopscache"); + if (!class_exists('XoopsCache')) + XoopsLoad::load("cache"); + XoopsLoad::load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xortifyModuleConfig']['protocol'].'.php' ); + + $func = strtoupper($GLOBALS['xortifyModuleConfig']['protocol']).'XortifyExchange'; + + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xortifyModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xortifyModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xoops']->tpl->assign('pagenav', $pagenav->renderNav()); + $i=0; + $num=0; + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xoops']->tpl->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + $GLOBALS['xoops']->tpl->display('admin:xortify|xortify_cpanel_bans.html'); + } + + + break; + case "dashboard": + default: + + echo xortify_adminMenu(1); + + $log_handler = $GLOBALS['xoops']->getModuleHandler('log', 'xortify'); + + $indexAdmin = new ModuleAdmin(); + + $indexAdmin->addInfoBox(_XOR_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_BANNED."</label>", $log_handler->getCountByField('action','banned'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_BLOCKED."</label>", $log_handler->getCountByField('action','blocked'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_MONITORED."</label>", $log_handler->getCountByField('action','monitored'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_PROJECTHONEYPOTORG."</label>", $log_handler->getCountByField('provider','projecthoneypot.org'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_PROTECTOR."</label>", $log_handler->getCountByField('provider','protector'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_SPIDERS."</label>", $log_handler->getCountByField('provider','spiders'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_STOPFORUMSPAMCOM."</label>", $log_handler->getCountByField('provider','stopforumspam.com'), 'Green'); + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_XORTIFY."</label>", $log_handler->getCountByField('provider','xortify'), 'Green'); + + XoopsLoad::load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + XoopsLoad::load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.DS.'class'.DS.'cache'.DS.'xoopscache.php'; + } + } + + if ($bans = XoopsCache::read('xortify_bans_cache')) { + $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_CLOUDEDBANS."</label>", count($bans), 'Green'); + } + + echo $indexAdmin->renderIndex(); + + break; + case "about": + + echo xortify_adminMenu(5); + + $paypalitemno='XORTIFY302'; + $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">'._XOR_ADMIN_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>', + 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['xortifyModule']->getVar('dirname')), strtoupper($GLOBALS['xortifyModule']->getVar('dirname')). ' '.$GLOBALS['xortifyModule']->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)); + break; + } + + xortify_footer_adminMenu(); + $GLOBALS['xoops']->footer(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/menu.php 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,39 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ +global $xortifyModule, $xortifyImageAdmin; +$xoops = Xoops::getInstance(); +$module_handler = $xoops->getHandler('module'); +$xortifyModule = $module_handler->getByDirname('xortify'); +global $adminmenu; +$adminmenu = array(); +if (is_object($GLOBALS['xortifyModule'])) { + $xortifyImageAdmin = $xortifyModule->getInfo('icons32'); + $adminmenu[1]['title'] = _XOR_ADMENU4; + $adminmenu[1]['icon'] = '../../'.$xortifyImageAdmin.'/home.png'; + $adminmenu[1]['image'] = '../../'.$xortifyImageAdmin.'/home.png'; + $adminmenu[1]['link'] = "admin/index.php?op=dashboard"; + $adminmenu[2]['title'] = _XOR_ADMENU1; + $adminmenu[2]['icon'] = '../../'.$xortifyImageAdmin.'/current.bans.png'; + $adminmenu[2]['image'] = '../../'.$xortifyImageAdmin.'/current.bans.png'; + $adminmenu[2]['link'] = "admin/index.php?op=list&fct=bans"; + $adminmenu[3]['title'] = _XOR_ADMENU3; + $adminmenu[3]['icon'] = '../../'.$xortifyImageAdmin.'/xortify.log.png'; + $adminmenu[3]['image'] = '../../'.$xortifyImageAdmin.'/xortify.log.png'; + $adminmenu[3]['link'] = "admin/index.php?op=log"; + $adminmenu[4]['title'] = _XOR_ADMENU2; + $adminmenu[4]['icon'] = '../../'.$xortifyImageAdmin.'/access.list.png'; + $adminmenu[4]['image'] = '../../'.$xortifyImageAdmin.'/access.list.png'; + $adminmenu[4]['link'] = "admin/index.php?op=signup&fct=signup"; + $adminmenu[5]['title'] = _XOR_ADMENU5; + $adminmenu[5]['icon'] = '../../'.$xortifyImageAdmin.'/about.png'; + $adminmenu[5]['image'] = '../../'.$xortifyImageAdmin.'/about.png'; + $adminmenu[5]['link'] = "admin/index.php?op=about"; +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/admin/menu.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth.php 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuth { + + var $_dao; + + var $_errors; + /** + * Authentication Service constructor + */ + function XortifyAuth (&$dao){ + $this->_dao = $dao; + } + + /** + * @abstract need to be write in the dervied class + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + + return $authenticated; + } + + /** + * add an error + * + * @param string $value error to add + * @access protected + */ + function setErrors($err_no, $err_str) + { + $this->_errors[$err_no] = trim($err_str); + } + + /** + * return the errors for this object as an array + * + * @return array an array of errors + * @access protected + */ + function getErrors() + { + return $this->_errors; + } + + /** + * return the errors for this object as html + * + * @return string html listing the errors + * @access protected + */ + function getHtmlErrors() + { + global $xoopsConfig; + $ret = '<br>'; + if ( $xoopsConfig['debug_mode'] == 1 || $xoopsConfig['debug_mode'] == 2 ) + { + if (!empty($this->_errors)) { + foreach ($this->_errors as $errno => $errstr) { + $ret .= $errstr . '<br/>'; + } + } else { + $ret .= _NONE.'<br />'; + } + $ret .= sprintf(_AUTH_MSG_AUTH_METHOD, $this->auth_method); + } + else { + $ret .= _US_INCORRECTLOGIN; + } + return $ret; + } + + /** + * checks for variables require in siteinfo package in the auth library + * + * @param array $siteinfo + * + * @return array $siteinfo + * @access protected + */ + function check_siteinfo($siteinfo){ + + global $xoopsConfig; + if (!isset($siteinfo)||empty($siteinfo)||!is_array($siteinfo)){ + $siteinfo = array(); + $siteinfo['sitename'] = $xoopsConfig['sitename']; + $siteinfo['adminmail'] = $xoopsConfig['adminmail']; + $siteinfo['systemkey'] = XOOPS_LICENSE_KEY; + $siteinfo['xoops_url'] = XOOPS_URL; + } + + if (!isset($siteinfo['sitename'])||empty($siteinfo['sitename'])) + $siteinfo['sitename'] = $xoopsConfig['sitename']; + + if (!isset($siteinfo['adminmail'])||empty($siteinfo['adminmail'])) + $siteinfo['adminmail'] = $xoopsConfig['adminmail']; + + if (!isset($siteinfo['xoops_url'])||empty($siteinfo['xoops_url'])) + $siteinfo['xoops_url'] = XOOPS_URL; + + if (!isset($siteinfo['systemkey'])||empty($siteinfo['systemkey'])) + $siteinfo['systemkey'] = $xoopsConfig['systemkey']; + + return $siteinfo; + } +} + + +?> Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl.php 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,186 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +if (!function_exists('json_encode')){ + function json_encode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->encode($data); + } +} + +if (!function_exists('json_decode')){ + function json_decode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->decode($data); + } +} + + +define('XORTIFY_CURL_API', $GLOBALS['xortifyModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.XORTIFY_CURL_API); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $GLOBALS['xortifyModuleConfig']['curl_connecttimeout']*2); + curl_setopt($ch, CURLOPT_TIMEOUT, $GLOBALS['xortifyModuleConfig']['curl_timeout']*2); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client = $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + /** + * create a user + * + * @param bool $user_viewemail + * @param string $uname + * @param string $email + * @param string $url + * @param string $actkey + * @param string $pass + * @param integer $timezone_offset + * @param bool $user_mailok + * @param array $siteinfo + * + * @return array + */ + function create_user($user_viewemail, $uname, $email, $url, $actkey, + $pass, $timezone_offset, $user_mailok, $siteinfo){ + + $siteinfo = $this->check_siteinfo($siteinfo); + + $rnd = rand(-100000, 100000000); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "user" => array('user_viewemail' =>$user_viewemail, 'uname' => $uname, 'email' => $email, 'url' => $url, 'actkey' => $actkey, 'pass' => $pass, 'timezone_offset' => $timezone_offset, 'user_mailok' => $user_mailok, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd), "siteinfo" => $siteinfo))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-12-18 18:03:50 UTC (rev 8518) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuthCurlProvisionning { + + var $_auth_instance; + + function &getInstance(&$auth_instance) + { + static $provis_instance; + if (!isset($provis_instance)) { + $provis_instance = new XortifyAuthCurlProvisionning($auth_instance); + } + return $provis_instance; + } + + /** + * Authentication Service constructor + */ + function XortifyAuthCurlProvisionning (&$auth_instance) { + $this->_auth_instance = &$auth_instance; + $config_handler = $GLOBALS['xoops']->getHandler('config'); + $config = $config_handler->getConfigsByCat(XOOPS_CONF_AUTH); + foreach ($config as $key => $val) { + $this->$key = $val; + } + $config_gen = $config_handler->getConfigsByCat(XOOPS_CONF); + $this->default_TZ = $config_gen['default_TZ']; + $this->theme_set = $config_gen['theme_set']; + $this->com_mode = $config_gen['com_mode']; + $this->com_order = $config_gen['com_order']; + } + + /** + * Return a Xortify User Object + * + * @return XortifyUser or false + */ + function getXortifyUser($uname) { + $member_handler = $GLOBALS['xoops']->getHandler('member'); + $criteria = new Criteria('uname', $uname); + $getuser = $member_handler->getUsers($criteria); + if (count($getuser) == 1) + return $getuser[0]; + else return false; + } + + /** + * Launch the synchronisation process + * + * @return bool + */ + function sync($datas, $uname, $pwd = null) { + $xoopsUser = $this->getXortifyUser($uname); + if (!$xoopsUser) { // Xortify User Database not exists + if ($this->curl_provisionning) { + $xoopsUser = $this->add($datas, $uname, $pwd); + } else $this->_auth_instance->setErrors(0, sprintf(_AUTH_LDAP_XOOPS_USER_NOTFOUND, $uname)); + } else { // Xortify User Database exists + + } + return $xoopsUser; + } + + /** + * Add a new user to the system + * + * @return bool + */ + function add($datas, $uname, $pwd = null) { + $ret = false; + $member_handler = $GLOBALS['xoops']->getHandler('member'); + // Create XOOPS Database User + $newuser = $member_handler->createUser(); + $newuser->setVar('uname', $uname); + $newuser->setVar('pass', md5(stripslashes($pwd))); + $newuser->setVar('email', $datas['email']); + $newuser->setVar('rank', 0); + $newuser->setVar('level', 1); + $newuser->setVar('timezone_offset', $this->default_TZ); + $newuser->setVar('theme', $this->theme_set); + $newuser->setVar('umode', $this->com_mode); + $newuser->setVar('uorder', $this->com_order); + if ($this->curl_provisionning) + $tab_mapping = explode('|', $this->curl_field_mapping); + else + $tab_mapping = explode('|', $this->ldap_field_mapping); + + foreach ($tab_mapping as $mapping) { + $fields = explode('=', trim($mapping)); + if ($fields[0] && $fields[1]) + $newuser->setVar(trim($fields[0]), utf8_decode($datas[trim($fields[1])])); + } + if ($member_handler->insertUser($newuser)) { + } + if ($member_handler->insertUser($newuser)) { + foreach ($this->curl_provisionning_group as $groupid) + $member_handler->addUserToGroup($groupid, $newuser->getVar('uid')); + $newuser->unsetNew(); + return $newuser; + } else $GLOBALS['xoops']->redirect(XOOPS_URL.'/user.php', 5, $newuser->getHtmlErrors()); + + $newuser->unsetNew(); + return $newuser; + //else $GLOBALS['xoops']->redirect(XOOPS_URL.'/user.php', 5, $newuser->getHtmlErrors()); + return $ret; + } + + /** + * Modify user information + * + * @return bool + */ + function change(&$xoopsUser, $datas, $uname, $pwd = null) { + $ret = false; + $member_handler = $GLOBALS['xoops']->getHandler('member'); + $xoopsUser->setVar('pass', md5(stripslashes($pwd))); + $tab_mapping = explode('|', $this->ldap_field_mapping); + foreach ($tab_mapping as $mapping) { + $fields = explode('=', trim($mapping)); + if ($fields[0] && $fields[1]) + $xoopsUser->setVar(trim($fields[0]), utf8_decode($datas[trim($fields[1])][0])); + } + if ($member_handler->insertUser($xoopsUser)) { + return $xoopsUser; + } else $GLOBALS['xoops']->redirect(XOOPS_URL.'/user.php', 5, $xoopsUser->getHtmlErrors()); + return $ret; + } + + function change_curl(&$xoopsUser, $datas, $uname, $pwd = null) { + $ret = false; + $member_handler = $GLOBALS['xoops']->getHandler('member'); + $xoopsU... [truncated message content] |
From: <ma...@us...> - 2011-12-18 17:18:54
|
Revision: 8517 http://xoops.svn.sourceforge.net/xoops/?rev=8517&view=rev Author: mageg Date: 2011-12-18 17:18:48 +0000 (Sun, 18 Dec 2011) Log Message: ----------- move images/banners to uploads/banners (TODO Do not forget to make changes in the package update) Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/ XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/banner.swf XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/blank.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/xoops_banner_2.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/xoops_flashbanner2.swf Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/images/banners/ Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php 2011-12-17 19:47:55 UTC (rev 8516) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php 2011-12-18 17:18:48 UTC (rev 8517) @@ -54,7 +54,7 @@ // Writable files and directories $configs['writable'] = - array('uploads/', 'uploads/avatars/', 'uploads/images/', 'uploads/ranks/', 'uploads/smilies/', 'mainfile.php'); + array('uploads/', 'uploads/avatars/', 'uploads/images/', 'uploads/ranks/', 'uploads/smilies/', 'uploads/banners/', 'mainfile.php'); // Modules to be installed by default $configs['modules'] = array(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2011-12-17 19:47:55 UTC (rev 8516) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2011-12-18 17:18:48 UTC (rev 8517) @@ -73,9 +73,9 @@ $dbm->insert("group_permission", " VALUES(0," . $gruops['XOOPS_GROUP_ADMIN'] . ",16,1,'system_admin')"); $dbm->insert("group_permission", " VALUES(0," . $gruops['XOOPS_GROUP_ADMIN'] . ",17,1,'system_admin')"); // data for table 'banner' - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date, htmlcode) VALUES (1, 1, 0, 1, 0, '" . XOOPS_URL . "/images/banners/xoops_flashbanner2.swf', 'http://www.xoops.org/', 1008813250, '')"); - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date, htmlcode) VALUES (2, 1, 0, 1, 0, '" . XOOPS_URL . "/images/banners/xoops_banner_2.gif', 'http://www.xoops.org/', 1008813250, '')"); - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date, htmlcode) VALUES (3, 1, 0, 1, 0, '" . XOOPS_URL . "/images/banners/banner.swf', 'http://www.xoops.org/', 1008813250, '')"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date, htmlcode) VALUES (1, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/xoops_flashbanner2.swf', 'http://www.xoops.org/', 1008813250, '')"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date, htmlcode) VALUES (2, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/xoops_banner_2.gif', 'http://www.xoops.org/', 1008813250, '')"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date, htmlcode) VALUES (3, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/banner.swf', 'http://www.xoops.org/', 1008813250, '')"); // default theme $time = time(); $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Default Template Set', '', " . $time . ")"); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/banner.swf =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/banner.swf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/blank.gif =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/blank.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/index.html 2011-12-18 17:18:48 UTC (rev 8517) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/xoops_banner_2.gif =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/xoops_banner_2.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/xoops_flashbanner2.swf =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/uploads/banners/xoops_flashbanner2.swf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |