refreshimagecount.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 25 行
PHP
25 行
<?php// Quickie hack; patch-ss_images.sql uses variables which don't// replicate properly.require_once( "commandLine.inc" );$dbw =& wfGetDB( DB_MASTER );// Load the current value from the master$count = $dbw->selectField( 'site_stats', 'ss_images' );echo "$wgDBname: forcing ss_images to $count\n";// First set to NULL so that it changes on the master$dbw->update( 'site_stats', array( 'ss_images' => null ), array( 'ss_row_id' => 1 ) );// Now this update will be forced to go out$dbw->update( 'site_stats', array( 'ss_images' => $count ), array( 'ss_row_id' => 1 ) );?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?