Post: What's the best function you have made for a tool
04-11-2016, 06:08 PM #1
CrEaTiiOn_420
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); I would like to see some of the best snippets of code that users of ngu have created and what they are for (games, system, etc.) I can't wait to see what you guys got ✌👌
04-12-2016, 03:54 AM #2
Jim Halpert
Bounty hunter
I put hours into this one:
You must login or register to view this content.
04-14-2016, 11:08 PM #3
jagex
Gym leader
    
INotifyPropertyChanged


Don't have to manually update my UI whenever a property changes values. xD
04-15-2016, 01:51 AM #4
CrEaTiiOn_420
Can’t trickshot me!
Originally posted by Jim
I put hours into this one:
You must login or register to view this content.


Haha great work man I use it a lot!!! Lmfao
04-15-2016, 01:54 AM #5
CrEaTiiOn_420
Can’t trickshot me!
Originally posted by jagex View Post
    
INotifyPropertyChanged


Don't have to manually update my UI whenever a property changes values. xD


Fuckin nice man ����
04-15-2016, 01:42 PM #6
Passion
League Champion
PHP safeString (thx stack for help)
Checks if they use <script alert or any XSS tags in the text
    
function safeString($string) {
$parameters = array("<script", "alert(", "<iframe", ".css", ".js", "<meta", "<frame", "<embed", "<xml", "<SCRIPT", "<IFRAME", "<META", "<FRAME", "<EMBED", "<XML");
foreach ($parameters as $parameter)
{
if (strpos($string,$parameter) !== false)
{
return true;
}
}
}

Usage:
    
if safeString($message) {
//run
} else {
die('Not safe!'Winky Winky;
}
Last edited by Passion ; 04-15-2016 at 01:47 PM.

The following user thanked Passion for this useful post:

CrEaTiiOn_420
04-17-2016, 12:47 AM #7
CrEaTiiOn_420
Can’t trickshot me!
Originally posted by Passion View Post
PHP safeString (thx stack for help)
Checks if they use <script alert or any XSS tags in the text
    
function safeString($string) {
$parameters = array("<script", "alert(", "<iframe", ".css", ".js", "<meta", "<frame", "<embed", "<xml", "<SCRIPT", "<IFRAME", "<META", "<FRAME", "<EMBED", "<XML");
foreach ($parameters as $parameter)
{
if (strpos($string,$parameter) !== false)
{
return true;
}
}
}

Usage:
    
if safeString($message) {
//run
} else {
die('Not safe!'Winky Winky;
}


great job and great post man looks useful Winky Winky
04-17-2016, 05:02 PM #8
jagex
Gym leader
Originally posted by 420 View Post
Fuckin nice man ************************************


I didn't make the Interface, Microsoft did.

You must login or register to view this content.

I just implemented it.
04-18-2016, 08:51 PM #9
CrEaTiiOn_420
Can’t trickshot me!
Originally posted by jagex View Post
I didn't make the Interface, Microsoft did.

You must login or register to view this content.

I just implemented it.


Still great use of coding for a specific purpose
05-06-2016, 01:11 AM #10
FakeEdition
I am error
     Main(null) 
might be the best thing ever =Z

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo