Beispiel #1
0
					}
				}
				
				$http_path = $this->protocol . $http_path;
			
			}
			
			$this->full = $full_path;
			$this->http = $http_path;
		}
	}
	
}

$paths = new Paths;
echo $paths->getFullPath("pages");


class Paths {
	/*
	public function currentPath($path_str){
		$this->current_path = $path_str;
	}
	public function getRelativePath($path_str){
		$directories_down = ('/',$this->current_path);
		$dir_count = $directories_down.count;
		$dir_str = '';
		for ($i = 0; $i < $dir_count; $i++){
			$dir_str .= '../';
		}
		$dir_str .= $this->path_info[$path_str]["path"];
Beispiel #2
0
<?php

include './paths.php';
$paths = new Paths();
$phpPath = $paths->getFullPath('php');
$analyticsPath = $paths->getHTTPPath("submitAnalytics");
$jsPath = $paths->getHTTPPath("js");
$libsjsPath = $paths->getHTTPPath("libsjs");
$countriesjsPath = $paths->getHTTPPath("countriesjs");
require_once $phpPath . "libs.php";
?>
<html>
<head>
<style>


table.main {
    border-collapse: collapse;
    border-color: #000000;
    border-spacing: 0;
    border-style: solid;
    border-width: 1px;
    font-size: 10px;
    font-family: Verdana,Arial,Helvetica,sans-serif;
}

td.main,th {
	border-color: #000000;
	border-style: solid;
	border-width: 1px;
	padding: 3.5px;
Beispiel #3
0
<?php

include '../paths.php';
$paths = new Paths();
$phpPath = $paths->getFullPath("php");
require_once $phpPath . "libs.php";
header("content-type:text/javascript");
$analytics_DBName = 'tsanalyticsdb';
$analytics_tableName = 'ts_analytics_data_01';
$analytics_username = '******';
$analytics_password = "******";
$analyticsPrefixString = 'ts_an_';
function tsan_connect()
{
    global $analytics_username;
    global $analytics_password;
    global $analytics_DBName;
    $connection = mysql_connect("topperstudioscom.ipagemysql.com", $analytics_username, $analytics_password) or kill_script('1');
    mysql_select_db($analytics_DBName, $connection) or kill_script('2');
    return $connection;
}
$COLS = $_GET["columns"] ? tsescape($_GET["columns"]) : "ID";
$link = tsan_connect();
$result = mysql_query("SELECT " . $COLS . " FROM " . $analytics_tableName . " WHERE ABS(ts_an_lastupdate - " . time() . ") < 10", $link);
$ARR = array();
while ($row = mysql_fetch_assoc($result)) {
    array_push($ARR, $row);
}
echo $_GET['callback'] . "(" . json_encode($ARR) . ");";