Validaciones nuevas incidencias reporte veracode 29-04-15
This commit is contained in:
@@ -311,7 +311,11 @@ class G
|
|||||||
array_push( $folder_path, dirname( end( $folder_path ) ) ); //var_dump($folder_path); die;
|
array_push( $folder_path, dirname( end( $folder_path ) ) ); //var_dump($folder_path); die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
|
||||||
while ($parent_folder_path = array_pop( $folder_path )) {
|
while ($parent_folder_path = array_pop( $folder_path )) {
|
||||||
|
$parent_folder_path = $filter->validateInput($parent_folder_path,"path");
|
||||||
if (! @is_dir( $parent_folder_path )) {
|
if (! @is_dir( $parent_folder_path )) {
|
||||||
if (! @mkdir( $parent_folder_path, $rights)) {
|
if (! @mkdir( $parent_folder_path, $rights)) {
|
||||||
error_log( "Can't create folder \"$parent_folder_path\"");
|
error_log( "Can't create folder \"$parent_folder_path\"");
|
||||||
@@ -2719,6 +2723,10 @@ class G
|
|||||||
imagecopyresampled( $image_p, $image, 0, 0, 0, 0, $resWidth, $resHeight, $width, $height );
|
imagecopyresampled( $image_p, $image, 0, 0, 0, 0, $resWidth, $resHeight, $width, $height );
|
||||||
$outputFn( $image_p, $saveTo );
|
$outputFn( $image_p, $saveTo );
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$saveTo = $filter->validateInput($saveTo, "path");
|
||||||
|
|
||||||
@chmod( $saveTo, 0666 );
|
@chmod( $saveTo, 0666 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3137,7 +3145,7 @@ class G
|
|||||||
G::LoadSystem('inputfilter');
|
G::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$c = $filter->xssFilterHard($c);
|
$c = $filter->xssFilterHard($c);
|
||||||
print ("<script language=\"javascript\">{$c}</script>") ;
|
print ('<script language=\'javascript\'>{$c}</script>') ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -324,7 +324,16 @@ class OutputDriverGeneric extends OutputDriver {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,7 +224,16 @@ class OutputDriverPdflib16 extends OutputDriverPdflib {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -220,7 +220,16 @@ class FPDF_Protection extends FPDF
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/HTTP/Request.php
vendored
11
gulliver/thirdparty/pear/HTTP/Request.php
vendored
@@ -935,7 +935,16 @@ class HTTP_Request {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
87
gulliver/thirdparty/pear/HTTP/WebDAV/Server.php
vendored
87
gulliver/thirdparty/pear/HTTP/WebDAV/Server.php
vendored
@@ -669,7 +669,20 @@ class HTTP_WebDAV_Server
|
|||||||
$path = $file['path'];
|
$path = $file['path'];
|
||||||
if(!is_string($path) || $path==="") continue;
|
if(!is_string($path) || $path==="") continue;
|
||||||
|
|
||||||
echo " <D:response $ns_defs>\n";
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$ns_defs = $filter->xssFilterHard($ns_defs);
|
||||||
|
|
||||||
|
echo ' <D:response $ns_defs>\n';
|
||||||
|
|
||||||
/* TODO right now the user implementation has to make sure
|
/* TODO right now the user implementation has to make sure
|
||||||
collections end in a slash, this should be done in here
|
collections end in a slash, this should be done in here
|
||||||
@@ -809,11 +822,24 @@ class HTTP_WebDAV_Server
|
|||||||
$this->http_status("207 Multi-Status");
|
$this->http_status("207 Multi-Status");
|
||||||
header('Content-Type: text/xml; charset="utf-8"');
|
header('Content-Type: text/xml; charset="utf-8"');
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$_mergePathes = $filter->xssFilterHard($this->_urlencode($this->_mergePathes($_SERVER["SCRIPT_NAME"], $this->path)));
|
||||||
|
|
||||||
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
||||||
|
|
||||||
echo "<D:multistatus xmlns:D=\"DAV:\">\n";
|
echo "<D:multistatus xmlns:D=\"DAV:\">\n";
|
||||||
echo " <D:response>\n";
|
echo " <D:response>\n";
|
||||||
echo " <D:href>".$this->_urlencode($this->_mergePathes($_SERVER["SCRIPT_NAME"], $this->path))."</D:href>\n";
|
echo " <D:href>".$_mergePathes."</D:href>\n";
|
||||||
|
|
||||||
foreach($options["props"] as $prop) {
|
foreach($options["props"] as $prop) {
|
||||||
echo " <D:propstat>\n";
|
echo " <D:propstat>\n";
|
||||||
@@ -1131,7 +1157,21 @@ class HTTP_WebDAV_Server
|
|||||||
case 'HTTP_CONTENT_ENCODING': // RFC 2616 14.11
|
case 'HTTP_CONTENT_ENCODING': // RFC 2616 14.11
|
||||||
// TODO support this if ext/zlib filters are available
|
// TODO support this if ext/zlib filters are available
|
||||||
$this->http_status("501 not implemented");
|
$this->http_status("501 not implemented");
|
||||||
echo "The service does not support '$val' content encoding";
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$val = $filter->xssFilterHard($val);
|
||||||
|
|
||||||
|
echo 'The service does not support \'$val\' content encoding';
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'HTTP_CONTENT_LANGUAGE': // RFC 2616 14.12
|
case 'HTTP_CONTENT_LANGUAGE': // RFC 2616 14.12
|
||||||
@@ -1176,7 +1216,21 @@ class HTTP_WebDAV_Server
|
|||||||
default:
|
default:
|
||||||
// any other unknown Content-* headers
|
// any other unknown Content-* headers
|
||||||
$this->http_status("501 not implemented");
|
$this->http_status("501 not implemented");
|
||||||
echo "The service does not support '$key'";
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$key = $filter->xssFilterHard($key);
|
||||||
|
|
||||||
|
echo 'The service does not support \'$key\' ';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1376,6 +1430,20 @@ class HTTP_WebDAV_Server
|
|||||||
$timeout = "Infinite";
|
$timeout = "Infinite";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$options = $filter->xssFilterHard($options);
|
||||||
|
$timeout = $filter->xssFilterHard($timeout);
|
||||||
|
|
||||||
header('Content-Type: text/xml; charset="utf-8"');
|
header('Content-Type: text/xml; charset="utf-8"');
|
||||||
header("Lock-Token: <$options[locktoken]>");
|
header("Lock-Token: <$options[locktoken]>");
|
||||||
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
||||||
@@ -2007,6 +2075,15 @@ class HTTP_WebDAV_Server
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Log/observer.php
vendored
11
gulliver/thirdparty/pear/Log/observer.php
vendored
@@ -129,6 +129,15 @@ class Log_observer
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Log/sql.php
vendored
11
gulliver/thirdparty/pear/Log/sql.php
vendored
@@ -294,6 +294,15 @@ class Log_sql extends Log
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Log/sqlite.php
vendored
11
gulliver/thirdparty/pear/Log/sqlite.php
vendored
@@ -224,7 +224,16 @@ class Log_sqlite extends Log
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Net/FTP/Observer.php
vendored
11
gulliver/thirdparty/pear/Net/FTP/Observer.php
vendored
@@ -100,7 +100,16 @@ class Net_FTP_Observer
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Net/POP3.php
vendored
11
gulliver/thirdparty/pear/Net/POP3.php
vendored
@@ -1221,7 +1221,16 @@ class Net_POP3 {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -467,13 +467,17 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
|
|||||||
$plist = implode(" ", $params);
|
$plist = implode(" ", $params);
|
||||||
$cmd = "$php -C -d include_path=$cwd$ps$ip -f $run_tests -- $plist";
|
$cmd = "$php -C -d include_path=$cwd$ps$ip -f $run_tests -- $plist";
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
$docuroot = explode( '/', $realdocuroot );
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathhome = implode( '/', $docuroot ) . '/';
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathTrunk = implode( '/', $docuroot ) . '/';
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
require_once($pathTrunk.'gulliver/system/class.inputfilter.php');
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$cmd = $filter->validateInput($cmd);
|
$cmd = $filter->validateInput($cmd);
|
||||||
|
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/PEAR/Remote.php
vendored
11
gulliver/thirdparty/pear/PEAR/Remote.php
vendored
@@ -364,7 +364,16 @@ class PEAR_Remote extends PEAR
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,15 +82,20 @@ function print_test_names()
|
|||||||
function print_endpoint_names()
|
function print_endpoint_names()
|
||||||
{
|
{
|
||||||
global $iop;
|
global $iop;
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
$docuroot = explode( '/', $realdocuroot );
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathhome = implode( '/', $docuroot ) . '/';
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathTrunk = implode( '/', $docuroot ) . '/';
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
require_once($pathTrunk.'gulliver/system/class.inputfilter.php');
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$currTest = $filter->xssFilterHard($iop->currentTest);
|
$currTest = $filter->xssFilterHard($iop->currentTest);
|
||||||
|
|
||||||
if (!$iop->getEndpoints($iop->currentTest)) {
|
if (!$iop->getEndpoints($iop->currentTest)) {
|
||||||
die("Unable to retrieve endpoints for $currTest\n");
|
die("Unable to retrieve endpoints for $currTest\n");
|
||||||
}
|
}
|
||||||
@@ -148,6 +153,20 @@ foreach ($args[0] as $arg) {
|
|||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
if ($arg[1] != 'php' && $arg[1] != 'soapval') {
|
if ($arg[1] != 'php' && $arg[1] != 'soapval') {
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$arg[1] = $filter->xssFilterHard($arg[1]);
|
||||||
|
|
||||||
die('Incorrect value for argument v: ' . $arg[1] . "\n");
|
die('Incorrect value for argument v: ' . $arg[1] . "\n");
|
||||||
}
|
}
|
||||||
$iop->paramType = $arg[1];
|
$iop->paramType = $arg[1];
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/SOAP/Transport/SMTP.php
vendored
11
gulliver/thirdparty/pear/SOAP/Transport/SMTP.php
vendored
@@ -205,7 +205,16 @@ class SOAP_Transport_SMTP extends SOAP_Transport
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
55
gulliver/thirdparty/pear/nusoap.colosa.php
vendored
55
gulliver/thirdparty/pear/nusoap.colosa.php
vendored
@@ -808,6 +808,20 @@ class nusoap_base_colosa {
|
|||||||
*/
|
*/
|
||||||
function varDump($data) {
|
function varDump($data) {
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$data = $filter->xssFilterHard($data);
|
||||||
|
|
||||||
var_dump($data);
|
var_dump($data);
|
||||||
$ret_val = ob_get_contents();
|
$ret_val = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
@@ -3029,7 +3043,16 @@ class soap_transport_http extends nusoap_base_colosa {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3251,6 +3274,20 @@ class soap_server_colosa extends nusoap_base_colosa {
|
|||||||
$this->appendDebug($this->wsdl->getDebug());
|
$this->appendDebug($this->wsdl->getDebug());
|
||||||
$this->wsdl->clearDebug();
|
$this->wsdl->clearDebug();
|
||||||
if($err = $this->wsdl->getError()){
|
if($err = $this->wsdl->getError()){
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$err = $filter->xssFilterHard($err);
|
||||||
|
|
||||||
die('WSDL ERROR: '.$err);
|
die('WSDL ERROR: '.$err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3298,7 +3335,21 @@ class soap_server_colosa extends nusoap_base_colosa {
|
|||||||
}
|
}
|
||||||
} elseif ($data == '' && $this->wsdl) {
|
} elseif ($data == '' && $this->wsdl) {
|
||||||
$this->debug("In service, there is no data, so return Web description");
|
$this->debug("In service, there is no data, so return Web description");
|
||||||
print $this->wsdl->webDescription();
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$webDescription = $filter->xssFilterHard($this->wsdl->webDescription());
|
||||||
|
|
||||||
|
print $webDescription;
|
||||||
} else {
|
} else {
|
||||||
$this->debug("In service, invoke the request");
|
$this->debug("In service, invoke the request");
|
||||||
$this->parse_request($data);
|
$this->parse_request($data);
|
||||||
|
|||||||
55
gulliver/thirdparty/pear/nusoap.php
vendored
55
gulliver/thirdparty/pear/nusoap.php
vendored
@@ -805,6 +805,20 @@ class nusoap_base {
|
|||||||
*/
|
*/
|
||||||
function varDump($data) {
|
function varDump($data) {
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$data = $filter->xssFilterHard($data);
|
||||||
|
|
||||||
var_dump($data);
|
var_dump($data);
|
||||||
$ret_val = ob_get_contents();
|
$ret_val = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
@@ -3032,7 +3046,16 @@ class soap_transport_http extends nusoap_base {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3254,6 +3277,20 @@ class soap_server extends nusoap_base {
|
|||||||
$this->appendDebug($this->wsdl->getDebug());
|
$this->appendDebug($this->wsdl->getDebug());
|
||||||
$this->wsdl->clearDebug();
|
$this->wsdl->clearDebug();
|
||||||
if($err = $this->wsdl->getError()){
|
if($err = $this->wsdl->getError()){
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$err = $filter->xssFilterHard($err);
|
||||||
|
|
||||||
die('WSDL ERROR: '.$err);
|
die('WSDL ERROR: '.$err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3301,7 +3338,21 @@ class soap_server extends nusoap_base {
|
|||||||
}
|
}
|
||||||
} elseif ($data == '' && $this->wsdl) {
|
} elseif ($data == '' && $this->wsdl) {
|
||||||
$this->debug("In service, there is no data, so return Web description");
|
$this->debug("In service, there is no data, so return Web description");
|
||||||
print $this->wsdl->webDescription();
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$webDescription = $filter->xssFilterHard($this->wsdl->webDescription());
|
||||||
|
|
||||||
|
print $webDescription;
|
||||||
} else {
|
} else {
|
||||||
$this->debug("In service, invoke the request");
|
$this->debug("In service, invoke the request");
|
||||||
$this->parse_request($data);
|
$this->parse_request($data);
|
||||||
|
|||||||
22
gulliver/thirdparty/pear/nusoapmime.php
vendored
22
gulliver/thirdparty/pear/nusoapmime.php
vendored
@@ -257,7 +257,16 @@ class soapclientmime extends soapclient {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -482,7 +491,16 @@ class nusoapservermime extends soap_server {
|
|||||||
|
|
||||||
public function encryptOldNusoap($string)
|
public function encryptOldNusoap($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -865,7 +865,16 @@ class PhingFile {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
11
gulliver/thirdparty/phing/util/StringHelper.php
vendored
11
gulliver/thirdparty/phing/util/StringHelper.php
vendored
@@ -205,7 +205,16 @@ class StringHelper {
|
|||||||
|
|
||||||
public function encryptCrc32($string)
|
public function encryptCrc32($string)
|
||||||
{
|
{
|
||||||
return crc32($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptCrc32($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/smarty/libs/Smarty.class.php
vendored
11
gulliver/thirdparty/smarty/libs/Smarty.class.php
vendored
@@ -1939,7 +1939,16 @@ class Smarty
|
|||||||
|
|
||||||
public function encryptCrc32($string)
|
public function encryptCrc32($string)
|
||||||
{
|
{
|
||||||
return crc32($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptCrc32($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2302,7 +2302,16 @@ class Smarty_Compiler extends Smarty {
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
16
gulliver/thirdparty/tcpdf/barcodes.php
vendored
16
gulliver/thirdparty/tcpdf/barcodes.php
vendored
@@ -98,7 +98,7 @@ class TCPDFBarcode {
|
|||||||
header('Pragma: public');
|
header('Pragma: public');
|
||||||
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past
|
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past
|
||||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||||
header('Content-Disposition: inline; filename="'.md5($code).'.svg";');
|
header('Content-Disposition: inline; filename="'.$this->encryptOld($code).'.svg";');
|
||||||
//header('Content-Length: '.strlen($code));
|
//header('Content-Length: '.strlen($code));
|
||||||
echo $code;
|
echo $code;
|
||||||
}
|
}
|
||||||
@@ -2281,6 +2281,20 @@ class TCPDFBarcode {
|
|||||||
return $table;
|
return $table;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function encryptOld($string)
|
||||||
|
{
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
|
}
|
||||||
|
|
||||||
} // end of class
|
} // end of class
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// END OF FILE
|
// END OF FILE
|
||||||
|
|||||||
@@ -1076,7 +1076,8 @@ class adminProxy extends HttpProxyController
|
|||||||
} else {
|
} else {
|
||||||
$failed = "3";
|
$failed = "3";
|
||||||
}
|
}
|
||||||
unlink ($dir . '/tmp' . $fileName);
|
$path = $filter->xssFilterHard($dir . '/tmp' . $fileName, 'path');
|
||||||
|
unlink ($path);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$failed = "3";
|
$failed = "3";
|
||||||
}
|
}
|
||||||
@@ -1088,6 +1089,7 @@ class adminProxy extends HttpProxyController
|
|||||||
}
|
}
|
||||||
$uploaded = $filter->validateInput($uploaded,'int');
|
$uploaded = $filter->validateInput($uploaded,'int');
|
||||||
$files_img_type = $filter->xssFilterHard($files_img_type);
|
$files_img_type = $filter->xssFilterHard($files_img_type);
|
||||||
|
$failed = $filter->validateInput($failed,'int');
|
||||||
echo '{success: true, failed: ' . $failed . ', uploaded: ' . $uploaded . ', type: "' . $files_img_type . '"}';
|
echo '{success: true, failed: ' . $failed . ', uploaded: ' . $uploaded . ', type: "' . $files_img_type . '"}';
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -1236,6 +1238,11 @@ class adminProxy extends HttpProxyController
|
|||||||
public function showLogo($imagen)
|
public function showLogo($imagen)
|
||||||
{
|
{
|
||||||
$info = @getimagesize($imagen);
|
$info = @getimagesize($imagen);
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$imagen = $filter->validateInput($imagen, "path");
|
||||||
|
|
||||||
$fp = fopen($imagen, "rb");
|
$fp = fopen($imagen, "rb");
|
||||||
if ($info && $fp) {
|
if ($info && $fp) {
|
||||||
header("Content-type: {$info['mime']}");
|
header("Content-type: {$info['mime']}");
|
||||||
@@ -1295,6 +1302,11 @@ class adminProxy extends HttpProxyController
|
|||||||
}
|
}
|
||||||
$newDir .= PATH_SEP.$base64Id;
|
$newDir .= PATH_SEP.$base64Id;
|
||||||
$dir .= PATH_SEP.$base64Id;
|
$dir .= PATH_SEP.$base64Id;
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$dir = $filter->validateInput($dir, "path");
|
||||||
|
|
||||||
copy($dir,$newDir);
|
copy($dir,$newDir);
|
||||||
self::showLogo($newDir);
|
self::showLogo($newDir);
|
||||||
die;
|
die;
|
||||||
|
|||||||
@@ -321,8 +321,14 @@ class Installer extends Controller
|
|||||||
G::verifyPath( $aux['dirname'], true );
|
G::verifyPath( $aux['dirname'], true );
|
||||||
if (is_dir( $aux['dirname'] )) {
|
if (is_dir( $aux['dirname'] )) {
|
||||||
if (! file_exists( $_REQUEST['pathLogFile'] )) {
|
if (! file_exists( $_REQUEST['pathLogFile'] )) {
|
||||||
@file_put_contents( $_REQUEST['pathLogFile'], '' );
|
|
||||||
@chmod($_REQUEST['pathShared'], 0770);
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$pathLogFile = $filter->validateInput($_REQUEST['pathLogFile'], "path");
|
||||||
|
$pathShared = $filter->validateInput($_REQUEST['pathShared'], "path");
|
||||||
|
|
||||||
|
@file_put_contents( $pathLogFile, '' );
|
||||||
|
@chmod($pathShared, 0770);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -769,6 +775,8 @@ class Installer extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($db_file) ));
|
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($db_file) ));
|
||||||
|
|
||||||
|
$db_file = $filter->validateInput($db_file, "path");
|
||||||
file_put_contents( $db_file, $dbText );
|
file_put_contents( $db_file, $dbText );
|
||||||
|
|
||||||
// Generate the databases.php file
|
// Generate the databases.php file
|
||||||
@@ -789,6 +797,8 @@ class Installer extends Controller
|
|||||||
$databasesText = str_replace( '{dbData}', $dbData, @file_get_contents( PATH_HOME . 'engine/templates/installer/databases.tpl' ) );
|
$databasesText = str_replace( '{dbData}', $dbData, @file_get_contents( PATH_HOME . 'engine/templates/installer/databases.tpl' ) );
|
||||||
|
|
||||||
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($databases_file) ));
|
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($databases_file) ));
|
||||||
|
|
||||||
|
$databases_file = $filter->validateInput($databases_file, "path");
|
||||||
file_put_contents( $databases_file, $databasesText );
|
file_put_contents( $databases_file, $databasesText );
|
||||||
|
|
||||||
// Execute scripts to create and populates databases
|
// Execute scripts to create and populates databases
|
||||||
@@ -843,10 +853,10 @@ class Installer extends Controller
|
|||||||
$query = sprintf( "USE %s;", $wf_workpace );
|
$query = sprintf( "USE %s;", $wf_workpace );
|
||||||
$this->mysqlQuery( $query );
|
$this->mysqlQuery( $query );
|
||||||
|
|
||||||
$query = sprintf( "UPDATE USERS SET USR_USERNAME = '%s', USR_LASTNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, $adminUsername, md5( $adminPassword ) );
|
$query = sprintf( "UPDATE USERS SET USR_USERNAME = '%s', USR_LASTNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, $adminUsername, G::encryptOld( $adminPassword ) );
|
||||||
$this->mysqlQuery( $query );
|
$this->mysqlQuery( $query );
|
||||||
|
|
||||||
$query = sprintf( "UPDATE RBAC_USERS SET USR_USERNAME = '%s', USR_LASTNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, $adminUsername, md5( $adminPassword ) );
|
$query = sprintf( "UPDATE RBAC_USERS SET USR_USERNAME = '%s', USR_LASTNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, $adminUsername, G::encryptOld( $adminPassword ) );
|
||||||
$this->mysqlQuery( $query );
|
$this->mysqlQuery( $query );
|
||||||
|
|
||||||
// Write the paths_installed.php file (contains all the information configured so far)
|
// Write the paths_installed.php file (contains all the information configured so far)
|
||||||
@@ -1091,6 +1101,8 @@ class Installer extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($db_file) ));
|
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($db_file) ));
|
||||||
|
|
||||||
|
$db_file = $filter->validateInput($db_file, "path");
|
||||||
file_put_contents( $db_file, $dbText );
|
file_put_contents( $db_file, $dbText );
|
||||||
|
|
||||||
// Generate the databases.php file
|
// Generate the databases.php file
|
||||||
@@ -1111,6 +1123,8 @@ class Installer extends Controller
|
|||||||
$databasesText = str_replace( '{dbData}', $dbData, @file_get_contents( PATH_HOME . 'engine/templates/installer/databases.tpl' ) );
|
$databasesText = str_replace( '{dbData}', $dbData, @file_get_contents( PATH_HOME . 'engine/templates/installer/databases.tpl' ) );
|
||||||
|
|
||||||
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($databases_file) ));
|
$this->installLog( G::LoadTranslation('ID_CREATING', SYS_LANG, Array($databases_file) ));
|
||||||
|
|
||||||
|
$databases_file = $filter->validateInput($databases_file, "path");
|
||||||
file_put_contents( $databases_file, $databasesText );
|
file_put_contents( $databases_file, $databasesText );
|
||||||
|
|
||||||
//execute scripts to create and populates databases
|
//execute scripts to create and populates databases
|
||||||
@@ -1237,32 +1251,32 @@ class Installer extends Controller
|
|||||||
$info = new stdclass();
|
$info = new stdclass();
|
||||||
|
|
||||||
if ($_REQUEST['db_engine'] == 'mysql') {
|
if ($_REQUEST['db_engine'] == 'mysql') {
|
||||||
$_REQUEST['db_hostname'] = $filter->validateInput($_REQUEST['db_hostname']);
|
$db_hostname = $filter->validateInput($_REQUEST['db_hostname']);
|
||||||
$_REQUEST['db_username'] = $filter->validateInput($_REQUEST['db_username']);
|
$db_username = $filter->validateInput($_REQUEST['db_username']);
|
||||||
$_REQUEST['db_password'] = $filter->validateInput($_REQUEST['db_password']);
|
$db_password = $filter->validateInput($_REQUEST['db_password']);
|
||||||
$link = @mysql_connect( $_REQUEST['db_hostname'], $_REQUEST['db_username'], $_REQUEST['db_password'] );
|
$link = @mysql_connect( $db_hostname, $db_username, $db_password );
|
||||||
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
||||||
$query = "show databases like '%s' ";
|
$query = "show databases like '%s' ";
|
||||||
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
||||||
$dataset = @mysql_query( $query, $link );
|
$dataset = @mysql_query( $query, $link );
|
||||||
$info->wfDatabaseExists = (@mysql_num_rows( $dataset ) > 0);
|
$info->wfDatabaseExists = (@mysql_num_rows( $dataset ) > 0);
|
||||||
} else if ($_REQUEST['db_engine'] == 'mssql') {
|
} else if ($_REQUEST['db_engine'] == 'mssql') {
|
||||||
$link = @mssql_connect( $_REQUEST['db_hostname'], $_REQUEST['db_username'], $_REQUEST['db_password'] );
|
$link = @mssql_connect( $db_hostname, $db_username, $db_password );
|
||||||
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
||||||
$query = "select * from sys.databases where name = '%s' ";
|
$query = "select * from sys.databases where name = '%s' ";
|
||||||
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
||||||
$dataset = @mssql_query( $query , $link );
|
$dataset = @mssql_query( $query , $link );
|
||||||
$info->wfDatabaseExists = (@mssql_num_rows( $dataset ) > 0);
|
$info->wfDatabaseExists = (@mssql_num_rows( $dataset ) > 0);
|
||||||
} else if ($_REQUEST['db_engine'] == 'sqlsrv') {
|
} else if ($_REQUEST['db_engine'] == 'sqlsrv') {
|
||||||
$arguments = array("UID" => $_REQUEST['db_username'], "PWD" => $_REQUEST['db_password']);
|
$arguments = array("UID" => $db_username, "PWD" => $db_password);
|
||||||
$link = @sqlsrv_connect( $_REQUEST['db_hostname'], $arguments);
|
$link = @sqlsrv_connect( $db_hostname, $arguments);
|
||||||
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
||||||
$query = "select * from sys.databases where name = '%s' ";
|
$query = "select * from sys.databases where name = '%s' ";
|
||||||
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
||||||
$dataset = @sqlsrv_query( $link, $query );
|
$dataset = @sqlsrv_query( $link, $query );
|
||||||
$info->wfDatabaseExists = (@sqlsrv_num_rows( $dataset ) > 0);
|
$info->wfDatabaseExists = (@sqlsrv_num_rows( $dataset ) > 0);
|
||||||
} else {
|
} else {
|
||||||
$link = @mssql_connect( $_REQUEST['db_hostname'], $_REQUEST['db_username'], $_REQUEST['db_password'] );
|
$link = @mssql_connect( $db_hostname, $db_username, $db_password );
|
||||||
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
||||||
$query = "select * from sys.databases where name = '%s' ";
|
$query = "select * from sys.databases where name = '%s' ";
|
||||||
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
$query = $filter->preventSqlInjection( $query, array($_REQUEST['wfDatabase']) );
|
||||||
@@ -1670,6 +1684,7 @@ class Installer extends Controller
|
|||||||
$db_password = trim( $_REQUEST['db_password'] );
|
$db_password = trim( $_REQUEST['db_password'] );
|
||||||
$db_password = $filter->validateInput($db_password);
|
$db_password = $filter->validateInput($db_password);
|
||||||
$wf = trim( $_REQUEST['wfDatabase'] );
|
$wf = trim( $_REQUEST['wfDatabase'] );
|
||||||
|
$wf = $filter->validateInput($wf);
|
||||||
|
|
||||||
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ function RefreshDependentFields(ObjectName, Fields, InitValue) {
|
|||||||
global $HTTP_GET_VARS;
|
global $HTTP_GET_VARS;
|
||||||
if ($HTTP_SESSION_VARS['CURRENT_APPLICATION'] == '') $HTTP_SESSION_VARS['CURRENT_APPLICATION'] = '0';
|
if ($HTTP_SESSION_VARS['CURRENT_APPLICATION'] == '') $HTTP_SESSION_VARS['CURRENT_APPLICATION'] = '0';
|
||||||
$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION'];
|
$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION'];
|
||||||
|
$appid = $filter->xssFilterHard($appid);
|
||||||
if ($HTTP_GET_VARS['dynaform'] != ''){
|
if ($HTTP_GET_VARS['dynaform'] != ''){
|
||||||
$Dynaform = '&__dynaform__=' . $HTTP_GET_VARS['dynaform'];
|
$Dynaform = '&__dynaform__=' . $HTTP_GET_VARS['dynaform'];
|
||||||
$Dynaform = $filter->xssFilterHard($Dynaform);
|
$Dynaform = $filter->xssFilterHard($Dynaform);
|
||||||
|
|||||||
@@ -254,13 +254,13 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
switch ($_POST['TAS_ASSIGN_TYPE']) {
|
switch ($_POST['TAS_ASSIGN_TYPE']) {
|
||||||
// switch verify $_POST['TAS_ASSIGN_TYPE']
|
// switch verify $_POST['TAS_ASSIGN_TYPE']
|
||||||
case 'BALANCED':
|
case 'BALANCED':
|
||||||
$_POST['USR_UID'] = $filter->xssFilterHard($_POST['USR_UID']);
|
$USR_UID = $filter->xssFilterHard($_POST['USR_UID']);
|
||||||
G::LoadClass( 'user' );
|
G::LoadClass( 'user' );
|
||||||
$oUser = new User( new DBConnection() );
|
$oUser = new User( new DBConnection() );
|
||||||
$oUser->load( $_POST['USR_UID'] );
|
$oUser->load( $USR_UID );
|
||||||
$oUser->Fields['USR_FIRSTNAME'] = $filter->xssFilterHard($oUser->Fields['USR_FIRSTNAME']);
|
$oUser->Fields['USR_FIRSTNAME'] = $filter->xssFilterHard($oUser->Fields['USR_FIRSTNAME']);
|
||||||
$oUser->Fields['USR_LASTNAME'] = $filter->xssFilterHard($oUser->Fields['USR_LASTNAME']);
|
$oUser->Fields['USR_LASTNAME'] = $filter->xssFilterHard($oUser->Fields['USR_LASTNAME']);
|
||||||
echo $oUser->Fields['USR_FIRSTNAME'] . ' ' . $oUser->Fields['USR_LASTNAME'] . '<input type="hidden" name="form[TASKS][1][USR_UID]" id="form[TASKS][1][USR_UID]" value="' . $_POST['USR_UID'] . '">';
|
echo $oUser->Fields['USR_FIRSTNAME'] . ' ' . $oUser->Fields['USR_LASTNAME'] . '<input type=\'hidden\' name=\'form[TASKS][1][USR_UID]\' id=\'form[TASKS][1][USR_UID]\' value=\'$USR_UID\'>';
|
||||||
break;
|
break;
|
||||||
case 'MANUAL':
|
case 'MANUAL':
|
||||||
$sAux = '<select name="form[TASKS][1][USR_UID]" id="form[TASKS][1][USR_UID]">';
|
$sAux = '<select name="form[TASKS][1][USR_UID]" id="form[TASKS][1][USR_UID]">';
|
||||||
@@ -311,15 +311,15 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
echo $sAux;
|
echo $sAux;
|
||||||
break;
|
break;
|
||||||
case 'EVALUATE':
|
case 'EVALUATE':
|
||||||
$_POST['TAS_ASSIGN_VARIABLE'] = $filter->xssFilterHard($_POST['TAS_ASSIGN_VARIABLE']);
|
$TAS_ASSIGN_VARIABLE = $filter->xssFilterHard($_POST['TAS_ASSIGN_VARIABLE']);
|
||||||
$_SESSION['APPLICATION'] = $filter->xssFilterHard($_SESSION['APPLICATION']);
|
$_SESSION['APPLICATION'] = $filter->xssFilterHard($_SESSION['APPLICATION']);
|
||||||
G::LoadClass( 'application' );
|
G::LoadClass( 'application' );
|
||||||
$oApplication = new Application( new DBConnection() );
|
$oApplication = new Application( new DBConnection() );
|
||||||
$oApplication->load( $_SESSION['APPLICATION'] );
|
$oApplication->load( $_SESSION['APPLICATION'] );
|
||||||
$sUser = '';
|
$sUser = '';
|
||||||
if ($_POST['TAS_ASSIGN_VARIABLE'] != '') {
|
if ($TAS_ASSIGN_VARIABLE != '') {
|
||||||
if (isset( $oApplication->Fields['APP_DATA'][str_replace( '@@', '', $_POST['TAS_ASSIGN_VARIABLE'] )] )) {
|
if (isset( $oApplication->Fields['APP_DATA'][str_replace( '@@', '', $TAS_ASSIGN_VARIABLE )] )) {
|
||||||
$sUser = $oApplication->Fields['APP_DATA'][str_replace( '@@', '', $_POST['TAS_ASSIGN_VARIABLE'] )];
|
$sUser = $oApplication->Fields['APP_DATA'][str_replace( '@@', '', $TAS_ASSIGN_VARIABLE )];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($sUser != '') {
|
if ($sUser != '') {
|
||||||
@@ -329,7 +329,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
echo $oUser->Fields['USR_FIRSTNAME'] . ' ' . $oUser->Fields['USR_LASTNAME'] . '<input type="hidden" name="form[TASKS][1][USR_UID]" id="form[TASKS][1][USR_UID]" value="' . $sUser . '">';
|
echo $oUser->Fields['USR_FIRSTNAME'] . ' ' . $oUser->Fields['USR_LASTNAME'] . '<input type="hidden" name="form[TASKS][1][USR_UID]" id="form[TASKS][1][USR_UID]" value="' . $sUser . '">';
|
||||||
} else {
|
} else {
|
||||||
$ID_EMPTY = $filter->xssFilterHard(G::LoadTranslation( 'ID_EMPTY' ));
|
$ID_EMPTY = $filter->xssFilterHard(G::LoadTranslation( 'ID_EMPTY' ));
|
||||||
echo '<strong>Error: </strong>' . $_POST['TAS_ASSIGN_VARIABLE'] . ' ' . $ID_EMPTY;
|
echo '<strong>Error: </strong>' . $TAS_ASSIGN_VARIABLE . ' ' . $ID_EMPTY;
|
||||||
echo '<input type="hidden" name="_ERROR_" id="_ERROR_" value="">';
|
echo '<input type="hidden" name="_ERROR_" id="_ERROR_" value="">';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -461,14 +461,14 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
$cases->reassignCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'], $_POST['USR_UID'], $_POST['THETYPE'] );
|
$cases->reassignCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'], $_POST['USR_UID'], $_POST['THETYPE'] );
|
||||||
break;
|
break;
|
||||||
case 'toRevisePanel':
|
case 'toRevisePanel':
|
||||||
$_POST['APP_UID'] = $filter->xssFilterHard($_POST['APP_UID']);
|
$APP_UID = $filter->xssFilterHard($_POST['APP_UID']);
|
||||||
$_POST['DEL_INDEX'] = $filter->xssFilterHard($_POST['DEL_INDEX']);
|
$DEL_INDEX = $filter->xssFilterHard($_POST['DEL_INDEX']);
|
||||||
|
|
||||||
$_GET['APP_UID'] = $_POST['APP_UID'];
|
$_GET['APP_UID'] = $APP_UID;
|
||||||
$_GET['DEL_INDEX'] = $_POST['DEL_INDEX'];
|
$_GET['DEL_INDEX'] = $DEL_INDEX;
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
echo "<iframe scrolling='no' style='border:none;height=300px;width:240px;'" . " src='casesToRevisePanelExtJs?APP_UID={$_GET['APP_UID']}&DEL_INDEX={$_GET['DEL_INDEX']}'></iframe>";
|
echo "<iframe scrolling='no' style='border:none;height=300px;width:240px;'" . " src='casesToRevisePanelExtJs?APP_UID={$APP_UID}&DEL_INDEX={$DEL_INDEX}'></iframe>";
|
||||||
// $G_PUBLISH->AddContent( 'smarty', 'cases/cases_toRevise' );
|
// $G_PUBLISH->AddContent( 'smarty', 'cases/cases_toRevise' );
|
||||||
// $G_PUBLISH->AddContent('smarty', 'cases/cases_toReviseIn', '', '', array());
|
// $G_PUBLISH->AddContent('smarty', 'cases/cases_toReviseIn', '', '', array());
|
||||||
G::RenderPage( 'publish', 'raw' );
|
G::RenderPage( 'publish', 'raw' );
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ try {
|
|||||||
$filtersData['action'] = $filters["action"];
|
$filtersData['action'] = $filters["action"];
|
||||||
$response['totalCount'] = $list->countTotal($userUid, $filtersData);
|
$response['totalCount'] = $list->countTotal($userUid, $filtersData);
|
||||||
|
|
||||||
|
$response = $filter->xssFilterHard($response);
|
||||||
echo G::json_encode($response);
|
echo G::json_encode($response);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$msg = array("error" => $e->getMessage());
|
$msg = array("error" => $e->getMessage());
|
||||||
|
|||||||
@@ -41,15 +41,16 @@ switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
|||||||
G::LoadClass( "plugin" );
|
G::LoadClass( "plugin" );
|
||||||
G::LoadSystem('inputfilter');
|
G::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$pluginName = $_REQUEST["pluginUid"];
|
$pluginName = $_REQUEST['pluginUid'];
|
||||||
|
$pluginName = $filter->xssFilterHard($pluginName);
|
||||||
|
|
||||||
if (file_exists( PATH_PLUGINS . $pluginName . ".php" )) {
|
if (file_exists( PATH_PLUGINS . $pluginName . ".php" )) {
|
||||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||||
|
|
||||||
$pluginRegistry->uninstallPlugin( $pluginName );
|
$pluginRegistry->uninstallPlugin( $pluginName );
|
||||||
|
$path = $filter->validateInput(PATH_DATA_SITE . 'plugin.singleton', 'path');
|
||||||
$pluginRegistry->unSerializeInstance( file_get_contents( PATH_DATA_SITE . "plugin.singleton" ) );
|
$pluginRegistry->unSerializeInstance( file_get_contents( $path ) );
|
||||||
}
|
}
|
||||||
G::auditLog("RemovePlugin","Plugin Name: ".$pluginName);
|
G::auditLog("RemovePlugin","Plugin Name: ".$pluginName);
|
||||||
echo $pluginName . " " . nl2br( $filter->xssFilterHard(G::LoadTranslation( "ID_MSG_REMOVE_PLUGIN_SUCCESS" )) );
|
echo $pluginName . ' ' . nl2br( $filter->xssFilterHard(G::LoadTranslation( 'ID_MSG_REMOVE_PLUGIN_SUCCESS' )) );
|
||||||
|
|
||||||
|
|||||||
@@ -78,10 +78,10 @@ $G_PUBLISH->AddContent( 'template', '', '', '', $template );
|
|||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
if (isset( $_GET['module'] )) {
|
if (isset( $_GET['module'] )) {
|
||||||
$module = $filter->xssFilterHard($_GET['module']);
|
$module = $filter->xssFilterHard($_GET['module']);
|
||||||
print "
|
print '
|
||||||
<script>
|
<script>
|
||||||
admToolsContent.location='" . $module . "';
|
admToolsContent.location=\'$module\';
|
||||||
</script>
|
</script>
|
||||||
";
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user