id,getNameFormat($rowTo->name,$rowTo->username,$ueConfig['name_format'])); ?>

"; ?>

"; ?>
"._UE_FIELDREQUIRED; ?>
0) { for($i=0, $n=count( $rowFields ); $i < $n; $i++) { if($poldtab <> $rowFields[$i]->tab) { $ptabs .= "".getLangDefinition($rowFields[$i]->tab)."\n"; if($i > 0) $pfields .= "\t\n\n"; $pfields .= "
\n"; $pfields .= "\t\n"; if($rowFields[$i]->tab!='' && $rowFields[$i]->tab!=null) $pfields .= "\t\t
".getLangDefinition($rowFields[$i]->tabdesc)."
\n"; $t++; } if($rowFields[$i]->table=='#__users') $dArray ='$row->'; else $dArray ='$rowExtras->'; $poldtab=$rowFields[$i]->tab; $pfields .= "\t\t"; $pfields .= "\t\t\t"; eval("\$oValue = \"".$dArray.$rowFields[$i]->name."\";"); $pfields .= "\t\t\t\n"; $pfields .= "\t\t"; } $pfields .= "\t\t"; $pfields .= "\t
". getLangDefinition($rowFields[$i]->title) .":" .getFieldEntry($rowFields[$i]->type,$rowFields[$i]->name,$oValue,$rowFields[$i]->required,$rowFields[$i]->title,$rowFields[$i]->id,$rowFields[$i]->size, $rowFields[$i]->maxlength, $rowFields[$i]->cols, $rowFields[$i]->rows,$rowFields[$i]->profile,$rowFieldValues['lst_'.$rowFields[$i]->name],$rowFields[$i]->readonly); //Rodax Software if (($rowFields[$i]->name == 'jefe') || ($rowFields[$i]->name == 'cuerda') || ($rowFields[$i]->name == 'orden') || ($rowFields[$i]->name == 'perfil') ) { $pfields .= getFieldEntry('hidden',$rowFields[$i]->name,$oValue,$rowFields[$i]->required,$rowFields[$i]->title,$rowFields[$i]->id,$rowFields[$i]->size, $rowFields[$i]->maxlength, $rowFields[$i]->cols, $rowFields[$i]->rows,$rowFields[$i]->profile,$rowFieldValues['lst_'.$rowFields[$i]->name],$rowFields[$i]->readonly); } $pfields .= "
"; $pfields .= "
"; } ?>
    */ ?>
username; ?>"; IF($ueConfig['name_format']!=1) echo ""; ELSE echo ""; ?>
First Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
Last Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
First Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
Middle Name: "; ELSE echo " "; ?>
Last Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
"; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
"; IF($ueConfig['allow_email_display']==1 || $ueConfig['allow_email_display']==2) echo ""; ELSE echo ""; ?>

" onclick="window.location='';" /> */ ?> id); ?>';" />

"._UE_FIELDREQUIRED."
"; echo " "._UE_FIELDONPROFILE."
"; echo " "._UE_FIELDNOPROFILE; ?>
id); $userIsModerator=isModerator($user->id); $database->setQuery("SELECT COUNT(*) FROM #__session WHERE userid =".$user->id); $isonline = $database->loadResult(); $ue_base_url = "index.php?option=com_comprofiler&Itemid=" . $_REQUEST['Itemid']; // Base URL string $ue_userdetails_url = $ue_base_url."&task=userDetails"; // Rodax Software if ($isModerator) $ue_userdetails_url = $ue_userdetails_url."&user=".$user->id; $ue_useravatar_url = $ue_base_url."&task=userAvatar"; // Rodax Software if ($isModerator) $ue_useravatar_url = $ue_useravatar_url."&user=".$user->id; $adminimagesdir = "components/com_comprofiler/images/"; $showProfile=1; if($user->banned!=0) { echo ""._UE_USERPROFILEBANNED.""; if($my->id!=$user->id && $isModerator!=1) { $showProfile=0; } else { echo "
".nl2br($user->bannedreason).""; $showProfile=1; } } if($showProfile==1) { ?> echo '
'. _UE_PROFILE_TITLE .'
'; echo ''; ?> name,$user->username,$ueConfig['name_format'])." ". _UE_PROFILE_TITLE; ?>'; echo ''; ?>
*/ echo '' . getNameFormat($user->name,$user->username,$ueConfig['name_format']) . ''; ?> id==$user->id) || $isModerator) { $y=" | "; echo " "._UE_UPDATEPROFILE.""; if($user->banned==1 && $userIsModerator==0 && $ueConfig['allowUserBanning']==1) echo " | "._UE_REQUESTUNBANPROFILE.""; } else { if($ueConfig['allowUserReports']==1 && $userIsModerator==0 && $isModerator==0 && $my->id > 0) echo ""._UE_REPORTUSER.""; } if($isModerator==1 && $my->id!=$user->id && $userIsModerator==0) { $query = "SELECT count(*) FROM #__comprofiler_userreports WHERE reportedstatus=0 AND reporteduser='".$user->id."'"; if(!$database->setQuery($query)) print $database->getErrorMsg(); $userreports = $database->loadResult(); if($ueConfig['allowUserBanning']==1) { if($user->banned!=0 ) echo $y.""._UE_UNBANPROFILE.""; else echo $y.""._UE_BANPROFILE.""; } if($ueConfig['allowUserReports']==1 && $userreports>0) echo " | "._UE_VIEWUSERREPORTS.""; } ?>
avatar; if($user->avatarapproved==0) $uimage="components/com_comprofiler/images/".$mosConfig_lang."/pendphoto.jpg"; elseif($user->avatar=='' || $user->avatar==null) $uimage="components/com_comprofiler/images/".$mosConfig_lang."/nophoto.jpg"; else $uimage="images/comprofiler/".$uimage; ?>
"._UE_UPDATEAVATAR.""; ?> avatar!='' && $user->avatar!=null) echo ""._UE_DELETE_AVATAR.""; } ?>
email,$user); ?> id!=$user->id) { if($ueConfig['pms']==1) $pmsurl="index.php?option=com_pms&page=new&id=".$user->username; else $pmsurl="index.php?option=com_mypms&task=new&to=".$user->username; ?>
width=45% style="font-weight:bold;"> >
width=35% style="font-weight:bold;"> >
width=35% style="font-weight:bold;"> > 0) echo _UE_ISONLINE; else echo _UE_ISOFFLINE; ?>
width=35% style="font-weight:bold;"> >lastvisitDate);?>
0 ) { for($i=0, $n=count( $tablist ); $i < $n; $i++) { $tablists = $tablist[$i]; $tabs++; if($tablists[width]==1) $colspan=2; else $colspan=1; if($i > 0) { if($colspan==2) { $pfields .= "\n\t\t\t\n\t\t\n\t\t\n\t\t\t"; $colCount=0; } elseif ($colCount==0){ $pfields .= "\n\t\t\t\n\t\t\n\t\t\n\t\t\t"; $colCount=1; } else { $pfields .= "\n\t\t\t\n\t\t\t"; $colCount=0; } } else { $pfields .= "\n\t\t\n\t\t\t"; if($colspan==2) $colCount=0; else $colCount=1; } $t=1; $pfields .= "\n\t\t\t"; $pfields .= "\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t"; $pfields .= $tablists[content]; $pfields .= "\n\t

".getLangDefinition($tablists[name])."

"; } } echo "\n\t"; print $pfields; echo "\n\t
"; if($my->id!=$user->id) { $database->setQuery("UPDATE #__comprofiler SET hits=(hits+1) WHERE id='".$user->id."'"); if (!$database->query()) { echo "\n"; exit(); } } ?> load($row->id); $database->setQuery("SELECT id FROM #__menu WHERE link = 'index.php?option=com_comprofiler'"); $Itemid = $database->loadResult(); ?> */ echo "
"; echo _UE_EDIT_TITLE; echo "
"; ?> load( $uid ); if(!$_REQUEST['user']) { $uid = $my->id; } else { $uid = $_REQUEST['user']; } $do=''; $do= mosGetParam( $_REQUEST, 'do', 'init' ); if ($do=='init'){ if($ueConfig['allowAvatarUpload']){ echo ""._UE_UPLOAD_SUBMIT."

"; echo _UE_UPLOAD_DIMENSIONS.": ".$ueConfig['avatarWidth']."x".$ueConfig['avatarHeight']." - ".$ueConfig['avatarSize']." KB"; echo "
"; echo ""; echo ""; echo "
"; $uplabel=_UE_UPLOAD_UPLOAD; //echo " "; echo _UE_UPLOAD_SELECT_FILE." "; echo ""; echo "


"; echo "
"; } if($ueConfig['allowAvatarGallery']){ echo ""._UE_UPLOAD_GALLERY."

"; echo ""; echo ""; echo ""; echo ''; echo ""; $avatar_gallery_path='images/comprofiler/gallery'; $avatar_images=array(); $avatar_images=display_avatar_gallery($avatar_gallery_path); for($i = 0; $i < count($avatar_images); $i++) { $j=$i+1; echo ''; if (function_exists('fmod')) { if (!fmod(($j),5)){echo '';} } else { if (!fmodReplace(($j),5)){echo '';} } } echo ''; echo '
 
'; echo ''; echo ''; echo '
'; echo '
'; echo ""; } }else if ($do=='validate'){ $filename = split("\.", $avatar_name); $avatarName=$filename[0]; $avatarExt=$filename[1]; $avatarSize=filesize($avatar); $isModerator=isModerator($my->id); if (empty($avatar)) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_EMPTY); } //check for allowed file type (jpeg, gif, png) if (!($imgtype = check_image_type(strtolower($avatarExt)))){ MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_TYPE); } //check file name characteristics if (eregi("[^0-9a-zA-Z_]", $avatarExt)) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_NAME); } //check filesize $maxAvSize=$ueConfig['avatarSize']*1024; if (!check_filesize($avatar, $maxAvSize)) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_SIZE." (".$ueConfig['avatarSize']." KiloBytes)"); return; } list($width, $height) = @getimagesize($avatar); $GDfuncList = get_extension_funcs('gd'); if ( $width > $ueConfig['avatarWidth'] || $height > $ueConfig['avatarHeight']){ if($ueConfig['autoImageResize']==1) { if(!$GDfuncList) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_GDNOTINSTALLED); return; } if (!in_array('imagegd2',$GDfuncList)) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_GDNOTINSTALLED); return; } $newPic = new resize( 'avatar', $ueConfig['avatarWidth'], $ueConfig['avatarHeight'] ); if(!$newPic->saveTo(strtolower($my->id.".".$newPic->type),$mosConfig_absolute_path."/images/comprofiler/")) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_UPLOADFAILED); return; } @chmod ($mosConfig_absolute_path."/images/comprofiler/".strtolower($my->id.".".$newPic->type), 0755); $newFileName=strtolower($my->id.".".$newPic->type); } else { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_WIDTHHEIGHT." (".$ueConfig['avatarSize']." KiloBytes)"); return; } } else { $newFileName=strtolower($uid.$imgtype); $newFile=$mosConfig_absolute_path."/images/comprofiler/$newFileName"; if(!copy ($avatar, $newFile)) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_UPLOADFAILED); return; } @chmod ($newFile, 0644); } if($ueConfig['autoImageResize']==1) { if(!$GDfuncList) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_GDNOTINSTALLED); return; } if (!in_array('imagegd2',$GDfuncList)) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_GDNOTINSTALLED); return; } $thumbail = new resize( 'avatar', $ueConfig['thumbWidth'], $ueConfig['thumbHeight'] ); if(!$thumbail->saveTo(strtolower("TN".$uid.".".$thumbail->type),$mosConfig_absolute_path."/images/comprofiler/")) { MOSredirect(sefRelToAbs("index.php?option=com_comprofiler&task=userAvatar&user=".$uid."&Itemid=".$Itemid),_UE_UPLOAD_ERROR_UPLOADFAILED); return; } @chmod ($mosConfig_absolute_path."/images/comprofiler/".strtolower("TN".$uid.".".$thumbail->type), 0644); unlink($avatar); } IF($ueConfig['avatarUploadApproval']==1 && $isModerator==0) { $database->setQuery( "SELECT name, email FROM #__users" ."\n WHERE gid >='".$ueConfig['imageApproverGid']."' AND sendEmail='1'" ); $rowAdmins = $database->loadObjectList(); foreach ($rowAdmins AS $rowAdmin) { createEmail($row,'imageAdmin',$ueConfig,$rowAdmin); } $database->setQuery("UPDATE #__comprofiler SET avatar='$newFileName', avatarapproved=0 WHERE id='$uid'"); $redMsg=_UE_UPLOAD_PEND_APPROVAL; } ELSE { $database->setQuery("UPDATE #__comprofiler SET avatar='$newFileName', avatarapproved=1, lastupdatedate='".date('Y-m-d\TH:i:s')."' WHERE id='$uid'"); $redMsg=_UE_UPLOAD_SUCCESSFUL; } $database->query(); mosRedirect (sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$uid),$redMsg); ?> setQuery("UPDATE #__comprofiler SET avatar='$newAvatar', avatarapproved=1, lastupdatedate='".date('Y-m-d\TH:i:s')."' WHERE id='$uid'"); if(!$database->query()) { echo _UE_USER_PROFILE_NOT."

"; }else { echo _UE_USER_PROFILE_UPDATED."

"; mosRedirect (sefRelToAbs("index.php?option=com_comprofiler&Itemid=".$Itemid)); } echo _UE_USER_RETURN_A." "._UE_USER_RETURN_B."

"; ?> alert('$rowExtras->avatar'); "; if(eregi("gallery/",$rowExtras->avatar)==false && is_file($mosConfig_absolute_path."/images/comprofiler/".$rowExtras->avatar)) { unlink($mosConfig_absolute_path."/images/comprofiler/".$rowExtras->avatar); if(is_file($mosConfig_absolute_path."/images/comprofiler/tn".$rowExtras->avatar)) unlink($mosConfig_absolute_path."/images/comprofiler/tn".$rowExtras->avatar); } $database->setQuery("UPDATE #__comprofiler SET avatar=null, avatarapproved=1, lastupdatedate='".date('Y-m-d\TH:i:s')."' WHERE id='$uid'"); $database->query(); mosRedirect (sefRelToAbs("index.php?option=com_comprofiler&Itemid=".$Itemid)); } } /****************************** List Functions ******************************/ function usersList($row,$lfields,$lists,$listid,$cuerda) { global $database,$limitstart,$search,$mosConfig_sitename,$ueConfig,$_POST,$acl; $search = $database->getEscaped(trim( strtolower( $search))); $cuerdasearch = '&listCuerdas='. $cuerda; $ue_base_url = "index.php?option=com_comprofiler&task=usersList&Itemid=".$_REQUEST['Itemid']."&listid=".$listid; // Base URL string $ue_profile_url = $ue_base_url."&task=userProfile&user="; $adminimagesdir = "components/com_comprofiler/images/"; $allusergids=array(); $usergids=explode(",",$row->usergroupids); foreach($usergids AS $usergid) { $allusergids[]=$usergid; if ($usergid==29 || $usergid==30) { $groupchildern=array(); $groupchildren=$acl->get_group_children( $usergid, 'ARO','RECURSE' ); $allusergids=array_merge($allusergids,$groupchildren); } } $usergids=implode(",",$allusergids); // Total $query = "SELECT count(u.id) FROM #__users u, #__comprofiler ue WHERE u.id=ue.id AND u.block !=1 AND ue.approved=1 AND ue.banned!=1 AND ue.confirmed=1 AND u.gid IN (".$usergids.")"; if ($cuerda!='') $query .= " AND ue.cuerda = '". $cuerda ."'"; $database->setQuery($query); $total_results = $database->loadResult(); // Search total $query = "SELECT count(u.id) FROM #__users u, #__comprofiler ue WHERE u.id=ue.id AND u.block !=1 AND ue.approved=1 AND ue.banned!=1 AND ue.confirmed=1 AND u.gid IN (".$usergids.")"; if ($cuerda!='') $query .= " AND ue.cuerda = '". $cuerda ."'"; if (isset($search) && $search != "") { $query .= " AND (u.name LIKE '%$search%' OR u.username LIKE '%$search%')"; } if(!$database->setQuery($query)) print $database->getErrorMsg(); $total = $database->loadResult(); if (empty($limitstart)) $limitstart = 0; $limit = $ueConfig['num_per_page']; if ($limit > $total) { $limitstart = 0; } $search_query = ""; // Select query if($row->sortfields!='') $orderby = " ORDER BY ".$row->sortfields; $query = "SELECT * FROM #__users u, #__comprofiler ue WHERE u.id=ue.id AND u.block!=1 and ue.approved=1 AND ue.banned!=1 AND ue.confirmed=1 AND u.gid IN (".$usergids.")"; if ($cuerda!='') $query .= " AND ue.cuerda = '". $cuerda ."'"; if (isset($search) && $search != "") { $query .= " AND (u.name LIKE '%$search%' OR u.username LIKE '%$search%')"; $search_query = "&search=".$search; } $query .= " ".$orderby; $query .= " LIMIT $limitstart, $limit"; $database->setQuery($query); $users = $database->loadObjectList(); //print $database->getquery(); ?>
title; ?>
" . $total_results . " " . _UE_USERS."."; ?>
:
".getLangDefinition($row->col1title)."\n"; if ($row->col2enabled) echo "\n"; if ($row->col3enabled) echo "\n"; if ($row->col4enabled) echo "\n"; ?> name; if($ueConfig['allow_profilelink']==1) { $onclick = "onclick=\"javascript:window.location='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$user->id)."'\""; $style="style=\"cursor:hand;cursor:pointer;\""; } print "\t\n"; //print $lfields; eval("\$str = \"$lfields\";"); echo $str. "\n"; print "\t\n"; $i++; } ?>
".getLangDefinition($row->col2title)."".getLangDefinition($row->col3title)."".getLangDefinition($row->col4title)."
  :

table=='#__users') $dArray ='$row->'; else $dArray ='$rowExtras->'; $poldtab=$rowFields[$i]->tab; $pfields .= "\t\t"; $pfields .= "\t\t\t". getLangDefinition($rowFields[$i]->title) .":"; eval("\$oValue = \"".$dArray.$rowFields[$i]->name."\";"); $pfields .= "\t\t\t".getFieldEntry($rowFields[$i]->type,$rowFields[$i]->name,$oValue,$rowFields[$i]->required,$rowFields[$i]->title,$rowFields[$i]->id,$rowFields[$i]->size, $rowFields[$i]->maxlength, $rowFields[$i]->cols, $rowFields[$i]->rows,$rowFields[$i]->profile,$rowFieldValues['lst_'.$rowFields[$i]->name],$rowFields[$i]->readonly)."\n"; } $pfields .= "\t\t"; $pfields = addslashes($pfields); //eval("\$pfields = \"$pfields\";"); $pfields = stripslashes($pfields); ?> \n"; echo "\n\n"; echo "\n"; } ?>
First Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
Last Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
First Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
Middle Name: "; ELSE echo " "; ?>
Last Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
Name: "; IF($ueConfig['name_format']!=3) echo ""; ELSE echo ""; ?>
"; IF($ueConfig['name_format']!=1) echo ""; ELSE echo ""; ?>
"; IF($ueConfig['allow_email_display']==1 || $ueConfig['allow_email_display']==2) echo ""; ELSE echo ""; ?>
"; ?>
"; ?>
  "._UE_TOC."
 
"._UE_FIELDREQUIRED." | "; echo " "._UE_FIELDONPROFILE." | "; echo " "._UE_FIELDNOPROFILE; ?>





 
id != $uid) echo _UE_REPORTBAN_TITLE; ELSE echo _UE_REPORTUNBAN_TITLE;; ?>


id != $uid) echo _UE_BANREASON; ELSE echo _UE_UNBANREQUEST; ?>


 

*/ echo "
"; echo _UE_MODERATE_TITLE; echo "
"; ?>

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ''; echo '
 
id."\">".getNameFormat($users[$i]->name,$users[$i]->username,$ueConfig['name_format']). "".$users[$i]->email."".dateConverter($users[$i]->registerDate,'Y-m-d',$ueConfig['date_format'])."
'; echo "
"; } } function moderateBans($option) { global $database,$ueConfig,$limitstart,$my; $isModerator=isModerator($my->id); if ($isModerator == 0) { mosNotAuth(); return; } $ue_base_url = "index.php?option=com_comprofiler&task=moderateBans"; // Base URL string $query = "SELECT count(*) FROM #__comprofiler WHERE banned=2"; if(!$database->setQuery($query)) print $database->getErrorMsg(); $total = $database->loadResult(); if($total<1) { echo _UE_NOUNBANREQUESTS; return; } if (empty($limitstart)) $limitstart = 0; $limit = 20; if ($limit > $total) { $limitstart = 0; } $query = "SELECT u2.name AS bannedbyname, u2.username as bannedbyusername, u.name as bannedname, u.username as bannedusername, c.* FROM #__users u, #__comprofiler c, #__users u2 WHERE u.id=c.id AND c.bannedby=u2.id AND c.banned=2 AND u.id!='".$my->id."'"; $query .= " LIMIT $limitstart, $limit"; $database->setQuery($query); $row = $database->loadObjectList(); ?>


:
"; echo ""; echo ""; echo ""; echo ""; echo ''; } echo '
".getNameFormat($row[$i]->bannedname,$row[$i]->bannedusername,$ueConfig['name_format']). "".nl2br($row[$i]->bannedreason)."".dateConverter($row[$i]->banneddate,'Y-m-d',$ueConfig['date_format'])."".getNameFormat($row[$i]->bannedbyname,$row[$i]->bannedbyusername,$ueConfig['name_format']). "
'; echo "
"; } function moderateReports($option) { global $database,$ueConfig,$limitstart,$my; $isModerator=isModerator($my->id); if ($isModerator == 0) { mosNotAuth(); return; } $ue_base_url = "index.php?option=com_comprofiler&task=moderateReports"; // Base URL string $query = "SELECT count(*) FROM #__comprofiler_userreports WHERE reportedstatus=0 "; if(!$database->setQuery($query)) print $database->getErrorMsg(); $total = $database->loadResult(); if($total<1) { echo _UE_NONEWUSERREPORTS; return; } if (empty($limitstart)) $limitstart = 0; $limit = 20; if ($limit > $total) { $limitstart = 0; } $query = "SELECT u2.name as reportedbyname, u2.username as reportedbyusername, u.name as reportedname, u.username as reportedusername, ur.* FROM #__users u, #__comprofiler_userreports ur, #__users u2 WHERE u.id=ur.reporteduser AND u2.id=ur.reportedbyuser AND ur.reportedstatus=0 ORDER BY ur.reporteduser,ur.reportedondate"; $query .= " LIMIT $limitstart, $limit"; $database->setQuery($query); $row = $database->loadObjectList(); ?>


:
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ''; } echo ''; echo '
 
reportid."\">".getNameFormat($row[$i]->reportedname,$row[$i]->reportedusername,$ueConfig['name_format']). "".$row[$i]->reportexplaination."".dateConverter($row[$i]->reportedondate,'Y-m-d',$ueConfig['date_format'])."".getNameFormat($row[$i]->reportedbyname,$row[$i]->reportedbyusername,$ueConfig['name_format']). "
'; echo "
"; } function moderateImages($option) { global $database,$ueConfig,$limitstart,$my; $isModerator=isModerator($my->id); if ($isModerator == 0) { mosNotAuth(); return; } $ue_base_url = "index.php?option=com_comprofiler&task=moderateImages"; // Base URL string $query = "SELECT count(*) FROM #__comprofiler WHERE avatarapproved=0"; if(!$database->setQuery($query)) print $database->getErrorMsg(); $total = $database->loadResult(); if($total<1) { echo _UE_NOIMAGESTOAPPROVE; return; } if (empty($limitstart)) $limitstart = 0; $limit = 20; if ($limit > $total) { $limitstart = 0; } $query = "SELECT * FROM #__comprofiler c, #__users u WHERE u.id= c.id AND c.avatarapproved=0"; $query .= " LIMIT $limitstart, $limit"; $database->setQuery($query); $row = $database->loadObjectList(); ?>


:
"; echo "
"; echo ""; echo ' '; echo ""; $avatar_gallery_path='images/comprofiler/'; $sys_gallery_path='components/com_comprofiler/images/'; for($i = 0; $i < count($row); $i++) { $j=$i+1; if($ueConfig['autoImageResize']==1) $image=$avatar_gallery_path.'tn'.$row[$i]->avatar; else $image=$avatar_gallery_path.$row[$i]->avatar; echo ''; echo '
'; echo ""; echo "
"; echo ''; if (function_exists('fmod')) { if (!fmod(($j),4)){echo '';} } else { if (!fmodReplace(($j),4)){echo '';} } } echo ''; echo ''; echo ''; echo ''; echo "
"; } function viewReports($option,$uid) { global $database,$ueConfig,$limitstart,$my; $isModerator=isModerator($my->id); if ($isModerator == 0) { mosNotAuth(); return; } $ue_base_url = "index.php?option=com_comprofiler&task=viewReports"; // Base URL string $query = "SELECT count(*) FROM #__comprofiler_userreports WHERE reportedstatus=0 AND reporteduser='".$uid."'"; if(!$database->setQuery($query)) print $database->getErrorMsg(); $total = $database->loadResult(); if (empty($limitstart)) $limitstart = 0; $limit = 20; if ($limit > $total) { $limitstart = 0; } $query = "SELECT u2.name as reportedbyname, u2.username as reportedbyusername, u.name as reportedname, u.username as reportedusername, ur.* FROM #__users u, #__comprofiler_userreports ur, #__users u2 WHERE u.id=ur.reporteduser AND u2.id=ur.reportedbyuser AND ur.reportedstatus=0 AND ur.reporteduser='".$uid."' ORDER BY ur.reporteduser,ur.reportedondate"; $query .= " LIMIT $limitstart, $limit"; $database->setQuery($query); $row = $database->loadObjectList(); ?>


:
"; echo ""; echo ""; echo ""; echo ""; echo ''; } echo '
".getNameFormat($row[$i]->reportedname,$row[$i]->reportedusername,$ueConfig['name_format']). "".$row[$i]->reportexplaination."".dateConverter($row[$i]->reportedondate,'Y-m-d',$ueConfig['date_format'])."".getNameFormat($row[$i]->reportedbyname,$row[$i]->reportedbyusername,$ueConfig['name_format']). "
'; } ?>