예제 #1
0
<?php

//set_google_account.php
include 'login_control.php';
include 'db_connect.php';
include "class_import.php";
needAdminLevel(0);
// read user
$sql = "SELECT auto_id FROM user WHERE admin_level=140 or admin_level=150";
$result = mysqli_query($con, $sql);
while ($row = mysqli_fetch_array($result)) {
    $user_ids[] = $row['auto_id'];
}
echo "user have " . count($user_ids) . "<br/>";
// delete user from transport
$sql = "";
for ($i = 0; $i < count($user_ids); $i++) {
    $sql = "DELETE FROM transport WHERE user_id = {$user_ids[$i]}";
    if (mysqli_query($con, $sql)) {
        echo "{$i} DELETE success: user {$user_ids[$i]} from transport <br>";
    } else {
        echo mysqli_error($con);
    }
}
echo "<hr>";
// delete user from user
$sql = "";
for ($i = 0; $i < count($user_ids); $i++) {
    $sql = "DELETE FROM user WHERE auto_id = {$user_ids[$i]}";
    if (mysqli_query($con, $sql)) {
        echo "{$i} DELETE success: user {$user_ids[$i]} from user <br>";
예제 #2
0
<?php

//profile_network.php
include 'login_control.php';
include 'db_connect.php';
include "class_import.php";
needAdminLevel(200);
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title><?php 
echo String::profile;
?>
</title>

    <?php 
include 'head_tag.php';
?>



  </head>

  <body>
    <?php 
include 'navbar.php';
?>

    <?php 
// user_data
예제 #3
0
<?php

//profile_network_mobile.php
include 'login_control.php';
include 'db_connect.php';
include "class_import.php";
needAdminLevel(250);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <title><?php 
echo String::profile;
?>
</title>

  <?php 
include 'head_tag.php';
?>



</head>

<body>
  <?php 
include 'navbar.php';
?>

  <?php 
// user_data
예제 #4
0
<?php

//booking.php
include 'login_control.php';
include 'db_connect.php';
include "class_import.php";
needAdminLevel(100);
$mode = $_GET["mode"];
if ($mode == "") {
    $mode = "normal";
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title><?php 
echo String::booking;
?>
</title>

    <?php 
include 'head_tag.php';
?>


    <script>
      function doBooking(courseID) {
        ///alert("asd");
        $.ajax({
          type: "POST",
          url: "booking_do.php",