21
Graphics/Video Board / U.S. Navy - Screen Prerequisite Program
« Last post by DeptNav on January 15, 2014, 08:30:17 am »to be made
[b]System Type (laptop/desktop/etc):[/b]
[b]Manufacturer:[/b]
[b]Operating System:[/b]
[b]Your Problem:[/b]
[b]Recent changes that may relate to this problem:[/b] [b]Browser:[/b] <!DOCTYPE html>
<html>
<head>
<title>JavaScript Border Radius</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function(){
$("[data-border-radius]").each(function(i,a){
var br = $(a).attr("data-border-radius");
if ($.isNumeric(br)) {
$(a).css({
"border-radius": br + "px",
"-webkit-border-radius": br + "px",
"-moz-border-radius": br + "px",
"-o-border-radius": br + "px",
"-khtml-border-radius": br + "px"
});
}
});
});
</script>
</head>
<body>
<h3>Original</h3>
<div style="background-color: #000000; height: 100px; width: 100px;"></div>
<hr />
<h3>JavaScript edit</h3>
<div style="background-color: #000000; height: 100px; width: 100px;" data-border-radius="10"></div>
</body>
</html>
<?php/*PHPOnlineUsers script by Darren (HairyWhale)hqaf-dod.freeforums.net*/session_start(); mysql_connect( "localhost", "dbuser", "dbpass" ); //connect to DBmysql_select_db( "dbname" ); //select DB $file_viewed = $_SERVER['REQUEST_URI']; //get the page they have visited$ip = $_SERVER['REMOTE_ADDR']; //get their ip address$time = time(); //get the time they loaded the page$five_mins = $time - 60; //5 minute interval$session = session_id(); //get their unique session id $checkQ = mysql_query( "SELECT * FROM onlineusers WHERE `session` = '$session'" );if( mysql_num_rows( $checkQ ) > 0 ){mysql_query( "DELETE FROM `onlineusers` WHERE `session` = '$session'" );}mysql_query( "INSERT INTO `onlineusers` (`ip`, `time`, `page`, `session`) VALUES ('$ip', '$time', '$file_viewed', '$session');" );mysql_query( "DELETE FROM `onlineusers` WHERE `time` < '$five_mins'" ); //remove all sessions in table that have been inactive since 5 minutes $online_users = mysql_num_rows( mysql_query( "SELECT * FROM `onlineusers`" ) ); //get the total amount of online users?>
index.php<?php/*PHPOnlineUsers script by Darren (HairyWhale)hqaf-dod.freeforums.net*/include( "config.php" );session_start(); mysql_connect( "localhost", "dbuser", "dbpass" ); //connect to DBmysql_select_db( "dbname" ); //select DB $onlineQ = mysql_query( "SELECT * FROM onlineusers" );if( mysql_num_rows( $onlineQ ) == 0 ){echo "No one is online!";}else{echo "<style type=\"text/css\">th,td{border:1px;}</style><table><table><tr><th>IP</th><th>Time</th><th>Page</th><th>Session</th></tr>";while( $onlineA = mysql_fetch_array( $onlineQ ) ){$ip = $onlineA["ip"];$time = date( "F jS Y - g:i a", $onlineA["time"] );$page = $onlineA["page"];$session = $onlineA["session"];echo "<tr><td>{$ip}</td><td>{$time}</td><td>{$page}</td><td>{$session}</td></tr>";}echo "</table>";}?>
Run this SQL queryCREATE TABLE IF NOT EXISTS `onlineusers` (
`ip` varchar(100) NOT NULL,
`page` varchar(350) NOT NULL,
`time` varchar(100) NOT NULL,
`session` varchar(1000) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
This will show a user's IP Address, the page they visited, the time they visited and their unique session ID.<html>
<body bgcolor="Black">
<p><center><h1>THIS IS THE HEADER, IGNORE IT</h1></center>
<center><font face="Bebas Neu" font color="Red" size="4">YOU CAN TYPE WHATEVER YOU WANT HERE</font></center></p>
<center><table>
<table border="1">
<tr><td>Try</td><td>This</td></tr>
<tr><td>Script</td><td>Free!</td></tr>
</table></center>
</body>
</html>
You're gunna have to copy and paste that basic little script into your Notepad or Text Editor and click Save As, then click Desktop and then go down to file extensions (drop down arrow with .txt in it) and click the drop down arrow and click All Files, then save the document as for example: my_lazy_sundays_popup.html<?phpfunction censor( $str ){ /* load bad words, separated by line break, eg: **** **** **** */ $bad_words = file( "bad_words.txt" ); foreach ( $bad_words as $bad_word ) { $bad_word = trim( $bad_word ); if ( preg_match( "/" . $bad_word . "/i", $str ) ) { $new_word = ''; for ( $i = 1; $i <= strlen( $bad_word ); $i++ ) { $new_word .= '*'; } $str = eregi_replace( $bad_word, $new_word, trim( $str ) ); $new_word = ''; } }return $str;} $string = "Hello you **** ****!"; echo $string; //Hello you **** ****!echo censor( $string ); //Hello you ****ing *****!?>
/*
load bad words, separated by line break, eg:
****
****
****
*/
$bad_words = file( "bad_words.txt" );
If you'd like, you can edit which bad words you'd like to censor ^. As you progress down the code, you'll come across:$bad_word = trim( $bad_word );
if ( preg_match( "/" . $bad_word . "/i", $str ) )
{
$new_word = '';
for ( $i = 1; $i <= strlen( $bad_word ); $i++ )
{
$new_word .= '*';
Feel free to alter the filter from '*' to anything such as 'bobba' or '%@!*&amp;' etc.insert code he<script type="text/javascript">
<!--
/*
Whisper Tags (V2)
by Todge
Copyright © 2009
Please keep this header intact
*/
// Edit Below...
var whisperButton = 'URL OF IMAGE';
// Edit Above...
// Add button to posting page..
if(document.postForm && !location.href.match(/tion=pmsend/))
{
function getPeeps()
{
var wPeeps = '';
wPeeps = prompt('Please enter the USERNAMES of the poeple you want to whisper to, seperated by commas.. (admin,Guest,'+pb_username+')','');
if(wPeeps != null && wPeeps != '')
{
add('[whisper='+wPeeps+']','[/whisper]');
return;
}
else if(wPeeps == '')
{
alert('You have to whisper to someone..');
getPeeps();
}
return;
}
var newButton = document.createElement('a');
newButton.innerHTML = '<img src="'+whisperButton+'" border="0">';
newButton.href='javascript:getPeeps()';
document.postForm.color.parentNode.appendChild(newButton);
}
// Remove whispers from quotes..
if(document.postForm && location.href.match(/"e/))
{
var rW = document.postForm.message.value.split(/\[\/whisper\]/);
for(r=0; r<rW.length; r++)
{
rW[r] = rW[r].replace(/\[whisper=(.)+/,'');
}
document.postForm.message.value = rW.join('');
}
// Find and hide whispers...
if(location.href.match(/tion=(display|post&thread|recent|pmview)/))
{
var posts = document.getElementsByTagName('font');
for(p=0; p<posts.length; p++)
{
if((posts.innerHTML.match(/google_ad_section_start/) || (document.postForm && posts.size=="1")) && posts.innerHTML.match(/\[whisper=/))
{
var whispers = posts.innerHTML.split(/\[whisper=/);
for(w=1; w<whispers.length; w++)
{
var thisW = whispers[w].split(/\]/)[1].split(/\[\/whisper/)[0];
var shPeeps = whispers[w].split(/\]/)[0];
if(shPeeps.match(pb_username))
{
posts.innerHTML = posts.innerHTML.replace('[whisper='+shPeeps+']'+thisW+'[/whisper]','<font color="red"><i>'+thisW+'</i></font>');
}
else if(!shPeeps.match(pb_username))
{
posts.innerHTML = posts.innerHTML.replace('[whisper='+shPeeps+']'+thisW+'[/whisper]','');
}}}}}
// -->
</script>re[p]Email account theft is rampant. If it happens to you, there are several steps
that you need to take not only to recover your account, but to prevent it from being
easily hacked again.
