function fromemail_sendllove_toanother($fromEmail, $toArg, $forArg, $priv) { $res = mysql_query("select * from " . USERS . " where username='******'"); $user_row = $res ? mysql_fetch_assoc($res) : null; if (empty($user_row)) { return; } $userid = $user_row['id']; $username = $user_row['username']; $nickname = $user_row['nickname']; $features = intval($user_row['features']) & FEATURE_USER_MASK; $isSuper = isEnabled(FEATURE_SUPER_ADMIN); return sendlove_toanother($userid, $username, $nickname, $isSuper, $toArg, $forArg, $priv); }
} include 'widgets/plugin_data.php'; include 'widgets/package_data.php'; include 'widgets/sys_data.php'; $base = 1024; $location = "/home"; /* check for services */ switch (intval($_GET['id'])) { case 0: if (file_exists('/home/' . $username . '/.startup')) { $cbodyhello .= 'Hey <b>' . $username . '</b>: Please click switch On/Off Once and wait atleast 90 seconds for the changes to take affect ... <br><br><br>'; $rtorrent = isEnabled("RTORRENT_CLIENT=yes", $username); $cbodyr .= "RTorrent " . $rtorrent; $irssi = isEnabled("IRSSI_CLIENT=yes", $username); $cbodyi .= "iRSSi-AutoDL " . $irssi; $btsync = isEnabled("BTSYNC=yes", $username); $cbodyb .= "BTSync " . $btsync; } else { $cbodyerr .= "error locating start up script .. feel free to open a issue at the quickbox repo"; } break; /* start services */ /* start services */ case 66: $name = $_GET['servicestart']; $thisname = str_replace(['yes', 'no', '!!~!!'], ['!!~!!', 'yes', 'no'], $name); if (file_exists('/home/' . $username . '/.startup')) { if ($name == "BTSYNC=yes") { $servicename = "btsync"; } else { $output = substr($thisname, 0, strpos(strtolower($thisname), '_'));
* * OPBE is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * OPBE is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with OPBE. If not, see <http://www.gnu.org/licenses/>. * * @package OPBE * @author Jstar <*****@*****.**> * @copyright 2013 Jstar <*****@*****.**> * @license http://www.gnu.org/licenses/ GNU AGPLv3 License * @version beta(26-10-2013) * @link https://github.com/jstar88/opbe */ //`git pull`; function isEnabled($func) { return is_callable($func) && false === stripos(ini_get('disable_functions'), $func); } if (isEnabled('shell_exec')) { echo shell_exec('git pull'); } else { echo "shell not aviable"; }