Line 93... |
Line 93... |
93 |
$this->global_error->addError("phpsysinfo.ini", "Config for plugin ".$this->_plugin_name." not exist!");
|
93 |
$this->global_error->addError("phpsysinfo.ini", "Config for plugin ".$this->_plugin_name." not exist!");
|
94 |
}
|
94 |
}
|
95 |
}
|
95 |
}
|
96 |
|
96 |
|
97 |
/**
|
97 |
/**
|
98 |
* check if there is a default translation file availabe and also the required js file for
|
98 |
* check if there is a default translation file availabe and also the required js files for
|
99 |
* appending the content of the plugin to the main webpage
|
99 |
* appending the content of the plugin to the main webpage
|
100 |
*
|
100 |
*
|
101 |
* @return void
|
101 |
* @return void
|
102 |
*/
|
102 |
*/
|
103 |
private function _checkfiles()
|
103 |
private function _checkfiles()
|
104 |
{
|
104 |
{
|
105 |
if (!file_exists($this->_plugin_base."js/".strtolower($this->_plugin_name).".js")) {
|
105 |
if (!file_exists($filename = $this->_plugin_base."js/".strtolower($this->_plugin_name)."_dynamic.js")) {
|
106 |
$this->global_error->addError("file_exists(".$this->_plugin_base."js/".strtolower($this->_plugin_name).".js)", "JS-File for Plugin '".$this->_plugin_name."' is missing!");
|
106 |
$this->global_error->addError("file_exists(".$filename.")", "JS-File for Plugin ".$this->_plugin_name." is missing!");
|
107 |
} else {
|
- |
|
108 |
if (!is_readable($this->_plugin_base."js/".strtolower($this->_plugin_name).".js")) {
|
107 |
} elseif (!is_readable($filename)) {
|
109 |
$this->global_error->addError("is_readable(".$this->_plugin_base."js/".strtolower($this->_plugin_name).".js)", "JS-File for Plugin '".$this->_plugin_name."' is not readable but present!");
|
108 |
$this->global_error->addError("is_readable(".$filename.")", "JS-File for Plugin ".$this->_plugin_name." is present but is not readable!");
|
110 |
}
|
- |
|
111 |
}
|
109 |
}
|
112 |
if (!file_exists($this->_plugin_base."lang/en.xml")) {
|
110 |
if (!file_exists($filename = $this->_plugin_base."js/".strtolower($this->_plugin_name)."_bootstrap.js")) {
|
113 |
$this->global_error->addError("file_exists(".$this->_plugin_base."lang/en.xml)", "At least an english translation must exist for the plugin!");
|
111 |
$this->global_error->addError("file_exists(".$filename.")", "JS-File for Plugin ".$this->_plugin_name." is missing!");
|
- |
|
112 |
} elseif (!is_readable($filename)) {
|
- |
|
113 |
$this->global_error->addError("is_readable(".$filename.")", "JS-File for Plugin ".$this->_plugin_name." is present but is not readable!");
|
114 |
} else {
|
114 |
}
|
115 |
if (!is_readable($this->_plugin_base."lang/en.xml")) {
|
115 |
if (!file_exists($filename = $this->_plugin_base."lang/en.xml")) {
|
116 |
$this->global_error->addError("is_readable(".$this->_plugin_base."js/".$this->_plugin_name.".js)", "The english translation can't be read but is present!");
|
116 |
$this->global_error->addError("file_exists(".$filename.")", "At least an english translation must exist for the plugin!");
|
117 |
}
|
117 |
} elseif (!is_readable($filename)) {
|
- |
|
118 |
$this->global_error->addError("is_readable(".$filename.")", "The english translation is present but is not readable!");
|
118 |
}
|
119 |
}
|
119 |
}
|
120 |
}
|
120 |
|
121 |
|
121 |
/**
|
122 |
/**
|
122 |
* create the xml template where plugin information are added to
|
123 |
* create the xml template where plugin information are added to
|