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: <dj...@us...> - 2011-12-26 22:16:52
|
Revision: 8569 http://xoops.svn.sourceforge.net/xoops/?rev=8569&view=rev Author: djculex Date: 2011-12-26 22:16:45 +0000 (Mon, 26 Dec 2011) Log Message: ----------- Adjusted get avg rating for users and Added worst rated users Modified Paths: -------------- XoopsModules/smallworld/trunk/include/functions.php XoopsModules/smallworld/trunk/language/english/main.php XoopsModules/smallworld/trunk/stats.php XoopsModules/smallworld/trunk/templates/getStat.html Modified: XoopsModules/smallworld/trunk/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/include/functions.php 2011-12-26 21:52:48 UTC (rev 8568) +++ XoopsModules/smallworld/trunk/include/functions.php 2011-12-26 22:16:45 UTC (rev 8569) @@ -494,21 +494,27 @@ return $msg; } -function SmallworldGetAvgRating($uid) { - global $xoopsDB; - $sql = " SELECT - (SELECT count(up) FROM xoops_smallworld_vote WHERE owner = '".intval($uid)."' and up = '1' GROUP BY owner) - - - (SELECT count(down) FROM xoops_smallworld_vote WHERE owner = '".intval($uid)."' and down = '1' GROUP BY owner) - AS TOTAL"; +// Find worst rated users overall +function worstratedusers() { + global $xoopsUser, $xoopsDB; + $array = array(); + $counter = 1; + $sql = "SELECT owner, ("; + $sql .= "sum( up ) - sum( down )"; + $sql .= ") AS total"; + $sql .= " FROM ".$xoopsDB->prefix('smallworld_vote').""; + $sql .= " GROUP BY owner ORDER by total ASC LIMIT 5"; $result = $xoopsDB->queryF($sql); - while ($r = $xoopsDB->fetchArray($result)) { - $avg = $r['TOTAL']; + while ($row = $xoopsDB->fetchArray($result)) { + $array[$counter]['counter'] = $counter; + $array[$counter]['img'] = smallworld_getAvatarLink ($row["owner"], Gravatar($row["owner"])); + $array[$counter]['user'] = $xoopsUser->getUnameFromId($row["owner"]); + $array[$counter]['rating'] = $row["total"]; + $array[$counter]['user_link'] = "<a href = '".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$array[$counter]['user']."'>"; + $array[$counter]['user_link'] .= $array[$counter]['user']." (".$array[$counter]['rating'].")</a>"; + $counter++; } - if ($avg < 0) { $avg = "-".$avg;} - if ($avg == 0) { $avg = 0;} - if ($avg > 0) { $avg = "+".$avg;} - return $avg; + return $array; } // Find best rated users overall @@ -516,14 +522,17 @@ global $xoopsUser, $xoopsDB; $array = array(); $counter = 1; - $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where up='1' GROUP by owner ORDER BY cnt DESC limit 5"; + $sql = "SELECT owner, ("; + $sql .= "sum( up ) - sum( down )"; + $sql .= ") AS total"; + $sql .= " FROM ".$xoopsDB->prefix('smallworld_vote').""; + $sql .= " GROUP BY owner ORDER by total DESC LIMIT 5"; $result = $xoopsDB->queryF($sql); while ($row = $xoopsDB->fetchArray($result)) { $array[$counter]['counter'] = $counter; $array[$counter]['img'] = smallworld_getAvatarLink ($row["owner"], Gravatar($row["owner"])); - $array[$counter]['cnt'] = $row['cnt']; $array[$counter]['user'] = $xoopsUser->getUnameFromId($row["owner"]); - $array[$counter]['rating'] = SmallworldGetAvgRating($row["owner"]); + $array[$counter]['rating'] = $row["total"]; $array[$counter]['user_link'] = "<a href = '".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$array[$counter]['user']."'>"; $array[$counter]['user_link'] .= $array[$counter]['user']." (".$array[$counter]['rating'].")</a>"; $counter++; Modified: XoopsModules/smallworld/trunk/language/english/main.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/main.php 2011-12-26 21:52:48 UTC (rev 8568) +++ XoopsModules/smallworld/trunk/language/english/main.php 2011-12-26 22:16:45 UTC (rev 8569) @@ -353,6 +353,7 @@ define("_SMALLWORLD_STATS_NEWESTUSERS","Newest users"); define("_SMALLWORLD_STATS_MOSTACTUSERS","Most active users"); define("_SMALLWORLD_STATS_BESTRATEDUSERS","Best Rated users"); +define("_SMALLWORLD_STATS_WORSTRATEDUSERS","Worst rated users"); define("_SMALLWORLD_STATS_NOBDAYSTODAY","No birthdays today................"); define("_SMALLWORLD_STATS_BDAYSTODAY","Todays Birthdays"); define("_SMALLWORLD_STATS_LIKETHISMODULE","Like this module ???"); Modified: XoopsModules/smallworld/trunk/stats.php =================================================================== --- XoopsModules/smallworld/trunk/stats.php 2011-12-26 21:52:48 UTC (rev 8568) +++ XoopsModules/smallworld/trunk/stats.php 2011-12-26 22:16:45 UTC (rev 8569) @@ -27,11 +27,13 @@ $newusers = smallworld_Stats_newest (); $m_a_users = mostactiveusers_allround(); $br_users = topratedusers(); +$wo_users = worstratedusers(); $birth = smallworld_nextBirthdays (); $sp = smallworld_sp (); $tpl->assign('newusers',$newusers); $tpl->assign('mostactiveU',$m_a_users); $tpl->assign('bestratedU',$br_users); +$tpl->assign('worstratedU',$wo_users); $tpl->assign('sp',$sp); if (!empty($birth)) { Modified: XoopsModules/smallworld/trunk/templates/getStat.html =================================================================== --- XoopsModules/smallworld/trunk/templates/getStat.html 2011-12-26 21:52:48 UTC (rev 8568) +++ XoopsModules/smallworld/trunk/templates/getStat.html 2011-12-26 22:16:45 UTC (rev 8569) @@ -24,6 +24,14 @@ <{/foreach}> </li> + <li> + <span id ="smallworld_Stats_title"><{$smarty.const._SMALLWORLD_STATS_WORSTRATEDUSERS}></span> + <{foreach item=wru from=$worstratedU}> + <span id = "smallworld_stats_img"><img src="<{$wru.img}>" height="30px" width="30px" /></span> + <span id = "smallworld_stats_text"><{$wru.user_link}> </span> + <{/foreach}> + </li> + <{foreach item=bu from=$birthdays}> <{if $birthdays != 0}> <li> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2011-12-28 03:31:07
|
Revision: 8606 http://xoops.svn.sourceforge.net/xoops/?rev=8606&view=rev Author: djculex Date: 2011-12-28 03:31:01 +0000 (Wed, 28 Dec 2011) Log Message: ----------- Fix: visitor avatar not showing correct when commenting in userprofile.php Modified Paths: -------------- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html XoopsModules/smallworld/trunk/userprofile.php Modified: XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html 2011-12-28 02:13:38 UTC (rev 8605) +++ XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html 2011-12-28 03:31:01 UTC (rev 8606) @@ -257,7 +257,7 @@ <div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'> <div class="smallworld_stcommentimg"> - <img src="<{$myavatarlink}>" class='smallworld_small_face'/> + <img src="<{$visitoravatarlink}>" class='smallworld_small_face'/> </div> <div class="smallworld_stcommenttext" > <form method="post" action=""> Modified: XoopsModules/smallworld/trunk/userprofile.php =================================================================== --- XoopsModules/smallworld/trunk/userprofile.php 2011-12-28 02:13:38 UTC (rev 8605) +++ XoopsModules/smallworld/trunk/userprofile.php 2011-12-28 03:31:01 UTC (rev 8606) @@ -89,8 +89,10 @@ // Things to do with wall $Wall = new Wall_Updates(); - $myavatar = $Wall->Gravatar($id); - $myavatarlink = smallworld_getAvatarLink($id, $myavatar); + $myavatar = $Wall->Gravatar($id); //profile owners data + $myavatarlink = smallworld_getAvatarLink($id, $myavatar); //profile owners data + $visitorAvatar = $Wall->Gravatar($yourid); + $visitorAvatarlink = smallworld_getAvatarLink($yourid, $visitorAvatar); // Follow array here $followers = $Wall->getFollowers($id); @@ -182,6 +184,8 @@ $xoopsTpl->assign('friendinvitations',$getInvitations); $xoopsTpl->assign('myavatar',$myavatar); $xoopsTpl->assign('myavatarlink',$myavatarlink); + $xoopsTpl->assign('visitoravatar',$visitorAvatar); + $xoopsTpl->assign('visitoravatarlink',$visitorAvatarlink); $xoopsTpl->assign('myusername',$username); $xoopsTpl->assign('username',$Xusername); $xoopsTpl->assign('bdaynow',$birthday_today_text); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-11 18:06:24
|
Revision: 8698 http://xoops.svn.sourceforge.net/xoops/?rev=8698&view=rev Author: djculex Date: 2012-01-11 18:06:13 +0000 (Wed, 11 Jan 2012) Log Message: ----------- Adjusting admin Modified Paths: -------------- XoopsModules/smallworld/trunk/admin/menu.php XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/language/english/main.php XoopsModules/smallworld/trunk/language/english/modinfo.php XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/admin/menu.php 2012-01-11 08:48:09 UTC (rev 8697) +++ XoopsModules/smallworld/trunk/admin/menu.php 2012-01-11 18:06:13 UTC (rev 8698) @@ -14,7 +14,33 @@ * @since 1.0.0 * @author Culex - homepage.: http://culex.dk & email.: cu...@cu... **/ +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); -$adminmenu[1]['title'] = _MI_SMALLWORLD_ADMENU; -$adminmenu[1]['link'] = 'admin/index.php'; +$i = 1; +$adminmenu[$i]['title'] = _MI_SMALLWORLD_ADMENU; +$adminmenu[$i]['link'] = 'admin/index.php#smallworldadmin_tab1'; +$adminmenu[$i]['icon'] = $pathIcon32."/home.png"; + +$i++; +$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; +$adminmenu[$i]['link'] = "admin/index.php#smallworldadmin_tab5"; +$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; + +$i++; +$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_USERADMIN; +$adminmenu[$i]['link'] = "admin/index.php#smallworldadmin_tab3"; +$adminmenu[$i]['icon'] = $pathIcon32."/administration.png"; + +$i++; +$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_STATS; +$adminmenu[$i]['link'] = "admin/index.php#smallworldadmin_tab2"; +$adminmenu[$i]['icon'] = $pathIcon32."/stats.png"; + +$i++; +$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i]['icon'] = $pathIcon32."/about.png"; ?> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/index.php =================================================================== --- XoopsModules/smallworld/trunk/index.php 2012-01-11 08:48:09 UTC (rev 8697) +++ XoopsModules/smallworld/trunk/index.php 2012-01-11 18:06:13 UTC (rev 8698) @@ -68,6 +68,7 @@ $wm['msg_id'] = $data['msg_id']; $wm['orimessage'] = str_replace(array("\r", "\n"), '',stripWordsKeepUrl($data['message'])); $wm['message'] = smallworld_tolink(htmlentities($data['message'])); + $wm['message'] = str_replace(array('<','>'),array('<','>'), $wm['message']); $wm['created'] = smallworld_time_stamp($data['created']); $wm['username'] = $data['username']; $wm['uid_fk'] = $data['uid_fk']; Modified: XoopsModules/smallworld/trunk/language/english/main.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/main.php 2012-01-11 08:48:09 UTC (rev 8697) +++ XoopsModules/smallworld/trunk/language/english/main.php 2012-01-11 18:06:13 UTC (rev 8698) @@ -245,7 +245,7 @@ define('_SMALLWORLD_IMAGE_EDIT_TITLE','Edit descriptions where neded at send'); define("_SMALLWORLD_WELCOME_TITLE","Welcome"); define("_SMALLWORLD_WELCOMETEXT",", welcome. Hope you'll enjoy your stay."); -define("_SMALLWORLD_UPLOADEDSOMEIMAGES"," Uploaded some new pictures <br/><br/>"); +define("_SMALLWORLD_UPLOADEDSOMEIMAGES"," Uploaded some new pictures <br/>"); /*-------------- Image gallery -------------*/ define("_SMALLWORLD_ALBUMTITLETEXT","Close album"); Modified: XoopsModules/smallworld/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-11 08:48:09 UTC (rev 8697) +++ XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-11 18:06:13 UTC (rev 8698) @@ -18,6 +18,11 @@ define("_MI_SMALLWORLD_MODULE_NAME","Smallworld"); define ("_MI_SMALLWORLD_MODULE_DESC","A social network module in the small. With wall and profiling"); define('_MI_SMALLWORLD_ADMENU','Administration'); +define('_MI_SMALLWORLDMENU_INDEX','Index'); +define('_MI_SMALLWORLDMENU_STATS','Statistics'); +define('_MI_SMALLWORLDMENU_USERADMIN','User administration'); +define('_MI_SMALLWORLDMENU_HELP','Help'); +define('_MI_SMALLWORLDMENU_ABOUT','About'); /* -------- Configs ---------- */ Modified: XoopsModules/smallworld/trunk/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/xoops_version.php 2012-01-11 08:48:09 UTC (rev 8697) +++ XoopsModules/smallworld/trunk/xoops_version.php 2012-01-11 18:06:13 UTC (rev 8698) @@ -18,14 +18,28 @@ $modversion['name'] = _MI_SMALLWORLD_MODULE_NAME; $modversion['version'] = 1.00; $modversion['description'] = _MI_SMALLWORLD_MODULE_DESC; -$modversion['author'] = "Culex"; -$modversion['credits'] = "Culex"; -$modversion['help'] = ""; -$modversion['license'] = "GPL see LICENSE"; +$modversion['author'] = "Michael Albertsen"; +$modversion['nickname'] = 'Culex'; +$modversion['credits'] = "Mariane, Mrsculex, Mamba, Rune"; +$modversion['website'] = 'www.culex.dk'; +$modversion['name_website'] = 'Culex.dk'; +$modversion['license'] = 'GNU GPL'; +$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/'; +$modversion['status_version'] = 'RC'; +$modversion['release_date'] = '2011/12/24'; +$modversion['help'] = 'index.php#smallworldadmin_tab5'; +$modversion['min_php'] = '5.3'; +$modversion['min_xoops'] = '2.5'; +$modversion['min_admin'] = '1.1'; +$modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7'); +$modversion['system_menu'] = 1; $modversion['official'] = 0; $modversion['image'] = "images/smallworld.png"; $modversion['dirname'] = "smallworld"; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + // Admin $modversion['hasAdmin'] = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-11 18:43:01
|
Revision: 8700 http://xoops.svn.sourceforge.net/xoops/?rev=8700&view=rev Author: djculex Date: 2012-01-11 18:42:50 +0000 (Wed, 11 Jan 2012) Log Message: ----------- adjusting css in admin Modified Paths: -------------- XoopsModules/smallworld/trunk/admin/index.php XoopsModules/smallworld/trunk/language/english/admin.php XoopsModules/smallworld/trunk/templates/smallworld_admin.html Modified: XoopsModules/smallworld/trunk/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/admin/index.php 2012-01-11 18:14:51 UTC (rev 8699) +++ XoopsModules/smallworld/trunk/admin/index.php 2012-01-11 18:42:50 UTC (rev 8700) @@ -26,8 +26,6 @@ xoops_cp_header(); -if (isset($_POST['xim_admin_message'])) {$_POST['xim_admin_message'] = '';} - $admin = new SmallworldAdmin(); $tpl = new XoopsTpl(); @@ -41,15 +39,15 @@ $totaldays = $admin->CountDays(); // get average messages per day $avgperday = $admin->AvgMsgDay ($totaldays); -// XIM version number +// Smallworld version number $installversion = $admin->ModuleInstallVersion (); -// XIM install date +// Smallworld install date $installdate = $admin->ModuleInstallDate (); -//check current version of XIM, return desc,link,version if new available +//check current version of Smallworld, return desc,link,version if new available $installCheck = $admin->doCheckUpdate (); -// Count members using XIM +// Count members using Smallworld $sumallusers = $admin->TotalUsers (); // Find list of most active users (total) $admin->mostactiveusers_allround(); Modified: XoopsModules/smallworld/trunk/language/english/admin.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/admin.php 2012-01-11 18:14:51 UTC (rev 8699) +++ XoopsModules/smallworld/trunk/language/english/admin.php 2012-01-11 18:42:50 UTC (rev 8700) @@ -115,5 +115,5 @@ <li>If still questions or errors please post at the <a href="http://www.xoops.org/modules/newbb" target="_blank">Xoops support Forum</a></li> </ul> '); -define('_AM_SMALLWORLD_SP','<img style="margin: 0 0 30px;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; top: 10px;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake buying me a coffey</a>'); +define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake buying me a coffey</a>'); ?> Modified: XoopsModules/smallworld/trunk/templates/smallworld_admin.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_admin.html 2012-01-11 18:14:51 UTC (rev 8699) +++ XoopsModules/smallworld/trunk/templates/smallworld_admin.html 2012-01-11 18:42:50 UTC (rev 8700) @@ -236,6 +236,6 @@ <p class="smallworldadmin"><{$lang_prefslink}></p> </fieldset> </div> - <span style="margin:27%;"><{$smarty.const._AM_SMALLWORLD_SP}></span> + <span style="margin: 27%; height: 50px; position: relative;"><{$smarty.const._AM_SMALLWORLD_SP}></span> </div> <!-- end smallworld Admin --> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-12 05:51:35
|
Revision: 8702 http://xoops.svn.sourceforge.net/xoops/?rev=8702&view=rev Author: djculex Date: 2012-01-12 05:51:28 +0000 (Thu, 12 Jan 2012) Log Message: ----------- Updated admin to use modulesAdmin Modified Paths: -------------- XoopsModules/smallworld/trunk/admin/admin_header.php XoopsModules/smallworld/trunk/admin/index.php XoopsModules/smallworld/trunk/admin/menu.php XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/admin/admin_header.php 2012-01-12 00:55:07 UTC (rev 8701) +++ XoopsModules/smallworld/trunk/admin/admin_header.php 2012-01-12 05:51:28 UTC (rev 8702) @@ -18,9 +18,24 @@ include '../../../mainfile.php'; include_once XOOPS_ROOT_PATH.'/class/xoopsmodule.php'; include XOOPS_ROOT_PATH.'/include/cp_functions.php'; + require_once XOOPS_ROOT_PATH.'/include/cp_header.php'; + global $xoopsModule; + + $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + + }else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); + + } + + $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); + $pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); + $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + if ( $xoopsUser ) { $xoopsModule = XoopsModule::getByDirname("smallworld"); - if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { redirect_header(XOOPS_URL."/",2,_NOPERM); exit(); @@ -31,10 +46,4 @@ 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 Modified: XoopsModules/smallworld/trunk/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/admin/index.php 2012-01-12 00:55:07 UTC (rev 8701) +++ XoopsModules/smallworld/trunk/admin/index.php 2012-01-12 05:51:28 UTC (rev 8702) @@ -19,14 +19,16 @@ 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'; -require_once XOOPS_ROOT_PATH . '/class/template.php'; + if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} $xoopsTpl->xoops_setCaching(0); xoops_cp_header(); $admin = new SmallworldAdmin(); +$index_admin = new ModuleAdmin(); $tpl = new XoopsTpl(); $ai = array(); @@ -155,7 +157,7 @@ $adminscript= <<<SCRIPT var smallworld_url="XOOPS_URL/modules/smallworld/"; - var $ = jQuery(); + //var $ = jQuery(); SCRIPT; $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); $xoTheme->addScript(XOOPS_URL.'/browse.php?Frameworks/jquery/jquery.js'); Modified: XoopsModules/smallworld/trunk/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/admin/menu.php 2012-01-12 00:55:07 UTC (rev 8701) +++ XoopsModules/smallworld/trunk/admin/menu.php 2012-01-12 05:51:28 UTC (rev 8702) @@ -21,26 +21,21 @@ $i = 1; $adminmenu[$i]['title'] = _MI_SMALLWORLD_ADMENU; -$adminmenu[$i]['link'] = 'admin/index.php#smallworldadmin_tab1'; +$adminmenu[$i]['link'] = 'admin/moduleinfo.php'; $adminmenu[$i]['icon'] = $pathIcon32."/home.png"; $i++; -$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; -$adminmenu[$i]['link'] = "admin/index.php#smallworldadmin_tab5"; -$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; - -$i++; $adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_USERADMIN; -$adminmenu[$i]['link'] = "admin/index.php#smallworldadmin_tab3"; +$adminmenu[$i]['link'] = "admin/useradmin.php"; $adminmenu[$i]['icon'] = $pathIcon32."/administration.png"; $i++; $adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_STATS; -$adminmenu[$i]['link'] = "admin/index.php#smallworldadmin_tab2"; +$adminmenu[$i]['link'] = "admin/statistics.php"; $adminmenu[$i]['icon'] = $pathIcon32."/stats.png"; $i++; -$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_ABOUT; -$adminmenu[$i]['link'] = "admin/about.php"; -$adminmenu[$i]['icon'] = $pathIcon32."/about.png"; +$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; +$adminmenu[$i]['link'] = "admin/help.php"; +$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; ?> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/xoops_version.php 2012-01-12 00:55:07 UTC (rev 8701) +++ XoopsModules/smallworld/trunk/xoops_version.php 2012-01-12 05:51:28 UTC (rev 8702) @@ -27,7 +27,7 @@ $modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/'; $modversion['status_version'] = 'RC'; $modversion['release_date'] = '2011/12/24'; -$modversion['help'] = 'index.php#smallworldadmin_tab5'; +$modversion['help'] = ''; $modversion['min_php'] = '5.3'; $modversion['min_xoops'] = '2.5'; $modversion['min_admin'] = '1.1'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-13 08:18:06
|
Revision: 8706 http://xoops.svn.sourceforge.net/xoops/?rev=8706&view=rev Author: djculex Date: 2012-01-13 08:17:51 +0000 (Fri, 13 Jan 2012) Log Message: ----------- Svn keywords Modified Paths: -------------- XoopsModules/smallworld/trunk/index.php Property Changed: ---------------- XoopsModules/smallworld/trunk/Get_Count.php 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/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/SmallworldAdmin.css XoopsModules/smallworld/trunk/css/apprise.css 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/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/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/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/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/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/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/danish/index.html XoopsModules/smallworld/trunk/language/danish/js/index.html XoopsModules/smallworld/trunk/language/danish/js/jquery.ui.datepicker-language.js XoopsModules/smallworld/trunk/language/english/admin.php XoopsModules/smallworld/trunk/language/english/index.html 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/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/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/index.html XoopsModules/smallworld/trunk/sql/mysql.sql XoopsModules/smallworld/trunk/stats.php XoopsModules/smallworld/trunk/submit.php 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 Property changes on: XoopsModules/smallworld/trunk/Get_Count.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/admin/admin_header.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/admin/admintool.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/admin/div_useradmin.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/admin/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/admin/index.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/admin/menu.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/avatarupload.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/adminclass.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/class_collector.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/db.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/forms.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/friends.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/images.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/mail.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/profile.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/uploadclass.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/user.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/class/wall.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/comment_ajax.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/complaint.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/SmallworldAdmin.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/apprise.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/Thumbs.db ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_flat_75_ffffff_40x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_65_ffffff_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_75_dadada_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_glass_95_fef1ec_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-icons_222222_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-icons_2e83ff_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-icons_454545_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-icons_888888_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/images/ui-icons_cd0a0a_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.accordion.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.all.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.autocomplete.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.base.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.button.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.core.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.datepicker.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.dialog.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.progressbar.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.resizable.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.selectable.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.slider.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.tabs.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/base/jquery.ui.theme.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/basic.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/black.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/border-radius.htc ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/galleriffic-5.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/jquery.fileupload-ui.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/oembed.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/smallworld.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/Thumbs.db ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_222222_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_228ef1_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_ef8c08_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_ffd27a_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/images/ui-icons_ffffff_256x240.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery-ui-1.8.11.custom.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.accordion.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.all.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.autocomplete.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.base.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.button.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.core.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.datepicker.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.dialog.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.progressbar.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.resizable.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.selectable.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.slider.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.tabs.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/css/ui-lightness/jquery.ui.theme.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/delete_comment_ajax.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/delete_message_ajax.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/docs/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/down_vote.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/editimages.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/editprofile.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/friendinvite.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/friends.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/galleryshow.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/image_edit_submit.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/1.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/2.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/3.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/accountdelete.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/ajaxloader.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/alert.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/ano_man.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/ano_woman.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/arrow_left_48.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/arrow_right_48.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/bdayballoons_l.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/bdayballoons_r.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/bg.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/bookmarks.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/calendar.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/caption.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/complaint.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/controls.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/dislike.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/dl-arr.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/down-arr.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/edit_icon.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/editavatar.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/edituserprofile.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/error.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/genderless.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/group.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/house.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/hr.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/icon_start.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/information.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/like.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/loader.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/loaderWhite.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/main-red-bg.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/messenger.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/next.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/nextPageArrow.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/nextPageArrowWhite.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/nofriendbg.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/pbar-ani.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/picture.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/prev.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/prevPageArrow.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/prevPageArrowWhite.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/smallworld.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/facebook.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/googleplus.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/icq.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/msn.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/myspace.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/skype.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/twitter.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/xoops.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/yahoo.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/socialnetworkicons/youtube.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/sp.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/statistics.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/text_bg.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/time_add.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/time_delete.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/ul-breaker.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/upd_critical.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/upd_normal.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/upd_ok.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/user_green.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/user_orange.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/user_red.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/user_silhouette.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/images/userinfo.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/img_upload.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/imgupload.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/include/arrays.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/include/functions.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/include/getSelects.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/include/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/index.php =================================================================== --- XoopsModules/smallworld/trunk/index.php 2012-01-12 14:59:11 UTC (rev 8705) +++ XoopsModules/smallworld/trunk/index.php 2012-01-13 08:17:51 UTC (rev 8706) @@ -7,12 +7,15 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); Property changes on: XoopsModules/smallworld/trunk/index.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/adminsmallworld.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/ajaxupload.3.5.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/apprise-1.5.full.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/formToWizard.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/gallery_mod.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/geoname.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/geoname_now.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery-1.5.1.min.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery-ui-1.8.11.custom.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.avatar_helper.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.bookmark.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.countdown.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.elastic.source.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.fileupload-ui.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.fileupload-uix.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.fileupload.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.form.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.galleriffic.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.history.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.innerfade.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.oembed.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.opacityrollover.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.stepy.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.validate.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/js/jquery.validation.functions.js _________________________________... [truncated message content] |
From: <dj...@us...> - 2012-01-13 08:41:01
|
Revision: 8707 http://xoops.svn.sourceforge.net/xoops/?rev=8707&view=rev Author: djculex Date: 2012-01-13 08:40:50 +0000 (Fri, 13 Jan 2012) Log Message: ----------- more svn props and comment headers Modified Paths: -------------- XoopsModules/smallworld/trunk/Get_Count.php 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.php XoopsModules/smallworld/trunk/admin/menu.php XoopsModules/smallworld/trunk/avatarupload.php 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/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/delete_comment_ajax.php XoopsModules/smallworld/trunk/delete_message_ajax.php 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/img_upload.php XoopsModules/smallworld/trunk/imgupload.php XoopsModules/smallworld/trunk/include/arrays.php XoopsModules/smallworld/trunk/include/functions.php XoopsModules/smallworld/trunk/include/getSelects.php XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/language/english/admin.php XoopsModules/smallworld/trunk/language/english/main.php XoopsModules/smallworld/trunk/language/english/modinfo.php 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/core.php XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/search.php XoopsModules/smallworld/trunk/smallworldshare.php XoopsModules/smallworld/trunk/stats.php XoopsModules/smallworld/trunk/submit.php XoopsModules/smallworld/trunk/up_vote.php XoopsModules/smallworld/trunk/userprofile.php XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/Get_Count.php =================================================================== --- XoopsModules/smallworld/trunk/Get_Count.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/Get_Count.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include '../../mainfile.php'; include_once (XOOPS_ROOT_PATH.'/class/template.php'); Modified: XoopsModules/smallworld/trunk/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/admin/admin_header.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/admin/admin_header.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include '../../../mainfile.php'; Modified: XoopsModules/smallworld/trunk/admin/admintool.php =================================================================== --- XoopsModules/smallworld/trunk/admin/admintool.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/admin/admintool.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ require_once 'admin_header.php'; Modified: XoopsModules/smallworld/trunk/admin/div_useradmin.php =================================================================== --- XoopsModules/smallworld/trunk/admin/div_useradmin.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/admin/div_useradmin.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ require_once 'admin_header.php'; Modified: XoopsModules/smallworld/trunk/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/admin/index.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/admin/index.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ require_once 'admin_header.php'; Modified: XoopsModules/smallworld/trunk/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/admin/menu.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/admin/menu.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ $dirname = basename(dirname(dirname(__FILE__))); $module_handler = xoops_gethandler('module'); Modified: XoopsModules/smallworld/trunk/avatarupload.php =================================================================== --- XoopsModules/smallworld/trunk/avatarupload.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/avatarupload.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ global $xoopsUser, $xoopsLogger; include_once("../../mainfile.php"); Modified: XoopsModules/smallworld/trunk/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/class/adminclass.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/adminclass.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/class/class_collector.php =================================================================== --- XoopsModules/smallworld/trunk/class/class_collector.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/class_collector.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/adminclass.php"); include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/db.php"); Modified: XoopsModules/smallworld/trunk/class/db.php =================================================================== --- XoopsModules/smallworld/trunk/class/db.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/db.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ class SmallWorldDB { Modified: XoopsModules/smallworld/trunk/class/forms.php =================================================================== --- XoopsModules/smallworld/trunk/class/forms.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/forms.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/class/friends.php =================================================================== --- XoopsModules/smallworld/trunk/class/friends.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/friends.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/class/images.php =================================================================== --- XoopsModules/smallworld/trunk/class/images.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/images.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/class/mail.php =================================================================== --- XoopsModules/smallworld/trunk/class/mail.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/mail.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once XOOPS_ROOT_PATH . '/class/mail/xoopsmultimailer.php'; Modified: XoopsModules/smallworld/trunk/class/profile.php =================================================================== --- XoopsModules/smallworld/trunk/class/profile.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/profile.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/class/uploadclass.php =================================================================== --- XoopsModules/smallworld/trunk/class/uploadclass.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/uploadclass.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -1,4 +1,24 @@ <?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 +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ +**/ + class SmallworldUploadHandler { private $upload_dir; Modified: XoopsModules/smallworld/trunk/class/user.php =================================================================== --- XoopsModules/smallworld/trunk/class/user.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/user.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/class/wall.php =================================================================== --- XoopsModules/smallworld/trunk/class/wall.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/class/wall.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/comment_ajax.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/comment_ajax.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); Modified: XoopsModules/smallworld/trunk/complaint.php =================================================================== --- XoopsModules/smallworld/trunk/complaint.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/complaint.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include '../../mainfile.php'; include_once (XOOPS_ROOT_PATH.'/class/template.php'); Modified: XoopsModules/smallworld/trunk/delete_comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/delete_comment_ajax.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/delete_comment_ajax.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); Modified: XoopsModules/smallworld/trunk/delete_message_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/delete_message_ajax.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/delete_message_ajax.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); Modified: XoopsModules/smallworld/trunk/down_vote.php =================================================================== --- XoopsModules/smallworld/trunk/down_vote.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/down_vote.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include '../../mainfile.php'; include_once (XOOPS_ROOT_PATH.'/class/template.php'); Modified: XoopsModules/smallworld/trunk/editimages.php =================================================================== --- XoopsModules/smallworld/trunk/editimages.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/editimages.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_images_edittemplate.html'; Modified: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_userprofile_edittemplate.html'; Modified: XoopsModules/smallworld/trunk/friendinvite.php =================================================================== --- XoopsModules/smallworld/trunk/friendinvite.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/friendinvite.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ global $xoopsUser; include_once("../../mainfile.php"); Modified: XoopsModules/smallworld/trunk/friends.php =================================================================== --- XoopsModules/smallworld/trunk/friends.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/friends.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_friends_template.html'; Modified: XoopsModules/smallworld/trunk/galleryshow.php =================================================================== --- XoopsModules/smallworld/trunk/galleryshow.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/galleryshow.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_galleryshow.html'; Modified: XoopsModules/smallworld/trunk/image_edit_submit.php =================================================================== --- XoopsModules/smallworld/trunk/image_edit_submit.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/image_edit_submit.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); Modified: XoopsModules/smallworld/trunk/img_upload.php =================================================================== --- XoopsModules/smallworld/trunk/img_upload.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/img_upload.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_userprofile_imgupload.html'; Modified: XoopsModules/smallworld/trunk/imgupload.php =================================================================== --- XoopsModules/smallworld/trunk/imgupload.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/imgupload.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -8,7 +8,10 @@ * * Licensed under the MIT license: * http://creativecommons.org/licenses/MIT/ - * Modified and apodted for XOOPS by Culex (cu...@cu...) october 2011 + * @Last committed: $Revision$ + * @Last changed by: $Author$ + * @Last changed date: $Date$ + * @ID: $Id$ */ global $xoopsUser, $xoopsLogger; include_once("../../mainfile.php"); Modified: XoopsModules/smallworld/trunk/include/arrays.php =================================================================== --- XoopsModules/smallworld/trunk/include/arrays.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/include/arrays.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ // Array for gender Modified: XoopsModules/smallworld/trunk/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/include/functions.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/include/functions.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/include/getSelects.php =================================================================== --- XoopsModules/smallworld/trunk/include/getSelects.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/include/getSelects.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../../mainfile.php"); include XOOPS_ROOT_PATH.'/header.php'; Modified: XoopsModules/smallworld/trunk/index.php =================================================================== --- XoopsModules/smallworld/trunk/index.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/index.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -8,7 +8,8 @@ * 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 +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex * @Repository path: $HeadURL$ Modified: XoopsModules/smallworld/trunk/language/english/admin.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/admin.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/language/english/admin.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Modified: XoopsModules/smallworld/trunk/language/english/main.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/main.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/language/english/main.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ /*----------------- Menu items ---------------*/ Modified: XoopsModules/smallworld/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ define("_MI_SMALLWORLD_MODULE_NAME","Smallworld"); Modified: XoopsModules/smallworld/trunk/loadmore.php =================================================================== --- XoopsModules/smallworld/trunk/loadmore.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/loadmore.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include '../../mainfile.php'; Modified: XoopsModules/smallworld/trunk/message_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/message_ajax.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/message_ajax.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); Modified: XoopsModules/smallworld/trunk/partnersearch.php =================================================================== --- XoopsModules/smallworld/trunk/partnersearch.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/partnersearch.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); Modified: XoopsModules/smallworld/trunk/permalink.php =================================================================== --- XoopsModules/smallworld/trunk/permalink.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/permalink.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_permalink.html'; Modified: XoopsModules/smallworld/trunk/preloads/core.php =================================================================== --- XoopsModules/smallworld/trunk/preloads/core.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/preloads/core.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ defined('XOOPS_ROOT_PATH') or die('Restricted access'); include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); Modified: XoopsModules/smallworld/trunk/register.php =================================================================== --- XoopsModules/smallworld/trunk/register.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/register.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,13 +7,18 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ + include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_userprofile_regtemplate.html'; include XOOPS_ROOT_PATH.'/header.php'; Modified: XoopsModules/smallworld/trunk/search.php =================================================================== --- XoopsModules/smallworld/trunk/search.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/search.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_index.html'; Modified: XoopsModules/smallworld/trunk/smallworldshare.php =================================================================== --- XoopsModules/smallworld/trunk/smallworldshare.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/smallworldshare.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); $xoopsOption['template_main'] = 'smallworld_share.html'; Modified: XoopsModules/smallworld/trunk/stats.php =================================================================== --- XoopsModules/smallworld/trunk/stats.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/stats.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * 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... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include_once("../../mainfile.php"); include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); Modified: XoopsModules/smallworld/trunk/submit.php =================================================================== --- XoopsModules/smallworld/trunk/submit.php 2012-01-13 08:17:51 UTC (rev 8706) +++ XoopsModules/smallworld/trunk/submit.php 2012-01-13 08:40:50 UTC (rev 8707) @@ -7,12 +7,16 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of *... [truncated message content] |
From: <dj...@us...> - 2012-01-16 10:22:20
|
Revision: 8738 http://xoops.svn.sourceforge.net/xoops/?rev=8738&view=rev Author: djculex Date: 2012-01-16 10:22:09 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Select multi fields for configs Modified Paths: -------------- XoopsModules/smallworld/trunk/language/english/modinfo.php XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 08:27:54 UTC (rev 8737) +++ XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 10:22:09 UTC (rev 8738) @@ -51,4 +51,36 @@ define ("_MI_SMALLWORLD_BOOKMARSAVATARS","Use Smallworld Logo when bookmarking ? "); define ("_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC","When posts are public and you want to share on social networks. You can here descide weather to use<br>smallworld logo as shared image or 'no' = the posting users avatar.<br><br>Default is 'yes' = smallworld logo."); + +// Select fields & Mandetory fields +define ('_MI_SMALLWORLD_VIEWFIELDS','Use fields in registration and profile'); +define ('_MI_SMALLWORLD_VIEWFIELDS_DESC','Select fields to use in registration form and in profile viewing<br>Use control + mouse to multiselect'); +define ('_MI_SMALLWORLD_VERIFYFIELDS','Use verification on fields in registration'); +define ('_MI_SMALLWORLD_VERIFYFIELDS_DESC','Select (*) mandatory fields in registration form<br>Use control + mouse to multiselect'); + +define ('_MI_SMALLWORLD_REALNAME','Real name'); +define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); +define ('_MI_SMALLWORLD_PARTNER','Partner'); +define ('_MI_SMALLWORLD_LOOKINGFOR','Looking for'); +define ('_MI_SMALLWORLD_BIRTHDAY','Birthday'); +define ('_MI_SMALLWORLD_BIRTHPLACE','Birth place'); +define ('_MI_SMALLWORLD_POLITICALVIEWS','Political views'); +define ('_MI_SMALLWORLD_RELIGIOUSVIEWS','Religious view'); +define ('_MI_SMALLWORLD_EMAILS','Emails'); +define ('_MI_SMALLWORLD_SCREENNAMES','screennames'); +define ('_MI_SMALLWORLD_MOBILE','mobile'); +define ('_MI_SMALLWORLD_LANDPHONE','landphone'); +define ('_MI_SMALLWORLD_STREETADRESS','street adress'); +define ('_MI_SMALLWORLD_PRESENTCITY','present city'); +define ('_MI_SMALLWORLD_COUNTRY','country'); +define ('_MI_SMALLWORLD_WEBSITE','website'); +define ('_MI_SMALLWORLD_INTERESTS','Interests'); +define ('_MI_SMALLWORLD_FAVOURITEMUSIC','Favourite music'); +define ('_MI_SMALLWORLD_FAVOURITETVSHOWS','Favourite tvshows'); +define ('_MI_SMALLWORLD_FAVOURITEMOVIES','Favourite movie'); +define ('_MI_SMALLWORLD_FAVOURITEBOOKS','Favourite books'); +define ('_MI_SMALLWORLD_ABOUTME','About me'); +define ('_MI_SMALLWORLD_EDUCATION','Education'); +define ('_MI_SMALLWORLD_EMPLOYMENT','Employment'); + ?> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 08:27:54 UTC (rev 8737) +++ XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 10:22:09 UTC (rev 8738) @@ -64,83 +64,214 @@ $modversion['tables'][8] = "smallworld_complaints"; // Templates -$modversion['templates'][1]['file'] = 'smallworld_index.html'; -$modversion['templates'][1]['description'] = ''; -$modversion['templates'][2]['file'] = 'smallworld_userprofile_template.html'; -$modversion['templates'][2]['description'] = ''; -$modversion['templates'][3]['file'] = 'smallworld_userprofile_regtemplate.html'; -$modversion['templates'][3]['description'] = ''; -$modversion['templates'][4]['file'] = 'smallworld_userprofile_edittemplate.html'; -$modversion['templates'][4]['description'] = ''; -$modversion['templates'][5]['file'] = 'smallworld_userprofile_imgupload.html'; -$modversion['templates'][5]['description'] = ''; -$modversion['templates'][6]['file'] = 'smallworld_galleryshow.html'; -$modversion['templates'][6]['description'] = ''; -$modversion['templates'][7]['file'] = 'smallworld_images_edittemplate.html'; -$modversion['templates'][7]['description'] = ''; -$modversion['templates'][8]['file'] = 'smallworld_friends_template.html'; -$modversion['templates'][8]['description'] = ''; -$modversion['templates'][9]['file'] = 'smallworld_permalink.html'; -$modversion['templates'][9]['description'] = ''; -$modversion['templates'][10]['file'] = 'smallworld_admin.html'; -$modversion['templates'][10]['description'] = ''; -$modversion['templates'][11]['file'] = 'smallworld_share.html'; -$modversion['templates'][11]['description'] = ''; +$i = 1; +$modversion['templates'][$i]['file'] = 'smallworld_index.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_template.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_regtemplate.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_edittemplate.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_imgupload.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_galleryshow.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_images_edittemplate.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_friends_template.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_permalink.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_admin.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_share.html'; +$modversion['templates'][$i]['description'] = ''; + // Blocks -$modversion['blocks'][1]['file'] = "smallworld_block.php"; -$modversion['blocks'][1]['name'] = 'Block for empty module'; -$modversion['blocks'][1]['description'] = 'This is a Block for the empty module'; -$modversion['blocks'][1]['show_func'] = "smallworld_block"; -$modversion['blocks'][1]['template'] = 'smallworld_block.html'; +$i = 1; +$modversion['blocks'][$i]['file'] = "smallworld_block.php"; +$modversion['blocks'][$i]['name'] = 'Block for empty module'; +$modversion['blocks'][$i]['description'] = 'This is a Block for the empty module'; +$modversion['blocks'][$i]['show_func'] = "smallworld_block"; +$modversion['blocks'][$i]['template'] = 'smallworld_block.html'; //Module Configs +$i = 0; +$modversion['config'][$i]['name'] = 'geolocate'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_USEGOOGLE'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_USEGOOGLE_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; -$modversion['config'][0]['name'] = 'geolocate'; -$modversion['config'][0]['title'] = '_MI_SMALLWORLD_USEGOOGLE'; -$modversion['config'][0]['description'] = '_MI_SMALLWORLD_USEGOOGLE_DESC'; -$modversion['config'][0]['formtype'] = 'yesno'; -$modversion['config'][0]['valuetype'] = 'int'; -$modversion['config'][0]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'msgtoshow'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 5; -$modversion['config'][1]['name'] = 'msgtoshow'; -$modversion['config'][1]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; -$modversion['config'][1]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; -$modversion['config'][1]['formtype'] = 'textbox'; -$modversion['config'][1]['valuetype'] = 'int'; -$modversion['config'][1]['default'] = 5; +$i++; +$modversion['config'][$i]['name'] = 'msgtoshow'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 5; -$modversion['config'][1]['name'] = 'msgtoshow'; -$modversion['config'][1]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; -$modversion['config'][1]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; -$modversion['config'][1]['formtype'] = 'textbox'; -$modversion['config'][1]['valuetype'] = 'int'; -$modversion['config'][1]['default'] = 5; +$i++; +$modversion['config'][$i]['name'] = 'validationstrenght'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; -$modversion['config'][2]['name'] = 'validationstrenght'; -$modversion['config'][2]['title'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT'; -$modversion['config'][2]['description'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT_DESC'; -$modversion['config'][2]['formtype'] = 'yesno'; -$modversion['config'][2]['valuetype'] = 'int'; -$modversion['config'][2]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'takeoveruserlinks'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_TAKEOVERLINKS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_TAKEOVERLINKS_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; -$modversion['config'][3]['name'] = 'takeoveruserlinks'; -$modversion['config'][3]['title'] = '_MI_SMALLWORLD_TAKEOVERLINKS'; -$modversion['config'][3]['description'] = '_MI_SMALLWORLD_TAKEOVERLINKS_DESC'; -$modversion['config'][3]['formtype'] = 'yesno'; -$modversion['config'][3]['valuetype'] = 'int'; -$modversion['config'][3]['default'] = 0; +$i++; +$modversion['config'][$i]['name'] = 'usersownpostscount'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; -$modversion['config'][4]['name'] = 'usersownpostscount'; -$modversion['config'][4]['title'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS'; -$modversion['config'][4]['description'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS_DESC'; -$modversion['config'][4]['formtype'] = 'yesno'; -$modversion['config'][4]['valuetype'] = 'int'; -$modversion['config'][4]['default'] = 0; +$i++; +$modversion['config'][$i]['name'] = 'smallworldbookmarkavatar'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_BOOKMARSAVATARS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; -$modversion['config'][5]['name'] = 'smallworldbookmarkavatar'; -$modversion['config'][5]['title'] = '_MI_SMALLWORLD_BOOKMARSAVATARS'; -$modversion['config'][5]['description'] = '_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC'; -$modversion['config'][5]['formtype'] = 'yesno'; -$modversion['config'][5]['valuetype'] = 'int'; -$modversion['config'][5]['default'] = 0; +$i++; +$modversion['config'][$i]['name'] = 'smallworldusethesefields'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VIEWFIELDS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VIEWFIELDS_DESC'; +$modversion['config'][$i]['formtype'] = 'select_multi'; +$modversion['config'][$i]['valuetype'] = 'array'; +$modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', + '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_PARTNER' => 'partner', + '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', + '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', + '_MI_SMALLWORLD_BIRTHPLACE' => 'birthplace', + '_MI_SMALLWORLD_POLITICALVIEWS' => 'politicalview', + '_MI_SMALLWORLD_RELIGIOUSVIEWS' => 'religiousview', + '_MI_SMALLWORLD_EMAILS' => 'emails', + '_MI_SMALLWORLD_SCREENNAMES' => 'screennames', + '_MI_SMALLWORLD_MOBILE' => 'mobile', + '_MI_SMALLWORLD_LANDPHONE' => 'landphone', + '_MI_SMALLWORLD_STREETADRESS' => 'streetadress', + '_MI_SMALLWORLD_PRESENTCITY' => 'presentcity', + '_MI_SMALLWORLD_COUNTRY' => 'country', + '_MI_SMALLWORLD_WEBSITE' => 'website', + '_MI_SMALLWORLD_INTERESTS' => 'interests', + '_MI_SMALLWORLD_FAVOURITEMUSIC' => 'favouritemusic', + '_MI_SMALLWORLD_FAVOURITETVSHOWS' => 'favouritetvshows', + '_MI_SMALLWORLD_FAVOURITEMOVIES' => 'favouritemovies', + '_MI_SMALLWORLD_FAVOURITEBOOKS' => 'favouritebooks', + '_MI_SMALLWORLD_ABOUTME' => 'aboutme', + '_MI_SMALLWORLD_EDUCATION' => 'education', + '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); +$modversion['config'][$i]['default'] = array( 'realname', + 'interestedin', + 'partner', + 'lookingfor', + 'birthday', + 'birthplace', + 'politicalview', + 'religiousview', + 'emails', + 'screennames', + 'mobile', + 'landphone', + 'streetadress', + 'presentcity', + 'country', + 'website', + 'interests', + 'favouritemusic', + 'favouritetvshows', + 'favouritemovies', + 'favouritebooks', + 'aboutme', + 'education', + 'employment'); + +// Mandatory fields +$i++; +$modversion['config'][$i]['name'] = 'smallworldmandatoryfields'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VERIFYFIELDS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VERIFYFIELDS_DESC'; +$modversion['config'][$i]['formtype'] = 'select_multi'; +$modversion['config'][$i]['valuetype'] = 'array'; +$modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', + '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_PARTNER' => 'partner', + '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', + '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', + '_MI_SMALLWORLD_BIRTHPLACE' => 'birthplace', + '_MI_SMALLWORLD_POLITICALVIEWS' => 'politicalview', + '_MI_SMALLWORLD_RELIGIOUSVIEWS' => 'religiousview', + '_MI_SMALLWORLD_EMAILS' => 'emails', + '_MI_SMALLWORLD_SCREENNAMES' => 'screennames', + '_MI_SMALLWORLD_MOBILE' => 'mobile', + '_MI_SMALLWORLD_LANDPHONE' => 'landphone', + '_MI_SMALLWORLD_STREETADRESS' => 'streetadress', + '_MI_SMALLWORLD_PRESENTCITY' => 'presentcity', + '_MI_SMALLWORLD_COUNTRY' => 'country', + '_MI_SMALLWORLD_WEBSITE' => 'website', + '_MI_SMALLWORLD_INTERESTS' => 'interests', + '_MI_SMALLWORLD_FAVOURITEMUSIC' => 'favouritemusic', + '_MI_SMALLWORLD_FAVOURITETVSHOWS' => 'favouritetvshows', + '_MI_SMALLWORLD_FAVOURITEMOVIES' => 'favouritemovies', + '_MI_SMALLWORLD_FAVOURITEBOOKS' => 'favouritebooks', + '_MI_SMALLWORLD_ABOUTME' => 'aboutme', + '_MI_SMALLWORLD_EDUCATION' => 'education', + '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); +$modversion['config'][$i]['default'] = array( 'realname', + 'interestedin', + 'partner', + 'lookingfor', + 'birthday', + 'birthplace', + 'politicalview', + 'religiousview', + 'emails', + 'screennames', + 'mobile', + 'landphone', + 'streetadress', + 'presentcity', + 'country', + 'website', + 'interests', + 'favouritemusic', + 'favouritetvshows', + 'favouritemovies', + 'favouritebooks', + 'aboutme', + 'education', + 'employment'); + ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-16 12:14:35
|
Revision: 8739 http://xoops.svn.sourceforge.net/xoops/?rev=8739&view=rev Author: djculex Date: 2012-01-16 12:14:29 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Enable user to change his profile while under inspection by admin Modified Paths: -------------- XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/register.php Modified: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 10:22:09 UTC (rev 8738) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 12:14:29 UTC (rev 8739) @@ -32,11 +32,12 @@ $profile = $check->CheckIfProfile($id); // Check if inspected userid -> redirect to userprofile and show admin countdown + /* $inspect = isInspected ($id); if ($inspect['inspect'] == 'yes') { redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); } - + */ if ($profile > 0) { $xoopsTpl->assign('check',1); $item = new SmallWorldForm; Modified: XoopsModules/smallworld/trunk/register.php =================================================================== --- XoopsModules/smallworld/trunk/register.php 2012-01-16 10:22:09 UTC (rev 8738) +++ XoopsModules/smallworld/trunk/register.php 2012-01-16 12:14:29 UTC (rev 8739) @@ -33,10 +33,12 @@ $profile = $check->CheckIfProfile($id); // Check if inspected userid -> redirect to userprofile and show admin countdown + /* $inspect = isInspected ($id); if ($inspect['inspect'] == 'yes') { redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); } + */ if ($profile >= 1) { // Create basic user in db & redirect to editProfile.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-16 14:29:29
|
Revision: 8743 http://xoops.svn.sourceforge.net/xoops/?rev=8743&view=rev Author: djculex Date: 2012-01-16 14:29:22 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Admin descide fields to use assigned on edit_profile Modified Paths: -------------- XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/include/functions.php XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/language/english/modinfo.php XoopsModules/smallworld/trunk/preloads/core.php XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -50,156 +50,253 @@ // ------------ PERSONAL INFO ------------ // // Real name - $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$r['realname']); + if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { + $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$r['realname']); $xoopsTpl->append('realname',$realname); + } else { + $xoopsTpl->assign('show_realname','no'); + } // Dropdown for gender - $gender = $item->dropdown('gender',$arr0,$r['gender']); + if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { + $gender = $item->dropdown('gender',$arr0,$r['gender']); $xoopsTpl->append('gender', $gender); + } else { + $xoopsTpl->assign('show_gender','no'); + } // Selectbox for "interested in gender(s)" - $nr = unserialize($r['intingender']); - $intInGender = $item->RetrieveRadio('intingender',$arr01,$nr, $selected=null); - $xoopsTpl->append('intingender',$intInGender); + if (smallworldGetValfromArray ('interestedin', 'smallworldusethesefields') != 0) { + $nr = unserialize($r['intingender']); + $intInGender = $item->RetrieveRadio('intingender',$arr01,$nr, $selected=null); + $xoopsTpl->append('intingender',$intInGender); + } else { + $xoopsTpl->assign('show_interestedin','no'); + } // Dropdown for marital status - $relationshipstatus = $item->dropdown('relationship',$arr02,0); - $xoopsTpl->append('relationshipstatus',$relationshipstatus); + if (smallworldGetValfromArray ('relationshipstatus', 'smallworldusethesefields') != 0) { + $relationshipstatus = $item->dropdown('relationship',$arr02,0); + $xoopsTpl->append('relationshipstatus',$relationshipstatus); + // Partner. Only shown if marital status is married, it's complicated, engaged) $partner = $item->input('partner', 'partner', 'partner',$size='30', stripslashes($r['partner'])); $xoopsTpl->append('partner',$partner); - + } else { + $xoopsTpl->assign('show_relationshipstatus','no'); + } + + if (smallworldGetValfromArray ('lookingfor', 'smallworldusethesefields') != 0) { $nr1 = unserialize($r['searchrelat']); $searchrelat = $item->RetrieveRadio('searchrelat',$arr03,$nr1, $selected=null); $xoopsTpl->append('searchrelat',$searchrelat); + } else { + $xoopsTpl->assign('show_lookingfor','no'); + } + if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) { // Select Birthday dd-mm-Y $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=stripslashes(UsToEuroDate($r['birthday']))); $xoopsTpl->append('birthdaydate',$birthday); + } else { + $xoopsTpl->assign('show_birthday','no'); + } // Select Hometown or Enter new + if (smallworldGetValfromArray ('birthplace', 'smallworldusethesefields') != 0) { $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=stripslashes($r['birthplace'])); $xoopsTpl->append('birthplace',$birthplace); + } else { + $xoopsTpl->assign('show_birthplace','no'); + } // Dropdown politics + if (smallworldGetValfromArray ('politicalview', 'smallworldusethesefields') != 0) { $politic = $item->dropdown('politic',$arr04,0); $xoopsTpl->append('politic',$politic); + } else { + $xoopsTpl->assign('show_political','no'); + } // Dropdown Religion + if (smallworldGetValfromArray ('religiousview', 'smallworldusethesefields') != 0) { $religion = $item->dropdown('religion',$arr05,0); $xoopsTpl->append('religion',$religion); + } else { + $xoopsTpl->assign('show_religion','no'); + } - // ------------ CONTACT INFO ------------ // - + // ------------ CONTACT INFO ------------ // // Add email test - $nr2 = unserialize($r['emailtype']); - $emailtext = ''; - foreach ($nr2 as $k => $v) { - $nr2id = "email-".$k; - $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v),$nr2id); - // $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v)); - $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + if (smallworldGetValfromArray ('emails', 'smallworldusethesefields') != 0) { + $nr2 = unserialize($r['emailtype']); + $emailtext = ''; + foreach ($nr2 as $k => $v) { + $nr2id = "email-".$k; + $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v),$nr2id); + // $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v)); + $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + } + $emailtext .= "<a class='smallworld_addemail' href='javascript:void();' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('emailtext',$emailtext); + } else { + $xoopsTpl->assign('show_emails','no'); } - $emailtext .= "<a class='smallworld_addemail' href='javascript:void();' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('emailtext',$emailtext); - + + //Add screen names (usernames for facebook etc etc) - $nr3 = unserialize($r['screenname_type']); - $nr4 = unserialize($r['screenname']); - $count1 = count($nr3); - $cnt1 = 0; - - // Drop down for screen names - $screenname =""; - foreach ($nr3 as $k => $v) { - if ($cnt1 < $count1-1) {$addmore1 ="";} else {$addmore1 = _SMALLWORLD_ADDMORE;} - $screenname .= $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,$addmore1,$selected=stripslashes($nr4[$k]),$preset=stripslashes($v)); - $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; - $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - $cnt1++; + if (smallworldGetValfromArray ('screennames', 'smallworldusethesefields') != 0) { + $nr3 = unserialize($r['screenname_type']); + $nr4 = unserialize($r['screenname']); + $count1 = count($nr3); + $cnt1 = 0; + + // Drop down for screen names + $screenname =""; + foreach ($nr3 as $k => $v) { + if ($cnt1 < $count1-1) {$addmore1 ="";} else {$addmore1 = _SMALLWORLD_ADDMORE;} + $screenname .= $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,$addmore1,$selected=stripslashes($nr4[$k]),$preset=stripslashes($v)); + $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; + $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + $cnt1++; + } + $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('screenname',$screenname); + } else { + $xoopsTpl->assign('show_screennames','no'); } - $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('screenname',$screenname); // Mobilephone + if (smallworldGetValfromArray ('mobile', 'smallworldusethesefields') != 0) { $mobile = $item->input('mobile','mobile','mobile',12,$preset=stripslashes($r['mobile'])); $xoopsTpl->append('mobile',$mobile); + } else { + $xoopsTpl->assign('show_mobile','no'); + } // Landphone + if (smallworldGetValfromArray ('landphone', 'smallworldusethesefields') != 0) { $phone = $item->input('phone','phone','phone',12,$preset=stripslashes($r['phone'])); $xoopsTpl->append('phone',$phone); + } else { + $xoopsTpl->assign('show_landphone','no'); + } // Adress - $adress = $item->input('adress','adress','adress',$size='50',$preset=stripslashes($r['adress'])); + if (smallworldGetValfromArray ('streetadress', 'smallworldusethesefields') != 0) { + $adress = $item->input('adress','adress','adress',$size='50',$preset=stripslashes($r['adress'])); $xoopsTpl->append('adress',$adress); - - $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=stripslashes($r['present_city'])); + } else { + $xoopsTpl->assign('show_adress','no'); + } + + if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') != 0) { + $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=stripslashes($r['present_city'])); $xoopsTpl->append('present_city',$present_city); - $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=stripslashes($r['present_country'])); + $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=stripslashes($r['present_country'])); $xoopsTpl->append('present_country',$present_country); + } else { + $xoopsTpl->assign('show_city','no'); + } + if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') == 0) { + $xoopsTpl->assign('show_website','no'); + } + // ------------ INTERESTS ------------ // // Textarea for interests //textarea($name, $id, $title, $rows, $cols, $class) - $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites',$preset=stripslashes($r['interests'])); + if (smallworldGetValfromArray ('interests', 'smallworldusethesefields') != 0) { + $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites',$preset=stripslashes($r['interests'])); $xoopsTpl->append('interests',$interests); + } else { + $xoopsTpl->assign('show_interests','no'); + } // Textarea for Music - $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites',$preset=stripslashes($r['music'])); + if (smallworldGetValfromArray ('favouritemusic', 'smallworldusethesefields') != 0) { + $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites',$preset=stripslashes($r['music'])); $xoopsTpl->append('music',$music); + } else { + $xoopsTpl->assign('show_music','no'); + } // Textarea for Tvshow - $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites',$preset=stripslashes($r['tvshow'])); - $xoopsTpl->append('tvshow',$tvshow); + if (smallworldGetValfromArray ('favouritetvshows', 'smallworldusethesefields') != 0) { + $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites',$preset=stripslashes($r['tvshow'])); + $xoopsTpl->append('tvshow',$tvshow); + } else { + $xoopsTpl->assign('show_tv','no'); + } // Textarea for Movie - $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites',$preset=stripslashes($r['movie'])); - $xoopsTpl->append('movie',$movie); + if (smallworldGetValfromArray ('favouritemovies', 'smallworldusethesefields') != 0) { + $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites',$preset=stripslashes($r['movie'])); + $xoopsTpl->append('movie',$movie); + } else { + $xoopsTpl->assign('show_movies','no'); + } // Textarea for Books - $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites',$preset=stripslashes($r['books'])); - $xoopsTpl->append('books',$books); + if (smallworldGetValfromArray ('favouritebooks', 'smallworldusethesefields') != 0) { + $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites',$preset=stripslashes($r['books'])); + $xoopsTpl->append('books',$books); + } else { + $xoopsTpl->assign('show_books','no'); + } // Textarea for About me - $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites',$preset=stripslashes($r['aboutme'])); - $xoopsTpl->append('aboutme',$aboutme); + if (smallworldGetValfromArray ('aboutme', 'smallworldusethesefields') != 0) { + $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites',$preset=stripslashes($r['aboutme'])); + $xoopsTpl->append('aboutme',$aboutme); + } else { + $xoopsTpl->assign('show_aboutme','no'); + } // ------------ SCHOOL ------------ // //School name - $nr5 = unserialize($r['school_type']); - $nr6 = unserialize($r['school']); - $nr7 = unserialize($r['schoolstart']); - $nr8 = unserialize($r['schoolstop']); - $school = ""; - foreach ($nr5 as $k => $v) { - $school .= $item->school_add ('smallworld_add3', 'school', 'school_type', - '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=stripslashes($nr6[$k]),$preset=$v, $selectedstart=date("Y",$nr7[$k]),$selectedstop=date("Y",$nr8[$k])); - $school .= "<span class='smallworld_remove2' id='schoolremove'>"; - $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('school',$school); + if (smallworldGetValfromArray ('education', 'smallworldusethesefields') != 0) { + $nr5 = unserialize($r['school_type']); + $nr6 = unserialize($r['school']); + $nr7 = unserialize($r['schoolstart']); + $nr8 = unserialize($r['schoolstop']); + $school = ""; + foreach ($nr5 as $k => $v) { + $school .= $item->school_add ('smallworld_add3', 'school', 'school_type', + '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=stripslashes($nr6[$k]),$preset=$v, $selectedstart=date("Y",$nr7[$k]),$selectedstop=date("Y",$nr8[$k])); + $school .= "<span class='smallworld_remove2' id='schoolremove'>"; + $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + } + $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('school',$school); + } else { + $xoopsTpl->assign('show_school','no'); + } //Jobs - $nr9 = unserialize($r['employer']); - $nr10 = unserialize($r['position']); - $nr11 = unserialize($r['jobstart']); - $nr12 = unserialize($r['jobstop']); - $nr13 = unserialize(stripslashes($r['description'])); - $job=""; - foreach ($nr9 as $k=>$v) { - $job .= $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $employer=stripslashes($v), $position=stripslashes($nr10[$k]), - $selectedstart=date("Y",$nr11[$k]), $selectedstop=date("Y",$nr12[$k]),$description=$nr13[$k]); - $job .= "<span class='smallworld_remove3' id='jobremove'>"; - $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('job',$job); + if (smallworldGetValfromArray ('employment', 'smallworldusethesefields') != 0) { + $nr9 = unserialize($r['employer']); + $nr10 = unserialize($r['position']); + $nr11 = unserialize($r['jobstart']); + $nr12 = unserialize($r['jobstop']); + $nr13 = unserialize(stripslashes($r['description'])); + $job=""; + foreach ($nr9 as $k=>$v) { + $job .= $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $employer=stripslashes($v), $position=stripslashes($nr10[$k]), + $selectedstart=date("Y",$nr11[$k]), $selectedstop=date("Y",$nr12[$k]),$description=$nr13[$k]); + $job .= "<span class='smallworld_remove3' id='jobremove'>"; + $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + } + $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('job',$job); + } else { + $xoopsTpl->assign('show_jobs','no'); + } // Create hidden forms for birthcity $birthplace_lat = $item->hidden('birthplace_lat','birthplace_lat',$preset=stripslashes($r['birthplace_lat'])); Modified: XoopsModules/smallworld/trunk/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/include/functions.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/include/functions.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -634,4 +634,17 @@ return 0; } } + +//Function to get value from xoopsConfig array +function smallworldGetValfromArray ($key, $array) { + $ar = smallworld_GetModuleOption($array, $repmodule='smallworld'); + $ret = 0; + if (in_array($key, $ar,true)) { + $ret = 1; + return $ret; + } else { + return 0; + } + +} ?> Modified: XoopsModules/smallworld/trunk/index.php =================================================================== --- XoopsModules/smallworld/trunk/index.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/index.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -26,7 +26,6 @@ include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); global $xoopsUser, $xoTheme,$xoopsConfig; - if ($xoopsUser) { $id = $xoopsUser->getVar('uid'); $user = new XoopsUser($id); @@ -54,6 +53,7 @@ $menu_gallery = "<a href='".XOOPS_URL."/modules/smallworld/galleryshow.php?username=".$username."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/picture.png'>"._SMALLWORLD_GALLERY."</a>"; $menu_friends = "<a href='".XOOPS_URL."/modules/smallworld/friends.php?username=".$username."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/group.png'>"._SMALLWORLD_FRIENDSPAGE."</a>"; + // Things to do with wall $Wall = new Wall_Updates(); $myavatar = $Wall->Gravatar($id); Modified: XoopsModules/smallworld/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -60,6 +60,7 @@ define ('_MI_SMALLWORLD_REALNAME','Real name'); define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); +define ('_MI_SMALLWORLD_RELATIONSHIPSTATUS','relationship status'); define ('_MI_SMALLWORLD_PARTNER','Partner'); define ('_MI_SMALLWORLD_LOOKINGFOR','Looking for'); define ('_MI_SMALLWORLD_BIRTHDAY','Birthday'); Modified: XoopsModules/smallworld/trunk/preloads/core.php =================================================================== --- XoopsModules/smallworld/trunk/preloads/core.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/preloads/core.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -67,7 +67,7 @@ $fieldstoshow = array_flip(smallworld_GetModuleOption('smallworldusethesefields', $repmodule='smallworld')); $useverification = array_flip(smallworld_GetModuleOption('smallworldmandatoryfields', $repmodule='smallworld')); $smallworldUV = implode(',', $useverification); - + // Get users messages count based on users followerArray $getUserMsgNum = smallworld_getCountFriendMessagesEtc (); Modified: XoopsModules/smallworld/trunk/register.php =================================================================== --- XoopsModules/smallworld/trunk/register.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/register.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -50,12 +50,16 @@ // ------------ PERSONAL INFO ------------ // // Real name + if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$xoopsUser->getVar('name')); $xoopsTpl->append('realname',$realname); - + } + + if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { // Dropdown for gender $gender = $item->dropdown('gender',$arr0,0); $xoopsTpl->append('gender', $gender); + } // Selectbox for "interested in gender(s)" $intInGender = $item->radio('intingender',$arr01,0); Modified: XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html 2012-01-16 14:29:22 UTC (rev 8743) @@ -8,6 +8,7 @@ <label for="smallworld_realname"></label> <table class="smallworld_table" border="0" cellspacing="0" cellpadding="0"> + <{if $show_realname != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_REALNAME}></p></td> <td><label for="Realname"></label> @@ -16,7 +17,9 @@ <{/section}> </td> </tr> - + <{/if}> + + <{if $show_gender != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_GENDER}></p></td> <td><label for="select"></label> @@ -25,7 +28,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_interestedin != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTEDIN}></p></td> <td><label for="select"></label> @@ -36,7 +41,9 @@ </span> </td> </tr> + <{/if}> + <{if $show_relationshipstatus != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELATIONSHIPSTATUS}></p></td> <td><label for="select"></label> @@ -45,6 +52,7 @@ <{/section}> </td> </tr> + <div class="partner"> <tr> <td><p class="partner"><{$smarty.const._SMALLWORLD_PARTNER}></p></td> @@ -55,7 +63,9 @@ </td> </tr> </div> + <{/if}> + <{if $show_lookingfor != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LOOKINGFOR}></p></td> <td><label for="select"></label> @@ -67,7 +77,9 @@ <br/> </td> </tr> - + <{/if}> + + <{if $show_birthday != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHDAY}></p></td> <td> @@ -76,7 +88,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_birthplace != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHPLACE}></p></td> <div class="ui-widget"> @@ -97,11 +111,11 @@ <{$birthplace_country_img[i]}> <{/section}> </td> - </div> - + </div> </tr> + <{/if}> - + <{if $show_political != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_POLITICALVIEW}></p></td> <td><label for="select"></label> @@ -110,7 +124,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_religion != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELIGIOUSVIEW}></p></td> <td><lable for="select"></lable> @@ -119,12 +135,14 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP2}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_emails != 'no'}> <tr> <p class="emails"> <td valign="top"><p><{$smarty.const._SMALLWORLD_EMAILS}></p></td> @@ -135,6 +153,9 @@ </td> </p> </tr> + <{/if}> + + <{if $show_screennames != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_SCREENNAMES}></p></td> <td><label for="Screenname"></label> @@ -144,6 +165,9 @@ </td> </tr> + <{/if}> + + <{if $show_mobile != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_MOBILEPHONE}></p></td> <td> @@ -152,8 +176,9 @@ <{/section}> </td> </tr> + <{/if}> - + <{if $show_landphone != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LANDPHONE}></p></td> <td> @@ -162,7 +187,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_adress != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ADRESS}></p></td> <td> @@ -171,6 +198,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_city != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_CITY}></p></td> <div class="ui-widget"> @@ -190,7 +220,6 @@ </td><td style="right:2px" id="cityflag"></td> </div> </tr> - <tr> <td><p><{$smarty.const._SMALLWORLD_COUNTRY}></p></td> <td> @@ -199,17 +228,22 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_website != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_WEBSITE}></p></td> <td><textarea name="website" id="website">http://</textarea> </td> </tr> + <{/if}> </table><br/> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP3}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_interests != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTS}></p></td> <td> @@ -217,9 +251,11 @@ <{$interests[i]}> <{/section}> </td> - </tr> + </tr> + <{/if}> + + <{if $show_music != 'no'}> <tr> - <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMUSIC}></p></td> <td> <{section name=i loop=$music}> @@ -227,7 +263,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_tv != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITETVSHOW}></p></td> <td> @@ -236,7 +274,9 @@ <{/section}> </textarea></td> </tr> + <{/if}> + <{if $show_movies != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMOVIES}></p></td> <td> @@ -244,8 +284,10 @@ <{$movie[i]}> <{/section}> </td> - </tr> + </tr> + <{/if}> + <{if $show_books != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEBOOKS}></p></td> <td> @@ -254,7 +296,9 @@ <{/section}> </td> </tr> - + <{/if}> + + <{if $show_aboutme != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ABOUTME}></p></td> <td> @@ -263,6 +307,7 @@ <{/section}> </td> </tr> + <{/if}> <tr> <td ></td> </tr><br/> @@ -273,20 +318,23 @@ <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP4}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_school != 'no'}> <tr> - <label for="School"></label> - <td> - <{section name=i loop=$school}> - <{$school[i]}> - <{/section}> - </td> - </tr> + <label for="School"></label> + <td> + <{section name=i loop=$school}> + <{$school[i]}> + <{/section}> + </td> + </tr> + <{/if}> </table> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP5}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_jobs != 'no'}> <tr> <label for="Job"></label> <td> @@ -295,6 +343,7 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> Modified: XoopsModules/smallworld/trunk/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -171,6 +171,7 @@ $modversion['config'][$i]['valuetype'] = 'array'; $modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_RELATIONSHIPSTATUS' => 'relationshipstatus', '_MI_SMALLWORLD_PARTNER' => 'partner', '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', @@ -195,6 +196,7 @@ '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); $modversion['config'][$i]['default'] = array( 'realname', 'interestedin', + 'relationshipstatus', 'partner', 'lookingfor', 'birthday', @@ -227,6 +229,7 @@ $modversion['config'][$i]['valuetype'] = 'array'; $modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_RELATIONSHIPSTATUS' => 'relationshipstatus', '_MI_SMALLWORLD_PARTNER' => 'partner', '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', @@ -251,6 +254,7 @@ '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); $modversion['config'][$i]['default'] = array( 'realname', 'interestedin', + 'relationshipstatus', 'partner', 'lookingfor', 'birthday', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-16 17:22:14
|
Revision: 8745 http://xoops.svn.sourceforge.net/xoops/?rev=8745&view=rev Author: djculex Date: 2012-01-16 17:22:07 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Updated register and templates to use admin selected forms Modified Paths: -------------- XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html Modified: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 16:22:06 UTC (rev 8744) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 17:22:07 UTC (rev 8745) @@ -201,7 +201,7 @@ $xoopsTpl->assign('show_city','no'); } - if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') == 0) { + if (smallworldGetValfromArray ('website', 'smallworldusethesefields') == 0) { $xoopsTpl->assign('show_website','no'); } Modified: XoopsModules/smallworld/trunk/register.php =================================================================== --- XoopsModules/smallworld/trunk/register.php 2012-01-16 16:22:06 UTC (rev 8744) +++ XoopsModules/smallworld/trunk/register.php 2012-01-16 17:22:07 UTC (rev 8745) @@ -53,126 +53,216 @@ if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$xoopsUser->getVar('name')); $xoopsTpl->append('realname',$realname); + } else { + $xoopsTpl->assign('show_realname','no'); } if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { // Dropdown for gender $gender = $item->dropdown('gender',$arr0,0); $xoopsTpl->append('gender', $gender); + } else { + $xoopsTpl->assign('show_gender','no'); } // Selectbox for "interested in gender(s)" - $intInGender = $item->radio('intingender',$arr01,0); + if (smallworldGetValfromArray ('interestedin', 'smallworldusethesefields') != 0) { + $intInGender = $item->radio('intingender',$arr01,0); $xoopsTpl->append('intingender',$intInGender); + } else { + $xoopsTpl->assign('show_interestedin','no'); + } // Dropdown for marital status - $relationshipstatus = $item->dropdown('relationship',$arr02,0); + if (smallworldGetValfromArray ('relationshipstatus', 'smallworldusethesefields') != 0) { + $relationshipstatus = $item->dropdown('relationship',$arr02,0); $xoopsTpl->append('relationshipstatus',$relationshipstatus); - // Partner. Only shown if marital status is married, it's complicated, engaged) - $partner = $item->input('partner', 'partner', 'partner',$size='30', $preset=null); - $xoopsTpl->append('partner',$partner); + // Partner. Only shown if marital status is married, it's complicated, engaged) + $partner = $item->input('partner', 'partner', 'partner',$size='30', $preset=null); + $xoopsTpl->append('partner',$partner); + } else { + $xoopsTpl->assign('show_relationshipstatus','no'); + } // Checkbox for searchin for - $searchrelat = $item->radio('searchrelat',$arr03,0); + if (smallworldGetValfromArray ('lookingfor', 'smallworldusethesefields') != 0) { + $searchrelat = $item->radio('searchrelat',$arr03,0); $xoopsTpl->append('searchrelat',$searchrelat); + } else { + $xoopsTpl->assign('show_lookingfor','no'); + } // Select Birthday dd-mm-Y - $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=null); + if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) { + $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=null); $xoopsTpl->append('birthdaydate',$birthday); + } else { + $xoopsTpl->assign('show_birthday','no'); + } // Select Hometown or Enter new - $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=null); + if (smallworldGetValfromArray ('birthplace', 'smallworldusethesefields') != 0) { + $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=null); $xoopsTpl->append('birthplace',$birthplace); + } else { + $xoopsTpl->assign('show_birthplace','no'); + } // Dropdown politics - $politic = $item->dropdown('politic',$arr04,0); + if (smallworldGetValfromArray ('politicalview', 'smallworldusethesefields') != 0) { + $politic = $item->dropdown('politic',$arr04,0); $xoopsTpl->append('politic',$politic); + } else { + $xoopsTpl->assign('show_political','no'); + } // Dropdown Religion - $religion = $item->dropdown('religion',$arr05,0); + if (smallworldGetValfromArray ('religiousview', 'smallworldusethesefields') != 0) { + $religion = $item->dropdown('religion',$arr05,0); $xoopsTpl->append('religion',$religion); + } else { + $xoopsTpl->assign('show_religion','no'); + } // ------------ CONTACT INFO ------------ // // Add email test //function input_add($class, $name, $name2, $rel, $size, $textmore, $preset=null) { //$emailtext = $item->input('email','email','email',$size='12',$preset=null); - $emailtext = $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,_SMALLWORLD_ADDMORE,$preset=$xoopsUser->getVar('email'),"email-0"); + if (smallworldGetValfromArray ('emails', 'smallworldusethesefields') != 0) { + $emailtext = $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,_SMALLWORLD_ADDMORE,$preset=$xoopsUser->getVar('email'),"email-0"); $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; $emailtext .= "<a class='smallworld_addemail' href='javascript:void(0);' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('emailtext',$emailtext); + $xoopsTpl->append('emailtext',$emailtext); + } else { + $xoopsTpl->assign('show_emails','no'); + } // Drop down for screen names /*dropdown_add ($name, $name2, $rel, array $options, $textmore, $selected=null) {*/ - $screenname = $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,_SMALLWORLD_ADDMORE,$selected=null, $preset=null); - $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; + if (smallworldGetValfromArray ('screennames', 'smallworldusethesefields') != 0) { + $screenname = $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,_SMALLWORLD_ADDMORE,$selected=null, $preset=null); + $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('screenname',$screenname); - + $xoopsTpl->append('screenname',$screenname); + } else { + $xoopsTpl->assign('show_screennames','no'); + } + // Mobilephone - $mobile = $item->input('mobile','mobile','mobile',12,$preset=null); - $xoopsTpl->append('mobile',$mobile); + if (smallworldGetValfromArray ('mobile', 'smallworldusethesefields') != 0) { + $mobile = $item->input('mobile','mobile','mobile',12,$preset=null); + $xoopsTpl->append('mobile',$mobile); + } else { + $xoopsTpl->assign('show_mobile','no'); + } // Landphone - $phone = $item->input('phone','phone','phone',12,$preset=null); - $xoopsTpl->append('phone',$phone); + if (smallworldGetValfromArray ('landphone', 'smallworldusethesefields') != 0) { + $phone = $item->input('phone','phone','phone',12,$preset=null); + $xoopsTpl->append('phone',$phone); + } else { + $xoopsTpl->assign('show_landphone','no'); + } // Adress - $adress = $item->input('adress','adress','adress',$size='50',$preset=null); - $xoopsTpl->append('adress',$adress); - - $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=null); - $xoopsTpl->append('present_city',$present_city); - - $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=null); - $xoopsTpl->append('present_country',$present_country); + if (smallworldGetValfromArray ('streetadress', 'smallworldusethesefields') != 0) { + $adress = $item->input('adress','adress','adress',$size='50',$preset=null); + $xoopsTpl->append('adress',$adress); + } else { + $xoopsTpl->assign('show_adress','no'); + } + if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') != 0) { + $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=null); + $xoopsTpl->append('present_city',$present_city); + $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=null); + $xoopsTpl->append('present_country',$present_country); + } else { + $xoopsTpl->assign('show_city','no'); + } + + if (smallworldGetValfromArray ('website', 'smallworldusethesefields') == 0) { + $xoopsTpl->assign('show_website','no'); + } + // ------------ INTERESTS ------------ // // Textarea for interests //textarea($name, $id, $title, $rows, $cols, $class) - $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites'); - $xoopsTpl->append('interests',$interests); + if (smallworldGetValfromArray ('interests', 'smallworldusethesefields') != 0) { + $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites'); + $xoopsTpl->append('interests',$interests); + } else { + $xoopsTpl->assign('show_interests','no'); + } // Textarea for Music - $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites'); - $xoopsTpl->append('music',$music); + if (smallworldGetValfromArray ('favouritemusic', 'smallworldusethesefields') != 0) { + $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites'); + $xoopsTpl->append('music',$music); + } else { + $xoopsTpl->assign('show_music','no'); + } // Textarea for Tvshow - $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites'); - $xoopsTpl->append('tvshow',$tvshow); + if (smallworldGetValfromArray ('favouritetvshows', 'smallworldusethesefields') != 0) { + $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites'); + $xoopsTpl->append('tvshow',$tvshow); + } else { + $xoopsTpl->assign('show_tv','no'); + } // Textarea for Movie - $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites'); - $xoopsTpl->append('movie',$movie); + if (smallworldGetValfromArray ('favouritemovies', 'smallworldusethesefields') != 0) { + $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites'); + $xoopsTpl->append('movie',$movie); + } else { + $xoopsTpl->assign('show_movies','no'); + } // Textarea for Books - $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites'); - $xoopsTpl->append('books',$books); + if (smallworldGetValfromArray ('favouritebooks', 'smallworldusethesefields') != 0) { + $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites'); + $xoopsTpl->append('books',$books); + } else { + $xoopsTpl->assign('show_books','no'); + } // Textarea for About me - $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites'); - $xoopsTpl->append('aboutme',$aboutme); + if (smallworldGetValfromArray ('aboutme', 'smallworldusethesefields') != 0) { + $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites'); + $xoopsTpl->append('aboutme',$aboutme); + } else { + $xoopsTpl->assign('show_aboutme','no'); + } // ------------ SCHOOL ------------ // - //School name - $school = $item->school_add ('smallworld_add3', 'school', 'school_type', '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=null,$preset=null,$selectedstart=null,$selectedstop=null); - $school .= "<span class='smallworld_remove2' id='schoolremove'>"; - $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + if (smallworldGetValfromArray ('education', 'smallworldusethesefields') != 0) { + $school = $item->school_add ('smallworld_add3', 'school', 'school_type', '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=null,$preset=null,$selectedstart=null,$selectedstop=null); + $school .= "<span class='smallworld_remove2' id='schoolremove'>"; + $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('school',$school); + $xoopsTpl->append('school',$school); + } else { + $xoopsTpl->assign('show_school','no'); + } //Jobs //function job ($class, $name,$name2, $rel, array$options, $textmore, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null) { - $job = $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null); - $job .= "<span class='smallworld_remove3' id='jobremove'>"; + if (smallworldGetValfromArray ('employment', 'smallworldusethesefields') != 0) { + $job = $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null); + $job .= "<span class='smallworld_remove3' id='jobremove'>"; $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('job',$job); + $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('job',$job); + } else { + $xoopsTpl->assign('show_jobs','no'); + } // Create hidden forms for birthcity $birthplace_lat = $item->hidden('birthplace_lat','birthplace_lat',$preset=null); Modified: XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html 2012-01-16 16:22:06 UTC (rev 8744) +++ XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html 2012-01-16 17:22:07 UTC (rev 8745) @@ -8,6 +8,7 @@ <label for="smallworld_realname"><{$smarty.const._SMALLWORLD_PERSONALINFO}></label> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_realname != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_REALNAME}></p></td> <td><label for="Realname"></label> @@ -16,7 +17,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_gender != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_GENDER}></p></td> <td><label for="select"></label> @@ -25,7 +28,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_interestedin != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTEDIN}></p></td> <td><label for="select"></label> @@ -36,7 +41,9 @@ </span> </td> </tr> + <{/if}> + <{if $show_relationshipstatus != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELATIONSHIPSTATUS}></p></td> <td><label for="select"></label> @@ -56,7 +63,9 @@ </td> </tr> </div> + <{/if}> + <{if $show_lookingfor != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LOOKINGFOR}></p></td> <td><label for="select"></label> @@ -68,7 +77,9 @@ <br/> </td> </tr> + <{/if}> + <{if $show_birthday != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHDAY}></p></td> <td> @@ -77,7 +88,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_birthplace != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHPLACE}></p></td> <div class="ui-widget"> @@ -98,11 +111,11 @@ <{$birthplace_country_img[i]}> <{/section}> </td> - </div> - + </div> </tr> + <{/if}> - + <{if $show_political != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_POLITICALVIEW}></p></td> <td><label for="select"></label> @@ -111,7 +124,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_religion != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELIGIOUSVIEW}></p></td> <td><lable for="select"></lable> @@ -120,12 +135,14 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP2}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_emails != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_EMAILS}></p></td> <td><label for="email"></label> @@ -134,6 +151,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_screennames != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_SCREENNAMES}></p></td> <td><label for="Screenname"></label> @@ -143,6 +163,9 @@ </td> </tr> + <{/if}> + + <{if $show_mobile != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_MOBILEPHONE}></p></td> @@ -153,6 +176,9 @@ </td> </tr> + <{/if}> + + <{if $show_landphone != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LANDPHONE}></p></td> <td> @@ -161,7 +187,9 @@ <{/section}> </td> </tr> - + <{/if}> + + <{if $show_adress != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ADRESS}></p></td> <td> @@ -170,6 +198,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_city != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_CITY}></p></td> <div class="ui-widget"> @@ -199,12 +230,16 @@ </td> </tr> + <{/if}> + + <{if $show_website != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_WEBSITE}></p></td> <td><textarea name="website" id="website">http://</textarea> </td> </tr> + <{/if}> </table><br/> </fieldset> @@ -212,6 +247,7 @@ <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP3}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_interests != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTS}></p></td> <td> @@ -220,8 +256,10 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_music != 'no'}> <tr> - <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMUSIC}></p></td> <td> <{section name=i loop=$music}> @@ -229,6 +267,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_tv != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITETVSHOW}></p></td> <td> @@ -237,6 +278,9 @@ <{/section}> </textarea></td> </tr> + <{/if}> + + <{if $show_movies != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMOVIES}></p></td> @@ -246,6 +290,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_books != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEBOOKS}></p></td> <td> @@ -254,7 +301,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_aboutme != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ABOUTME}></p></td> <td> @@ -263,6 +312,7 @@ <{/section}> </td> </tr> + <{/if}> <tr> <td ></td> </tr><br/> @@ -273,7 +323,7 @@ <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP4}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> - + <{if $show_school != 'no'}> <tr> <label for="School"></label> <td> @@ -283,6 +333,7 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> @@ -290,6 +341,7 @@ <legend><{$smarty.const._SMALLWORLD_STEP5}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr> + <{if $show_jobs != 'no'}> <label for="Job"></label> <td> <p class="smallworld_clone4"> @@ -298,6 +350,7 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-01-18 05:17:22
|
Revision: 8749 http://xoops.svn.sourceforge.net/xoops/?rev=8749&view=rev Author: beckmi Date: 2012-01-18 05:17:13 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Adjusting folder structure Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/Get_Count.php XoopsModules/smallworld/trunk/smallworld/admin/ XoopsModules/smallworld/trunk/smallworld/avatarupload.php XoopsModules/smallworld/trunk/smallworld/class/ XoopsModules/smallworld/trunk/smallworld/comment_ajax.php XoopsModules/smallworld/trunk/smallworld/complaint.php XoopsModules/smallworld/trunk/smallworld/css/ XoopsModules/smallworld/trunk/smallworld/delete_comment_ajax.php XoopsModules/smallworld/trunk/smallworld/delete_message_ajax.php XoopsModules/smallworld/trunk/smallworld/docs/ XoopsModules/smallworld/trunk/smallworld/down_vote.php XoopsModules/smallworld/trunk/smallworld/editimages.php XoopsModules/smallworld/trunk/smallworld/editprofile.php XoopsModules/smallworld/trunk/smallworld/friendinvite.php XoopsModules/smallworld/trunk/smallworld/friends.php XoopsModules/smallworld/trunk/smallworld/galleryshow.php XoopsModules/smallworld/trunk/smallworld/image_edit_submit.php XoopsModules/smallworld/trunk/smallworld/images/ XoopsModules/smallworld/trunk/smallworld/img_upload.php XoopsModules/smallworld/trunk/smallworld/imgupload.php XoopsModules/smallworld/trunk/smallworld/include/ XoopsModules/smallworld/trunk/smallworld/index.php XoopsModules/smallworld/trunk/smallworld/js/ XoopsModules/smallworld/trunk/smallworld/language/ XoopsModules/smallworld/trunk/smallworld/loadmore.php XoopsModules/smallworld/trunk/smallworld/message_ajax.php XoopsModules/smallworld/trunk/smallworld/partnersearch.php XoopsModules/smallworld/trunk/smallworld/permalink.php XoopsModules/smallworld/trunk/smallworld/preloads/ XoopsModules/smallworld/trunk/smallworld/register.php XoopsModules/smallworld/trunk/smallworld/search.php XoopsModules/smallworld/trunk/smallworld/smallworldshare.php XoopsModules/smallworld/trunk/smallworld/sql/ XoopsModules/smallworld/trunk/smallworld/stats.php XoopsModules/smallworld/trunk/smallworld/submit.php XoopsModules/smallworld/trunk/smallworld/templates/ XoopsModules/smallworld/trunk/smallworld/up_vote.php XoopsModules/smallworld/trunk/smallworld/userprofile.php XoopsModules/smallworld/trunk/smallworld/xoops_version.php Removed Paths: ------------- XoopsModules/smallworld/trunk/Get_Count.php XoopsModules/smallworld/trunk/admin/ XoopsModules/smallworld/trunk/avatarupload.php XoopsModules/smallworld/trunk/class/ XoopsModules/smallworld/trunk/comment_ajax.php XoopsModules/smallworld/trunk/complaint.php XoopsModules/smallworld/trunk/css/ XoopsModules/smallworld/trunk/delete_comment_ajax.php XoopsModules/smallworld/trunk/delete_message_ajax.php XoopsModules/smallworld/trunk/docs/ 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/img_upload.php XoopsModules/smallworld/trunk/imgupload.php XoopsModules/smallworld/trunk/include/ XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/js/ XoopsModules/smallworld/trunk/language/ 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/register.php XoopsModules/smallworld/trunk/search.php XoopsModules/smallworld/trunk/smallworldshare.php XoopsModules/smallworld/trunk/sql/ XoopsModules/smallworld/trunk/stats.php XoopsModules/smallworld/trunk/submit.php XoopsModules/smallworld/trunk/templates/ XoopsModules/smallworld/trunk/up_vote.php XoopsModules/smallworld/trunk/userprofile.php XoopsModules/smallworld/trunk/xoops_version.php Deleted: XoopsModules/smallworld/trunk/Get_Count.php =================================================================== --- XoopsModules/smallworld/trunk/Get_Count.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/Get_Count.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,35 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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 Deleted: XoopsModules/smallworld/trunk/avatarupload.php =================================================================== --- XoopsModules/smallworld/trunk/avatarupload.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/avatarupload.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,51 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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 Deleted: XoopsModules/smallworld/trunk/comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/comment_ajax.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/comment_ajax.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,84 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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"); -include_once (XOOPS_ROOT_PATH.'/class/template.php'); -global $xoopsUser, $xoopsModule,$xoopsLogger,$xoopsTpl; -$xoopsLogger->activated = false; -$page = 'index'; -if ($xoopsUser) { - $id = $xoopsUser->getVar('uid'); - $Xuser = new XoopsUser($id); - $username = $Xuser->getVar('uname'); - $Wall = new Wall_Updates(); - $tpl = new XoopsTpl(); - $mail = new smallworld_mail; - - if(isSet($_POST['comment'])) { - if ( $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $tpl->assign('isadminuser', 'YES'); - } - //$followers = $Wall->getFollowers($id); - $followers = array_flatten($Wall->getFollowers($id),0); - - $myavatar = $Wall->Gravatar($id); - $myavatarlink = smallworld_getAvatarLink($id, $myavatar); - - // Get posted items - $comment=$_POST['comment']; - $msg_id=$_POST['msg_id']; - - $data=$Wall->Insert_Comment($id,$msg_id,$comment); - if($data) { - $wc['msg_id_fk'] = $data['msg_id_fk']; - $wc['com_id'] = $data['com_id']; - $wc['comment'] = smallworld_tolink(htmlentities($data['comment'] )); - $wc['time'] = smallworld_time_stamp($data['created']); - $wc['username'] = $data['username']; - $wc['uid'] = $data['uid_fk']; - $wc['myavatar'] = $myavatar; - $wc['myavatar_link']= $myavatarlink; - $wc['cface'] = $Wall->Gravatar($data['uid_fk']); - $wc['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wc['cface']); - $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']); - $wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>"; - $wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $data['msg_id_fk'],$data['com_id']); - $wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $data['msg_id_fk'],$data['com_id']); - $tpl->append('comments', $wc); - - $tpl->assign('myusername',$username); - $tpl->assign('pagename',$page); - $tpl->assign('myavatar',$myavatar); - $tpl->assign('myavatarlink',$myavatarlink); - $tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/getlastcom.html'); - - // send mail to user owning update + participans in the thread that a comment has been posted - $parts = $mail->getPartsFromComment ($data['msg_id_fk']); - $emails = ""; - foreach ($parts as $k=>$v) { - $owner = getOwnerFromComment ($data['msg_id_fk']); - $mail->sendMails ($data['uid_fk'], $v, 'commentToWM', $link=null, $wc); - } - } - } -} -?> Deleted: XoopsModules/smallworld/trunk/complaint.php =================================================================== --- XoopsModules/smallworld/trunk/complaint.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/complaint.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,54 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); - -global $xoopsUser, $xoopsLogger; -$xoopsLogger->activated = false; - -$db = new SmallWorldDB; - -if ($xoopsUser) { - if($_POST['byuser']) { - $by_userid = $xoopsUser->getVar('uid'); - $a_user = addslashes($_POST['a_user']); - $auserid = intval($_POST['auserid']); - $byuser = addslashes($_POST['byuser']); - $id = addslashes($_POST['id']); - $name = addslashes($_POST['name']); - $time = time(); - $data = array('time' => $time, 'a_user'=>$a_user,'byuser'=>$byuser,'link'=>$id, 'a_userid'=>$auserid); - $already = $db->alreadycomplaint ($id, $by_userid, $auserid); - - if ($already != 1) { - $mail = new smallworld_mail; - $mail->sendMails($by_userid, '', 'complaint', $link=null, $data); - $db->updateComplaint ($auserid); - echo _SMALLWORLD_JS_COMPLAINTSENT; - } else { - echo _SMALLWORLD_JS_COMPLAINT_ALREADY_SENT; - } - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/delete_comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/delete_comment_ajax.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/delete_comment_ajax.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,40 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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"); -global $xoopsUser, $xoopsModule,$xoopsLogger; -$xoopsLogger->activated = false; - - $id = $xoopsUser->getVar('uid'); - $msgowner = $_POST['msgowner']; - -if ($xoopsUser) { - - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $id == $msgowner) { - $db = new SmallWorldDB; - if (isset($_POST['smallworld_com_id'])) { - $smallworld_com_id = $_POST['smallworld_com_id']; - $data = $db->deleteWallComment($smallworld_com_id); - } - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/delete_message_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/delete_message_ajax.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/delete_message_ajax.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,38 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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"); -global $xoopsUser, $xoopsModule,$xoopsLogger; -$xoopsLogger->activated = false; - $id = $xoopsUser->getVar('uid'); - $msgowner = $_POST['msgowner']; - -if ($xoopsUser) { - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $id == $msgowner) { - $db = new SmallWorldDB; - if (isset($_POST['smallworld_msg_id'])) { - $smallworld_msg_id = $_POST['smallworld_msg_id']; - $data = $db->deleteWallMsg($id,$smallworld_msg_id); - } - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/down_vote.php =================================================================== --- XoopsModules/smallworld/trunk/down_vote.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/down_vote.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,68 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); - -global $xoopsUser, $xoTheme, $xoopsTpl,$xoopsLogger, $xoopsDB; -$xoopsLogger->activated = false; -$Wall = new Wall_Updates(); -if ($xoopsUser) { - - if($_POST['id']) { - $id = intval($_POST['id']); - $type = mysql_escape_String($_POST['type']); - $type2 = mysql_escape_String($_POST['type2']); - $owner = mysql_escape_String($_POST['owner']); - $userid = $xoopsUser->getVar('uid'); - $hasvoted = $Wall->HasVoted ($userid, $type, $type2, $id); - if ($type == 'msg') { - if ( $hasvoted > 0 ) { - echo "<script type='text/javascript'>"; - echo "alert('"._SMALLWORLD_JS_ALREADYVOTED."');"; - echo "</script>"; - } else { - $sql = "INSERT INTO ".$xoopsDB->prefix('smallworld_vote')." (vote_id,msg_id,com_id,user_id,owner,up,down) VALUES ('', '".$id."', '0', '".$userid."', '".$owner."', '0', '1')"; - $result=$xoopsDB->queryF($sql); - - } - $newvote = $Wall->countVotes ($type, 'down', $id); - } - - if ($type == 'com') { - if ( $hasvoted > 0 ) { - echo "<script type='text/javascript'>alert('"._SMALLWORLD_JS_ALREADYVOTED."');</script>"; - } else { - $sql = "INSERT INTO ".$xoopsDB->prefix('smallworld_vote')." (vote_id,msg_id,com_id,user_id,owner,up,down) VALUES ('', '".$id."', '".$type2."', '".$userid."', '".$owner."', '0', '1')"; - $result=$xoopsDB->queryF($sql); - } - $newvote = $Wall->countVotesCom ($type, 'down', $type2, $id); - } - - } - $link = '<span id ="smallworld_votenum">'.$newvote.'</span> <a href="javascript:void(0)" name="down" class="smallworld_stcomment_vote"'; - $link .= ' id="'.$id.'" type="'.$type.'" owner="'.$owner.'" type2="'.$type2.'">'; - $link .= '<img class="smallworld_voteimg" src = "images/dislike.png" /></a>'; - echo $link; -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/editimages.php =================================================================== --- XoopsModules/smallworld/trunk/editimages.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/editimages.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,59 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_images_edittemplate.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -global $xoopsUser,$xoopsTpl,$xoopsDB; - - if ($xoopsUser) { - $userID = $xoopsUser->getVar('uid'); - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = isInspected ($userID); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - - $check = new SmallWorldUser; - $profile = $check->CheckIfProfile($userID); - if ($profile > 0) { - $xoopsTpl->assign('check',1); - $item = new SmallWorldForm; - $db = new SmallWorldDB; - - $editimages = ''; - $sql = "SELECT *FROM ".$xoopsDB->prefix('smallworld_images')." WHERE userid = '".$userID."'"; - $result = $xoopsDB->query($sql); - $i = 0; - while ($sqlfetch=$xoopsDB->fetchArray($result)) { - $editimages .= $item->edit_images ($userID,$sqlfetch['imgurl'], $sqlfetch['desc'],$sqlfetch['id']); - $i++; - } - $xoopsTpl->append('editimages',$editimages); - } else { - redirect_header("index.php", 1); - } - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,326 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_userprofile_edittemplate.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -global $xoopsUser,$xoopsTpl,$xoopsDB; - - if ($xoopsUser) { - $id = $xoopsUser->getVar('uid'); - $check = new SmallWorldUser; - $profile = $check->CheckIfProfile($id); - - // Check if inspected userid -> redirect to userprofile and show admin countdown - /* - $inspect = isInspected ($id); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - */ - if ($profile > 0) { - $xoopsTpl->assign('check',1); - $item = new SmallWorldForm; - $db = new SmallWorldDB; - - $cdb = "SELECT * FROM ".$xoopsDB->prefix('smallworld_user')." WHERE userid = '".$id."'"; - $result = $xoopsDB->queryF($cdb); - $cnt = $xoopsDB->getRowsNum($result); - while ($r = $xoopsDB->fetchArray($result)) { - // ------------ PERSONAL INFO ------------ // - - // Real name - if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { - $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$r['realname']); - $xoopsTpl->append('realname',$realname); - } else { - $xoopsTpl->assign('show_realname','no'); - } - - // Dropdown for gender - if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { - $gender = $item->dropdown('gender',$arr0,$r['gender']); - $xoopsTpl->append('gender', $gender); - } else { - $xoopsTpl->assign('show_gender','no'); - } - - // Selectbox for "interested in gender(s)" - if (smallworldGetValfromArray ('interestedin', 'smallworldusethesefields') != 0) { - $nr = unserialize($r['intingender']); - $intInGender = $item->RetrieveRadio('intingender',$arr01,$nr, $selected=null); - $xoopsTpl->append('intingender',$intInGender); - } else { - $xoopsTpl->assign('show_interestedin','no'); - } - - // Dropdown for marital status - if (smallworldGetValfromArray ('relationshipstatus', 'smallworldusethesefields') != 0) { - $relationshipstatus = $item->dropdown('relationship',$arr02,0); - $xoopsTpl->append('relationshipstatus',$relationshipstatus); - - - // Partner. Only shown if marital status is married, it's complicated, engaged) - $partner = $item->input('partner', 'partner', 'partner',$size='30', stripslashes($r['partner'])); - $xoopsTpl->append('partner',$partner); - } else { - $xoopsTpl->assign('show_relationshipstatus','no'); - } - - if (smallworldGetValfromArray ('lookingfor', 'smallworldusethesefields') != 0) { - $nr1 = unserialize($r['searchrelat']); - $searchrelat = $item->RetrieveRadio('searchrelat',$arr03,$nr1, $selected=null); - $xoopsTpl->append('searchrelat',$searchrelat); - } else { - $xoopsTpl->assign('show_lookingfor','no'); - } - - if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) { - // Select Birthday dd-mm-Y - $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=stripslashes(UsToEuroDate($r['birthday']))); - $xoopsTpl->append('birthdaydate',$birthday); - } else { - $xoopsTpl->assign('show_birthday','no'); - } - - // Select Hometown or Enter new - if (smallworldGetValfromArray ('birthplace', 'smallworldusethesefields') != 0) { - $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=stripslashes($r['birthplace'])); - $xoopsTpl->append('birthplace',$birthplace); - } else { - $xoopsTpl->assign('show_birthplace','no'); - } - - // Dropdown politics - if (smallworldGetValfromArray ('politicalview', 'smallworldusethesefields') != 0) { - $politic = $item->dropdown('politic',$arr04,0); - $xoopsTpl->append('politic',$politic); - } else { - $xoopsTpl->assign('show_political','no'); - } - - // Dropdown Religion - if (smallworldGetValfromArray ('religiousview', 'smallworldusethesefields') != 0) { - $religion = $item->dropdown('religion',$arr05,0); - $xoopsTpl->append('religion',$religion); - } else { - $xoopsTpl->assign('show_religion','no'); - } - - // ------------ CONTACT INFO ------------ // - // Add email test - if (smallworldGetValfromArray ('emails', 'smallworldusethesefields') != 0) { - $nr2 = unserialize($r['emailtype']); - $emailtext = ''; - foreach ($nr2 as $k => $v) { - $nr2id = "email-".$k; - $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v),$nr2id); - // $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v)); - $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $emailtext .= "<a class='smallworld_addemail' href='javascript:void();' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('emailtext',$emailtext); - } else { - $xoopsTpl->assign('show_emails','no'); - } - - - //Add screen names (usernames for facebook etc etc) - if (smallworldGetValfromArray ('screennames', 'smallworldusethesefields') != 0) { - $nr3 = unserialize($r['screenname_type']); - $nr4 = unserialize($r['screenname']); - $count1 = count($nr3); - $cnt1 = 0; - - // Drop down for screen names - $screenname =""; - foreach ($nr3 as $k => $v) { - if ($cnt1 < $count1-1) {$addmore1 ="";} else {$addmore1 = _SMALLWORLD_ADDMORE;} - $screenname .= $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,$addmore1,$selected=stripslashes($nr4[$k]),$preset=stripslashes($v)); - $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; - $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - $cnt1++; - } - $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('screenname',$screenname); - } else { - $xoopsTpl->assign('show_screennames','no'); - } - - // Mobilephone - if (smallworldGetValfromArray ('mobile', 'smallworldusethesefields') != 0) { - $mobile = $item->input('mobile','mobile','mobile',12,$preset=stripslashes($r['mobile'])); - $xoopsTpl->append('mobile',$mobile); - } else { - $xoopsTpl->assign('show_mobile','no'); - } - - // Landphone - if (smallworldGetValfromArray ('landphone', 'smallworldusethesefields') != 0) { - $phone = $item->input('phone','phone','phone',12,$preset=stripslashes($r['phone'])); - $xoopsTpl->append('phone',$phone); - } else { - $xoopsTpl->assign('show_landphone','no'); - } - - // Adress - if (smallworldGetValfromArray ('streetadress', 'smallworldusethesefields') != 0) { - $adress = $item->input('adress','adress','adress',$size='50',$preset=stripslashes($r['adress'])); - $xoopsTpl->append('adress',$adress); - } else { - $xoopsTpl->assign('show_adress','no'); - } - - if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') != 0) { - $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=stripslashes($r['present_city'])); - $xoopsTpl->append('present_city',$present_city); - - $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=stripslashes($r['present_country'])); - $xoopsTpl->append('present_country',$present_country); - } else { - $xoopsTpl->assign('show_city','no'); - } - - if (smallworldGetValfromArray ('website', 'smallworldusethesefields') == 0) { - $xoopsTpl->assign('show_website','no'); - } - - // ------------ INTERESTS ------------ // - - // Textarea for interests - //textarea($name, $id, $title, $rows, $cols, $class) - if (smallworldGetValfromArray ('interests', 'smallworldusethesefields') != 0) { - $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites',$preset=stripslashes($r['interests'])); - $xoopsTpl->append('interests',$interests); - } else { - $xoopsTpl->assign('show_interests','no'); - } - - // Textarea for Music - if (smallworldGetValfromArray ('favouritemusic', 'smallworldusethesefields') != 0) { - $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites',$preset=stripslashes($r['music'])); - $xoopsTpl->append('music',$music); - } else { - $xoopsTpl->assign('show_music','no'); - } - - // Textarea for Tvshow - if (smallworldGetValfromArray ('favouritetvshows', 'smallworldusethesefields') != 0) { - $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites',$preset=stripslashes($r['tvshow'])); - $xoopsTpl->append('tvshow',$tvshow); - } else { - $xoopsTpl->assign('show_tv','no'); - } - - // Textarea for Movie - if (smallworldGetValfromArray ('favouritemovies', 'smallworldusethesefields') != 0) { - $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites',$preset=stripslashes($r['movie'])); - $xoopsTpl->append('movie',$movie); - } else { - $xoopsTpl->assign('show_movies','no'); - } - - // Textarea for Books - if (smallworldGetValfromArray ('favouritebooks', 'smallworldusethesefields') != 0) { - $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites',$preset=stripslashes($r['books'])); - $xoopsTpl->append('books',$books); - } else { - $xoopsTpl->assign('show_books','no'); - } - - // Textarea for About me - if (smallworldGetValfromArray ('aboutme', 'smallworldusethesefields') != 0) { - $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites',$preset=stripslashes($r['aboutme'])); - $xoopsTpl->append('aboutme',$aboutme); - } else { - $xoopsTpl->assign('show_aboutme','no'); - } - - - // ------------ SCHOOL ------------ // - - //School name - if (smallworldGetValfromArray ('education', 'smallworldusethesefields') != 0) { - $nr5 = unserialize($r['school_type']); - $nr6 = unserialize($r['school']); - $nr7 = unserialize($r['schoolstart']); - $nr8 = unserialize($r['schoolstop']); - $school = ""; - foreach ($nr5 as $k => $v) { - $school .= $item->school_add ('smallworld_add3', 'school', 'school_type', - '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=stripslashes($nr6[$k]),$preset=$v, $selectedstart=date("Y",$nr7[$k]),$selectedstop=date("Y",$nr8[$k])); - $school .= "<span class='smallworld_remove2' id='schoolremove'>"; - $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('school',$school); - } else { - $xoopsTpl->assign('show_school','no'); - } - - //Jobs - if (smallworldGetValfromArray ('employment', 'smallworldusethesefields') != 0) { - $nr9 = unserialize($r['employer']); - $nr10 = unserialize($r['position']); - $nr11 = unserialize($r['jobstart']); - $nr12 = unserialize($r['jobstop']); - $nr13 = unserialize(stripslashes($r['description'])); - $job=""; - foreach ($nr9 as $k=>$v) { - $job .= $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $employer=stripslashes($v), $position=stripslashes($nr10[$k]), - $selectedstart=date("Y",$nr11[$k]), $selectedstop=date("Y",$nr12[$k]),$description=$nr13[$k]); - $job .= "<span class='smallworld_remove3' id='jobremove'>"; - $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('job',$job); - } else { - $xoopsTpl->assign('show_jobs','no'); - } - - // Create hidden forms for birthcity - $birthplace_lat = $item->hidden('birthplace_lat','birthplace_lat',$preset=stripslashes($r['birthplace_lat'])); - $birthplace_lng = $item->hidden('birthplace_lng','birthplace_lng',$preset=stripslashes($r['birthplace_lng'])); - $birthplace_country = $item->hidden('birthplace_country','birthplace_country',$preset=stripslashes($r['birthplace_country'])); - $xoopsTpl->append('birthplace_lat',$birthplace_lat); - $xoopsTpl->append('birthplace_lng',$birthplace_lng); - $xoopsTpl->append('birthplace_country',$birthplace_country); - - // Create hidden forms for present city - $present_lat = $item->hidden('present_lat','present_lat',$preset=stripslashes($r['present_lat'])); - $present_lng = $item->hidden('present_lng','present_lng',$preset=stripslashes($r['present_lng'])); - $xoopsTpl->append('present_lat',$present_lat); - $xoopsTpl->append('present_lng',$present_lng); - - $xoopsTpl->append('smallworld_register_title',_SMALLWORLD_REGRISTATION_TITLE); - $xoopsTpl->assign('smallworld_beforesubmit',_SMALLWORLD_TEXTBEFORESUBMIT); - $xoopsTpl->assign('smallworld_save',_SMALLWORLD_SUBMIT); - } - } else { - redirect_header("register.php", 1); - } - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/friendinvite.php =================================================================== --- XoopsModules/smallworld/trunk/friendinvite.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/friendinvite.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,103 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -global $xoopsUser; -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"); -global $xoopsUser,$xoopsLogger; -$xoopsLogger->activated = false; - - if ($xoopsUser) { - $check = new SmallWorldUser; - $db = new SmallWorldDB; - $mail = new smallworld_mail; - $friend = $_POST['friend']; - if (isset($_POST['stat'])){ - $stat = $_POST['stat']; - } - $friendProfile = $check->CheckIfProfile($friend); - $invitation = $_POST['invitation']; - $myUid = $_POST['myUid']; - $friendName = $check->getName($friend); - $yourName = $check->getName($myUid); - - if ($invitation == '1') { - if ($friendProfile > 0) { - - $friendshipExists = $check->friendcheck($myUid,$friend); - if ($friendshipExists[0] == 0) { - $resultMsg = _SMALLWORLD_JSON_ADDFRIEND.$friendName._SMALLWORLD_JSON_REQUEST_PENDING; - $mail->sendMails ($friend, $friend, 'friendshipfollow', $link=null, array()); - $db->toogleFriendInvite ($friendshipExists, $friend, $myUid); - echo json_encode(array('error' => 'no', 'msg' => $resultMsg, 'msgChange' => _SMALLWORLD_JSON_CANCELFR_TEXT)); - } - - if ($friendshipExists[0] > 0 AND $friendshipExists[0] < 2) { - $resultMsg = _SMALLWORLD_JSON_CANCEL_ADDFRIEND.$friendName; - $db->toogleFriendInvite ($friendshipExists, $friend, $myUid); - echo json_encode(array('error' => 'no', 'msg' => $resultMsg, 'msgChange' => _SMALLWORLD_JSON_ADDFR_TEXT)); - } - if ($friendshipExists[0] == 2) { - $resultMsg = _SMALLWORLD_JSON_DELETE_FRIEND_START.$friendName._SMALLWORLD_JSON_DELETE_FRIEND_END; - $db->toogleFriendInvite ($friendshipExists, $friend, $myUid); - echo json_encode(array('error' => 'no', 'msg' => $resultMsg, 'msgChange' => _SMALLWORLD_JSON_ADDFR_TEXT)); - } - } else { - echo "friend does not exist"; - } - } - if ($invitation == '2') { - if ($friendProfile > 0) { - // Used for followers - $following = $check->following_or ($myUid, $friend); - - if ($following[0] == 0) { - $resultMsgFollow = _SMALLWORLD_JSON_FOLLOWINGFRIEND.$friendName._SMALLWORLD_JSON_FOLLOWINGFRIEND_DESC; - $db->toogleFollow ($following, $myUid, $friend); - echo json_encode(array('error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLNO_TEXT)); - } - if ($following[0] > 0) { - $resultMsgFollow = _SMALLWORLD_JSON_UNFOLLOWINGFRIEND.$friendName._SMALLWORLD_JSON_UNFOLLOWINGFRIEND_DESC; - $db->toogleFollow ($following, $myUid, $friend); - echo json_encode(array('error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLYES_TEXT)); - } - - } - } - if ($invitation == '3') { - if ($friendProfile > 0) { - // Used for accept/deny friendship requests - if ($stat > 0) { - // Friendship is accepted (update status in mysql) - $db->SetFriendshitStat (1, $myUid, $friend); - $acceptMsg = _SMALLWORLD_JSON_DELETE_FRIEND_START.$friendName._SMALLWORLD_JSON_DELETE_FRIEND_END; - echo json_encode(array('error' => 'no', 'msg' => $acceptMsg, 'msgChange' => _SMALLWORLD_JSON_REMOVEFR_TEXT)); - } - if ($stat < 0){ - // friendship is denied (delete from mysql) - $db->SetFriendshitStat (-1, $myUid, $friend); - $acceptMsg = _SMALLWORLD_JSON_ADDFRIEND.$friendName._SMALLWORLD_JSON_REQUEST_PENDING; - echo json_encode(array('error' => 'no', 'msg' => $acceptMsg, 'msgChange' => _SMALLWORLD_JSON_ADDFR_TEXT)); - } - } - } - } -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/friends.php =================================================================== --- XoopsModules/smallworld/trunk/friends.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/friends.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,215 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_friends_template.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -global $xoopsUser; - - if ($xoopsUser) { - $id = smallworld_isset_or($_GET['username']); // Id of user wich profile you want to see - $yourid = $xoopsUser->getVar('uid'); // your uid - $Xuser = new XoopsUser($id); - $Xusername = $Xuser->getVar('uname'); - $check = new SmallWorldUser; - $profile = $check->CheckIfProfile($id); - $friends = new SmallWorldFriends; - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = isInspected ($yourid); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - - if ($profile > 0) { - $user = new SmallWorldProfile; - $user->ShowUser($id); - $username = $xoopsUser->getVar('uname'); //Myusername - if($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isadminuser', 'YES'); - $xoopsTpl->assign('ownerofpage', $id); - } - - // Check status for relationship - $fr = $check->friendcheck($yourid,$id); - if ($fr[0] == 0) { - $friendship_text = _SMALLWORLD_JSON_ADDFR_TEXT; - if($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isuserafriend','yes'); - } else { - $xoopsTpl->assign('isuserafriend','no'); - } - } - - if ($fr[0] == 1) { - $friendship_text = _SMALLWORLD_JSON_CANCELFR_TEXT; - if($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isuserafriend','yes'); - } else { - $xoopsTpl->assign('isuserafriend','no'); - } - } - - if ($fr[0] == 2) { - $friendship_text = _SMALLWORLD_JSON_REMOVEFR_TEXT; - $xoopsTpl->assign('isuserafriend','yes'); - } - - // Check status for follow - $fl = $check->following_or($yourid, $id); - if ($yourid == $id) { - $following_text = _SMALLWORLD_JSON_FLYES_TEXT; - } - if ($fl[0] == 0) { - $following_text = _SMALLWORLD_JSON_FLYES_TEXT; - } - if ($fl[0] == 1) { - $following_text = _SMALLWORLD_JSON_FLNO_TEXT; - } - - // Get requests - $getInvitations = $check->getRequests ($yourid); - - // Things to do with wall - $Wall = new Wall_Updates(); - $myavatar = $Wall->Gravatar($id); - $myavatarlink = smallworld_getAvatarLink($id, $myavatar); - - // Get your followers array - $followers = $Wall->getFollowers($id); - - // Pendings array here - $pending_array = $friends->getFriends($id, 'pending'); - - // Friends array here - $friends_array = $friends->getFriends($id, 'friends'); - - // Pendings array here - $following_array = $friends->getFriends($id, 'following'); - - // Users Following you - $followingme_array = $friends->getFriends($id, 'followingme'); - - //Srinivas Tamada http://9lessons.info - //Loading Comments link with load_updates.php - if (!empty($pending_array)) { - foreach ($pending_array as $data) { - $fp['friend_id'] = $data['you']; - $fp['friendname'] = getName($data['you']); - $fp['avatar'] = $Wall->Gravatar($data['you']); - $fp['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fp['avatar']); - $xoopsTpl->append('pendingfriends', $fp); - } - } else { - $xoopsTpl->append('nouserspending',_SMALLWORLD_NOUSERS); - } - - if (!empty($friends_array)) { - foreach ($friends_array as $data) { - $ff['friend_id'] = $data['you']; - $ff['friendname'] = getName($data['you']); - $ff['avatar'] = $Wall->Gravatar($data['you']); - $ff['avatar_link'] = smallworld_getAvatarLink ($data['you'], $ff['avatar']); - $xoopsTpl->append('verifiedfriends', $ff); - } - } else { - $xoopsTpl->append('nousersfriends',_SMALLWORLD_NOUSERS); - } - - if (!empty($following_array)) { - foreach ($following_array as $data) { - $fy['friend_id'] = $data['you']; - $fy['friendname'] = getName($data['you']); - $fy['avatar'] = $Wall->Gravatar($data['you']); - $fy['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fy['avatar']); - $xoopsTpl->append('followingyou', $fy); - } - } else { - $xoopsTpl->append('nousersfollowingyou',_SMALLWORLD_NOUSERS); - } - - if (!empty($followingme_array)) { - foreach ($followingme_array as $data) { - $fm['friend_id'] = $data['me']; - $fm['friendname'] = getName($data['me']); - $fm['avatar'] = $Wall->Gravatar($data['me']); - $fm['avatar_link'] = smallworld_getAvatarLink ($data['me'], $fm['avatar']); - $xoopsTpl->append('followingme', $fm); - } - - } else { - $xoopsTpl->append('nousersfollowingme',_SMALLWORLD_NOUSERS); - } - - // Get usermenu to template - $menu_home = "<a href='".XOOPS_URL."/modules/smallworld/'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/house.png'>"._SMALLWORLD_HOME."</a>"; - $menu_profile = "<a href='".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$Xusername."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/user_silhouette.png'>"._SMALLWORLD_PROFILEINDEX."</a>"; - $menu_gallery = "<a href='".XOOPS_URL."/modules/smallworld/galleryshow.php?username=".$Xusername."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/picture.png'>"._SMALLWORLD_GALLERY."</a>"; - $menu_friends = "<a href='".XOOPS_URL."/modules/smallworld/friends.php?username=".$Xusername."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/group.png'>"._SMALLWORLD_FRIENDSPAGE."</a>"; - $menu_xim_js = "javascript:chatWith('".$id."','".$Xusername."')"; - $menu_ximme = "<a href='javascript:void(0);' onClick=".$menu_xim_js."><img height='10px' width='10px' src='".XOOPS_URL."/modules/smallworld/images/messenger.png'>"._SMALLWORLD_XIMUSER.$Xusername."</a>"; - - // Check for folder xim to add messenger user to menu items - $hasxim = smallworld_checkForXim (); - if ($hasxim == true) { - $xoopsTpl->assign('sendxim','YES'); - if ($fr[0] == 2) { - if ($yourid != $id) { - $xoopsTpl->assign('menu_xim',$menu_ximme); - } - } - } - - $xoopsTpl->assign('menu_home',$menu_home); - $xoopsTpl->assign('menu_profile',$menu_profile); - $xoopsTpl->assign('menu_friends',$menu_friends); - $xoopsTpl->assign('menu_gallery',$menu_gallery); - $xoopsTpl->assign('check',1); - $xoopsTpl->assign('friendID',$id); - $xoopsTpl->assign('myUid',$yourid); - $xoopsTpl->assign('friendship_text',$friendship_text); - $xoopsTpl->assign('followfriend_text',$following_text); - $xoopsTpl->assign('friendinvitations',$getInvitations); - $xoopsTpl->assign('myavatar',$myavatar); - $xoopsTpl->assign('myavatarlink',$myavatarlink); - $xoopsTpl->assign('myusername',$username); - $xoopsTpl->assign('username',$Xusername); - } else { - $check->chkUser (); - } - - global $xoTheme; - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/apprise-1.5.full.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/jquery.fileupload-ui.css'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.oembed.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/wall.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/ajaxupload.3.5.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.avatar_helper.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); - - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/galleryshow.php =================================================================== --- XoopsModules/smallworld/trunk/galleryshow.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/galleryshow.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,77 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_galleryshow.html'; -include_once(XOOPS_ROOT_PATH."/header.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -global $xoopsUser, $xoTheme; - - if ($xoopsUser) { - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/galleriffic-5.css'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/basic.css'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/black.css'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.galleriffic.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.history.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.opacityrollover.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/gallery_mod.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); - - $id = $xoopsUser->getVar('uid'); - $check = new SmallWorldUser; - $image = new SmallWorldImages; - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = isInspected ($id); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - - $profile = $check->checkIfProfile($id); - if ($profile > 0) { - $myusername = $xoopsUser->getVar('uname'); - if ( $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isadminuser', 'YES'); - } - $user = new XoopsUser($id); - $userID = smallworld_isset_or($_GET['username']); // Id of user wich profile you want to see - $username = $_GET['username']; - $countimages = $image->count($userID); - $userisfriend = $check->friendcheck($id,$userID); - - //$gallery = $image->viewalbum ($id, $user=$xoopsUser->getVar('uid')); - $gallery = $image->viewalbum ($id, $userID); - $xoopsTpl->assign('countimages',$countimages); - $xoopsTpl->assign('userisfriend',$userisfriend); - $xoopsTpl->assign('gallery',$gallery); - $xoopsTpl->assign('closealbum',_SMALLWORLD_ALBUMTITLETEXT); - $xoopsTpl->assign('username',$username); - $xoopsTpl->assign('myusername',$myusername); - $xoopsTpl->assign('gallerytitleheader',_SMALLWORLD_TITLEHEADER); - $xoopsTpl->assign('check',1); - } elseif ($profile == 0) { - $check->chkUser (); - } - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/image_edit_submit.php =================================================================== --- XoopsModules/smallworld/trunk/image_edit_submit.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/image_edit_submit.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,35 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -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"); - global $xoopsUser, $xoTheme, $xoopsTpl,$xoopsLogger; - $xoopsLogger->activated = false; - $db = new SmallWorldDB; - $upd = new Wall_Updates; - $userID = $xoopsUser->getVar('uid'); - $user = new XoopsUser($userID); - $username = $user->getVar('uname'); - - $update = "........"._SMALLWORLD_UPLOADEDSOMEIMAGES.XOOPS_URL."/modules/smallworld/galleryshow.php?username=".$username; - $upd->Insert_Update($userID, $update); - $db->handleImageEdit (); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/img_upload.php =================================================================== --- XoopsModules/smallworld/trunk/img_upload.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/img_upload.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,56 +0,0 @@ -<?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 -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_userprofile_imgupload.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_... [truncated message content] |