<?php

define("_VALID_PHP", true);
require_once "init.php";
if ($user->logged_in) {
    redirect_to("account.php");
}
$numusers = countEntries("users");
include "header.php";
?>
    <?php 
if (!$core->reg_allowed) {
    ?>
    <div class="msgInfo"><span>Info!</span>We are sorry, at this point we do not accept any more registrations</div>
    <?php 
} elseif ($core->user_limit != 0 and $core->user_limit == $numusers) {
    ?>
    <div class="msgInfo"><span>Info!</span>We are sorry, maximum number of registered users have been reached.</div>
    <?php 
} else {
    ?>
    <h1>User Registration</h1>
    <p class="info">Please fill out the form below to become registered member. Fields marked <?php 
    echo required();
    ?>
 are required.</p>
    <div class="box">
      <div id="fullform">
        <form action="" method="post" name="user_form" id="user_form">
          <table width="100%" border="0" cellpadding="3" cellspacing="0" class="display">
            <thead>
            <option value="100">100</option>
            <option value="180">180</option>
            <option value="365">365</option>
          </select></td>
      </tr>
    </tbody>
  </table>
  <br />
  <table cellpadding="0" cellspacing="0" class="forms">
    <thead>
      <tr>
        <th colspan="2" class="left">Delete Banned Users</th>
      </tr>
    </thead>
    <tfoot>
      <tr>
        <td colspan="2"><input type="submit" name="banned" class="button" value="Delete Banned"/></td>
      </tr>
    </tfoot>
    <tbody>
      <tr>
        <td colspan="2">This will delete all (<span style="color:red"><?php 
echo countEntries("users", "active", "b");
?>
</span>) banned user(s).</td>
      </tr>
    </tbody>
  </table>
</form>
<?php 
echo $core->doForm("processMaintenance");
 /**
  * Membership::getPayments()
  * 
  * @param bool $where
  * @param bool $from
  * @return
  */
 public function getPayments($where = false, $from = false)
 {
     global $db, $core, $pager;
     require_once BASEPATH . "lib/class_paginate.php";
     $pager = new Paginator();
     $counter = countEntries($this->pTable);
     $pager->items_total = $counter;
     $pager->default_ipp = $core->perpage;
     $pager->paginate();
     if ($counter == 0) {
         $pager->limit = null;
     }
     $clause = $where ? " WHERE p.rate_amount LIKE '%" . intval($where) . "%'" : "";
     if (isset($_GET['sort'])) {
         list($sort, $order) = explode("-", $_GET['sort']);
         $sort = sanitize($sort);
         $order = sanitize($order);
         if (in_array($sort, array("user_id", "rate_amount", "pp", "date"))) {
             $ord = $order == 'DESC' ? " DESC" : " ASC";
             $sorting = " p." . $sort . $ord;
         } else {
             $sorting = " p.date DESC";
         }
     } else {
         $sorting = " p.date DESC";
     }
     if (isset($_POST['fromdate']) && $_POST['fromdate'] != "" || isset($from) && $from != '') {
         $enddate = date("Y-m-d");
         $fromdate = empty($from) ? $_POST['fromdate'] : $from;
         if (isset($_POST['enddate']) && $_POST['enddate'] != "") {
             $enddate = $_POST['enddate'];
         }
         $clause .= " WHERE p.date BETWEEN '" . trim($fromdate) . "' AND '" . trim($enddate) . " 23:59:59'";
     }
     $sql = "SELECT p.*, p.id as id, u.username, m.title," . "\n DATE_FORMAT(p.date, '%d. %b. %Y.') as created" . "\n FROM " . $this->pTable . " as p" . "\n LEFT JOIN users as u ON u.id = p.user_id" . "\n LEFT JOIN " . $this->mTable . " as m ON m.id = p.membership_id" . "\n " . $clause . " ORDER BY " . $sorting . $pager->limit;
     $row = $db->fetch_all($sql);
     return $row ? $row : 0;
 }
 /**
  * Users::getUsers()
  * 
  * @param bool $from
  * @return
  */
 public function getUsers($from = false)
 {
     global $db, $pager, $core;
     require_once BASEPATH . "lib/class_paginate.php";
     $pager = new Paginator();
     $counter = countEntries($this->uTable);
     $pager->items_total = $counter;
     $pager->default_ipp = $core->perpage;
     $pager->paginate();
     if ($counter == 0) {
         $pager->limit = null;
     }
     if (isset($_GET['sort'])) {
         list($sort, $order) = explode("-", $_GET['sort']);
         $sort = sanitize($sort);
         $order = sanitize($order);
         if (in_array($sort, array("username", "fname", "lname", "email", "created"))) {
             $ord = $order == 'DESC' ? " DESC" : " ASC";
             $sorting = " u." . $sort . $ord;
         } else {
             $sorting = " u.created DESC";
         }
     } else {
         $sorting = " u.created DESC";
     }
     $clause = isset($clause) ? $clause : null;
     if (isset($_POST['fromdate']) && $_POST['fromdate'] != "" || isset($from) && $from != '') {
         $enddate = date("Y-m-d");
         $fromdate = empty($from) ? $_POST['fromdate'] : $from;
         if (isset($_POST['enddate']) && $_POST['enddate'] != "") {
             $enddate = $_POST['enddate'];
         }
         $clause .= " WHERE u.created BETWEEN '" . trim($fromdate) . "' AND '" . trim($enddate) . " 23:59:59'";
     }
     $sql = "SELECT u.*, CONCAT(u.fname,' ',u.lname) as name, m.title, m.id as mid," . "\n DATE_FORMAT(u.created, '%d. %b. %Y.') as cdate," . "\n DATE_FORMAT(u.lastlogin, '%d. %b. %Y.') as adate" . "\n FROM " . $this->uTable . " as u" . "\n LEFT JOIN memberships as m ON m.id = u.membership_id" . "\n " . $clause . "\n ORDER BY " . $sorting . $pager->limit;
     $row = $db->fetch_all($sql);
     return $row ? $row : 0;
 }
Beispiel #5
0
    exit;
}
echo getDoctype(false) . "\n";
?>
<html <?php 
echo getHTMLTagContent();
?>
>
  <head>
    <script type="text/javascript" src="<?php 
echo getScriptJS(__FILE__);
?>
"></script>
<?php 
$rig_separator = "|;|";
$countEntries = countEntries($id);
$labelsBlank = array("", "", "", "", "", "", "");
$labelsSinceDate = array("<convert>#label=8<convert>", "<convert>#label=9<convert>", "<convert>#label=10<convert>", "<convert>#label=11<convert>", "<convert>#label=12<convert>", "<convert>#label=13<convert>", "<convert>#label=14<convert>");
include "../func/loader_func.php";
include "properties_" . $_SESSION['language'] . ".php";
$entryName = getEntryName($id);
$noChangePossibleError = '<div class="error">' . getTopBubble() . "<convert>#label=339<convert><!--Cette fiche--> <convert>#label=49<convert><!--est en cours de modification par un autre utilisateur, veuillez essayer plus tard !-->" . getBotBubble() . '</div>';
$deletionWarning = '<div class="warning">' . getTopBubble() . "<convert>#label=732<convert><!--Votre contribution--> <convert>#label=610<convert><!--a été supprimée avec succès !-->" . getBotBubble() . '</div>';
$saveWarning = '<div class="warning">' . getTopBubble() . "<convert>#label=732<convert><!--Votre contribution--> <convert>#label=733<convert><!--a été enregistrée avec succès !-->" . getBotBubble() . '</div>';
?>
    <?php 
echo getMetaTags();
?>
    <!-- version IE //-->
	  <link rel="shortcut icon" type="image/x-icon" href="<?php 
echo $_SESSION['Application_url'];
Beispiel #6
0
</div>
            </div>
          </div>
        </div>
      </div>
      <div class="screen-25 tablet-50 phone-100">
        <div class="wojo tertiary segment">
          <div class="columns">
            <div class="screen-30"><i class="circular big inverted warning ticket icon"></i> </div>
            <div class="screen-70">
              <div class="wojo caps"><?php 
echo Core::$word->AD_AMEM;
?>
</div>
              <div class="wojo big font warning label"><?php 
echo countEntries(Users::uTable, "membership_id", "<>0");
?>
</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- Start Chart -->
    <div id="chart" style="height:400px"></div>
    <!-- End Chart /-->
    <div class="wojo divider"></div>
    <!-- Start Revenue List-->
    <table class="wojo basic table">
      <thead>
        <tr>
Beispiel #7
0
</label>
          <button type="button" data-type="inactive" name="inactive" class="wojo basic button"><?php 
echo Core::$word->MT_IUBTN;
?>
</button>
        </div>
      </div>
      <div class="wojo fitted divider"></div>
      <div class="two fields">
        <div class="field">
          <label><?php 
echo Core::$word->MT_BUSERS;
?>
</label>
          <p class="woho info"><?php 
echo str_replace("[TOTAL]", '<small class="wojo label">' . countEntries("users", "active", "b") . '</small>', Core::$word->MT_BUSERS_T);
?>
</p>
        </div>
        <div class="field">
          <label><?php 
echo Core::$word->DELETE;
?>
</label>
          <button type="button" data-type="banned" name="banned" class="wojo basic button"><?php 
echo Core::$word->MT_BUBTN;
?>
</button>
        </div>
      </div>
      <div class="wojo fitted divider"></div>
Beispiel #8
0
$datacountry = $content->getCountryList();
include "header.php";
?>
<div id="wrap">
  <div class="wojo-grid">
    <div class="columns">
      <div class="screen-60 tablet-90 phone-100 push-center">
        <div class="wojo form">
          <?php 
if (!$core->reg_allowed) {
    ?>
          <?php 
    echo Filter::msgSingleAlert(Core::$word->UA_NOMORE_REG);
    ?>
          <?php 
} elseif ($core->user_limit != 0 and $core->user_limit == countEntries(Users::uTable)) {
    ?>
          <?php 
    echo Filter::msgSingleAlert(Core::$word->UA_MAX_LIMIT);
    ?>
          <?php 
} else {
    ?>
          <h4><?php 
    echo Core::$word->UA_INFO4;
    ?>
</h4>
          <form id="wojo_form" name="wojo_form" method="post">
            <div class="field">
              <input name="username" placeholder="<?php 
    echo Core::$word->USERNAME;