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 /
Vector /
Delete
Unzip
Name
Size
Permission
Date
Action
modules
[ DIR ]
drwxr-xr-x
2012-03-22 16:23
README
1.02
KB
-rw-r--r--
2010-10-01 22:21
Vector.hooks.php
5.13
KB
-rw-r--r--
2011-06-17 18:19
Vector.i18n.php
102.3
KB
-rw-r--r--
2011-07-18 22:05
Vector.php
4.48
KB
-rw-r--r--
2011-03-21 21:46
switchExperimentPrefs.php
1.46
KB
-rw-r--r--
2011-06-30 11:10
Save
Rename
<?php $path = '../..'; if ( getenv( 'MW_INSTALL_PATH' ) !== false ) { $path = getenv( 'MW_INSTALL_PATH' ); } require_once( $path . '/maintenance/Maintenance.php' ); class SwitchExperimentPrefs extends Maintenance { function __construct() { parent::__construct(); $this->addOption( 'pref', 'Preference to set', true, true ); $this->addOption( 'value', 'Value to set the preference to', true, true ); $this->mDescription = 'Set a preference for all users that have the vector-noexperiments preference enabled.'; } function execute() { $dbw = wfGetDB( DB_MASTER ); $batchSize = 100; $total = 0; $lastUserID = 0; while ( true ) { $res = $dbw->select( 'user_properties', array( 'up_user' ), array( 'up_property' => 'vector-noexperiments', "up_user > $lastUserID" ), __METHOD__, array( 'LIMIT' => $batchSize ) ); if ( !$res->numRows() ) { $dbw->commit(); break; } $total += $res->numRows(); $ids = array(); foreach ( $res as $row ) { $ids[] = $row->up_user; } $lastUserID = max( $ids ); foreach ( $ids as $id ) { $user = User::newFromId( $id ); if ( !$user->isLoggedIn() ) continue; $user->setOption( $this->getOption( 'pref' ), $this->getOption( 'value' ) ); $user->saveSettings(); } echo "$total\n"; wfWaitForSlaves(); // Must be wfWaitForSlaves_masterPos(); on 1.17wmf1 } echo "Done\n"; } } $maintClass = 'SwitchExperimentPrefs'; require_once( RUN_MAINTENANCE_IF_MAIN );