Skip to content
Snippets Groups Projects
Commit fd3935ea authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Watch for bad language on homepage and filter it out.

parent fbf01789
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,12 @@
*/
// Put your content below
/*
ini_set('display_errors',true);
error_reporting(E_ALL);
*/
include dirname(__FILE__)."/../../../../unl_theme/scripts/badwordfilter.php";
?>
<!-- begin splash code from ucommcoleman/workspace/wdntempaltes/splash.shtml -->
......@@ -181,6 +184,9 @@
if($users){
foreach($users as $user){
if (filtrado($user->map_explanation . $user->profile_city . $user->username . $user->name)) {
continue;
}
if($user->longitude != undefined && $user->longitude != "" && $user->map_explanation != undefined && $user->map_explanation != ""){
echo "<div class=\"member_icon\"><img onclick=\"window.openLocation('" . $user->longitude . "','" . $user->latitude . "','" . $user->username . "',";
if($user->profile_country)
......@@ -364,18 +370,21 @@
$result3 = mysql_query($query3);
$row3 = mysql_fetch_array( $result3 );
echo '<img style="clear:left;float:left" src="mod/profile/icondirect.php?username=' . $row3["username"] . '&size=small" />';
echo '<div class="index_item" style="overflow:hidden;float:left;max-width:';
if (isloggedin()) {echo('400px;');}else{echo('162px;');}
echo 'border:1px solid #dbdbdb; margin-left:14px; min-height:45px; -moz-border-radius:3px;">';
echo ' <span style="background:url(mod/customindex/commentbubblepoint.png); width:14px; height:34px; z-index:2; position:absolute; left:';
if (isloggedin()) {echo('303px;');}else{echo('51px;');}
echo '"></span>';
echo ' <div style="padding:10px;">';
echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . $row2['description'] . '</p>';
echo '<p style="margin:2px 0 3px 0; font-size:10px; clear:both;float:right"><em>' . friendly_time($row['time_updated']) . '</em></p>';
echo ' </div>';
echo '</div><div class="clear"></div>';
if (!filtrado($row3['name'] . '' . $row2['description'])){
echo '<img style="clear:left;float:left" src="mod/profile/icondirect.php?username=' . $row3["username"] . '&size=small" />';
echo '<div class="index_item" style="overflow:hidden;float:left;max-width:';
if (isloggedin()) {echo('400px;');}else{echo('162px;');}
echo 'border:1px solid #dbdbdb; margin-left:14px; min-height:45px; -moz-border-radius:3px;">';
echo ' <span style="background:url(mod/customindex/commentbubblepoint.png); width:14px; height:34px; z-index:2; position:absolute; left:';
if (isloggedin()) {echo('303px;');}else{echo('51px;');}
echo '"></span>';
echo ' <div style="padding:10px;">';
echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . $row2['description'] . '</p>';
echo '<p style="margin:2px 0 3px 0; font-size:10px; clear:both;float:right"><em>' . friendly_time($row['time_updated']) . '</em></p>';
echo ' </div>';
echo '</div><div class="clear"></div>';
}
}
?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment