~vierbergenlars/remotecp-panel/add-database-user

« back to all changes in this revision

Viewing changes to system/plugins/default.php

  • Committer: Lars Vierbergen
  • Date: 2011-01-22 10:46:24 UTC
  • Revision ID: lars_vierbergen-20110122104624-bd5sic0xfmrto5nw
Update directory cpanel-incs to system and their links to system (cPanel® is a registered trademark of cPanel,Inc.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php //@./cpanel-incs/plugins/default.php ?><!-- HEADERS >
 
1
<?php //@./system/plugins/default.php ?><!-- HEADERS >
2
2
<AJAX_SCRIPTLOC>a__scripts.js</AJAX_SCRIPTLOC>
3
3
<AJAX_SCRIPTEVAL>NULL</AJAX_SCRIPTEVAL>
4
4
< HEADERS --><?php
7
7
                if(!addons::available($_GET['a'])) echo "false";
8
8
                else {
9
9
                        $remote_connection->query('UPDATE `'.$site.'_addons` SET `status`=1 WHERE `reference`="'.$_GET['a'].'"');
10
 
                        if(!require_once('cpanel-incs/plugins/'.$_GET['a'].'/install.php')) { echo "false";     $remote_connection->query('UPDATE `'.$site.'_addons` SET `status`=0 WHERE `reference`="'.$_GET['install'].'"'); exit;}
 
10
                        if(!require_once('system/plugins/'.$_GET['a'].'/install.php')) { echo "false";  $remote_connection->query('UPDATE `'.$site.'_addons` SET `status`=0 WHERE `reference`="'.$_GET['install'].'"'); exit;}
11
11
                        echo "true";
12
12
                }
13
13
        }
15
15
                if(!addons::available($_GET['a'])) echo "false";
16
16
                else {
17
17
                        $remote_connection->query('UPDATE `'.$site.'_addons` SET `status`=0 WHERE `reference`="'.$_GET['a'].'"');
18
 
                        if(!require_once('cpanel-incs/plugins/'.$_GET['a'].'/uninstall.php')) { echo "false";   $remote_connection->query('UPDATE `'.$site.'_addons` SET `status`=1 WHERE `reference`="'.$_GET['uninstall'].'"'); exit;}
 
18
                        if(!require_once('system/plugins/'.$_GET['a'].'/uninstall.php')) { echo "false";        $remote_connection->query('UPDATE `'.$site.'_addons` SET `status`=1 WHERE `reference`="'.$_GET['uninstall'].'"'); exit;}
19
19
                        echo "true";
20
20
                }
21
21
        }