From: <ce...@us...> - 2012-05-15 19:21:54
|
Revision: 9517 http://xoops.svn.sourceforge.net/xoops/?rev=9517&view=rev Author: cesag Date: 2012-05-15 19:21:43 +0000 (Tue, 15 May 2012) Log Message: ----------- Remove all files and folders that are not in French, for the module Smallworld. Removed Paths: ------------- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/Get_Count.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/admin/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/avatarupload.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/class/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/comment_ajax.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/complaint.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/css/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_comment_ajax.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_message_ajax.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/docs/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/down_vote.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editimages.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editprofile.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friendinvite.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friends.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/galleryshow.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/image_edit_submit.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/images/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/img_upload.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/imgupload.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/include/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/index.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/js/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/danish/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/english/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/russian/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/loadmore.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/message_ajax.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/partnersearch.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/permalink.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/preloads/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/recentactivities.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/register.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/search.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/smallworldshare.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/sql/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/stats.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/submit.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/templates/ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/up_vote.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/userprofile.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/xoops_version.php Deleted: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/Get_Count.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/Get_Count.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/Get_Count.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,37 +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, $xoopsTpl; -$xoopsLogger->activated = true; -$xoopsTpl->caching = 0; -$_COOKIE[session_name()] = session_id(); -if ($xoopsUser) { - if($_GET['SmallworldGetUserMsgCount']) { - $counts = smallworld_getCountFriendMessagesEtc(); - header('Content-type: application/json'); - echo "{\"NewUserMsgCount\":\"$counts\"}"; - } -} -?> \ No newline at end of file Deleted: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/avatarupload.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/avatarupload.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/avatarupload.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/comment_ajax.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/comment_ajax.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/comment_ajax.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,88 +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 = Smallworld_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'] = nl2br(smallworld_tolink(htmlspecialchars_decode($data['comment']), $data['uid'])); - $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['avatar_size'] = smallworld_getImageSize(80, 100, $wc['myavatar_link']); - $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35); - $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_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 = Smallworld_getOwnerFromComment ($data['msg_id_fk']); - if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { - $mail->sendMails ($data['uid_fk'], $v, 'commentToWM', $link=null, $wc); - } - } - } - } -} -?> Deleted: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/complaint.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/complaint.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/complaint.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -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 '../../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; - if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { - $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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_comment_ajax.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_comment_ajax.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_comment_ajax.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_message_ajax.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_message_ajax.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/delete_message_ajax.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/down_vote.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/down_vote.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/down_vote.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editimages.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editimages.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editimages.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,61 +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,$xoTheme; - - if ($xoopsUser) { - $userID = $xoopsUser->getVar('uid'); - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = Smallworld_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); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); - } else { - redirect_header("index.php", 1); - } - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editprofile.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editprofile.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/editprofile.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,334 +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, $xoTheme; - - 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 = Smallworld_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(Smallworld_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); - $xoopsTpl->assign('smallworld_user_website',$r['website']); - - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.validate.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.validation.functions.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.stepy.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.elastic.source.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/smallworld.css'); - } - } 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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friendinvite.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friendinvite.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friendinvite.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,105 +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; - if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { - $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[0], $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[0], $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: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friends.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friends.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/friends.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,225 +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 = Smallworld_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'] = Smallworld_getName($data['you']); - $fp['avatar'] = $Wall->Gravatar($data['you']); - $fp['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fp['avatar']); - $fp['avatar_size'] = smallworld_getImageSize(80, 100, $fp['avatar_link']); - $fp['avatar_highwide'] = smallworld_imageResize($fp['avatar_size'][0], $fp['avatar_size'][1], 50); - $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'] = Smallworld_getName($data['you']); - $ff['avatar'] = $Wall->Gravatar($data['you']); - $ff['avatar_link'] = smallworld_getAvatarLink ($data['you'], $ff['avatar']); - $ff['avatar_size'] = smallworld_getImageSize(80, 100, $ff['avatar_link']); - $ff['avatar_highwide'] = smallworld_imageResize($ff['avatar_size'][0], $ff['avatar_size'][1], 50); - $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'] = Smallworld_getName($data['you']); - $fy['avatar'] = $Wall->Gravatar($data['you']); - $fy['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fy['avatar']); - $fy['avatar_size'] = smallworld_getImageSize(80, 100, $fy['avatar_link']); - $fy['avatar_highwide'] = smallworld_imageResize($fy['avatar_size'][0], $fy['avatar_size'][1], 50); - $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'] = Smallworld_getName($data['me']); - $fm['avatar'] = $Wall->Gravatar($data['me']); - $fm['avatar_link'] = smallworld_getAvatarLink ($data['me'], $fm['avatar']); - $fm['avatar_size'] = smallworld_getImageSize(80, 100, $fm['avatar_link']); - $fm['avatar_highwide'] = smallworld_imageResize($fm['avatar_size'][0], $fm['avatar_size'][1], 50); - $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'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); - - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/galleryshow.php =================================================================== --- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/galleryshow.php 2012-05-15 19:21:13 UTC (rev 9516) +++ XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/galleryshow.php 2012-05-15 19:21:43 UTC (rev 9517) @@ -1,76 +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->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'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - - $id = $xoopsUser->getVar('uid'); - $check = new SmallWorldUser; - $image = new SmallWorldImages; - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = Smallworld_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 ==... [truncated message content] |