added feature to remove site folder if not needed, also some linked to component tabs to fields, admin views, site views, and custom admin views
This commit is contained in:
@ -957,14 +957,10 @@ class Interpretation extends Fields
|
||||
$method[] = "\t\t\t\$password = self::randomkey(8);";
|
||||
$method[] = "\t\t\t\$password2 = \$password;";
|
||||
$method[] = "\t\t}";
|
||||
$method[] = "\t\t//".$this->setLine(__LINE__)." set username";
|
||||
$method[] = "\t\tif (isset(\$new['username']) && self::checkString(\$new['username']))";
|
||||
$method[] = "\t\t//".$this->setLine(__LINE__)." set username if not set";
|
||||
$method[] = "\t\tif (!isset(\$new['username']) || !self::checkString(\$new['username']))";
|
||||
$method[] = "\t\t{";
|
||||
$method[] = "\t\t\t\$new['username'] = self::safeString(\$new['username']);";
|
||||
$method[] = "\t\t}";
|
||||
$method[] = "\t\telse";
|
||||
$method[] = "\t\t{";
|
||||
$method[] = "\t\t\t\$new['username'] = self::safeString(\$new['name']);\t\t\t";
|
||||
$method[] = "\t\t\t\$new['username'] = self::safeString(\$new['name']);";
|
||||
$method[] = "\t\t}";
|
||||
$method[] = "\t\t//".$this->setLine(__LINE__)." linup new user data";
|
||||
$method[] = "\t\t\$data = array(";
|
||||
@ -6854,6 +6850,11 @@ class Interpretation extends Fields
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
$query .= "\n\t\t\t\t\t\t\$item->".$target." = json_decode(\$item->".$target.");";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\telse";
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
$query .= "\n\t\t\t\t\t\tunset(\$items[\$nr]);";
|
||||
$query .= "\n\t\t\t\t\t\tcontinue;";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\tif (!in_array(\$".$globalKey.",\$item->".$target."))";
|
||||
}
|
||||
else
|
||||
@ -6862,6 +6863,11 @@ class Interpretation extends Fields
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
$query .= "\n\t\t\t\t\t\t\$item->".$_key." = json_decode(\$item->".$_key.");";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\telse";
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
$query .= "\n\t\t\t\t\t\tunset(\$items[\$nr]);";
|
||||
$query .= "\n\t\t\t\t\t\tcontinue;";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\tif (!in_array(\$".$globalKey.",\$item->".$_key."))";
|
||||
}
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
@ -6894,6 +6900,11 @@ class Interpretation extends Fields
|
||||
$query .= "\n\t\t\t\t\t\t\tcontinue;";
|
||||
$query .= "\n\t\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\telse";
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
$query .= "\n\t\t\t\t\t\tunset(\$items[\$nr]);";
|
||||
$query .= "\n\t\t\t\t\t\tcontinue;";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t}";
|
||||
$query .= "\n\t\t\t}";
|
||||
$query .= "\n\t\t\telse";
|
||||
@ -6928,6 +6939,11 @@ class Interpretation extends Fields
|
||||
$query .= "\n\t\t\t\t\t\t\tcontinue;";
|
||||
$query .= "\n\t\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t\telse";
|
||||
$query .= "\n\t\t\t\t\t{";
|
||||
$query .= "\n\t\t\t\t\t\tunset(\$items[\$nr]);";
|
||||
$query .= "\n\t\t\t\t\t\tcontinue;";
|
||||
$query .= "\n\t\t\t\t\t}";
|
||||
$query .= "\n\t\t\t\t}";
|
||||
$query .= "\n\t\t\t}";
|
||||
$query .= "\n\t\t\telse";
|
||||
|
@ -34,6 +34,7 @@ class Infusion extends Interpretation
|
||||
|
||||
public $eximportView = array();
|
||||
public $importCustomScripts = array();
|
||||
public $removeSiteFolder = false;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@ -1004,6 +1005,11 @@ class Infusion extends Interpretation
|
||||
// setup the layouts
|
||||
$this->setCustomViewLayouts();
|
||||
}
|
||||
else
|
||||
{
|
||||
// clear all site folder since none is needed
|
||||
$this->removeSiteFolder = true;
|
||||
}
|
||||
|
||||
// ###LANG_ADMIN###
|
||||
$this->fileContentStatic['###LANG_ADMIN###'] = $this->setLangAdmin();
|
||||
|
Reference in New Issue
Block a user