Large diffs are not rendered by default.

@@ -6,10 +6,7 @@
*/

//Basics Includes
//include_once('include/Config/dbinfo.php'); //DB infoes
//include_once('include/Database/DBObject.php');
//include_once('../Config/dbinfo.php'); //DB infoes
//include_once('DBObject.php');
require_once('DBObject.php');

/**
* @author Pappas Evangelos - BagosGiAr - papas.evagelos@gmail.com
@@ -1,47 +1,47 @@


// ajax oject
function getHTTPObject()
{
var xmlhttp;
/*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
{
try {
xmlhttp = new XMLHttpRequest();
}
catch (e) {
xmlhttp = false;
}
}
return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object

function clearBox(ObjselBox)
{
for(i=ObjselBox.length-1; i>=0; i--)
{
deleteOption(ObjselBox, i);
}
}

function deleteOption(theSel, theIndex)
{
var selLength = theSel.length;
if(selLength > 0)
{
theSel.options[theIndex] = null;
}
}

// end ajas object


function trimString(str)
{
return str.replace(/^\s+|\s+$/g, '');
}




// ajax oject
function getHTTPObject()
{
var xmlhttp;
/*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
{
try {
xmlhttp = new XMLHttpRequest();
}
catch (e) {
xmlhttp = false;
}
}
return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object

function clearBox(ObjselBox)
{
for(i=ObjselBox.length-1; i>=0; i--)
{
deleteOption(ObjselBox, i);
}
}

function deleteOption(theSel, theIndex)
{
var selLength = theSel.length;
if(selLength > 0)
{
theSel.options[theIndex] = null;
}
}

// end ajas object


function trimString(str)
{
return str.replace(/^\s+|\s+$/g, '');
}



Large diffs are not rendered by default.

@@ -1,199 +1,199 @@
<?php

/* USAGE: Query String Manipulation
*
* DESCRIPTION: A class for get values,
* set values, delete variables, count
* variables ocurrences in a given
* query string.
*
* AUTHOR: Olaf Reitmaier <olafrv@gmail.com>
* VERSION: 1.1 (July 19th, 2005)
* TESTED ON: PHP 4.3.8
*/
class QueryString{

function QueryString(){
/* Only the class constructor */
}

/* USAGE: Delete all the ocurrence of
* a variable $name declared in the
* query string $qs (one or more times).
*
* RETURNS: A new query string.
*/
function delVar($qs, $name = ""){
$qs = trim($qs);
$name = trim($name);
$del = $qs;
if ($name!=""){
while($this->numVar($del, $name)>0){
$var = $this->getVar($del, $name);
$del = str_replace(("&" . trim($var)), "", $del);
$del = str_replace(("?" . trim($var)), "?", $del);
if ($del == $var || trim($del) == "?"){
$del = "";
break;
}
}
}
return $this->revAmpersand($del);
}

/* USAGE: Get the value of the variable
* $name in the query string $qs
*
* RETURNS: A string value.
* Is null if the var is undefined,
* (It is not in the query string).
*/
function getVarValue($qs, $name){
$spec = $this->getVar($qs, $name);
if ($spec==""){
$value=null;
}else{
$parts = explode("=", $spec);
$value = $parts[1];
}
return $value;
}

/* USAGE: Get the value of the variable
* in the $pos position in the query string $qs
*
* RETURNS: A string value.
* Is null if the var is undefined,
* (It is not in the query string).
*/
function getVarPosValue($qs, $pos){
$arr = $this->toArray($qs);
return $arr[$pos];
}

/* USAGE: Get the declaration string
* of the variable $name in the
* query string $qs
*
* RETURNS: A string (var=value).
*/
function getVar($qs, $name = ""){
$qs = trim($qs);
$name = trim($name);
$spec = "";
if ($name!=""){
$inicio = strpos($qs, $name . "=", 0);
$validVar = true;
if ($inicio>0){
$validVar = (substr($qs, $inicio-1, 1)=="&");
}
if ($validVar){
$igual = strpos($qs, "=", $inicio);
$fin = strpos($qs, "&", $igual);
if (!$fin) $fin = strlen($qs);
if ($inicio < $igual && $igual <= $fin){
$spec = substr($qs, $inicio, $fin-$inicio);
}
}
}
return $spec;
}

/* USAGE: Determine the number of time
* the variable $name appears in the
* query string $qs.
*
* RETURNS: A new query string.
*/
function numVar($qs, $name){
$num = 0;
$name = trim($name);
if ($name!=""){
$num = substr_count($qs, "&" . $name . "=");
}
if (substr($qs, 0, strlen($name."=")) == $name."="){
$num++;
}
return $num;
}


/* USAGE: Eliminate double &&
* in the query string $qs.
*
* RETURNS: A new query string.
*/
function revAmpersand($qs){
while(substr_count($qs, "&&")>0){
$qs = str_replace("&&","&", $qs);
}
if (substr($qs, strlen($qs)-1, 1)=="&"){
$qs = substr($qs, 0, strlen($qs)-1);
}
if (substr($qs, 0, 1)=="&"){
$qs = substr($qs, 1, strlen($qs));
}
return $qs;
}

/* USAGE: Change the value of a variable
* $name in the query string $qs.
*
* RETURNS: A new query string.
*/
function setVar($qs, $name = "", $value=""){
$qs = trim($qs);
$name = trim($name);
$value = trim($value);

$set = $qs;
if ($name!=""){
while($this->numVar($set, $name)>1){
$set = $this->delVar($set, $name);
}
if ($this->numVar($set, $name)==1){
$var = $this->getVar($set, $name);
$set = str_replace($var, $name . "=" . $value, $set);
}else{
$set = $this->revAmpersand($set) . "&" . $name . "=" . $value;
}
}
return $this->revAmpersand($set);
}

/* USAGE: Change the value of the variables
* with the new values in the array. The array
* must pairs (name, value) of n-length.
*
* RETURNS: A new query string.
*/
function setVarArray($qs, $var_array){
foreach($var_array as $name => $value) {
$qs = $this->setVar($qs, $name, $value);
}
return $qs;
}

/* USAGE: Returns an associative array (Indexes of the array
* can be the name or the position of the variable
* in the given query string
*
* RETURNS: An Associative Array (Names and Positions of Vars)
*/
function toArray($qs)
{
$qs = $this->revAmpersand($qs);
$variable_equals_value = explode("&", $qs);
$num_vars = sizeof($variable_equals_value);
$variables = Array();
for($i=0;$i<$num_vars;$i++){
$variable_value = explode("=", $variable_equals_value[$i]);
$var_name = $variable_value[0];
$var_value = $variable_value[1];
$variables[$var_name] = $var_value;
$variables[$i] = $var_value;
}
return $variables;
}
}
<?php

/* USAGE: Query String Manipulation
*
* DESCRIPTION: A class for get values,
* set values, delete variables, count
* variables ocurrences in a given
* query string.
*
* AUTHOR: Olaf Reitmaier <olafrv@gmail.com>
* VERSION: 1.1 (July 19th, 2005)
* TESTED ON: PHP 4.3.8
*/
class QueryString{

function QueryString(){
/* Only the class constructor */
}

/* USAGE: Delete all the ocurrence of
* a variable $name declared in the
* query string $qs (one or more times).
*
* RETURNS: A new query string.
*/
function delVar($qs, $name = ""){
$qs = trim($qs);
$name = trim($name);
$del = $qs;
if ($name!=""){
while($this->numVar($del, $name)>0){
$var = $this->getVar($del, $name);
$del = str_replace(("&" . trim($var)), "", $del);
$del = str_replace(("?" . trim($var)), "?", $del);
if ($del == $var || trim($del) == "?"){
$del = "";
break;
}
}
}
return $this->revAmpersand($del);
}

/* USAGE: Get the value of the variable
* $name in the query string $qs
*
* RETURNS: A string value.
* Is null if the var is undefined,
* (It is not in the query string).
*/
function getVarValue($qs, $name){
$spec = $this->getVar($qs, $name);
if ($spec==""){
$value=null;
}else{
$parts = explode("=", $spec);
$value = $parts[1];
}
return $value;
}

/* USAGE: Get the value of the variable
* in the $pos position in the query string $qs
*
* RETURNS: A string value.
* Is null if the var is undefined,
* (It is not in the query string).
*/
function getVarPosValue($qs, $pos){
$arr = $this->toArray($qs);
return $arr[$pos];
}

/* USAGE: Get the declaration string
* of the variable $name in the
* query string $qs
*
* RETURNS: A string (var=value).
*/
function getVar($qs, $name = ""){
$qs = trim($qs);
$name = trim($name);
$spec = "";
if ($name!=""){
$inicio = strpos($qs, $name . "=", 0);
$validVar = true;
if ($inicio>0){
$validVar = (substr($qs, $inicio-1, 1)=="&");
}
if ($validVar){
$igual = strpos($qs, "=", $inicio);
$fin = strpos($qs, "&", $igual);
if (!$fin) $fin = strlen($qs);
if ($inicio < $igual && $igual <= $fin){
$spec = substr($qs, $inicio, $fin-$inicio);
}
}
}
return $spec;
}

/* USAGE: Determine the number of time
* the variable $name appears in the
* query string $qs.
*
* RETURNS: A new query string.
*/
function numVar($qs, $name){
$num = 0;
$name = trim($name);
if ($name!=""){
$num = substr_count($qs, "&" . $name . "=");
}
if (substr($qs, 0, strlen($name."=")) == $name."="){
$num++;
}
return $num;
}


/* USAGE: Eliminate double &&
* in the query string $qs.
*
* RETURNS: A new query string.
*/
function revAmpersand($qs){
while(substr_count($qs, "&&")>0){
$qs = str_replace("&&","&", $qs);
}
if (substr($qs, strlen($qs)-1, 1)=="&"){
$qs = substr($qs, 0, strlen($qs)-1);
}
if (substr($qs, 0, 1)=="&"){
$qs = substr($qs, 1, strlen($qs));
}
return $qs;
}

/* USAGE: Change the value of a variable
* $name in the query string $qs.
*
* RETURNS: A new query string.
*/
function setVar($qs, $name = "", $value=""){
$qs = trim($qs);
$name = trim($name);
$value = trim($value);

$set = $qs;
if ($name!=""){
while($this->numVar($set, $name)>1){
$set = $this->delVar($set, $name);
}
if ($this->numVar($set, $name)==1){
$var = $this->getVar($set, $name);
$set = str_replace($var, $name . "=" . $value, $set);
}else{
$set = $this->revAmpersand($set) . "&" . $name . "=" . $value;
}
}
return $this->revAmpersand($set);
}

/* USAGE: Change the value of the variables
* with the new values in the array. The array
* must pairs (name, value) of n-length.
*
* RETURNS: A new query string.
*/
function setVarArray($qs, $var_array){
foreach($var_array as $name => $value) {
$qs = $this->setVar($qs, $name, $value);
}
return $qs;
}

/* USAGE: Returns an associative array (Indexes of the array
* can be the name or the position of the variable
* in the given query string
*
* RETURNS: An Associative Array (Names and Positions of Vars)
*/
function toArray($qs)
{
$qs = $this->revAmpersand($qs);
$variable_equals_value = explode("&", $qs);
$num_vars = sizeof($variable_equals_value);
$variables = Array();
for($i=0;$i<$num_vars;$i++){
$variable_value = explode("=", $variable_equals_value[$i]);
$var_name = $variable_value[0];
$var_value = $variable_value[1];
$variables[$var_name] = $var_value;
$variables[$i] = $var_value;
}
return $variables;
}
}
?>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,143 +1,143 @@
<?php
/*
* StringList Class v1.0.1
* ============================================================
* Kodlayan: Tufan Bar&#305;&#351; YILDIRIM
* Website : http://www.tufyta.com
* ===================Versiyon Notlar&#305;=========================
* v1.0.1
* ========
* -- SaveToFile() And ReadFromFile() Added.
* v1.0.0
* ========
* -- a talented class i have seen in Delpi StringList
*/
class StringList{

private $Values=array();
private $Text;
private $Lines=array();

/**
* It's constructor func
*
* @param mixed $string String you want parse.
* @return StringList
*/
public function StringList($string){

$this->Text=$string;
$this->Lines=explode("\n",$string);
$Count=count($this->Lines);

Foreach ($this->Lines As $LineText){
$EsitPos=strpos($LineText,'=');
$this->Values[substr($LineText,0,$EsitPos)]=substr($LineText,$EsitPos+1,strlen($LineText));
}

return $this;
}
/**
* Return The Text Or Set Text (ReCreate Object).
*
* @param mixed $SetTex it will change if it assigned
* @return StringList
*/
public function Text($SetTex=False){
if($SetTex){
return $this->StringList($SetTex);
} else {
return $this->Text;
}

}
/**
* It can return A Line or All Lines Or Set The Lines ( ReCreate Object )
*
* @param mixed $LinesArray if is numeric it will return Line with this number .
* @return StringList
*/
public function Lines($LinesArray=false){
if(is_array($LinesArray)){
return $this->StringList(implode("\n",$LinesArray));
} elseif(is_numeric($LinesArray)) {
return $this->Lines[$LinesArray];
}else {
return $this->Lines;
}
}
/**
* You Can add Line Or Lines by Array.
* @param mixed $LineOrLines
*/
public function Add($LineOrLines){
if(strstr($LineOrLines,"\n")){
$Lines=explode("\n",$LineOrLines);
}else {
$Lines[]=$LineOrLines;
}

Foreach($Lines As $Line){
$this->Lines[]=$Line;
}
return $this;
}
/**
* Save Text to File.
* @param mixed $FileName Dosya Ad&#305;
*/
public function SaveToFile($FileName='UnnamedStringlistFile'){
if($fileOpened=@fopen($FileName,'w+')){
fwrite($this->Text);
fclose($fileOpened);
}
}
/**
* Read Text From File (Recreate Object)
*
* @param mixed $FileName
*/
public function ReadFromFile($FileName){
if(is_file($FileName) && is_readable($FileName)){
$this->StringList(file_get_contents($FileName));
}
return $this;
}

/**
* PROPERTIES
*/
public function Values($Name=false,$SetValue=False){
if($Name){
if($SetValue){
foreach($this->Values AS $valName=>$valValue){
$Lines[]=$valName.'='.$valValue."\n";
}
$this->Lines($Lines);
}
else {
return $this->Values[$Name];
}
}
else {
return $this->Values;
}
}


public function Count(){
return Count($this->Lines);

}

/**
* This func is only for show ->Lines()->Add() etc on PHP Editores
*
*/
private function ForPhpEditores(){
die('Don\'t Use This Function.!');
$this->Text=new StringList('');
$this->Lines=new StringList('');
}
}
<?php
/*
* StringList Class v1.0.1
* ============================================================
* Kodlayan: Tufan Bar&#305;&#351; YILDIRIM
* Website : http://www.tufyta.com
* ===================Versiyon Notlar&#305;=========================
* v1.0.1
* ========
* -- SaveToFile() And ReadFromFile() Added.
* v1.0.0
* ========
* -- a talented class i have seen in Delpi StringList
*/
class StringList{
private $Values=array();
private $Text;
private $Lines=array();
/**
* It's constructor func
*
* @param mixed $string String you want parse.
* @return StringList
*/
public function StringList($string){
$this->Text=$string;
$this->Lines=explode("\n",$string);
$Count=count($this->Lines);
Foreach ($this->Lines As $LineText){
$EsitPos=strpos($LineText,'=');
$this->Values[substr($LineText,0,$EsitPos)]=substr($LineText,$EsitPos+1,strlen($LineText));
}
return $this;
}
/**
* Return The Text Or Set Text (ReCreate Object).
*
* @param mixed $SetTex it will change if it assigned
* @return StringList
*/
public function Text($SetTex=False){
if($SetTex){
return $this->StringList($SetTex);
} else {
return $this->Text;
}
}
/**
* It can return A Line or All Lines Or Set The Lines ( ReCreate Object )
*
* @param mixed $LinesArray if is numeric it will return Line with this number .
* @return StringList
*/
public function Lines($LinesArray=false){
if(is_array($LinesArray)){
return $this->StringList(implode("\n",$LinesArray));
} elseif(is_numeric($LinesArray)) {
return $this->Lines[$LinesArray];
}else {
return $this->Lines;
}
}
/**
* You Can add Line Or Lines by Array.
* @param mixed $LineOrLines
*/
public function Add($LineOrLines){
if(strstr($LineOrLines,"\n")){
$Lines=explode("\n",$LineOrLines);
}else {
$Lines[]=$LineOrLines;
}
Foreach($Lines As $Line){
$this->Lines[]=$Line;
}
return $this;
}
/**
* Save Text to File.
* @param mixed $FileName Dosya Ad&#305;
*/
public function SaveToFile($FileName='UnnamedStringlistFile'){
if($fileOpened=@fopen($FileName,'w+')){
fwrite($this->Text);
fclose($fileOpened);
}
}
/**
* Read Text From File (Recreate Object)
*
* @param mixed $FileName
*/
public function ReadFromFile($FileName){
if(is_file($FileName) && is_readable($FileName)){
$this->StringList(file_get_contents($FileName));
}
return $this;
}
/**
* PROPERTIES
*/
public function Values($Name=false,$SetValue=False){
if($Name){
if($SetValue){
foreach($this->Values AS $valName=>$valValue){
$Lines[]=$valName.'='.$valValue."\n";
}
$this->Lines($Lines);
}
else {
return $this->Values[$Name];
}
}
else {
return $this->Values;
}
}
public function Count(){
return Count($this->Lines);
}
/**
* This func is only for show ->Lines()->Add() etc on PHP Editores
*
*/
private function ForPhpEditores(){
die('Don\'t Use This Function.!');
$this->Text=new StringList('');
$this->Lines=new StringList('');
}
}
?>

Large diffs are not rendered by default.

@@ -1,7 +1,7 @@
auxiliary.org-netbeans-modules-web-client-tools-api.clientdebug=false
auxiliary.org-netbeans-modules-web-client-tools-api.FIREFOX=true
auxiliary.org-netbeans-modules-web-client-tools-api.INTERNET_5f_EXPLORER=false
auxiliary.org-netbeans-modules-web-client-tools-api.serverdebug=true
copy.src.files=false
copy.src.target=
run.as=LOCAL
auxiliary.org-netbeans-modules-web-client-tools-api.clientdebug=false
auxiliary.org-netbeans-modules-web-client-tools-api.FIREFOX=true
auxiliary.org-netbeans-modules-web-client-tools-api.INTERNET_5f_EXPLORER=false
auxiliary.org-netbeans-modules-web-client-tools-api.serverdebug=true
copy.src.files=false
copy.src.target=
run.as=LOCAL
@@ -1,12 +1,12 @@
ignore.path=
include.path=\
${php.global.include.path}
php.version=PHP_53
phpunit.bootstrap=
phpunit.configuration=
phpunit.suite=
source.encoding=UTF-8
src.dir=.
tags.asp=true
tags.short=true
web.root=.
ignore.path=
include.path=\
${php.global.include.path}
php.version=PHP_53
phpunit.bootstrap=
phpunit.configuration=
phpunit.suite=
source.encoding=UTF-8
src.dir=.
tags.asp=true
tags.short=true
web.root=.
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>Trinity-FMW</name>
</data>
</configuration>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>Trinity-FMW</name>
</data>
</configuration>
</project>
@@ -1,18 +1,18 @@
MSYS-1.0.12 Build:2010-02-05 01:08
Exception: STATUS_ACCESS_VIOLATION at eip=68083B18
eax=68540000 ebx=0000450C ecx=00001143 edx=00000000 esi=00000000 edi=68540000
ebp=0028FE48 esp=0028FE3C program=us
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028FE48 68083B18 (68540000, 00000000, 0000450C, 00000004)
0028FE98 68001CB0 (004A294A, 00280001, 0028FEE8, 680044EA)
0028FEE8 680045C7 (75F71225, 75F71225, 0028FF28, 00418964)
0028FF08 68004C5F (004051D0, 00000000, A41C0000, A41C0000)
0028FF28 68004C98 (00000000, 00000000, 00000000, 00000000)
0028FF58 00418874 (004051D0, 004A3F98, 0000066B, 0000017C)
0028FF88 0040103D (7EFDE000, 0028FFD4, 77AF9D72, 7EFDE000)
0028FF94 75F73677 (7EFDE000, 676BEA40, 00000000, 00000000)
0028FFD4 77AF9D72 (00401000, 7EFDE000, 00000000, 00000000)
0028FFEC 77AF9D45 (00401000, 7EFDE000, 00000000, 78746341)
MSYS-1.0.12 Build:2010-02-05 01:08
Exception: STATUS_ACCESS_VIOLATION at eip=68083B18
eax=68540000 ebx=0000450C ecx=00001143 edx=00000000 esi=00000000 edi=68540000
ebp=0028FE48 esp=0028FE3C program=us
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028FE48 68083B18 (68540000, 00000000, 0000450C, 00000004)
0028FE98 68001CB0 (004A294A, 00280001, 0028FEE8, 680044EA)
0028FEE8 680045C7 (75F71225, 75F71225, 0028FF28, 00418964)
0028FF08 68004C5F (004051D0, 00000000, A41C0000, A41C0000)
0028FF28 68004C98 (00000000, 00000000, 00000000, 00000000)
0028FF58 00418874 (004051D0, 004A3F98, 0000066B, 0000017C)
0028FF88 0040103D (7EFDE000, 0028FFD4, 77AF9D72, 7EFDE000)
0028FF94 75F73677 (7EFDE000, 676BEA40, 00000000, 00000000)
0028FFD4 77AF9D72 (00401000, 7EFDE000, 00000000, 00000000)
0028FFEC 77AF9D45 (00401000, 7EFDE000, 00000000, 78746341)
End of stack trace