diff --git a/e107_admin/header.php b/e107_admin/header.php
index 02f7e4893..b0e0ce303 100644
--- a/e107_admin/header.php
+++ b/e107_admin/header.php
@@ -436,6 +436,7 @@ echo "
\n";
echo getModal();
+echo getAlert();
function getModal($caption = '', $type='')
{
@@ -467,6 +468,16 @@ echo getModal();
}
+function getAlert($caption)
+{
+
+ return '
+ some
+ Some text goes here and there and everywhere.
+
';
+
+}
+
// Header included notification, from this point header includes are not possible
diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php
index bd6434514..9c6be3aed 100644
--- a/e107_admin/plugin.php
+++ b/e107_admin/plugin.php
@@ -27,13 +27,37 @@ if(e_AJAX_REQUEST && isset($_GET['src'])) // Ajax
$localfile = md5($remotefile.time()).".zip";
$status = "Downloading...";
- e107::getFile()->getRemoteFile($remotefile,$localfile);
+// e107::getFile()->getRemoteFile($remotefile,$localfile);
+ e107::getFile()->download($remotefile,'plugin');
+
+
+ exit;
+
+ /*
+
+
+
+
+
if(!file_exists(e_TEMP.$localfile))
{
echo 'There was a problem retrieving the file';
exit;
}
+ else
+ {
+ $contents = file_get_contents(e_TEMP.$localfile);
+ if($contents == 'LOGIN')
+ {
+ echo "Please login to your e107.org account and try again
";
+ exit;
+ }
+ }
+
+ echo "Disabed";
+ exit;
+
// chmod(e_PLUGIN,0777);
chmod(e_TEMP.$localfile,0755);
@@ -45,7 +69,7 @@ if(e_AJAX_REQUEST && isset($_GET['src'])) // Ajax
// chmod(e_UPLOAD.$localfile,0666);
-
+ */
/* Cannot use this yet until 'folder' is included in feed.
if($dir != $p['plugin_folder'])
{
@@ -56,7 +80,7 @@ if(e_AJAX_REQUEST && isset($_GET['src'])) // Ajax
exit;
}
*/
-
+ /*
if($unarc[0]['folder'] ==1 && is_dir($unarc[0]['filename']))
{
$status = "Unzipping...";
@@ -84,6 +108,9 @@ if(e_AJAX_REQUEST && isset($_GET['src'])) // Ajax
// echo "file=".$file;
exit;
+
+ */
+
}
e107::coreLan('plugin', true);
@@ -227,8 +254,9 @@ class pluginManager{
var $id;
var $frm;
var $fieldpref;
- var $titlearray = array();
+ var $titlearray = array();
var $pagetitle;
+
protected $pid = 'plugin_id';
protected $fields = array(
@@ -256,7 +284,7 @@ class pluginManager{
- function pluginManager()
+ function __construct()
{
global $user_pref,$admin_log;
@@ -292,13 +320,12 @@ class pluginManager{
// Complicated, as each uninstall system is different.
}*/
-
-
-
-
-
}
+
+
+
+
function pluginObserver()
{
@@ -472,9 +499,10 @@ class pluginManager{
$text = "
-
+