Skip to content

Instantly share code, notes, and snippets.

@Smallman12q
Smallman12q / ListingAddUsers.php
Created November 28, 2011 17:35
For user data
<?php
$users = array(
"user1" => "hash",
"user2" => "hash");
?>
<?php
require_once('ListingAddUsers.php');
if(isset($_POST["user"]) || isset($_POST["pass"]))
die("Missing user or password!");
if($users[$_POST["user"]] != hash('sha256', $_POST["pass"]))
die("Incorrect user or password!");
@Smallman12q
Smallman12q / ListingAdd.html
Created November 28, 2011 17:33
Cleanup Listing Add
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Cleanup Listing Add</title>
</head>
<body>
<script type="text/javascript">
if(document.location.protocol != "https:") {
var new_url = document.location.href.replace(/^http/, 'https');
@Smallman12q
Smallman12q / BookCreateCleanupListing.php
Created December 11, 2010 13:53
For creating the cleanup listing for books on Wikipedia
<?php
//Svick
//Smallman12q
//PD December 2010
//Untested version
//Book Cleanup Listing
//Based on CreateCleanupListing.php
require_once 'pub/Settings.php';
@Smallman12q
Smallman12q / project_cleanup.py
Created November 15, 2010 23:12
project cleanup for wikipedia
#!/usr/bin/env python2.5
# Copyright 2009-2010 bjweeks, MZMcBride, svick
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,