All snippets of the tag check |
|
21-25 of 25 Entries |
|
|
is_int (Bash::Function) |
Created by Marko Schulz at 2010-01-20 12:16:24 |
# ************************************************************
# This function check, if [$number] is an integer number.
# This function return 'true' if [$number] is integer otherwise
# return 'false'.
function is_int () {
local number=$1
[ -z "... |
|
referer (PHP::Function) |
Created by Marko Schulz at 2009-01-03 03:09:56 |
// List of allowed domains.
(array) $referers = array('newmedia24.de','tuxnet24.de');
// Go away if your referer is not in the domain list.
if ( !referer($_SERVER['HTTP_REFERER']) )
header("Location: https://www.cia.gov/");
// *******************... |
|
referer (Perl::Function) |
Created by Marko Schulz at 2009-01-03 02:55:55 |
#!/usr/bin/perl
# List of allowed domains.
my @domains=('newmedia24.de','tuxnet24.de');
# Go away if your referer is not in the domain list.
if (!referer($ENV{'HTTP_REFERER'})) {
print "Location: https://www.cia.gov/\n\n";
}
# ************... |
|
check_url (Python::Function) |
Created by Marko Schulz at 2008-12-27 02:53:48 |
def check_url( url ):
"""check_url --- Check the syntax of a url format and return False
if the syntax is bad and True if the syntax is good.
(bool) bool check_url( (string) url )"""
from re import compile, match
regexp = com... |
|
check_mailaddr (Python::Function) |
Created by Marko Schulz at 2008-12-27 02:53:06 |
def check_mailaddr( email ):
"""check_mailaddr --- Check the syntax of an email address format
and return False if the syntax is bad and True if the syntax is good.
(bool) bool check_mailaddr( (string) email )"""
from re import co... |
|
21-25 of 25 Entries |
|
|