Compare commits
10 Commits
dcd47dea68
...
d1abf710bb
| Author | SHA1 | Date | |
|---|---|---|---|
| d1abf710bb | |||
| 02680ef541 | |||
| 1812de3efe | |||
| effe1565ee | |||
| d6b949cb1d | |||
| ae39d8dc31 | |||
| ff09d4f35b | |||
| 40dfd00804 | |||
| 57a54c2ce4 | |||
| c7463192bb |
@ -9,7 +9,7 @@ if (isset($_POST['job']) && trim($_POST['job']) == "transfer_tokens") {
|
||||
if (isset($_POST['_from'], $_POST['_to'], $_POST['_tokens'])) {
|
||||
$from = (int) $_POST['_from'];
|
||||
$to = (int) $_POST['_to'];
|
||||
$tokens = number_format($_POST['_tokens'], 10);
|
||||
$tokens = (float) $_POST['_tokens'];
|
||||
|
||||
$std = new stdClass();
|
||||
$std->mesg = array();
|
||||
|
||||
@ -1,7 +1,3 @@
|
||||
/**
|
||||
* Created by Abhishek Kumar Sinha on 9/27/2017.
|
||||
*/
|
||||
|
||||
$(document).ready(function(){
|
||||
var loading = false;
|
||||
|
||||
@ -94,4 +90,4 @@ function loadMoreMyMessages($start,$records_per_page) {
|
||||
}
|
||||
});
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,3 @@
|
||||
/**
|
||||
* Created by Abhishek Kumar Sinha on 9/27/2017.
|
||||
*/
|
||||
|
||||
$(document).ready(function(){
|
||||
var loading = false;
|
||||
|
||||
@ -71,4 +67,4 @@ function loadMoreMyOrders($start,$records_per_page) {
|
||||
}
|
||||
});
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,3 @@
|
||||
/**
|
||||
* Created by Abhishek Kumar Sinha on 9/27/2017.
|
||||
*/
|
||||
|
||||
$(document).ready(function(){
|
||||
var loading = false;
|
||||
|
||||
@ -93,4 +89,4 @@ function loadMoreMyTransactions($start,$records_per_page) {
|
||||
}
|
||||
});
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,3 @@
|
||||
/**
|
||||
* Created by Abhishek Kumar Sinha on 9/27/2017.
|
||||
*/
|
||||
|
||||
$(document).ready(function(){
|
||||
var loading = false;
|
||||
|
||||
@ -95,4 +91,4 @@ function loadMoreRecentTransactions($start,$records_per_page) {
|
||||
}
|
||||
});
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
24
rm_root.php
24
rm_root.php
@ -1,9 +1,9 @@
|
||||
<?php ob_start(); date_default_timezone_set('Asia/Kolkata'); ?>
|
||||
<?php $user_id = 0; ?>
|
||||
<!--Bootstrap-->
|
||||
<?php require_once 'includes/imp_files.php';
|
||||
require_once 'views/header.php';
|
||||
?>
|
||||
<?php
|
||||
require_once 'includes/imp_files.php';
|
||||
require_once 'views/header.php';?>
|
||||
|
||||
<?php
|
||||
|
||||
@ -13,10 +13,10 @@
|
||||
redirect_to("index.php");
|
||||
}
|
||||
|
||||
if (isset($_SESSION['flo_id'], $_SESSION['user_id'])) {
|
||||
$root_flo = $_SESSION['flo_id'];
|
||||
$root_user_id = $_SESSION['user_id'];
|
||||
|
||||
if (isset($_SESSION['flo_id'], $_SESSION['user_id'], $_SESSION['user_name'])) {
|
||||
$root_flo = (string) $_SESSION['flo_id'];
|
||||
$root_user_id = (int) $_SESSION['user_id'];
|
||||
|
||||
|
||||
/*This should match ajax/rm_root.php too*/
|
||||
if ($root_flo != ADMIN_FLO_ID && $root_user_id != ADMIN_ID) {
|
||||
@ -44,7 +44,7 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
$validate_user = $UserClass->check_user($investor_id);
|
||||
$validate_user = check_user($investor_id);
|
||||
|
||||
|
||||
if($validate_user == "" || empty($validate_user)) {
|
||||
@ -81,9 +81,9 @@
|
||||
}
|
||||
|
||||
//Prev balance of user
|
||||
$bal_prev = (float) $OrderClass->check_customer_balance($assetType, $investor_id)->Balance;
|
||||
$bal_prev = (float) check_customer_balance($assetType, $investor_id)->Balance;
|
||||
|
||||
$update_bal = $OrderClass->update_user_balance($assetType, $balance, $investor_id);
|
||||
$update_bal = update_user_balance($assetType, $balance, $investor_id);
|
||||
|
||||
if (!$update_bal) {
|
||||
redirect_to("rm_root.php?msg=Failed to update balance!");
|
||||
@ -103,7 +103,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$traders = $OrderClass->UserBalanceList(1);
|
||||
$traders = UserBalanceList(1);
|
||||
|
||||
?>
|
||||
|
||||
@ -205,7 +205,7 @@
|
||||
<div class="container mt--2">
|
||||
<div class="table-responsive">
|
||||
<div class="table-responsive">
|
||||
<?php $list_bal_changes = $OrderClass->list_root_bal_changes(); ?>
|
||||
<?php $list_bal_changes = list_root_bal_changes(); ?>
|
||||
<h2>Update History</h2>
|
||||
<input type="text" id="audit_input" onkeyup="search_audit_table()" placeholder="Search for names or id..">
|
||||
<table class="table" id="audit_table">
|
||||
|
||||
@ -54,8 +54,8 @@ $_SESSION['rand'] = rand();
|
||||
|
||||
<!-- Latest compiled JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
<script src="https://ranchimall.github.io/Standard_Operations/lib.js"></script>
|
||||
<script src="https://ranchimall.github.io/Standard_Operations/floCrypto.js"></script>
|
||||
<script src="https://ranchimall.github.io/standard-operations/lib.js"></script>
|
||||
<script src="https://ranchimall.github.io/standard-operations/floCrypto.js"></script>
|
||||
|
||||
<script src="<?=JS_DIR?>/notify.js"></script>
|
||||
|
||||
@ -99,7 +99,7 @@ $type = isset($_GET['type']) ? trim($_GET['type']) : 'danger';
|
||||
<hr>
|
||||
<div class="col-lg-12 lazy-form">
|
||||
<label for="key_flo" id="loginMessage">Enter your FLO Private Key</label>
|
||||
<input type="text" name="key_flo" id="key_flo" style="color:initial">
|
||||
<input type="password" name="key_flo" id="key_flo" style="color:initial">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user