* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require_once '/data/project/hgztools/public_html/general.php'; // create new page object $page = new HtmlPage('Wikidata-Auszeichnungs-Abgleich'); // create new database object $db = new Database(); // create new request validator $rq = new RequestValidator(); // get parameters $rq->addAllowed('GET', 'mode', '', '/^(lesenswert|exzellent|informativ|portal)$/', true); $par = $rq->getParams(); $page->openBlock('div', 'iw-content'); $page->addInline('p', 'Mit diesem Werkzeug lassen sich Unterschiede zwischen den lokalen Auszeichnungsvorlagen und den Daten auf Wikidata feststellen.'); $page->addInline('h2', 'Optionen'); $optionForm = new HtmlForm('index.php', 'GET'); $optionForm->addHTML('<table class="iw-nostyle">'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('mode', 'Kategorie'); $optionForm->addHTML('</td><td>'); $optionForm->addHTML('<select id="mode" name="mode">'); $optionForm->addHTML('<option value="lesenswert">lesenswerte Artikel</option>'); $optionForm->addHTML('<option value="exzellent">exzellente Artikel</option>'); $optionForm->addHTML('<option value="informativ">informative Listen</option>'); $optionForm->addHTML('<option value="portal">informatives Portal</option>'); $optionForm->addHTML('</select>');
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require_once '/data/project/hgztools/public_html/general.php'; // create new page object $page = new HtmlPage('Useless defaultsorts'); // create new database object $db = new Database(); // create new request validator $rq = new RequestValidator(); // get parameters $rq->addAllowed('GET', 'lang', '', '/^[a-z]{1,7}$/', true); $rq->addAllowed('GET', 'project', '', '/^[a-z]{1,15}$/', true); $par = $rq->getParams(); $page->openBlock('div', 'iw-content'); $page->addInline('p', 'This tool generates a list of DEFAULTSORT keys that match the page title exactly.'); $page->addInline('h2', 'Options'); $optionForm = new HtmlForm('index.php', 'GET'); $optionForm->addHTML('<table class="iw-nostyle">'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('lang', 'Language'); $optionForm->addHTML('</td><td>'); $optionForm->addInput('lang', $par['lang'], 'Language code of the project, e.g. de', 7, true); $optionForm->addHTML('</td></tr>'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('project', 'Project'); $optionForm->addHTML('</td><td>');
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require_once '/data/project/hgztools/public_html/general.php'; // create new page object $page = new HtmlPage('Category redirects'); // create new database object $db = new Database(); // create new request validator $rq = new RequestValidator(); // get parameters $rq->addAllowed('GET', 'lang', '', '/^[a-z]{1,7}$/', true); $rq->addAllowed('GET', 'project', '', '/^[a-z]{1,15}$/', true); $rq->addAllowed('GET', 'sort', 'name', '/^(name|entries|length)$/'); $par = $rq->getParams(); $page->openBlock('div', 'iw-content'); $page->addInline('p', 'This tool shows a list of categories that redirect to another category in the given project and the number of entries in it.'); $page->addInline('h2', 'Options'); $optionForm = new HtmlForm('index.php', 'GET'); $optionForm->addHTML('<table class="iw-nostyle">'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('lang', 'Language'); $optionForm->addHTML('</td><td>'); $optionForm->addInput('lang', $par['lang'], 'Language code of the project, e.g. de', 7, true); $optionForm->addHTML('</td></tr>'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('project', 'Project');
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require_once '/data/project/hgztools/public_html/general.php'; // create new page object $page = new HtmlPage('Contributors'); // create new database object $db = new Database(); // create new request validator $rq = new RequestValidator(); // get parameters $rq->addAllowed('GET', 'lang', '', '/^[a-z]{1,7}$/', true); $rq->addAllowed('GET', 'project', '', '/^[a-z]{1,15}$/', true); $rq->addAllowed('GET', 'page', '', '', true, false); $rq->addAllowed('GET', 'since', '0000-00-00', '/^\\d{4}-\\d{2}-\\d{2}$/', false, false); $rq->addAllowed('GET', 'until', '0000-00-00', '/^\\d{4}-\\d{2}-\\d{2}$/', false, false); $par = $rq->getParams(); $page->openBlock('div', 'iw-content'); $page->addInline('p', 'This tool creates a list of contributors to a given article on a given project in wikitext.'); $page->addInline('h2', 'Options'); $optionForm = new HtmlForm('index.php', 'GET'); $optionForm->addHTML('<table class="iw-nostyle">'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('lang', 'Language'); $optionForm->addHTML('</td><td>'); $optionForm->addInput('lang', $par['lang'], 'Language code of the project, e.g. de', 7, true); $optionForm->addHTML('</td></tr>');
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require_once '/data/project/hgztools/public_html/general.php'; // create new page object $page = new HtmlPage('Bot statistics'); // create new database object $db = new Database(); // create new request validator $rq = new RequestValidator(); // get parameters $rq->addAllowed('GET', 'lang', '', '/^[a-z]{1,7}$/', true); $rq->addAllowed('GET', 'project', '', '/^[a-z]{1,15}$/', true); $rq->addAllowed('GET', 'sort', 'ec', '/^(name|reg|ec)$/'); $rq->addAllowed('GET', 'dir', 'desc', '/^(asc|desc)$/'); $par = $rq->getParams(); $page->openBlock('div', 'iw-content'); $page->addInline('p', 'This tool generates a list of bots in a given project with their total editcount and registration date.'); $page->addInline('h2', 'Options'); $optionForm = new HtmlForm('index.php', 'GET'); $optionForm->addHTML('<table class="iw-nostyle">'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('lang', 'Language'); $optionForm->addHTML('</td><td>'); $optionForm->addInput('lang', $par['lang'], 'Language code of the project, e.g. de', 7, true); $optionForm->addHTML('</td></tr>'); $optionForm->addHTML('<tr><td>');
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require_once '/data/project/hgztools/public_html/general.php'; // create new page object $page = new HtmlPage('Page prop maintenance'); // create new database object $db = new Database(); // create new request validator $rq = new RequestValidator(); // get parameters $rq->addAllowed('GET', 'lang', '', '/^[a-z]{1,7}$/', true); $rq->addAllowed('GET', 'project', '', '/^[a-z]{1,15}$/', true); $rq->addAllowed('GET', 'mode', '', '/^(ns0\\-noindex|ns0\\-index|ns0\\-noeditsection|ns0\\-newsectionlink|staticredirect)$/', true); $par = $rq->getParams(); $page->openBlock('div', 'iw-content'); $page->addInline('p', 'This tool allows to get information about some probably misused magic words in a specific project.'); $page->addInline('h2', 'Options'); $optionForm = new HtmlForm('index.php', 'GET'); $optionForm->addHTML('<table class="iw-nostyle">'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('lang', 'Language'); $optionForm->addHTML('</td><td>'); $optionForm->addInput('lang', $par['lang'], 'Language code of the project, e.g. de', 7, true); $optionForm->addHTML('</td></tr>'); $optionForm->addHTML('<tr><td>'); $optionForm->addLabel('project', 'Project');