GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Non GSM/Mobile Related Forums > Off Topic Zone


Off Topic Zone Here all other messages...

Reply
 
LinkBack Thread Tools Display Modes
Old 04-22-2006, 06:19   #1 (permalink)
Product Manager
 
.::Gsmdenis::.'s Avatar
 
Join Date: Aug 2002
Location: MFC
Posts: 8,297
Member: 79315
Status: Offline
Thanks Meter: 6,024
Check to see if multiple user


Check to see if multiple user :

<?xml version="1.0" encoding="UTF8"?>
<product productid="mpdevs_ae_detector" active="1">
<title>mpdevs_ae_detector</title>
<description>Cookie of Detector</description>
<version>2.2</version>
<apm_releasedate>1129555561</apm_releasedate>
<apm_author>MPDev</apm_author>
<apm_extrainfo/>
<apm_extraedit/>
<codes>
</codes>
<plugins>
<plugin active="1">
<title>AE Detector: Login checker</title>
<hookname>login_verify_success</hookname>
<phpcode><![CDATA[
// ================================================== ================
$ignore_users = split(',', $vbulletin->options['ae_ignore_users']);
$ignore_groups = split(',', $vbulletin->options['ae_ignore_groups']);
if(!empty($vbulletin->userinfo['userid']) AND !in_array($vbulletin->userinfo['userid'], $ignore_users) AND !is_member_of($vbulletin->userinfo, $ignore_groups))
{
$idstack = null;
if(isset($_COOKIE['IDstack']))
{
// check to see if multiple user history exists
$idstack = $_COOKIE['IDstack'];
}

if(empty($idstack))
{
$idstack = ",{$vbulletin->userinfo['userid']},";
setcookie("IDstack", $idstack, time()+10368000, "/");
}
else
{
if(!strstr($idstack, ",{$vbulletin->userinfo['userid']},"))
{
$idstack .= ",{$vbulletin->userinfo['userid']},";
setcookie("IDstack", $idstack, time()+10368000, "/");

$Unums = split(",", $idstack);
$andids = null;
for ($i = 0; $i < (sizeof($Unums)); $i++)
{
if (!empty($Unums[$i]) && is_numeric($Unums[$i])) {
$checkuser = $vbulletin->db->query_first("SELECT username FROM " . TABLE_PREFIX . "user WHERE userid={$Unums[$i]}");
if ( !empty($andids) ) $andids .= "AND";
$andids .= " ". $checkuser['username'] ." ";
}
}
$message = "Report ! we found". $vbulletin->userinfo['username'] . " Use no same ID on same computer $andids 。";
// get admin users
$adminusers = split(",", $vbulletin->options['ae_adminusers']);
$fromuser = fetch_userinfo($vbulletin->options['ae_sender']);
$subject = " Report to Admin: " . $vbulletin->userinfo['username'] ;
// create the DM to do error checking and insert the new PM (needs to be here)
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);

if($vbulletin->options['ae_sendpm'] == '1')
{
$pmdm->set('fromuserid', $fromuser['userid']);
$pmdm->set('fromusername', $fromuser['username']);
$pmdm->set_info('reciept', false);
$pmdm->set_info('savecopy', false);
$pmdm->set('title', $subject);
$pmdm->set('message', $message);
$pmdm->set_recipients($vbulletin->options['ae_recipients'], $fromuser['permissions']);
$pmdm->set('dateline', TIMENOW);
$pmdm->save();
}

if($vbulletin->options['ae_startthread'] == '1' AND $vbulletin->options['ae_forumid'])
{
require_once(DIR . '/includes/class_dm_threadpost.php');

// setup variables
$forumid = $vbulletin->options['ae_forumid'];

$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);

$username = htmlspecialchars_uni($vbulletin->userinfo['username']);
$allowsmilie = '1';
$visible = '1';

// insert thread
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('userid', $fromuser['userid']);
$threaddm->do_set('username', $fromuser['username']);
$threaddm->do_set('pagetext', $message);
$threaddm->do_set('title', $subject);
$threaddm->do_set('allowsmilie', $allowsmilie);
$threaddm->do_set('visible', $visible);
$tid = $threaddm->save();

require_once(DIR . '/includes/functions_databuild.php');
build_forum_counters($forumid);
}
}
}
}
// ================================================== ================]]>
</phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_ae_startthread_title"><![CDATA[If use new topic report?]]></phrase>
<phrase name="setting_ae_startthread_desc"><![CDATA[Report infrmation in one special page?]]></phrase>
<phrase name="setting_ae_forumid_title"><![CDATA[Report multiple ID]]></phrase>
<phrase name="setting_ae_forumid_desc"><![CDATA[When found the MPD,Post the information in which page?]]></phrase>
<phrase name="setting_ae_sendpm_title"><![CDATA[if use PM report?]]></phrase>
<phrase name="setting_ae_sendpm_desc"><![CDATA[when found the MPD,send you PM?]]></phrase>
<phrase name="setting_ae_recipients_title"><![CDATA[When found the MPD PM to follow MOD or Admin?]]></phrase>
<phrase name="setting_ae_recipients_desc"><![CDATA[USE <em>;</em>]]></phrase>
<phrase name="setting_ae_sender_title"><![CDATA[VB report the MPD 。]]></phrase>
<phrase name="setting_ae_sender_desc"><![CDATA[Often admin ID]]></phrase>
<phrase name="setting_ae_ignore_users_title"><![CDATA[no check ID]]></phrase>
<phrase name="setting_ae_ignore_users_desc"><![CDATA[use","]]></phrase>
<phrase name="setting_ae_ignore_groups_title"><![CDATA[no check ID]]></phrase>
<phrase name="setting_ae_ignore_groups_desc"><![CDATA[use","]]></phrase>
<phrase name="settinggroup_ae_detection"><![CDATA[MPD report by gsmdenis]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="ae_detection" displayorder="2012">
<setting varname="ae_startthread">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="ae_forumid">
<datatype>number</datatype>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="ae_sendpm">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="ae_sender">
<datatype>number</datatype>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="ae_recipients">
<datatype>free</datatype>
<defaultvalue>Administrator</defaultvalue>
</setting>
<setting varname="ae_ignore_users">
<datatype>free</datatype>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="ae_ignore_groups">
<datatype>free</datatype>
<defaultvalue>5,6,7</defaultvalue>
</setting>
</settinggroup>
</options>
</product>
  Reply With Quote
Old 04-22-2006, 06:25   #2 (permalink)
Product Manager
 
.::Gsmdenis::.'s Avatar
 
Join Date: Aug 2002
Location: MFC
Posts: 8,297
Member: 79315
Status: Offline
Thanks Meter: 6,024
this for vBulletin 3.5x ver.
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check phone IMEIs to see if it is barred jutsi Wanted Products 5 05-17-2009 00:18
I there a way to see if file is branding-free? 45069 UST Pro II 0 08-10-2007 08:12
What Test Can You Do On The SGH-i607 To See If Its Unlocked Fully? Jager673 Samsung Hardware Repair 1 03-06-2007 21:52
how to see if it is the flash cable? mantsm Nokia Digital Core Technology 4 ( DCT-4 ) 0 10-19-2005 19:40


All times are GMT +1. The time now is 20:45.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.17591 seconds with 9 queries

SEO by vBSEO