<?php

//include 'includes/config2.php';
include 'includes/functions.php';
$dir = new DIR_LIB();
function reformatdate($date_to_reformat)
{
    $temp_date = date_create($date_to_reformat);
    $date_reformatted = date_format($temp_date, "Y-m-d");
    return $date_reformatted;
}
//general info
$challengeid = $_POST['challengeid'];
$slug = $_POST['slug'];
$challenge_name = mysql_real_escape_string($_POST['title']);
$challenge_category = $_POST['category'];
$challenge_description = mysql_real_escape_string($_POST['description']);
$challenge_more_description = mysql_real_escape_string($_POST['more_description']);
$challenge_urlname = mysql_real_escape_string($_POST['urlvalue']);
$image = $_FILES['image']['name'];
if ($challenge_name == "") {
    echo "* Please provide a name for your challenge *";
} else {
    if ($dir->CheckIfExist("SELECT * from Challenges WHERE URLName = '" . $challenge_urlname . "' and NOT ChallengeId = '" . $challengeid . "'") == true) {
        echo "* URL name already taken. *";
    } elseif ($challenge_category == "") {
        echo "* Please select a category for your challenge *";
    } else {
        if ($image) {
            $filename = stripslashes($_FILES['image']['name']);
            preg_match('/([^\\/\\:*\\?"<>|]+)(?:\\.([^\\/\\:*\\?"<>|\\.]+))$/', $filename, $matches);
Example #2
0
<?php

include "includes/main_functions_test.php";
//include 'http://www.domaindirectory.com/includes/main_functions_test.php';
$dir = new DIR_LIB();
if (isset($_REQUEST['count'])) {
    die($dir->CountLeads($_REQUEST['domain']));
}
$email = $_REQUEST['email'];
$domain = $_REQUEST['domain'];
$user_ip = $_REQUEST['user_ip'];
//add codes to check if the email is already saved in database..
// if already in database, skipp save line
$save = "success";
//else if new email
$save = $dir->SaveLeads($email, $domain, $user_ip);
/*
try {
			$returnArray = array();
			$host = "127.0.0.1";
			$dbname = "domaindi_managedomain";
			$user = "******";
			$pass = "******";
			$DBH = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass);
			
			
			
			$q = $DBH->query("SELECT category_id FROM domain WHERE domain_name='$domain'");
			while($r = $q->fetch()) {
				$catID = $r['category_id'];
			}
Example #3
0
<?php

session_start();
if (isset($_SESSION['Username'])) {
    include 'functions.php';
    $dir = new DIR_LIB();
    $id = mysql_escape_string($_POST['id']);
    $id = explode("-", $id);
    echo $dir->DeleteAppVideos($id[0], $id[1]);
}
Example #4
0
<? 
session_start();
include ('includes/functions.php'); 
$dir = new DIR_LIB();

include ('includes/meta_title.php'); 
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title><?php 
echo $meta_title;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="generator" content="PSPad editor, www.pspad.com">
<meta http-equiv="content-language" content="en-US">
<meta name="title" content="<?php 
echo $meta_title;
?>
">
<meta name="description" content="<?php 
echo $meta_desc;
?>
">
<meta name="keywords" content="<?php 
echo $meta_keywords;
Example #5
0
<?php

include 'includes/functions.php';
$dir = new DIR_LIB();
$sponsor_id = $_POST['sponsor_id'];
$dir->DeleteSponsor($sponsor_id);
Example #6
0
<?php
header("Content-type: text/xml");
echo'<?xml version=\'1.0\' encoding=\'UTF-8\'?>';
echo'   <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">';
require_once('includes/functions.php');
$dir = new DIR_LIB();
?>
<url>
       <loc><?php echo $siteurl?>/</loc>
       <lastmod>2013-09-16T07:13:36+00:00</lastmod>
       <changefreq>daily</changefreq>
       <priority>1.0000</priority>
  </url>
   <url>
       <loc><?php echo $siteurl?>/home.html</loc>
       <lastmod>2013-09-16T07:13:36+00:00</lastmod>
       <changefreq>daily</changefreq>
       <priority>0.8000</priority>
  </url>
  
  <url>
       <loc><?php echo $siteurl?>/about.html</loc>
       <lastmod>2013-09-16T07:13:36+00:00</lastmod>
       <changefreq>daily</changefreq>
       <priority>0.8000</priority>
  </url>
  <url>
       <loc><?php echo $siteurl?>/contact.html</loc>
       <lastmod>2013-09-16T07:13:36+00:00</lastmod>
       <changefreq>daily</changefreq>
       <priority>0.8000</priority>
Example #7
0
<?php

session_start();
if (isset($_SESSION['Username'])) {
    include 'functions.php';
    $dir = new DIR_LIB();
    $id = mysql_escape_string($_POST['id']);
    $id = explode("-", $id);
    echo $dir->DeleteAppFiles($id[0], $id[1]);
}
Example #8
0
<?php

session_start();
if (isset($_SESSION['Username'])) {
    include 'functions.php';
    $dir = new DIR_LIB();
    $id = mysql_escape_string($_POST['id']);
    $id = explode("-", $id);
    echo $dir->DeleteAppImages($id[0], $id[1]);
}
Example #9
0
<?php

$challengeid = $_GET['challenge_id'];
include "../includes/functions.php";
$dir = new DIR_LIB();
$challenge_title = $dir->GetInfo('Challenges', 'ChallengeTitle', 'ChallengeId', $challengeid);
$challenge_desc = $dir->GetInfo('Challenges', 'ChallengeDesc', 'ChallengeId', $challengeid);
$slug = $dir->GetInfo('Challenges', 'Slug', 'ChallengeId', $challengeid);
$photo = $dir->GetInfo('Challenges', 'Photo', 'ChallengeId', $challengeid);
$link = $site_url . "/challenge/" . $slug;
?>
var html = '<style type="text/css">'
+'.main{ width: 100%; font-family:arial; font-size:13px; padding-top: 10px; padding-bottom: 10px; padding-left:10px; padding-right:10px; box-shadow: inset 0 0 .4em #999; border-radius:3px; background: rgb(255,255,255); /* Old browsers */ background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 0%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(0%,rgba(229,229,229,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 0%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 0%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 0%); /* IE10+ */ background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 0%); /* W3C */'
+'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#ffffff, endColorstr=#e5e5e5,GradientType=0 ); /* IE6-9 */ }'
+'@media (min-width: 280px) { .main .inner{ width: 130px; } }'
+'@media (min-width: 320px) { .main .inner{ width: 260px; } }'
+'@media (min-width: 480px) { .main .inner{ width: 390px; } }'
+'@media (min-width: 640px) { .main .inner{ width: 520px; } }'
+'@media (min-width: 800px) { .main .inner{ width: 780px; } }'
+'.logo { background:#fff; padding:4px 0px 6px 0px; margin-bottom:5px;width:100%}'
+'.erb-image-wrapper img{ max-width:100% !important; height:auto; display:block; }'
+'.wid-title{ padding: 1px 0 1px 0; background: rgb(255,255,255); /* Old browsers */ background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(47%,rgba(246,246,246,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#ffffff, endColorstr=#ededed,GradientType=0 ); /* IE6-9 */ }'
+'.wid-title p { font-size:19px; font-weight:bold; color:#555; padding:8px; margin-top:-1px; margin-bottom:-1px; }'
+'.wid-desc{ padding: 1px 0 1px 0; background:#fff; color:#222; }'
+'.wid-desc p{ 	padding:8px; 	margin-top:-1px; 	margin-bottom:-1px; }'
+'.links { text-align:center; }'
+'a.btn-widget { display: inline-block; width:180px; margin-top:5px; color: #666; text-transform: uppercase; text-decoration:none; letter-spacing: 2px; font-size: 12px; padding: 10px 30px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid rgba(0,0,0,0.3); border-bottom-width: 3px; background: rgb(255,255,255); /* Old browsers */ background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(241,241,241,1) 50%, rgba(225,225,225,1) 51%, rgba(246,246,246,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(50%,rgba(241,241,241,1)), color-stop(51%,rgba(225,225,225,1)), color-stop(100%,rgba(246,246,246,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#ffffff, endColorstr=#f6f6f6,GradientType=0 ); /* IE6-9 */ }'
+'a.btn-widget:hover { background-color: #e3e3e3; border-color: rgba(0,0,0,0.5); }'
+'a.btn-widget:active { background-color: #CCC; border-color: rgba(0,0,0,0.9); }'
+'</style>'
+'<div class="main">'