コード例 #1
0
include_once dirname(__FILE__) . "/frame.class.inc";
include_once dirname(__FILE__) . "/class.unix.inc";
if (isset($_GET["RefreshDrupalInfos"])) {
    RefreshDrupalInfos();
    exit;
}
if (isset($_GET["add-user"])) {
    add_user();
    exit;
}
if (isset($_GET["del-user"])) {
    del_user();
    exit;
}
if (isset($_GET["enable-user"])) {
    enable_user();
    exit;
}
if (isset($_GET["priv-user"])) {
    priv_user();
    exit;
}
if (isset($_GET["modules-refresh"])) {
    modules_refresh();
    exit;
}
if (isset($_GET["perform-orders"])) {
    perform_orders();
    exit;
}
while (list($num, $line) = each($_GET)) {
コード例 #2
0
ファイル: enable.php プロジェクト: netSys0/MoneyIO
 * (at your option) any later version.
 * 
 * This program 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 * 
 * 
 */
require_once __DIR__ . "/../../session.php";
require_once __DIR__ . "/../../moneyio.php";
open_session();
$user_id = $_GET["user_id"];
///$_POST["user_id"] was replaced by $_GET["rol_id"]
if (isset($_SESSION["mio-username"]) && !empty($_SESSION["mio-username"]) && isset($_SESSION["mio-username_id"]) && !empty($_SESSION["mio-username_id"]) && isset($_SESSION["mio-pic"]) && !empty($_SESSION["mio-pic"])) {
    if (isset($user_id) && !empty($user_id)) {
        require_once __DIR__ . "/user_func.php";
        if (enable_user($user_id)) {
            echo get_message("user_updated");
        } else {
            echo get_message("user_not_updated");
        }
    }
} else {
    echo get_message("no_session");
}