Exemple #1
0
<?php

/**************************************
*** File: top.php *********************
*** Project: phpticket ****************
***************************************
*** Authors: Daniel Netz <*****@*****.**> and ***  
***  Sinner from the Prairy <*****@*****.**> ***
*** email: sinnerbofh@gmail.com *****
*** Comment: From phptcket to HIPAA Tracker back to phpticket*
**************************************/
require_once 'conf.inc';
require_once 'functions01.inc';
mysql_open();
$this_is = get_variable('version');
if (strstr($this_is, "devel")) {
    $back_color = "#BBBBBB";
    //$back_color="#7CB6DF";
} else {
    $back_color = "#E0E0BC";
    //$back_color="#84b8e0";
}
print '<HTML><HEAD>
		<TITLE>' . $this_title . ' -  .' . get_variable('version') . '</TITLE>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<style type="text/css">';
print '<!--';
print 'BODY { BACKGROUND-COLOR: ' . $back_color . '; FONT-WEIGHT: normal; FONT-SIZE: 11px; 
	COLOR:#000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION:none }
h4 { FONT-SIZE: 10px;  FONT-WEIGHT: bold;  FONT-STYLE: normal;  FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; 
	TEXT-DECORATION: none; margin-top: 0em; margin-bottom: 0em;}	
            break;
        case "2":
        case "5":
        case "6":
        case "8":
        case "9":
        case "10":
            global $faction;
            $faction = "faction_1.jpg";
            break;
    }
    return $faction;
}
if (isset($_GET['charname'])) {
    $cont = new wowheadparser();
    $conn = mysql_open($serveraddress, $serveruser, $serverpass);
    $sql = "SELECT guid,name,class,level,race,gender FROM `" . $server_cdb . "`.`characters` WHERE name='" . mysql_real_escape_string($_GET["charname"]) . "'";
    $num_rows = mysql_num_rows($result);
    $result = mysql_query($sql, $conn) or die(mysql_error());
    if ($row = mysql_fetch_array($result)) {
        $items = show_items($row["guid"]);
        $all = array_merge($items);
        $html->load('armory', $all);
    }
    mysql_end($conn);
}
//Get Base stats
function baseStats($charName)
{
    include 'configs.php';
    mysql_select_db($server_cdb, $connection_setup) or die(mysql_error());
Exemple #3
0
    if ($debug) {
        print '<br>' . $page . '.php::$id is empty' . "\n";
    }
    do_title($title);
    print '<p>Please provide a valid Ticket number';
} else {
    // Debuggin
    if ($debug) {
        print '<br> ' . $page . '.php:: id **not** empty::switch()';
    }
    do_title($title . " #" . $id);
    // Set page title
    // Show entry
    print "<!-- Showing the selected Element -->";
    require_once 'functions03.inc';
    $i = show_simple_data($id, $start_id);
    $SQL_option = " AND `{$linking_field}` = {$id} ";
    mysql_open("{$mysql_db}", "{$mysql_user}", "{$mysql_passwd}");
    //edit_option("", "add", "action",$option_element,$id);
    mysql_open_next("{$mysql_db_next}", "{$mysql_user_next}", "{$mysql_passwd_next}");
    do_title($option_element . 's\' belonging to this ' . $GLOBALS['ELEMENT']);
    //list_option($SQL="",$current=0,$search=0)
    //list_option($SQL_option);
    list_simple_option($SQL_option);
}
print '<hr>';
//simple_search_by_element_num($GLOBALS['ELEMENT']);
powered();
// Print "Powered by" and end the HTML page
session_destroy();
die;