Produced by Araxis Merge on Mon May 18 06:28:30 2009 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | D:\Dolphin-v.6.1.5\modules | refresh.php | Thu Apr 23 04:12:46 2009 UTC |
2 | Mon May 18 06:28:30 2009 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 0 | 0 |
Changed | 0 | 0 |
Inserted | 0 | 0 |
Removed | 1 | 76 |
Whitespace | All differences in whitespace within lines are ignored |
---|---|
Character case | Differences in character case are ignored |
Line endings | Differences in line endings (CR and LF characters) are significant |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <? | |||||
2 | ||||||
3 | /********* ********** ********** ********** ********** ********** ********** ****** | |||||
4 | * D olphin Sma rt Communi ty Builder | |||||
5 | * --------- -------- | |||||
6 | * begi n : M on Mar 23 2006 | |||||
7 | * copy right : ( C) 2006 Bo onEx Group | |||||
8 | * webs ite : h ttp://www. boonex.com / | |||||
9 | * This fil e is part of Dolphin - Smart C ommunity B uilder | |||||
10 | * | |||||
11 | * Dolphin is free so ftware. Th is work is licensed under a Cr eative Com mons Attri bution 3.0 License. | |||||
12 | * http://c reativecom mons.org/l icenses/by /3.0/ | |||||
13 | * | |||||
14 | * Dolphin is distrib uted in th e hope tha t it will be useful, but WITHO UT ANY WAR RANTY; | |||||
15 | * without even the i mplied war ranty of MERCHANTAB ILITY or F ITNESS FOR A PARTICU LAR PURPOS E. | |||||
16 | * See the Creative C ommons Att ribution 3 .0 License for more details. | |||||
17 | * You shou ld have re ceived a c opy of the Creative Commons At tribution 3.0 Licens e along wi th Dolphin , | |||||
18 | * see lice nse.txt fi le; if not , write to marketing @boonex.co m | |||||
19 | ********** ********** ********** ********** ********** ********** ********** *****/ | |||||
20 | ||||||
21 | require_on ce( '../in c/header.i nc.php' ); | |||||
22 | require_on ce( BX_DIR ECTORY_PAT H_INC . 'm odules.inc .php' ); | |||||
23 | require_on ce( BX_DIR ECTORY_PAT H_INC . 'm embership_ levels.inc .php' ); | |||||
24 | ||||||
25 | define('er rArgCountN otMatch', 'Arguments count do not match: %d'); | |||||
26 | define('er rInvalidIn putData', 'Invalid i nput data (refresh.p hp): %s'); | |||||
27 | ||||||
28 | function F atalError( $ErrorMess age) | |||||
29 | { | |||||
30 | ec ho "<br /> <p>Fatal e rror: <b>{ $ErrorMess age}</b></ p><br />"; | |||||
31 | ex it($ErrorM essage); | |||||
32 | } | |||||
33 | ||||||
34 | if ($argc < 3) | |||||
35 | { | |||||
36 | Fa talError(s printf(err ArgCountNo tMatch, $a rgc)); | |||||
37 | } | |||||
38 | ||||||
39 | $isAdmin = $argv[1]; | |||||
40 | ||||||
41 | for ($argI ndex = 2; $argIndex <= $argc - 1; $argIn dex++) | |||||
42 | { | |||||
43 | $u serID = $a rgv[$argIn dex]; | |||||
44 | if ($isAdmin ) | |||||
45 | { | |||||
46 | modu les_update ($userID, '', '', 1) ; | |||||
47 | } | |||||
48 | el se | |||||
49 | { | |||||
50 | if ( $userID != (int)$use rID) | |||||
51 | { | |||||
52 | FatalE rror(sprin tf(errInva lidInputDa ta, " inva lid member ID: [{$us erID}]")); | |||||
53 | } | |||||
54 | modu les_update ($userID); // User w ill be add ed if he d oes not ex ist | |||||
55 | $res CheckActio n = checkA ction($use rID, ACTIO N_ID_USE_C HAT); | |||||
56 | if ( $resCheckA ction[CHEC K_ACTION_R ESULT] != CHECK_ACTI ON_RESULT_ ALLOWED) | |||||
57 | { | |||||
58 | module s_block($u serID, 'ch at'); | |||||
59 | } | |||||
60 | else | |||||
61 | { | |||||
62 | module s_unblock( $userID, ' chat'); | |||||
63 | } | |||||
64 | $res CheckActio n = checkA ction($use rID, ACTIO N_ID_USE_F ORUM); | |||||
65 | if ( $resCheckA ction[CHEC K_ACTION_R ESULT] != CHECK_ACTI ON_RESULT_ ALLOWED) | |||||
66 | { | |||||
67 | module s_block($u serID, 'fo rum'); | |||||
68 | } | |||||
69 | else | |||||
70 | { | |||||
71 | module s_unblock( $userID, ' forum'); | |||||
72 | } | |||||
73 | } | |||||
74 | } | |||||
75 | ||||||
76 | ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2007 Araxis Ltd (www.araxis.com). All rights reserved.