Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
backup /
extensions /
Renameuser /
Delete
Unzip
Name
Size
Permission
Date
Action
RenameUserJob.php
3.22
KB
-rw-r--r--
2011-06-17 18:27
Renameuser.alias.php
7.77
KB
-rw-r--r--
2011-05-14 02:11
Renameuser.i18n.php
270.54
KB
-rw-r--r--
2011-07-18 22:05
Renameuser.php
3.89
KB
-rw-r--r--
2011-06-20 10:49
Renameuser_body.php
17.87
KB
-rw-r--r--
2011-04-19 01:44
SpecialRenameuser.php
55
B
-rw-r--r--
2010-05-12 20:06
renameUserCleanup.php
7.74
KB
-rw-r--r--
2011-07-14 13:07
Save
Rename
<?php /** * Custom job to perform updates on tables in busier environments */ class RenameUserJob extends Job { /** * Constructor * * @param Title $title Associated title * @param array $params Job parameters */ public function __construct( $title, $params ) { parent::__construct( 'renameUser', $title, $params ); } /** * Execute the job * * @return bool */ public function run() { $dbw = wfGetDB( DB_MASTER ); $table = $this->params['table']; $column = $this->params['column']; $oldname = $this->params['oldname']; $userID = isset( $this->params['userID'] ) ? $this->params['userID'] : null; $uidColumn = isset( $this->params['uidColumn'] ) ? $this->params['uidColumn'] : null; $timestampColumn = isset( $this->params['timestampColumn'] ) ? $this->params['timestampColumn'] : null; $minTimestamp = $this->params['minTimestamp']; $maxTimestamp = $this->params['maxTimestamp']; $uniqueKey = isset( $this->params['uniqueKey'] ) ? $this->params['uniqueKey'] : null; $keyId = isset( $this->params['keyId'] ) ? $this->params['keyId'] : null; $newname = $this->params['newname']; $count = $this->params['count']; # Conditions like "*_user_text = 'x' $conds = array( $column => $oldname ); # If user ID given, add that to condition to avoid rename collisions. if ( isset( $userID ) ) { $conds[$uidColumn] = $userID; } # Bound by timestamp if given if ( isset( $timestampColumn ) ) { $conds[] = "$timestampColumn >= '$minTimestamp'"; $conds[] = "$timestampColumn <= '$maxTimestamp'"; # Otherwise, bound by key (B/C) } elseif ( isset( $uniqueKey ) ) { $conds[$uniqueKey] = $keyId; } else { wfDebug( 'RenameUserJob::run - invalid job row given' ); // this shouldn't happen return false; } # Update a chuck of rows! $dbw->update( $table, array( $column => $newname ), $conds, __METHOD__ ); # Special case: revisions may be deleted while renaming... if ( $table == 'revision' && isset( $timestampColumn ) ) { $actual = $dbw->affectedRows(); # If some revisions were not renamed, they may have been deleted. # Do a pass on the archive table to get these straglers... if ( $actual < $count ) { $dbw->update( 'archive', array( 'ar_user_text' => $newname ), array( 'ar_user_text' => $oldname, 'ar_user' => $userID, // No user,rev_id index, so use timestamp to bound // the rows. This can use the user,timestamp index. "ar_timestamp >= '$minTimestamp'", "ar_timestamp <= '$maxTimestamp'" ), __METHOD__ ); } } # Special case: revisions may be restored while renaming... if ( $table == 'archive' && isset( $timestampColumn ) ) { $actual = $dbw->affectedRows(); # If some revisions were not renamed, they may have been restored. # Do a pass on the revision table to get these straglers... if ( $actual < $count ) { $dbw->update( 'revision', array( 'rev_user_text' => $newname ), array( 'rev_user_text' => $oldname, 'rev_user' => $userID, // No user,rev_id index, so use timestamp to bound // the rows. This can use the user,timestamp index. "rev_timestamp >= '$minTimestamp'", "rev_timestamp <= '$maxTimestamp'" ), __METHOD__ ); } } return true; } }