Jump to content


Member Since 26 Sep 2010
Offline Last Active May 12 2014 03:11 AM

Topics I've Started

If a user post a link how can I check it?

25 April 2014 - 12:31 AM

I have a form that a user can post a website link.
I want to do a search for safe sites like youtube or google or facebook or twitter.


so they submit something like this



I want to do a if statement that says if in post string has youtube.com it is safe
else check some other safe site code until it knows its not tested or verified as being safe yet.


I was thinking something like this but I am not sure if that would be correct or not or If I was on the wrong track

do something.




On leave page help stop javascript code.

23 April 2014 - 12:54 PM

Ok I been trying to make a traffic generator website but I ran into a problem with javascript


And this page is the page that is giving me the problem https://gananciasexp...odriguez/5.html


when the loader is ready to load a new site this page send a alert message or some type of message trying to get the user to stay on his page, and no mater what button you click

it redirects them to his page again.
I do not want to disable javascript I just want to control the call..
I thought I could just create a function for that call
I thought it would be window.onbeforeunload

so I created a function for that w


window.onbeforeunload = function() {};

but I just can not stop it from taking control.


Can any of you help me with this

This is what code I am working with trying to solve this.

include "connect.php";

<style type="text/css">
	position : fixed;
position : fixed;


<script type="text/javascript">
		if (top.location!= self.location) {
			top.location = self.location.href

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'UA-50245319-1', 'nettys.co');
  ga('send', 'pageview');


<script type="text/javascript">
window.alert = function() {};
window.onbeforeunload = function() {};
// or simply
alert = function() {};

    var prevent_bust = 0  
    window.onbeforeunload = function() { prevent_bust++ }  
    setInterval(function() {  
      if (prevent_bust > 0) {
        prevent_bust -= 2  
        window.top.location = 'http://www.nettys.co/traffic.php'  
    }, 1)


$sql = "SELECT * FROM Traffic  ORDER BY RAND() LIMIT 1 "; 
                $querys = mysql_query($sql) or trigger_error("Query Failed: " . mysql_error()); 
                if (mysql_num_rows($querys) == 1) 
                      $rows = mysql_fetch_assoc($querys);
					   $domain = $rows['domain'];
					   $variableee = readfile($domain);
                       echo $variableee;
					echo "we have a error some how!";


<progress id="progressBar" value="0" max="100"></progress>

<span id="status"></span>


<script type="text/javascript" language="javascript">

function progressBarSim(al) {

  var bar = document.getElementById('progressBar');

  var status = document.getElementById('status');

  status.innerHTML = "Please Wait While Loading Each Page "+al+"%";

  bar.value = al;


	var sim = setTimeout("progressBarSim("+al+")",250);

	if(al == 100){

	  status.innerHTML = "Please Wait While Loading Each Page 100%";

	  bar.value = 100;

	  window.location.href = "traffic.php";




var amountLoaded = 0;



And you can test the site at http://nettys.co/traffic.php


Storing array data into mysql table How help

15 April 2014 - 06:36 PM

Ok I have the following fields set up in my sql table



and the array looks like this

    [id] => 100001957015772
    [name] => Robert Puckett
    [picture] => Array
            [data] => Array
                    [height] => 0
                    [is_silhouette] => 
                    [url] => https://fbcdn-profile-a.akamaihd.net/hprofile-ak-frc1/t1.0-1/c8.0.50.50/p50x50/10251949_622143917860836_1398143136845301890_s.jpg
                    [width] => 0


    [email] => clarity-understanding@hotmail.com

I want to store that array in to MySQL table named user_info but I do not know how! Can you guys help me and teach me how to learn arrays?



Not sure if this can be done. But want to try.

02 March 2014 - 07:12 AM

ok this is tricky for me. but what isn't..
Ok I copied a file from j drive and moved it to a tempfolder on the webroot.
and it is named like this


so it looks more like this.


now what I want to do is strip the name for later I want to find only this part of the file name

it will change for each user


and when they login I once I get the php script to find that part of the filename. I want to delete all the files that are in the temp folder of that user if any is there. and also I want to delete the files when they are not login. or when they logout. and I would like to make a date timer also that lets the files stay in the temp folder for as long as they user is login, but if they are logout or inactive the files are removed also..

I was thinking this might work but am not sure.


the reason why I am doing this is because I do not want users to be able to go to the webroot page and just
get any file they want from
and so on.. they would have to know the users ID and that's easy it counts from 1 to what ever

but they also have to know the users accesstoken for $at and they would also have to know the filename md5 code to get the files for the user that is viewing that file.

and if an when or once that user is no longer viewing that file it deletes it. so its only there a very sort time.
these are the only files that are public and I want to make it as secure as I can.




28 February 2014 - 06:08 PM

Ok I am storing the files behind the web in a file system.

and I am using a getfile.php to read the file.

I pass some checks so only the user can get the file unless they have friends and the string looks like this

No when I go to that page it is reading the file as text not as a mp4
I thought that the html5 video el would know its a mp4 from the http link provided


<video src="getfile.php?uid=1&mid=1&at=33c1a0d7a97493820ff4dadc42430841&security=1&f_stat=1&path=/videos/foldername/output/&getfile=c6f46d45bc02173543156c552764c939.mp4" controls></video>

but is not working what can I do to make it work
the files are stored here


and the webhost is stored here