<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="da">
	<id>https://comicwiki.dk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JoenBot</id>
	<title>ComicWiki - Denne brugers indlæg [da]</title>
	<link rel="self" type="application/atom+xml" href="https://comicwiki.dk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JoenBot"/>
	<link rel="alternate" type="text/html" href="https://comicwiki.dk/wiki/Speciel:Bidrag/JoenBot"/>
	<updated>2026-04-10T02:02:30Z</updated>
	<subtitle>Denne brugers indlæg</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67185</id>
		<title>Bruger:JoenBot</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67185"/>
		<updated>2008-03-02T22:42:14Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eksperimenterende semi automatisk robot til automatisering af kedelige ting. Styret at [[Bruger:Joen|Joen]]. Tester ting på [[Bruger:JoenBot/Sandkasse]].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
SxWiki is a simple, set of functions written in PHP, that are useful for bots. It requires libcurl (see: &lt;br /&gt;
[http://php.net/curl http://php.net/curl]). &lt;br /&gt;
&lt;br /&gt;
*Developed by:&lt;br /&gt;
**[[User:SQL]]&lt;br /&gt;
**[[User:Gutza]]&lt;br /&gt;
&lt;br /&gt;
*License: [[GPL]]&lt;br /&gt;
*[[User:SQL/SxWiki/Source|Source code]]&lt;br /&gt;
&lt;br /&gt;
==Config variables==&lt;br /&gt;
*'''int''' $maxlag, maxlag setting&lt;br /&gt;
*'''string''' $url, the base url to api.php and index.php (for example, on the english wikipedia, it is &lt;br /&gt;
http://en.wikipedia.org/w/ )&lt;br /&gt;
*'''int''' $epm, limits edits per min.&lt;br /&gt;
&lt;br /&gt;
==sxLogin()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxLogin(string ''$username'', string ''$password'')&lt;br /&gt;
&lt;br /&gt;
Returns an array containing '''uid''' (your numerical userid), and '''token''' (your login token).&lt;br /&gt;
&lt;br /&gt;
==sxGetPage()==&lt;br /&gt;
&lt;br /&gt;
'''string''' sxGetPage(string ''$article'')&lt;br /&gt;
&lt;br /&gt;
Returns raw article source.&lt;br /&gt;
&lt;br /&gt;
==sxGetURL()==&lt;br /&gt;
&lt;br /&gt;
'''string''' sxGetURL(string ''$url'')&lt;br /&gt;
&lt;br /&gt;
Returns the raw HTML at the specified URL. Useful for retrieving arbitrary pages (lists, diffs, etc) as an &lt;br /&gt;
authenticated Wikipedia user.&lt;br /&gt;
&lt;br /&gt;
==sxPutPage()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxPutPage(string ''$article'', string ''$editsummary'', string ''$newpage'', int ''$minoredit'', int &lt;br /&gt;
''$botedit'')&lt;br /&gt;
&lt;br /&gt;
If ''$minoredit'' is set to null, the edit will not be marked as minor. Any other setting will mark it as minor.&lt;br /&gt;
&lt;br /&gt;
if ''$botedit'' is set to null, the edit will be made with &amp;amp;bot=0.&lt;br /&gt;
&lt;br /&gt;
Returns '''true''' if the edit succeeded, '''false''' if it did not (presently only detects maxlag).&lt;br /&gt;
&lt;br /&gt;
==sxGetCat()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetCat(string ''$category'', string ''$namespace'')&lt;br /&gt;
&lt;br /&gt;
''$namespace'' is specified in numeric form (as a string, however!). See: [[Help:Namespace]]. ''$namespace'' may also &lt;br /&gt;
be set to &amp;quot;all&amp;quot;, to return everything.&lt;br /&gt;
&lt;br /&gt;
Returns all subcategories or category members like so: (result for [[:Category:Ohio law]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; Capital punishment in Ohio&lt;br /&gt;
    [1] =&amp;gt; Great Lakes Commission&lt;br /&gt;
    [2] =&amp;gt; Category:Jurists from Cincinnati&lt;br /&gt;
    [3] =&amp;gt; Ohio Constitution&lt;br /&gt;
    [4] =&amp;gt; Ohio Revised Code&lt;br /&gt;
    [5] =&amp;gt; Ohio State Issue 1 (2004)&lt;br /&gt;
    [6] =&amp;gt; Category:Ohio state case law&lt;br /&gt;
    [7] =&amp;gt; Category:Ohio state courts&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==sxGetTransclusion()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetTransclusion(string ''$template'', string ''$namespace'')&lt;br /&gt;
&lt;br /&gt;
''$namespace'' is specified in numeric form (as a string, however!). See: [[Help:Namespace]]. ''$namespace'' may also &lt;br /&gt;
be set to &amp;quot;all&amp;quot;, to return everything.&lt;br /&gt;
&lt;br /&gt;
Returns an array of all pages that the given template transcludes to. Supports all namespaces, not just template, for &lt;br /&gt;
instance:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
include('SxWiki.php');&lt;br /&gt;
include('config.php');&lt;br /&gt;
&lt;br /&gt;
$test = sxGetTransclusion(&amp;quot;User:SQL/Talkheader&amp;quot;, &amp;quot;all&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
print_r($test);&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would return:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; User talk:SQL&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==sxGetPrefix()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetPrefix(string ''$prefix'')&lt;br /&gt;
&lt;br /&gt;
Returns an array of pages matching the specified prefix.&lt;br /&gt;
&lt;br /&gt;
==sxLastEdited()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxLastEdited(string ''$article'')&lt;br /&gt;
&lt;br /&gt;
Returns the last user to edit ''$article'', and, the last edit summary.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[user]&amp;lt;/nowiki&amp;gt; User name&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[editsum]&amp;lt;/nowiki&amp;gt; Edit Summary&lt;br /&gt;
&lt;br /&gt;
==setEPM()==&lt;br /&gt;
&lt;br /&gt;
'''int''' setEPM(int ''$edits_per_min'')&lt;br /&gt;
&lt;br /&gt;
Lazy way to set ''$epm'', just divides 60 by ''$edits_per_min''.&lt;br /&gt;
&lt;br /&gt;
==sxBlockUser()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxBlockUser(''string'' $user, ''string'' $expiry, ''string'' $reason, ''mixed'' $ao, ''mixed'' $acb, &lt;br /&gt;
''mixed'' $autoblock, ''mixed'' $emailban)&lt;br /&gt;
&lt;br /&gt;
Set a block. $ao, $acb, $autoblock, $emailban should be set to $null to disable these options.&lt;br /&gt;
&lt;br /&gt;
* $ao - Anonymous only&lt;br /&gt;
* $acb - Account Creation Blocked&lt;br /&gt;
* $autoblock - Enable autoblock&lt;br /&gt;
* $emailban - E-mail disabled&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
sxBlockUser(&amp;quot;SQLBotTestTarget&amp;quot;, &amp;quot;1 second&amp;quot;, &amp;quot;Test of block framework using [[User:SQL/SxWiki|SxWiki]]&amp;quot;, $null, $null, &lt;br /&gt;
$null, $null);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would result in:&lt;br /&gt;
&lt;br /&gt;
08:52, January 7, 2008 SQL (Talk | contribs | block) blocked &amp;quot;SQLBotTestTarget (Talk | contribs)&amp;quot; (autoblock &lt;br /&gt;
disabled) with an expiry time of 1 second ‎ (: Test of block framework using SxWiki) (Unblock)&lt;br /&gt;
&lt;br /&gt;
==sxUnBlockUser()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxUnBlockUser(''string'' $user, ''string'' $reason)&lt;br /&gt;
&lt;br /&gt;
Removes blocks, on either users or IP's.&lt;br /&gt;
&lt;br /&gt;
==sxModRollback()==&lt;br /&gt;
'''bool''' sxModRollback(''string'' $user, ''string'' $reason ''string'' $operation)&lt;br /&gt;
&lt;br /&gt;
Adds or removes rollback. $operation can be &amp;quot;add&amp;quot; or &amp;quot;del&amp;quot;. Returns false if it fails, true if failure is not &lt;br /&gt;
detected.&lt;br /&gt;
&lt;br /&gt;
==sxIsBlocked()==&lt;br /&gt;
'''bool''' sxIsBlocked(''string'' $user)&lt;br /&gt;
&lt;br /&gt;
Detects if the specified user is presently blocked. Returns true if user is blocked, false if they are not.&lt;br /&gt;
&lt;br /&gt;
==Example application==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
include(&amp;quot;SxWiki.php&amp;quot;); //Include framework&lt;br /&gt;
$url = 'http://en.wikipedia.org/w/'; //Set for the English Wikipedia&lt;br /&gt;
$sxLgTA = sxLogin(&amp;quot;Username&amp;quot;, &amp;quot;Password&amp;quot;); //Log in&lt;br /&gt;
$sxLgID = $sxLgTA[uid];&lt;br /&gt;
$sxLgT = $sxLgTA[token];&lt;br /&gt;
$maxlag = &amp;quot;5&amp;quot;; //Set maxlag to 5&lt;br /&gt;
$epm = setEPM(10); //set 10 edits per min.&lt;br /&gt;
&lt;br /&gt;
$foocat = sxGetCat('FooBar', &amp;quot;0&amp;quot;); //Get [[:Category:FooBar]], items in NS 0&lt;br /&gt;
&lt;br /&gt;
foreach($foocat as $singlefoo) { //Replace all instances of &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; in [[:Category:FooBar]]&lt;br /&gt;
     $oldpage = sxGetPage($singlefoo); //First we get the old version of this page&lt;br /&gt;
     $newpage = preg_replace('/\bfoo\b/i', 'bar', $oldpage); //Here, we replace all instances of &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot;&lt;br /&gt;
     sxPutPage($singlefoo, 'Example application using [[User:SQL/SxWiki|SxWiki]]', $newpage, null); //Save the page&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Bruger:JoenBot/Sandkasse&amp;diff=67184</id>
		<title>Bruger:JoenBot/Sandkasse</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Bruger:JoenBot/Sandkasse&amp;diff=67184"/>
		<updated>2008-03-02T22:41:55Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: Siden blev oprettet: tester en robot   foo bar   foo bar   foo bar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;tester en robot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
foo bar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
foo bar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
foo bar&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Diskussion:Landet_uden_stjerner&amp;diff=67182</id>
		<title>Diskussion:Landet uden stjerner</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Diskussion:Landet_uden_stjerner&amp;diff=67182"/>
		<updated>2008-03-02T22:36:42Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: /* Sort billede */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Det ISBN-nummer der er angivet er for 4. oplag af det første danske album. Det korrekte ISBN-nummer for det originale 1. oplag er 87-562-0796-4.&lt;br /&gt;
:OK, ISBN på 1. oplag er nu tilføjet. Det er ellers sjældent at ISBN ændres mellem oplag, men det bliver det altså i dette tilfælde. [[Bruger:Benadikt|Benadikt]] 5. Oct 2007 kl. 00:37 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Sort billede ==&lt;br /&gt;
Når man skalerede det oprindelige billede til 300px, blev det blot sort. Så jeg har komprimeret det oprindelige billede en smule og kaldt den nye udgave &amp;quot;Linda_og_Valentin_01_DK.jpg&amp;quot;. Den oprindelige udgave er ikke fjernet. [[Bruger:Benadikt|Benadikt]] 2. mar 2008, 23:31 (CET)&lt;br /&gt;
:Det synes jeg var en god løsning. Tak for det. Vi flytter faktisk snart server igen, dog blot en helt intern og NOGET mindre operation end sidst -- det burde kun tage et par timer en nat og ingen burde mærke af det. Resultatet skulle være at jeg får nogle serverrettigheder så jeg selv kan gå ind og slette denne slags sorte billeder. [[Bruger:JoenBot|JoenBot]] 2. mar 2008, 23:36 (CET) -- Ahem, postede med min bot bruger. Det er mig, Joen. Tag dig ikke af det. [[Bruger:JoenBot|JoenBot]]&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Diskussion:Landet_uden_stjerner&amp;diff=67180</id>
		<title>Diskussion:Landet uden stjerner</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Diskussion:Landet_uden_stjerner&amp;diff=67180"/>
		<updated>2008-03-02T22:36:18Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: /* Sort billede */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Det ISBN-nummer der er angivet er for 4. oplag af det første danske album. Det korrekte ISBN-nummer for det originale 1. oplag er 87-562-0796-4.&lt;br /&gt;
:OK, ISBN på 1. oplag er nu tilføjet. Det er ellers sjældent at ISBN ændres mellem oplag, men det bliver det altså i dette tilfælde. [[Bruger:Benadikt|Benadikt]] 5. Oct 2007 kl. 00:37 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Sort billede ==&lt;br /&gt;
Når man skalerede det oprindelige billede til 300px, blev det blot sort. Så jeg har komprimeret det oprindelige billede en smule og kaldt den nye udgave &amp;quot;Linda_og_Valentin_01_DK.jpg&amp;quot;. Den oprindelige udgave er ikke fjernet. [[Bruger:Benadikt|Benadikt]] 2. mar 2008, 23:31 (CET)&lt;br /&gt;
:Det synes jeg var en god løsning. Tak for det. Vi flytter faktisk snart server igen, dog blot en helt intern og NOGET mindre operation end sidst -- det burde kun tage et par timer en nat og ingen burde mærke af det. Resultatet skulle være at jeg får nogle serverrettigheder så jeg selv kan gå ind og slette denne slags sorte billeder. [[Bruger:JoenBot|JoenBot]] 2. mar 2008, 23:36 (CET)&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67162</id>
		<title>Bruger:JoenBot</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67162"/>
		<updated>2008-03-02T21:15:29Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eksperimenterende semi automatisk robot til automatisering af kedelige ting. Styret at [[Bruger:Joen|Joen]].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
SxWiki is a simple, set of functions written in PHP, that are useful for bots. It requires libcurl (see: &lt;br /&gt;
[http://php.net/curl http://php.net/curl]). &lt;br /&gt;
&lt;br /&gt;
*Developed by:&lt;br /&gt;
**[[User:SQL]]&lt;br /&gt;
**[[User:Gutza]]&lt;br /&gt;
&lt;br /&gt;
*License: [[GPL]]&lt;br /&gt;
*[[User:SQL/SxWiki/Source|Source code]]&lt;br /&gt;
&lt;br /&gt;
==Config variables==&lt;br /&gt;
*'''int''' $maxlag, maxlag setting&lt;br /&gt;
*'''string''' $url, the base url to api.php and index.php (for example, on the english wikipedia, it is &lt;br /&gt;
http://en.wikipedia.org/w/ )&lt;br /&gt;
*'''int''' $epm, limits edits per min.&lt;br /&gt;
&lt;br /&gt;
==sxLogin()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxLogin(string ''$username'', string ''$password'')&lt;br /&gt;
&lt;br /&gt;
Returns an array containing '''uid''' (your numerical userid), and '''token''' (your login token).&lt;br /&gt;
&lt;br /&gt;
==sxGetPage()==&lt;br /&gt;
&lt;br /&gt;
'''string''' sxGetPage(string ''$article'')&lt;br /&gt;
&lt;br /&gt;
Returns raw article source.&lt;br /&gt;
&lt;br /&gt;
==sxGetURL()==&lt;br /&gt;
&lt;br /&gt;
'''string''' sxGetURL(string ''$url'')&lt;br /&gt;
&lt;br /&gt;
Returns the raw HTML at the specified URL. Useful for retrieving arbitrary pages (lists, diffs, etc) as an &lt;br /&gt;
authenticated Wikipedia user.&lt;br /&gt;
&lt;br /&gt;
==sxPutPage()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxPutPage(string ''$article'', string ''$editsummary'', string ''$newpage'', int ''$minoredit'', int &lt;br /&gt;
''$botedit'')&lt;br /&gt;
&lt;br /&gt;
If ''$minoredit'' is set to null, the edit will not be marked as minor. Any other setting will mark it as minor.&lt;br /&gt;
&lt;br /&gt;
if ''$botedit'' is set to null, the edit will be made with &amp;amp;bot=0.&lt;br /&gt;
&lt;br /&gt;
Returns '''true''' if the edit succeeded, '''false''' if it did not (presently only detects maxlag).&lt;br /&gt;
&lt;br /&gt;
==sxGetCat()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetCat(string ''$category'', string ''$namespace'')&lt;br /&gt;
&lt;br /&gt;
''$namespace'' is specified in numeric form (as a string, however!). See: [[Help:Namespace]]. ''$namespace'' may also &lt;br /&gt;
be set to &amp;quot;all&amp;quot;, to return everything.&lt;br /&gt;
&lt;br /&gt;
Returns all subcategories or category members like so: (result for [[:Category:Ohio law]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; Capital punishment in Ohio&lt;br /&gt;
    [1] =&amp;gt; Great Lakes Commission&lt;br /&gt;
    [2] =&amp;gt; Category:Jurists from Cincinnati&lt;br /&gt;
    [3] =&amp;gt; Ohio Constitution&lt;br /&gt;
    [4] =&amp;gt; Ohio Revised Code&lt;br /&gt;
    [5] =&amp;gt; Ohio State Issue 1 (2004)&lt;br /&gt;
    [6] =&amp;gt; Category:Ohio state case law&lt;br /&gt;
    [7] =&amp;gt; Category:Ohio state courts&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==sxGetTransclusion()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetTransclusion(string ''$template'', string ''$namespace'')&lt;br /&gt;
&lt;br /&gt;
''$namespace'' is specified in numeric form (as a string, however!). See: [[Help:Namespace]]. ''$namespace'' may also &lt;br /&gt;
be set to &amp;quot;all&amp;quot;, to return everything.&lt;br /&gt;
&lt;br /&gt;
Returns an array of all pages that the given template transcludes to. Supports all namespaces, not just template, for &lt;br /&gt;
instance:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
include('SxWiki.php');&lt;br /&gt;
include('config.php');&lt;br /&gt;
&lt;br /&gt;
$test = sxGetTransclusion(&amp;quot;User:SQL/Talkheader&amp;quot;, &amp;quot;all&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
print_r($test);&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would return:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; User talk:SQL&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==sxGetPrefix()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetPrefix(string ''$prefix'')&lt;br /&gt;
&lt;br /&gt;
Returns an array of pages matching the specified prefix.&lt;br /&gt;
&lt;br /&gt;
==sxLastEdited()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxLastEdited(string ''$article'')&lt;br /&gt;
&lt;br /&gt;
Returns the last user to edit ''$article'', and, the last edit summary.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[user]&amp;lt;/nowiki&amp;gt; User name&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[editsum]&amp;lt;/nowiki&amp;gt; Edit Summary&lt;br /&gt;
&lt;br /&gt;
==setEPM()==&lt;br /&gt;
&lt;br /&gt;
'''int''' setEPM(int ''$edits_per_min'')&lt;br /&gt;
&lt;br /&gt;
Lazy way to set ''$epm'', just divides 60 by ''$edits_per_min''.&lt;br /&gt;
&lt;br /&gt;
==sxBlockUser()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxBlockUser(''string'' $user, ''string'' $expiry, ''string'' $reason, ''mixed'' $ao, ''mixed'' $acb, &lt;br /&gt;
''mixed'' $autoblock, ''mixed'' $emailban)&lt;br /&gt;
&lt;br /&gt;
Set a block. $ao, $acb, $autoblock, $emailban should be set to $null to disable these options.&lt;br /&gt;
&lt;br /&gt;
* $ao - Anonymous only&lt;br /&gt;
* $acb - Account Creation Blocked&lt;br /&gt;
* $autoblock - Enable autoblock&lt;br /&gt;
* $emailban - E-mail disabled&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
sxBlockUser(&amp;quot;SQLBotTestTarget&amp;quot;, &amp;quot;1 second&amp;quot;, &amp;quot;Test of block framework using [[User:SQL/SxWiki|SxWiki]]&amp;quot;, $null, $null, &lt;br /&gt;
$null, $null);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would result in:&lt;br /&gt;
&lt;br /&gt;
08:52, January 7, 2008 SQL (Talk | contribs | block) blocked &amp;quot;SQLBotTestTarget (Talk | contribs)&amp;quot; (autoblock &lt;br /&gt;
disabled) with an expiry time of 1 second ‎ (: Test of block framework using SxWiki) (Unblock)&lt;br /&gt;
&lt;br /&gt;
==sxUnBlockUser()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxUnBlockUser(''string'' $user, ''string'' $reason)&lt;br /&gt;
&lt;br /&gt;
Removes blocks, on either users or IP's.&lt;br /&gt;
&lt;br /&gt;
==sxModRollback()==&lt;br /&gt;
'''bool''' sxModRollback(''string'' $user, ''string'' $reason ''string'' $operation)&lt;br /&gt;
&lt;br /&gt;
Adds or removes rollback. $operation can be &amp;quot;add&amp;quot; or &amp;quot;del&amp;quot;. Returns false if it fails, true if failure is not &lt;br /&gt;
detected.&lt;br /&gt;
&lt;br /&gt;
==sxIsBlocked()==&lt;br /&gt;
'''bool''' sxIsBlocked(''string'' $user)&lt;br /&gt;
&lt;br /&gt;
Detects if the specified user is presently blocked. Returns true if user is blocked, false if they are not.&lt;br /&gt;
&lt;br /&gt;
==Example application==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
include(&amp;quot;SxWiki.php&amp;quot;); //Include framework&lt;br /&gt;
$url = 'http://en.wikipedia.org/w/'; //Set for the English Wikipedia&lt;br /&gt;
$sxLgTA = sxLogin(&amp;quot;Username&amp;quot;, &amp;quot;Password&amp;quot;); //Log in&lt;br /&gt;
$sxLgID = $sxLgTA[uid];&lt;br /&gt;
$sxLgT = $sxLgTA[token];&lt;br /&gt;
$maxlag = &amp;quot;5&amp;quot;; //Set maxlag to 5&lt;br /&gt;
$epm = setEPM(10); //set 10 edits per min.&lt;br /&gt;
&lt;br /&gt;
$foocat = sxGetCat('FooBar', &amp;quot;0&amp;quot;); //Get [[:Category:FooBar]], items in NS 0&lt;br /&gt;
&lt;br /&gt;
foreach($foocat as $singlefoo) { //Replace all instances of &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; in [[:Category:FooBar]]&lt;br /&gt;
     $oldpage = sxGetPage($singlefoo); //First we get the old version of this page&lt;br /&gt;
     $newpage = preg_replace('/\bfoo\b/i', 'bar', $oldpage); //Here, we replace all instances of &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot;&lt;br /&gt;
     sxPutPage($singlefoo, 'Example application using [[User:SQL/SxWiki|SxWiki]]', $newpage, null); //Save the page&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67160</id>
		<title>Bruger:JoenBot</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67160"/>
		<updated>2008-03-02T21:06:19Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eksperimenterende semi automatisk robot til automatisering af kedelige ting. Styret at [[Bruger:Joen|Joen]].&lt;br /&gt;
&lt;br /&gt;
SxWiki is a simple, set of functions written in PHP, that are useful for bots. It requires libcurl (see: &lt;br /&gt;
[http://php.net/curl http://php.net/curl]). &lt;br /&gt;
&lt;br /&gt;
*Developed by:&lt;br /&gt;
**[[User:SQL]]&lt;br /&gt;
**[[User:Gutza]]&lt;br /&gt;
&lt;br /&gt;
*License: [[GPL]]&lt;br /&gt;
*[[User:SQL/SxWiki/Source|Source code]]&lt;br /&gt;
&lt;br /&gt;
==Config variables==&lt;br /&gt;
*'''int''' $maxlag, maxlag setting&lt;br /&gt;
*'''string''' $url, the base url to api.php and index.php (for example, on the english wikipedia, it is &lt;br /&gt;
http://en.wikipedia.org/w/ )&lt;br /&gt;
*'''int''' $epm, limits edits per min.&lt;br /&gt;
&lt;br /&gt;
==sxLogin()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxLogin(string ''$username'', string ''$password'')&lt;br /&gt;
&lt;br /&gt;
Returns an array containing '''uid''' (your numerical userid), and '''token''' (your login token).&lt;br /&gt;
&lt;br /&gt;
==sxGetPage()==&lt;br /&gt;
&lt;br /&gt;
'''string''' sxGetPage(string ''$article'')&lt;br /&gt;
&lt;br /&gt;
Returns raw article source.&lt;br /&gt;
&lt;br /&gt;
==sxGetURL()==&lt;br /&gt;
&lt;br /&gt;
'''string''' sxGetURL(string ''$url'')&lt;br /&gt;
&lt;br /&gt;
Returns the raw HTML at the specified URL. Useful for retrieving arbitrary pages (lists, diffs, etc) as an &lt;br /&gt;
authenticated Wikipedia user.&lt;br /&gt;
&lt;br /&gt;
==sxPutPage()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxPutPage(string ''$article'', string ''$editsummary'', string ''$newpage'', int ''$minoredit'', int &lt;br /&gt;
''$botedit'')&lt;br /&gt;
&lt;br /&gt;
If ''$minoredit'' is set to null, the edit will not be marked as minor. Any other setting will mark it as minor.&lt;br /&gt;
&lt;br /&gt;
if ''$botedit'' is set to null, the edit will be made with &amp;amp;bot=0.&lt;br /&gt;
&lt;br /&gt;
Returns '''true''' if the edit succeeded, '''false''' if it did not (presently only detects maxlag).&lt;br /&gt;
&lt;br /&gt;
==sxGetCat()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetCat(string ''$category'', string ''$namespace'')&lt;br /&gt;
&lt;br /&gt;
''$namespace'' is specified in numeric form (as a string, however!). See: [[Help:Namespace]]. ''$namespace'' may also &lt;br /&gt;
be set to &amp;quot;all&amp;quot;, to return everything.&lt;br /&gt;
&lt;br /&gt;
Returns all subcategories or category members like so: (result for [[:Category:Ohio law]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; Capital punishment in Ohio&lt;br /&gt;
    [1] =&amp;gt; Great Lakes Commission&lt;br /&gt;
    [2] =&amp;gt; Category:Jurists from Cincinnati&lt;br /&gt;
    [3] =&amp;gt; Ohio Constitution&lt;br /&gt;
    [4] =&amp;gt; Ohio Revised Code&lt;br /&gt;
    [5] =&amp;gt; Ohio State Issue 1 (2004)&lt;br /&gt;
    [6] =&amp;gt; Category:Ohio state case law&lt;br /&gt;
    [7] =&amp;gt; Category:Ohio state courts&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==sxGetTransclusion()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetTransclusion(string ''$template'', string ''$namespace'')&lt;br /&gt;
&lt;br /&gt;
''$namespace'' is specified in numeric form (as a string, however!). See: [[Help:Namespace]]. ''$namespace'' may also &lt;br /&gt;
be set to &amp;quot;all&amp;quot;, to return everything.&lt;br /&gt;
&lt;br /&gt;
Returns an array of all pages that the given template transcludes to. Supports all namespaces, not just template, for &lt;br /&gt;
instance:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
include('SxWiki.php');&lt;br /&gt;
include('config.php');&lt;br /&gt;
&lt;br /&gt;
$test = sxGetTransclusion(&amp;quot;User:SQL/Talkheader&amp;quot;, &amp;quot;all&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
print_r($test);&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would return:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; User talk:SQL&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==sxGetPrefix()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxGetPrefix(string ''$prefix'')&lt;br /&gt;
&lt;br /&gt;
Returns an array of pages matching the specified prefix.&lt;br /&gt;
&lt;br /&gt;
==sxLastEdited()==&lt;br /&gt;
&lt;br /&gt;
'''array''' sxLastEdited(string ''$article'')&lt;br /&gt;
&lt;br /&gt;
Returns the last user to edit ''$article'', and, the last edit summary.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[user]&amp;lt;/nowiki&amp;gt; User name&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;[editsum]&amp;lt;/nowiki&amp;gt; Edit Summary&lt;br /&gt;
&lt;br /&gt;
==setEPM()==&lt;br /&gt;
&lt;br /&gt;
'''int''' setEPM(int ''$edits_per_min'')&lt;br /&gt;
&lt;br /&gt;
Lazy way to set ''$epm'', just divides 60 by ''$edits_per_min''.&lt;br /&gt;
&lt;br /&gt;
==sxBlockUser()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxBlockUser(''string'' $user, ''string'' $expiry, ''string'' $reason, ''mixed'' $ao, ''mixed'' $acb, &lt;br /&gt;
''mixed'' $autoblock, ''mixed'' $emailban)&lt;br /&gt;
&lt;br /&gt;
Set a block. $ao, $acb, $autoblock, $emailban should be set to $null to disable these options.&lt;br /&gt;
&lt;br /&gt;
* $ao - Anonymous only&lt;br /&gt;
* $acb - Account Creation Blocked&lt;br /&gt;
* $autoblock - Enable autoblock&lt;br /&gt;
* $emailban - E-mail disabled&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
sxBlockUser(&amp;quot;SQLBotTestTarget&amp;quot;, &amp;quot;1 second&amp;quot;, &amp;quot;Test of block framework using [[User:SQL/SxWiki|SxWiki]]&amp;quot;, $null, $null, &lt;br /&gt;
$null, $null);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would result in:&lt;br /&gt;
&lt;br /&gt;
08:52, January 7, 2008 SQL (Talk | contribs | block) blocked &amp;quot;SQLBotTestTarget (Talk | contribs)&amp;quot; (autoblock &lt;br /&gt;
disabled) with an expiry time of 1 second ‎ (: Test of block framework using SxWiki) (Unblock)&lt;br /&gt;
&lt;br /&gt;
==sxUnBlockUser()==&lt;br /&gt;
&lt;br /&gt;
'''bool''' sxUnBlockUser(''string'' $user, ''string'' $reason)&lt;br /&gt;
&lt;br /&gt;
Removes blocks, on either users or IP's.&lt;br /&gt;
&lt;br /&gt;
==sxModRollback()==&lt;br /&gt;
'''bool''' sxModRollback(''string'' $user, ''string'' $reason ''string'' $operation)&lt;br /&gt;
&lt;br /&gt;
Adds or removes rollback. $operation can be &amp;quot;add&amp;quot; or &amp;quot;del&amp;quot;. Returns false if it fails, true if failure is not &lt;br /&gt;
detected.&lt;br /&gt;
&lt;br /&gt;
==sxIsBlocked()==&lt;br /&gt;
'''bool''' sxIsBlocked(''string'' $user)&lt;br /&gt;
&lt;br /&gt;
Detects if the specified user is presently blocked. Returns true if user is blocked, false if they are not.&lt;br /&gt;
&lt;br /&gt;
==Example application==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
include(&amp;quot;SxWiki.php&amp;quot;); //Include framework&lt;br /&gt;
$url = 'http://en.wikipedia.org/w/'; //Set for the English Wikipedia&lt;br /&gt;
$sxLgTA = sxLogin(&amp;quot;Username&amp;quot;, &amp;quot;Password&amp;quot;); //Log in&lt;br /&gt;
$sxLgID = $sxLgTA[uid];&lt;br /&gt;
$sxLgT = $sxLgTA[token];&lt;br /&gt;
$maxlag = &amp;quot;5&amp;quot;; //Set maxlag to 5&lt;br /&gt;
$epm = setEPM(10); //set 10 edits per min.&lt;br /&gt;
&lt;br /&gt;
$foocat = sxGetCat('FooBar', &amp;quot;0&amp;quot;); //Get [[:Category:FooBar]], items in NS 0&lt;br /&gt;
&lt;br /&gt;
foreach($foocat as $singlefoo) { //Replace all instances of &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot; in [[:Category:FooBar]]&lt;br /&gt;
     $oldpage = sxGetPage($singlefoo); //First we get the old version of this page&lt;br /&gt;
     $newpage = preg_replace('/\bfoo\b/i', 'bar', $oldpage); //Here, we replace all instances of &amp;quot;foo&amp;quot; with &amp;quot;bar&amp;quot;&lt;br /&gt;
     sxPutPage($singlefoo, 'Example application using [[User:SQL/SxWiki|SxWiki]]', $newpage, null); //Save the page&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
	<entry>
		<id>https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67159</id>
		<title>Bruger:JoenBot</title>
		<link rel="alternate" type="text/html" href="https://comicwiki.dk/index.php?title=Bruger:JoenBot&amp;diff=67159"/>
		<updated>2008-03-02T20:30:19Z</updated>

		<summary type="html">&lt;p&gt;JoenBot: Siden blev oprettet: Eksperimenterende semi automatisk robot til automatisering af kedelige ting. Styret at Joen.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eksperimenterende semi automatisk robot til automatisering af kedelige ting. Styret at [[Bruger:Joen|Joen]].&lt;/div&gt;</summary>
		<author><name>JoenBot</name></author>
		
	</entry>
</feed>