This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'albacore' | |
require 'fileutils' | |
PROJECT_NAME = "Your Project Here" | |
DOT_NET_PATH = "C:/Windows/Microsoft.NET/Framework/v4.0.30319/" | |
NUNIT_PATH = "Tools/nunit/" | |
MSPEC_PATH = "Tools/mspec/" | |
PROJECT_CONFIG = (ENV['PROJECT_CONFIG'] == nil) ? "Debug" : ENV['PROJECT_CONFIG'] | |
COMPANY_NAME = "Your Company Here" | |
BUILD_NUMBER = (ENV['BUILD_NUMBER'] == nil) ? "1.0.0.0" : ENV['BUILD_NUMBER'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake' | |
require 'albacore' | |
build_dir = "../build" | |
bin_dir = "#{build_dir}/bin" | |
src_dir = "../src" | |
solution = "#{src_dir}/Example.sln" | |
release_dir = "#{build_dir}/release" | |
package_dir = "#{build_dir}/package" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PagnationStr(totalPgs, currentPg) | |
{ | |
var pageSet = 10, | |
indexUrl = "//mydomain.com/page/", | |
tmp = "<div class=\"pagination\"><ul>", | |
maxpage = currentPg + 9, | |
crtarget = currentPg, | |
i = 0; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title></title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.htaccess | |
.htaccess.sample | |
LICENSE.html | |
LICENSE.txt | |
LICENSE_AFL.txt | |
RELEASE_NOTES.txt | |
app/*.* | |
app/*/*.* | |
app/*/*/*.* | |
!app/etc/modules/<Namespace>_*.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Web; | |
namespace xxx.xxxx.Shared.Application | |
{ | |
public class AESEncryptionHelper | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123456 | |
password | |
12345678 | |
1234 | |
pussy | |
12345 | |
dragon | |
qwerty | |
696969 | |
mustang |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __autoload ($class_name) | |
{ | |
if (!class_exists($class_name, false)) { | |
$class_file_path = str_replace('_', '/', $class_name) . '.php'; | |
require($class_file_path); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RDM_Utility { | |
public static function generateGUID() { | |
$guid = ''; | |
$time_low = str_pad(dechex(mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT) . str_pad(dechex(mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT); | |
$time_mid = str_pad(dechex(mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RDM_DataSecurity { | |
// this basic clean should clean html code from | |
// lot of possible malicious code for Cross Site Scripting | |
// use it whereever you get external input | |
static function basicClean($string) { | |
if (get_magic_quotes_gpc()) { |
OlderNewer