Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
* New structure.
** New class X2WParser.
* Prefixing classes with 'X2W'..
* Adding master tag #x2w with the next options:
** debug
** load
** nocache
** value
  • Loading branch information
daemonraco committed Aug 16, 2010
1 parent 04d3cd8 commit 3a1a5d0
Show file tree
Hide file tree
Showing 6 changed files with 918 additions and 435 deletions.
10 changes: 5 additions & 5 deletions includes/AllowedPaths.php → includes/X2WAllowedPaths.php
@@ -1,6 +1,6 @@
<?php
/**
* @file AllowedPaths.php
* @file X2WAllowedPaths.php
*
* Subversion
* - ID: $Id$
Expand All @@ -13,9 +13,9 @@
*/

/**
* @class AllowedPaths
* @class X2WAllowedPaths
*/
class AllowedPaths {
class X2WAllowedPaths {
protected $_isRecursive;
protected $_paths;

Expand All @@ -33,7 +33,7 @@ public function __construct(&$list=array(), $isRecursive=false) {
public function addPaths(&$list) {
if(is_array($list)) {
foreach($list as $path) {
$path = AllowedPaths::cleanPath($path);
$path = X2WAllowedPaths::cleanPath($path);
if(file_exists($path)) {
if(is_readable($path)) {
if(is_dir($path)) {
Expand Down Expand Up @@ -63,7 +63,7 @@ protected function addPathTo($path, &$list) {
public function check($path) {
$out = false;

$path = AllowedPaths::cleanPath($path);
$path = X2WAllowedPaths::cleanPath($path);
/*
* Checking if its a known file.
*/
Expand Down

0 comments on commit 3a1a5d0

Please sign in to comment.