Initial commit

This commit is contained in:
mykola2312 2018-07-10 13:54:56 +03:00
commit 2d7b600321
355 changed files with 100776 additions and 0 deletions

View file

@ -0,0 +1,317 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>lua-users wiki: Math Library Tutorial</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="/styles/main.css">
</HEAD>
<BODY ><table width="100%" border="0"> <tr><td align=left width="100%"><h1><a href="/cgi-bin/wiki.pl?action=search&amp;string=MathLibraryTutorial&amp;body=1" title="List pages referring to MathLibraryTutorial">Math Library Tutorial</a></h1></td><td align=right>
<table cellpadding="0" cellspacing="0" border="0" width="1%">
<tbody>
<tr>
<td><a href="/">
<img src="/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td><img src="/images/nav-elbow.png" alt="" width="48" height="40"></td>
<td nowrap valign="middle" width="100%">
<a href="/wiki/" class="nav">wiki</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<form method="post" action="/wiki/FindPage" enctype="application/x-www-form-urlencoded" style="display:inline; margin:0;">
<input type="hidden" name="action" value="search" /><input type="text" name="string" size="20" style="" id="search_query1" /><input type="hidden" name="title" value="1" /><input type="submit" name=".submit" value="Search" /><input type="hidden" name="body" value="on" /></form></td></tr> </table>
<br clear=all>
The math library is documented in section 6.7 of the Reference Manual.<a href="http://www.lua.org/manual/5.3/manual.html#6.7">[1]</a> Below is a summary of the functions and variables provided. Each is described, with an example, on this page. <DL>
<dt><dd><pre>
math.abs
math.acos
math.asin
math.atan
math.ceil
math.cos
math.deg
math.exp
math.floor
math.fmod
math.huge
math.log
math.max
math.maxinteger
math.min
math.mininteger
math.modf
math.pi
math.rad
math.random
math.randomseed
math.sin
math.sqrt
math.tan
math.tointeger
math.type
math.ult
</pre> </DL>
<p>
<p>
<H3>math.abs</H3>
Return the absolute, or non-negative value, of a given value. <DL>
<dt><dd><pre>
&gt; = math.abs(-100)
100
&gt; = math.abs(25.67)
25.67
&gt; = math.abs(0)
0
</pre> </DL>
<p>
<H3>math.acos , math.asin</H3>
Return the inverse cosine and sine in radians of the given value. <DL>
<dt><dd><pre>
&gt; = math.acos(1)
0
&gt; = math.acos(0)
1.5707963267949
&gt; = math.asin(0)
0
&gt; = math.asin(1)
1.5707963267949
</pre> </DL>
<p>
<H3>math.atan</H3>
Return the inverse tangent in radians. We can do this by supplying y/x ourselves or we can pass y and x to <code>math.atan</code> to do this for us. <DL>
<dt><dd><pre>
&gt; c, s = math.cos(0.8), math.sin(0.8)
&gt; = math.atan(s/c)
0.8
&gt; = math.atan(s,c)
0.8
</pre> </DL>
<p>
Using two arguments should usually be preferred, particularly when converting rectangular co-ordinates to polar co-ordinates. It will use the sign of both arguments to place the result into the correct quadrant, and also produces correct values when one of its arguments is 0 or very close to 0. <p>
<DL>
<dt><dd><pre>
&gt; = math.atan(1, 0), math.atan(-1, 0), math.atan(0, 1), math.atan(0, -1)
1.5707963267949 -1.5707963267949 0 3.1415926535898
</pre> </DL>
<p>
<H3>math.ceil , math.floor</H3>
Return the integer no greater than or no less than the given value (even for negatives). <DL>
<dt><dd><pre>
&gt; = math.floor(0.5)
0
&gt; = math.ceil(0.5)
1
&gt; = math.floor(-0.5)
-1
&gt; = math.ceil(-0.5)
-0
</pre> </DL>
<p>
<H3>math.cos , math.sin , math.tan</H3>
Return the cosine, sine and tangent value for a given value in radians. <DL>
<dt><dd><pre>
&gt; = math.cos(math.pi / 4)
0.70710678118655
&gt; = math.sin(0.123)
0.12269009002432
&gt; = math.tan(5/4)
3.0095696738628
&gt; = math.tan(.77)
0.96966832796149
</pre> </DL>
<p>
<H3>math.deg , math.rad</H3>
Convert from radians to degrees and vice versa. <DL>
<dt><dd><pre>
&gt; = math.deg(math.pi)
180
&gt; = math.deg(math.pi / 2)
90
&gt; = math.rad(180)
3.1415926535898
&gt; = math.rad(1)
0.017453292519943
</pre> </DL>
<p>
<p>
<H3>math.exp , math.log</H3>
<code>math.exp(myval)</code> returns <em>e</em> (the base of natural logarithms) raised to the power <code>myval</code>. <code>math.log()</code> returns the inverse of this. <code>math.exp(1)</code> returns <em>e</em>. <DL>
<dt><dd><pre>
&gt; = math.exp(0)
1
&gt; = math.exp(1)
2.718281828459
&gt; = math.exp(27)
532048240601.8
&gt; = math.log(532048240601)
26.999999999998
&gt; = math.log(3)
1.0986122886681
</pre> </DL>
<p>
<p>
<H3>math.min , math.max</H3>
Return the minimum or maximum value from a variable length list of arguments. <DL>
<dt><dd><pre>
&gt; = math.min(1,2)
1
&gt; = math.min(1.2, 7, 3)
1.2
&gt; = math.min(1.2, -7, 3)
-7
&gt; = math.max(1.2, -7, 3)
3
&gt; = math.max(1.2, 7, 3)
7
</pre> </DL>
<p>
<p>
<H3>math.modf</H3>
Return the integral and fractional parts of the given number. <DL>
<dt><dd><pre>
&gt; = math.modf(5)
5 0
&gt; = math.modf(5.3)
5 0.3
&gt; = math.modf(-5.3)
-5 -0.3
</pre> </DL>
<p>
If you want the modulus (remainder), look for the modulo <code>%</code> operator instead.<a href="http://www.lua.org/manual/5.1/manual.html#2.5.1">[2]</a> <p>
<H3>math.sqrt</H3>
Return the square root of a given number. Only non-negative arguments are allowed. <DL>
<dt><dd><pre>
&gt; = math.sqrt(100)
10
&gt; = math.sqrt(1234)
35.128336140501
&gt; = math.sqrt(-7)
-1.#IND
</pre> </DL>
<p>
<H3>math.random , math.randomseed</H3>
<code>math.random()</code> generates pseudo-random numbers uniformly distributed. Supplying argument alters its behaviour: <UL>
<li> <code>math.random()</code> with no arguments generates a real number between 0 and 1. <li> <code>math.random(upper)</code> generates integer numbers between 1 and <em>upper</em>. <li> <code>math.random(lower, upper)</code> generates integer numbers between <em>lower</em> and <em>upper</em>. </UL><DL>
<dt><dd><pre>
&gt; = math.random()
0.0012512588885159
&gt; = math.random()
0.56358531449324
&gt; = math.random(100)
20
&gt; = math.random(100)
81
&gt; = math.random(70,80)
76
&gt; = math.random(70,80)
75
</pre> </DL>
<em>upper</em> and <em>lower</em> must be integer. In other case Lua casts <em>upper</em> into an integer, sometimes giving <code>math.floor(upper)</code> and others <code>math.ceil(upper)</code>, with unexpected results (the same for <em>lower</em>). <p>
The <code>math.randomseed()</code> function sets a <em>seed</em> for the pseudo-random generator: Equal seeds produce equal sequences of numbers. <DL>
<dt><dd><pre>
&gt; math.randomseed(1234)
&gt; = math.random(), math.random(), math.random()
0.12414929654836 0.0065004425183874 0.3894466994232
&gt; math.randomseed(1234)
&gt; = math.random(), math.random(), math.random()
0.12414929654836 0.0065004425183874 0.3894466994232
</pre> </DL>
<p>
A good* 'seed' is os.time(), but wait a second before calling the function to obtain another sequence! To get nice random numbers use: <DL>
<dt><dd><pre>
math.randomseed( os.time() )
</pre> </DL>
If Lua could get milliseconds from <code>os.time()</code> the init could be better done. Another thing to be aware of is truncation of the seed provided. <code>math.randomseed</code> will call the underlying C function <code>srand</code> which takes an unsigned integer value. Lua will cast the value of the seed to this format. In case of an overflow the seed will actually become a bad seed, without warning <a href="http://lua-users.org/lists/lua-l/2013-05/msg00275.html">[3]</a> (note that Lua 5.1 actually casts to a signed int <a href="http://lua-users.org/lists/lua-l/2013-05/msg00290.html">[4]</a>, which was corrected in 5.2). <p>
Nevertheless, in some cases we need a controlled sequence, like the obtained with a known seed. <p>
But beware! The first random number you get is not really 'randomized' (at least in Windows 2K and OS X). To get better pseudo-random number just pop some random number before using them for real: <DL>
<dt><dd><pre>
-- Initialize the pseudo random number generator
math.randomseed( os.time() )
math.random(); math.random(); math.random()
-- done. :-)
</pre> </DL>
<p>
<em>-- This not exactly true. The first random number is as good (or bad) as the second one and the others. The goodness of the generator depends on other things. To improve somewhat the built-in generator we can use a table in the form:</em> <DL>
<dt><dd><pre>
-- improving the built-in pseudorandom generator
do
local oldrandom = math.random
local randomtable
math.random = function ()
if randomtable == nil then
randomtable = {}
for i = 1, 97 do
randomtable[i] = oldrandom()
end
end
local x = oldrandom()
local i = 1 + math.floor(97*x)
x, randomtable[i] = randomtable[i], x
return x
end
end
</pre> </DL>
<p>
<a href="http://lua-users.org/lists/lua-l/2007-03/msg00564.html">[5]</a> : Why math.random() might give weird results on OSX and FreeBSD? <p>
*<em>...The problem seems to be that when the seeds differ very little the first value of generated by BSD rand() also differ very little. This difference is lost when Lua converts the integer returned by rand() into a real number, effectively preserving only the high bits in the result. When you call math.random(1,100) from Lua, the low-bit difference vanishes and you see the same integer result.</em> <p>
<DL>
<dt><dd><pre>
-- improve seeding on these platforms by throwing away the high part of time,
-- then reversing the digits so the least significant part makes the biggest change
-- NOTE this should not be considered a replacement for using a stronger random function
-- ~ferrix
math.randomseed( tonumber(tostring(os.time()):reverse():sub(1,6)) )
</pre> </DL>
<p>
<p>
There is also lrandom<a href="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lrandom">[6]</a> A library for generating random numbers based on the Mersenne Twister. <p>
<H3>math.huge</H3>
<p>
<code>math.huge</code> is a constant. It represents +infinity. <p>
<DL>
<dt><dd><pre>
&gt; = math.huge
inf
&gt; = math.huge / 2
inf
&gt; = -math.huge
-inf
&gt; = math.huge/math.huge -- indeterminate
nan
&gt; = math.huge * 0 -- indeterminate
nan
&gt; = 1/0
inf
&gt; = (math.huge == math.huge)
true
&gt; = (1/0 == math.huge)
true
</pre> </DL>
<p>
Note that some operations on <code>math.huge</code> return a special "not-a-number" value that displays as <code>nan</code>. This is a bit of a misnomer. <code>nan</code> is a number type, though it's different from other numbers: <p>
<DL>
<dt><dd><pre>
&gt; = type(math.huge * 0)
number
</pre> </DL>
<p>
See also <a href="/wiki/FloatingPoint" >FloatingPoint</a>. <p>
<H3>math.pi</H3>
<p>
This is a part of the constant Pi. <p>
<DL>
<dt><dd><pre>
&gt; = math.pi
3.1415926535898
</pre> </DL>
<hr>
<a href="/wiki/RecentChanges" >RecentChanges</a> &middot; <a href="/cgi-bin/wiki.pl?action=editprefs" >preferences</a><br>
<a href="/cgi-bin/wiki.pl?action=edit&amp;id=MathLibraryTutorial" >edit</a> &middot; <a href="/cgi-bin/wiki.pl?action=history&amp;id=MathLibraryTutorial" >history</a><br>Last edited February 5, 2016 5:07 am GMT <a href="/cgi-bin/wiki.pl?action=browse&amp;diff=1&amp;id=MathLibraryTutorial" >(diff)</a>
</body>
</html>

View file

@ -0,0 +1,150 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>lua-users wiki: Metatable Events</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="/styles/main.css">
</HEAD>
<BODY ><table width="100%" border="0"> <tr><td align=left width="100%"><h1><a href="/cgi-bin/wiki.pl?action=search&amp;string=MetatableEvents&amp;body=1" title="List pages referring to MetatableEvents">Metatable Events</a></h1></td><td align=right>
<table cellpadding="0" cellspacing="0" border="0" width="1%">
<tbody>
<tr>
<td><a href="/">
<img src="/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td><img src="/images/nav-elbow.png" alt="" width="48" height="40"></td>
<td nowrap valign="middle" width="100%">
<a href="/wiki/" class="nav">wiki</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<form method="post" action="/wiki/FindPage" enctype="application/x-www-form-urlencoded" style="display:inline; margin:0;">
<input type="hidden" name="action" value="search" /><input type="text" name="string" size="20" style="" id="search_query1" /><input type="hidden" name="title" value="1" /><input type="submit" name=".submit" value="Search" /><input type="hidden" name="body" value="on" /></form></td></tr> </table>
<br clear=all>
<em>A listing of all the 'special' keys in a metatable, and the metamethods which they perform.</em> <p>
<UL>
<li> <strong>__index</strong> - Control 'prototype' inheritance. When accessing "myTable[key]" and the key does not appear in the table, but the metatable has an __index property: <UL>
<li> if the value is a function, the function is called, passing in the table and the key; the return value of that function is returned as the result. <li> if the value is another table, the value of the key in that table is asked for and returned <UL>
<li> <em>(and if it doesn't exist in <strong>that</strong> table, but that table's metatable has an __index property, then it continues on up)</em> </UL>
<li> <em>Use "rawget(myTable,key)" to skip this metamethod.</em> </UL>
</UL>
<p>
<UL>
<li> <strong>__newindex</strong> - Control property assignment. When calling "myTable[key] = value", if the metatable has a __newindex key pointing to a function, call that function, passing it the table, key, and value. <UL>
<li> <em>Use "rawset(myTable,key,value)" to skip this metamethod.</em> <li> <em>(If the __newindex function does not set the key on the table (using rawset) then the key/value pair is not added to myTable.)</em> </UL>
</UL>
<p>
<UL>
<li> <strong>__mode</strong> - Control weak references. A string value with one or both of the characters 'k' and 'v' which specifies that the the <strong>k</strong>eys and/or <strong>v</strong>alues in the table are weak references. </UL><DL>
<dt><dd>
</DL><UL>
<li> <strong>__call</strong> - Treat a table like a function. When a table is followed by parenthesis such as "myTable( 'foo' )" and the metatable has a __call key pointing to a function, that function is invoked (passing the table as the first argument, followed by any specified arguments) and the return value is returned. </UL><DL>
<dt><dd>
</DL><UL>
<li> <strong>__metatable</strong> - Hide the metatable. When "getmetatable( myTable )" is called, if the metatable for myTable has a __metatable key, the value of that key is returned instead of the actual metatable. </UL>
<p>
<UL>
<li> <strong>__tostring</strong> - Control string representation. When the builtin "tostring( myTable )" function is called, if the metatable for myTable has a __tostring property set to a function, that function is invoked (passing myTable to it) and the return value is used as the string representation. </UL>
<p>
<UL>
<li> <strong>__len</strong> - (Lua 5.2+) Control table length that is reported. When the table length is requested using the length operator ( '#' ), if the metatable for myTable has a __len key pointing to a function, that function is invoked (passing myTable to it) and the return value used as the value of "#myTable". </UL>
<p>
<p>
<UL>
<li> <strong>__pairs</strong> - (Lua 5.2+) Handle iteration through table pairs when <strong>Lua for k,v in pairs(tbl) do ... end</strong> is called (See <a href="http://lua-users.org/wiki/GeneralizedPairsAndIpairs">http://lua-users.org/wiki/GeneralizedPairsAndIpairs</a>). </UL>
<p>
<UL>
<li> <strong>__ipairs</strong> - (Lua 5.2+) Handle iteration through table pairs when <strong>for k,v in ipairs(tbl) do ... end</strong> is called (See <a href="http://lua-users.org/wiki/GeneralizedPairsAndIpairs">http://lua-users.org/wiki/GeneralizedPairsAndIpairs</a>). </UL>
<p>
<UL>
<li> <strong>__gc</strong> - Userdata finalizer code. When userdata is set to be garbage collected, if the metatable has a __gc field pointing to a function, that function is first invoked, passing the userdata to it. The __gc metamethod is not called for tables. (See <a href="http://lua-users.org/lists/lua-l/2006-11/msg00508.html">http://lua-users.org/lists/lua-l/2006-11/msg00508.html</a>) </UL>
<p>
<H3>Mathematic Operators</H3>
<p>
<UL>
<li> <strong>__unm</strong> - Unary minus. When writing "-myTable", if the metatable has a __unm key pointing to a function, that function is invoked (passing the table), and the return value used as the value of "-myTable". <li> <strong>__add</strong> - Addition. When writing "myTable + object" or "object + myTable", if myTable's metatable has an __add key pointing to a function, that function is invoked (passing the left and right operands in order) and the return value used. <UL>
<li> ''If both operands are tables, the left table is checked before the right table for the presence of an __add metaevent. </UL><DL>
<dt><dd>
</DL>
<li> <strong>__sub</strong> - Subtraction. Invoked similar to addition, using the '-' operator. <li> <strong>__mul</strong> - Multiplication. Invoked similar to addition, using the '*' operator. <li> <strong>__div</strong> - Division. Invoked similar to addition, using the '/' operator. <li> <strong>__idiv</strong> - (Lua 5.3) Floor division (division with rounding down to nearest integer). '//' operator. <li> <strong>__mod</strong> - Modulo. Invoked similar to addition, using the '%' operator. <li> <strong>__pow</strong> - Involution. Invoked similar to addition, using the '^' operator. <li> <strong>__concat</strong> - Concatenation. Invoked similar to addition, using the '..' operator. </UL>
<p>
<H3>Bitwise Operators</H3>
<p>
Lua 5.3 introduced the ability to use true integers, and with it bitwise operations. These operations are invoked similar to the addition operation, except that Lua will try a metamethod if any operand is neither an integer nor a value coercible to an integer. <p>
<UL>
<li> <strong>__band</strong> - (Lua 5.3) the bitwise AND (&amp;) operation. <li> <strong>__bor</strong> - (Lua 5.3) the bitwise OR (|) operation. <li> <strong>__bxor</strong> - (Lua 5.3) the bitwise exclusive OR (binary ~) operation. <li> <strong>__bnot</strong> - (Lua 5.3) the bitwise NOT (unary ~) operation. <li> <strong>__bshl</strong> - (Lua 5.3) the bitwise left shift (&lt;&lt;) operation. <li> <strong>__bshr</strong> - (Lua 5.3) the bitwise right shift (&gt;&gt;) operation. </UL>
<p>
<H3>Equivalence Comparison Operators</H3>
<p>
<UL>
<li> <strong>__eq</strong> - Check for equality. This method is invoked when "myTable1 == myTable2" is evaluated, but only if both tables have the exact same metamethod for __eq. <UL>
<li> For example, see the following code: </UL><DL>
<dt><dd><pre>
t1a = {}
t1b = {}
t2 = {}
mt1 = { __eq = function( o1, o2 ) return 'whee' end }
mt2 = { __eq = function( o1, o2 ) return 'whee' end }
setmetatable( t1a, mt1 )
setmetatable( t1b, mt1 )
setmetatable( t2, mt2 )
print( t1a == t1b ) --&gt; true
print( t1a == t2 ) --&gt; false
</pre> </DL><UL>
<li> <em>If the function returns nil or false, the result of the comparison is false; otherwise, the result is true.</em> </UL>
</UL>
<p>
<UL>
<UL>
<li> <em>If <code>t1</code> and <code>t2</code> are referencing the same table, the <code>__eq</code> method is not invoked for <code>t1 == t2</code> :</em> </UL><DL>
<dt><dd><pre class="code">
<span class="keyword">function</span> foo (o1, o2)
<span class="library">print</span>( <span class="string">'__eq call'</span> )
<span class="keyword">return</span> <span class="keyword">false</span>
<span class="keyword">end</span>
t1 = {}
<span class="library">setmetatable</span>( t1, {__eq = foo} )
t2 = t1
<span class="library">print</span>( t1 == t2 ) <span class="comment">--&gt; true</span>
<span class="comment">-- string '__eq call' not printed (and comparison result is true, not like the return value of foo(...)), so no foo(...) call here</span>
t3 = {}
<span class="library">setmetatable</span>( t3, {__eq = foo} )
<span class="keyword">if</span> t1 == t3 <span class="keyword">then</span> <span class="keyword">end</span> <span class="comment">--&gt; __eq call</span>
<span class="comment">-- foo(...) was called</span>
</pre>
</DL>
</UL>
<p>
<UL>
<li> <strong>__lt</strong> - Check for less-than. Similar to equality, using the '&lt;' operator. <UL>
<li> Greater-than is evaluated by reversing the order of the operands passed to the __lt function. </UL><DL>
<dt><dd><pre class="code">
a &gt; b == b &lt; a
</pre>
</DL>
</UL>
<p>
<UL>
<li> <strong>__le</strong> - Check for less-than-or-equal. Similar to equality, using the '&lt;=' operator. <UL>
<li> Greater-than-or-equal is evaluated by reversing the order of the operands passed to the __le function. </UL><DL>
<dt><dd><pre class="code">
a &gt;= b == b &lt;= a
</pre>
</DL>
</UL>
<hr>
<a href="/wiki/RecentChanges" >RecentChanges</a> &middot; <a href="/cgi-bin/wiki.pl?action=editprefs" >preferences</a><br>
<a href="/cgi-bin/wiki.pl?action=edit&amp;id=MetatableEvents" >edit</a> &middot; <a href="/cgi-bin/wiki.pl?action=history&amp;id=MetatableEvents" >history</a><br>Last edited August 15, 2017 5:33 pm GMT <a href="/cgi-bin/wiki.pl?action=browse&amp;diff=1&amp;id=MetatableEvents" >(diff)</a>
</body>
</html>

93
Release/api.txt Normal file
View file

@ -0,0 +1,93 @@
lua_Alloc
lua_atpanic
lua_call
lua_CFunction
lua_checkstack
lua_close
lua_concat
lua_cpcall
lua_createtable
lua_dump
lua_equal
lua_error
lua_gc
lua_getallocf
lua_getfenv
lua_getfield
lua_getglobal
lua_getmetatable
lua_gettable
lua_gettop
lua_insert
lua_Integer
lua_isboolean
lua_iscfunction
lua_isfunction
lua_islightuserdata
lua_isnil
lua_isnone
lua_isnoneornil
lua_isnumber
lua_isstring
lua_istable
lua_isthread
lua_isuserdata
lua_lessthan
lua_load
lua_newstate
lua_newtable
lua_newthread
lua_newuserdata
lua_next
lua_Number
lua_objlen
lua_pcall
lua_pop
lua_pushboolean
lua_pushcclosure
lua_pushcfunction
lua_pushfstring
lua_pushinteger
lua_pushlightuserdata
lua_pushliteral
lua_pushlstring
lua_pushnil
lua_pushnumber
lua_pushstring
lua_pushthread
lua_pushvalue
lua_pushvfstring
lua_rawequal
lua_rawget
lua_rawgeti
lua_rawset
lua_rawseti
lua_Reader
lua_register
lua_remove
lua_replace
lua_resume
lua_setallocf
lua_setfenv
lua_setfield
lua_setglobal
lua_setmetatable
lua_settable
lua_settop
lua_State
lua_status
lua_toboolean
lua_tocfunction
lua_tointeger
lua_tolstring
lua_tonumber
lua_topointer
lua_tostring
lua_tothread
lua_touserdata
lua_type
lua_typename
lua_Writer
lua_xmove
lua_yield
Collected: 5 (KB)

89
Release/base.lua Normal file
View file

@ -0,0 +1,89 @@
function string:split( inSplitPattern, outResults )
if not outResults then
outResults = { }
end
local theStart = 1
local theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart )
while theSplitStart do
table.insert( outResults, string.sub( self, theStart, theSplitStart-1 ) )
theStart = theSplitEnd + 1
theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart )
end
table.insert( outResults, string.sub( self, theStart ) )
return outResults
end
function string:extension()
return self:match("^.+(%..+)$")
end
function implode(t,sep)
local str = ""
for k,v in pairs(t) do
if #str == 0 then
str = tostring(v)
else
str = ("%s%s%s"):format(str,sep,tostring(v))
end
end
return str
end
function _performCurl(curl,mr)
local data = nil
local res = nil
local code = 0
local errs = 0
repeat
data,res = curl:perform()
if res == 0 then
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
errs = errs + 1
end
else
print(("CURL Error %d"):format(res))
errs = errs + 1
end
if errs > mr then
return nil,res,code
end
until res == 0 and data ~= nil
return data,0,code
end
function _performFileCurl(curl,f,mr)
local res = nil
local code = 0
local errs = 0
repeat
res = curl:performFile(f)
if res == 0 then
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
errs = errs + 1
f:seek("set",0)
f:flush()
end
else
print(("CURL Error %d"):format(res))
errs = errs + 1
f:seek("set",0)
f:flush()
end
if errs > mr then
return nil,res,code
end
until res == 0
return 0,code
end
function last(t) return t[#t] end
function sleep(n)
os.execute("sleep " .. tonumber(n))
end

448
Release/calibar.lua Normal file
View file

@ -0,0 +1,448 @@
--view http://hentai-chan.me/online/target
--post http://hentai-chan.me/online/%s#page=%d
--full <img style="max-width:1000px;background-color:white;" src="http://img4.hentai-chan.me/manganew_webp/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/32.webp">
--thumb http://img4.hentai-chan.me/manganew_webp_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/01.webp
--thumb <img src="http://img4.hentai-chan.me/manganew_webp_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/01.webp" alt="(Стр. 1)" height="140" width="100" class="thumb">
dofile("base.lua")
task.setThreadCount(35)
--task.setDelay(15000)
baseTimeout = 300
maxErrors = 30
domain = "http://hentai-chan.me/"
oldDomain = domain
jsEmpty = [[<script type='text/javascript'> var smartphone_true = 0;</script>]]
index = mutex_open()
mangaIndex = {}
function index_add(link,tags)
index:lock()
local f = io.open("index.txt","ab")
f:write(("%s = "):format(link))
u8.write(f,tags)
f:write("\n")
f:close()
index:unlock()
end
function dumpDataLinks(manga)
local curl = curl_open()
--local url = "http://hentai-chan.me/online/"..manga..".html"
local url = (domain.."online/%s.html"):format(manga)
curl:setOpt(CURLOPT_URL,url)
curl:setOpt(CURLOPT_USERAGENT,"seVII")
curl:setOpt(CURLOPT_COOKIEFILE,"cookies.txt")
curl:setOpt(CURLOPT_COOKIEJAR,"cookies.txt")
curl:setOpt(CURLOPT_REFERER,domain)
local data = nil
local code = 500
local res = 1
local en = 0
repeat
data,res = curl:perform()
if res == 0 then
code = curl:getInfo(CURLINFO_HTTP_CODE)
end
if res ~= 0 or code ~= 200 then
print(string.format("CURL Error %d",res))
en = en + 1
if en > maxErrors then
print("Boolshit happends, %d",res)
return nil
end
end
until res == 0
curl:close()
if data == nil or data == jsEmpty then
local code = curl:getInfo(CURLINFO_HTTP_CODE)
print(res,code)
print"New domain, redirecting.."
_G.oldDomain = domain
domain = "http://exhentaidono.me/"
local ret = dumpDataLinks(manga)
domain = _G.oldDomain
return ret
end
local a = nil
local new = false
if domain ~= _G.oldDomain then
new = true end
if new then
_,a = data:find("\"fullimg\": %[")
else
_,a = data:find("\"fullimg\":%[")
end
if a == nil then
local dbg = io.open("err3.html","wb")
dbg:write(data)
dbg:close()
print("Unspeakable error when parsing "..manga)
return nil
end
local b,_ = (data:sub(a+1)):find("]")
local dat = data:sub(a+1,a+b-2)
if new then
return (dat:gsub('\'', '')):split(", ")
else
return (dat:gsub('"', '')):split(",")
end
end
function download(url)
dofile("base.lua")
local m = task.getGlobal("manga")
local curl = curl_open()
curl:setOpt(CURLOPT_URL,url)
local lst = last(url:split("/"))
local ext = lst:extension()
if ext == nil then
print(string.format("Malformed url %s",url))
curl:close()
return
end
local page,_ = lst:find(ext)
curl:setOpt(CURLOPT_USERAGENT,"seVII")
curl:setOpt(CURLOPT_COOKIEFILE,"cookies.txt")
curl:setOpt(CURLOPT_COOKIEJAR,"cookies.txt")
curl:setOpt(CURLOPT_REFERER,string.format(
task.getGlobal("domain").."online/%s#page=%d",m,page))
curl:setOpt(CURLOPT_TIMEOUT,task.getGlobal("baseTimeout"))
local path = m.."/"..lst
local f = io.open(path,"wb")
if f == nil then
print(("Failed to open %s!"):format(path))
curl:close()
return
end
local code = 500
local res = 1
local en = 0
repeat
f:close()
f = io.open(path,"wb")
res = curl:performFile(f)
if res == 0 then
code = curl:getInfo(CURLINFO_HTTP_CODE)
end
if res ~= 0 or (res == 0 and code ~= 200) then
print("CURL ERROR",res,code)
en = en + 1
end
until code == 200 or en > task.getGlobal("maxErrors")
if res ~= 0 then
print(url)
print"FUCK"
else print(path) end
f:close()
curl:close()
end
function dumpManga(mg)
manga = mg
if mg == nil then
error"SOMETHING WENT VERY VERY WR0000NG"
return
end
if file.exists(manga) then
print(string.format("Manga %s exists!",manga))
return
else file.mkdir(manga) end
local links = {}
local fulls = dumpDataLinks(manga)
if fulls == nil then
print"dumpDataLinks failed"
return
end
for k,v in pairs(fulls) do
if v == nil then
print(("Full %d is nil!"):format(k))
table.remove(fulls,k)
end
end
--for k,v in pairs(fulls) do
-- local i,j = v:find(v:extension())
-- links[k] = v:sub(0,i).."webp"
--end
performMultiTask(download,fulls) --jpg
--performMultiTask(download,links) --webp
end
--<h2><a href="http://hentai-chan.me/manga/22270-marionette-queen-1.0.0.html" >
function dumpTags(data)
local rs = tohtml(data)
local tags = {}
for k,v in pairs(rs:toTable()) do
if v:isTag() and v:tagName() == "div"
and v:attribute("class") == "genre" then
local childs = rs:getChildsOf(v)
for i,j in pairs(childs) do
if j:tagName() == "a" then
tags[#tags+1] = rs:contentOf(j)
end
end
end
end
end
function getMangaLink(rs,row) --manga_row1
for k,v in pairs(rs:getChildsOf(row)) do
if v:isTag() and v:tagName() == "h2" then
local tag = rs:getChildsOf(v)[1]
if tag:isTag() and tag:tagName() == "a" then
local hrefs = tag:attribute("href"):split("/")
if hrefs[#hrefs-1] == "manga" then
local link = last(hrefs)
local i,_ = link:find(link:extension())
return link:sub(0,i-1)
end
end
end
end
return nil
end
function getMangaTags(rs,row) --manga_row3
local childs = rs:getChildsOf(row)
local genre = nil
for k,v in pairs(childs) do
if v:tagName() == "div" and
v:attribute("class") == "row3_left" then
local j = rs:getChildsOf(v)[2]
if j:tagName() == "div" and
j:attribute("class") == "item4" then
genre = rs:getChildsOf(j)[2]
--print(genre:tagName())
end
end
end
if genre == nil then return nil end
local tags = {}
childs = rs:getChildsOf(genre)
for k,v in pairs(childs) do
if v:tagName() == "a" then
local href = v:attribute("href")
if href ~= nil then
tags[#tags+1] = rs:contentOf(v) end
end
end
return tags
end
function dumpRowContent(prs,content)
local rows = prs:getChildsOf(content)
local tags = {}
local row3skip = false
local link = nil
for k,v in pairs(rows) do
if v:tagName() == "div" then
local class = v:attribute("class")
--print(class)
if class == "manga_row1" then
link = getMangaLink(prs,v)
elseif class == "manga_row3" then
if not row3skip then row3skip = true
elseif row3skip == true then
tags = getMangaTags(prs,v)
end
end
end
end
return link,implode(tags,"+")
end
function dumpSearch(data)
local prs = tohtml(data)
local rows = nil
local link = nil
local tags = nil
for k,v in pairs(prs:toTable()) do
if v:tagName() == "div" and
v:attribute("class") == "content_row" then
link,tags = dumpRowContent(prs,v)
if link ~= nil then
dumpManga(link)
index_add(link,tags)
end
end
end
end
function parseSearch(query,num)
local curl = curl_open()
local cur = 1
repeat
if cur == 1 then
curl:setOpt(CURLOPT_URL,
string.format(domain.."?do=search&subaction=search&story=%s",query))
curl:setOpt(CURLOPT_AUTOREFERER,1)
curl:setOpt(CURLOPT_REFERER,("http://%s/"):format(domain))
curl:setOpt(CURLOPT_USERAGENT,"seVII")
else
curl:setOpt(CURLOPT_URL,domain.."index.php?do=search")
curl:setOpt(CURLOPT_POST,1)
curl:setOpt(CURLOPT_POSTFIELDS,
string.format("do=search&subaction=search&search_start=%d&full_search=0&result_from=%d&result_num=40&story=%s",
cur,(cur*40)+1,query))
end
local data = nil
local res = 1
local en = 0
repeat
data,res = curl:perform()
if res ~= 0 then
print(string.format("CURL Error %d",res))
en = en + 1
if en > maxErrors then
print(string.format("Searching page %d failed due %d",cur,res))
curl:close()
return
end
end
until (res == 0 and data ~= nil) or en > task.getGlobal("maxErrors")
dumpSearch(data)
cur = cur + 1
until cur > num
curl:close()
end
function parseTags(tags,num)
local curl = curl_open()
curl:setOpt(CURLOPT_USERAGENT,"seVII")
curl:setOpt(CURLOPT_REFERER,"http://hentai-chan.me/")
curl:setOpt(CURLOPT_AUTOREFERER,1)
local en = 0
local res = 1
local data = nil
local code = 500
local cur = 0
repeat
local page = ("offset=%d"):format(cur*20)
if cur == 0 then page = "" end
curl:setOpt(CURLOPT_URL,("http://hentai-chan.me/tags/%s?%s"):format(
tags,page))
repeat
data,res = curl:perform()
if res == 0 then
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
end
else
print(("CURL Error %d"):format(res))
en = en + 1
if en > 5 then
curl:close()
return
end
end
until res == 0 and data ~= nil
if data == nil then
print"Server replied illegal page"
break
end
dumpSearch(data)
cur = cur + 1
until cur == num
curl:close()
end
--http://hentai-chan.me/manga/
--http://hentai-chan.me/manga/new?offset=(20*page)
function parseMain(page)
local curl = curl_open()
local cur = 0
curl:setOpt(CURLOPT_REFERER,"http://hentai-chan.me/")
curl:setOpt(CURLOPT_AUTOREFERER,1)
repeat
print(("=================\ncur %d\n"):format(cur))
if cur == 0 then
curl:setOpt(CURLOPT_URL,"http://hentai-chan.me/manga/")
else
curl:setOpt(CURLOPT_URL,
("http://hentai-chan.me/manga/new?offset=%d"):format(cur*20))
end
local data = nil
local code = 500
local res = 1
local en = 0
repeat
data,res = curl:perform()
if res ~= 0 then
print(("CURL Error %d"):format(res))
en = en + 1
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"))
en = en + 1
end
end
until (res == 0 and code == 200) or en == maxErrors
if res ~= 0 or data == nil then
print"parseMain failed"
else dumpSearch(data) end
cur = cur + 1
until cur == page
end
if args[2] == "--manga" then
dumpManga(args[3])
elseif args[2] == "--main" then
parseMain(tonumber(args[3]))
elseif args[2] == "--search" then
io.write"Enter query: "
local query = u8.conv_u16(u8.scan(256))
parseSearch(query,tonumber(args[3]))
elseif args[2] == "--tags" then
io.write"Enter tags: "
local tags = u8.conv_u16(u8.scan(256))
parseTags(tags,tonumber(args[3]))
else print"Unrecognized mode!" end

6
Release/cookies.txt Normal file
View file

@ -0,0 +1,6 @@
# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_.rgho.st TRUE / FALSE 0 _rghost_session BAh7CUkiD3Nlc3Npb25faWQGOgZFVEkiJTdiY2RjZGY0NDQ3ZWZlMDQyMDY5YTc5ZmFhNjM1YjY0BjsAVEkiC2FfdGltZQY7AEZsKwdk9dtZSSIGYQY7AEZ7B2kB7WkGaQHwaQZJIhBfY3NyZl90b2tlbgY7AEZJIjFWMWpRcHN1NFFlSUwyK1I5MXc5WWJMQlpZd2hRZ2YxZzRHSnFram8xVUJJPQY7AEY%3D--cfe2aa961a419e037c9496b8b44aa165e79225ba
hentai-chan.me FALSE / FALSE 0 PHPSESSID lvkp2hkud3tn9v0p3g8sp6cb31

5
Release/cookikes.txt Normal file
View file

@ -0,0 +1,5 @@
# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_.rgho.st TRUE / FALSE 0 _rghost_session BAh7CUkiD3Nlc3Npb25faWQGOgZFVEkiJTdiY2RjZGY0NDQ3ZWZlMDQyMDY5YTc5ZmFhNjM1YjY0BjsAVEkiC2FfdGltZQY7AEZsKwdk9dtZSSIGYQY7AEZ7B2kB7WkGaQHwaQZJIhBfY3NyZl90b2tlbgY7AEZJIjFWMWpRcHN1NFFlSUwyK1I5MXc5WWJMQlpZd2hRZ2YxZzRHSnFram8xVUJJPQY7AEY%3D--cfe2aa961a419e037c9496b8b44aa165e79225ba

25
Release/curl.lua Normal file
View file

@ -0,0 +1,25 @@
function worker(arg)
dofile("base.lua")
curl = curl_open()
local name = last(arg:split("/"))
curl:setOpt(CURLOPT_URL,arg)
curl:setOpt(CURLOPT_USERAGENT,"Lua CURL")
f = io.open(name..".html","ab")
print(string.format("Perform %d",
curl:performFile(f)))
f:close()
curl:close()
end
local t = {
"http://lua-users.org/wiki/MetatableEvents",
"http://lua-users.org/lists/lua-l/2014-04/msg00399.html",
"http://lua-users.org/wiki/MathLibraryTutorial"
}
performMultiTask(worker,t)

BIN
Release/dotborn.rar Normal file

Binary file not shown.

364
Release/download.html Normal file
View file

@ -0,0 +1,364 @@
<!doctype html>
<html lang="en" class=" theme-light">
<head>
<meta charset="utf-8" />
<meta name="theme-color" content="#1f1f1f" />
<meta itemprop="name" content="Kabe Chie" />
<meta itemprop="image" content="https://t.nhentai.net/galleries/1133576/cover.jpg" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Kabe Chie" />
<meta property="og:image" content="https://t.nhentai.net/galleries/1133576/cover.jpg" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Kabe Chie" />
<meta name="twitter:description" content="glasses, bondage, sole female, sole male, nakadashi, x-ray, cunnilingus, bike shorts, tomboy, smell, stuck in wall" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes, viewport-fit=cover" />
<meta name="description" content="Read and download Kabe Chie, a hentai doujinshi by sakula for free on nhentai." />
<title>Kabe Chie &raquo; nhentai: hentai doujinshi and manga</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700" />
<link rel="stylesheet" href="https://static.nhentai.net/css/main_style.0e7d346ee19f.css" />
<script src="https://static.nhentai.net/js/combined.2d1d75937e49.js"></script>
</head>
<body>
<nav role="navigation"><a class="logo" href="/"><img src="https://static.nhentai.net/img/logo.650c98bbb08e.svg" alt="logo" width="46" height="30"></a><form role="search" action="/search/" class="search"><input type="search" name="q" value="" autocapitalize="none" required /><button type="submit" class="btn btn-primary btn-square"><i class="fa fa-search fa-lg"></i></button></form><button type="button" class="btn btn-secondary btn-square" id="hamburger"><span class="line"></span><span class="line"></span><span class="line"></span></button><div class="collapse"><ul class="menu left"><li class="desktop "><a href="/random/">Random</a></li><li class="desktop "><a href="/tags/">Tags</a></li><li class="desktop "><a href="/artists/">Artists</a></li><li class="desktop "><a href="/characters/">Characters</a></li><li class="desktop "><a href="/parodies/">Parodies</a></li><li class="desktop "><a href="/groups/">Groups</a></li><li class="desktop "><a href="/info/">Info</a></li><li class="dropdown"><button class="btn btn-secondary btn-square" type="button" id="dropdown"><i class="fa fa-chevron-down"></i></button><ul class="dropdown-menu"><li><a href="/random/">Random</a></li><li><a href="/tags/">Tags</a></li><li><a href="/artists/">Artists</a></li><li><a href="/characters/">Characters</a></li><li><a href="/parodies/">Parodies</a></li><li><a href="/groups/">Groups</a></li><li><a href="/info/">Info</a></li></ul></li></ul><ul class="menu right"><li><a href="/favorites/"><i class="fa fa-heart"></i> Favorites</a></li><li><a href="/users/617057/dominqnta"><i class="fa fa-tachometer"></i> dominqnta</a></li><li><a href="/logout/?next=/g/212508/"><i class="fa fa-sign-out"></i> Log out</a></li></ul></div></nav>
<div id="messages">
</div>
<div id="content">
<section class="container advertisement advt"><iframe src="https://ads2.contentabc.com/ads?spot_id=3511900&rand=561541052" style="max-width:728px;width:100%;" height="90" allowtransparency="true" marginheight="0" scrolling="no" frameborder="0"></iframe></section>
<div class="container" id="bigcontainer">
<div id="cover">
<a href="/g/212508/1/">
<img is="lazyload-image" class="lazyload" width="350" height="245" data-src="https://t.nhentai.net/galleries/1133576/cover.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/cover.jpg" width="350" height="245" /></noscript>
</a>
</div>
<div id="info-block">
<div id="info">
<h1>[IRON GRIMOIRE (SAKULA)] Kabe Chie (Persona 4) [English] [Naxusnl] [Digital]</h1>
<h2>[IRON GRIMOIRE (SAKULA)] 壁千枝 (ペルソナ4) [英訳] [DL版]</h2>
<section id="tags">
<div class="tag-container field-name ">
Parodies:
<span class="tags"><a href="/parody/persona-4/" class="tag tag-16984 ">persona 4 <span class="count">(496)</span></a></span>
</div>
<div class="tag-container field-name ">
Characters:
<span class="tags"><a href="/character/chie-satonaka/" class="tag tag-7293 ">chie satonaka <span class="count">(133)</span></a><a href="/character/yuu-narukami-seta-souji/" class="tag tag-33935 ">yuu narukami | seta souji <span class="count">(1)</span></a></span>
</div>
<div class="tag-container field-name ">
Tags:
<span class="tags"><a href="/tag/glasses/" class="tag tag-8378 ">glasses <span class="count">(34,702)</span></a><a href="/tag/bondage/" class="tag tag-15658 ">bondage <span class="count">(25,910)</span></a><a href="/tag/sole-female/" class="tag tag-35762 ">sole female <span class="count">(25,629)</span></a><a href="/tag/sole-male/" class="tag tag-35763 ">sole male <span class="count">(23,149)</span></a><a href="/tag/nakadashi/" class="tag tag-13720 ">nakadashi <span class="count">(21,978)</span></a><a href="/tag/x-ray/" class="tag tag-20035 ">x-ray <span class="count">(13,255)</span></a><a href="/tag/cunnilingus/" class="tag tag-7155 ">cunnilingus <span class="count">(2,256)</span></a><a href="/tag/bike-shorts/" class="tag tag-21538 ">bike shorts <span class="count">(1,782)</span></a><a href="/tag/tomboy/" class="tag tag-29366 ">tomboy <span class="count">(1,351)</span></a><a href="/tag/smell/" class="tag tag-25822 ">smell <span class="count">(963)</span></a><a href="/tag/stuck-in-wall/" class="tag tag-28869 ">stuck in wall <span class="count">(309)</span></a></span>
</div>
<div class="tag-container field-name ">
Artists:
<span class="tags"><a href="/artist/sakula/" class="tag tag-4924 ">sakula <span class="count">(38)</span></a></span>
</div>
<div class="tag-container field-name ">
Groups:
<span class="tags"><a href="/group/iron-grimoire/" class="tag tag-49848 ">iron grimoire <span class="count">(12)</span></a></span>
</div>
<div class="tag-container field-name ">
Languages:
<span class="tags"><a href="/language/translated/" class="tag tag-17249 ">translated <span class="count">(66,588)</span></a><a href="/language/english/" class="tag tag-12227 ">english <span class="count">(48,123)</span></a></span>
</div>
<div class="tag-container field-name ">
Categories:
<span class="tags"><a href="/category/doujinshi/" class="tag tag-33172 ">doujinshi <span class="count">(150,840)</span></a></span>
</div>
</section>
<div>25 pages</div>
<div>Uploaded <time datetime="2017-10-27T08:17:48.201143+00:00">Oct. 27, 2017, 8:17 a.m.</time></div>
<div class="buttons">
<form method="post" action="/g/212508/favorite" class="inline">
<input type='hidden' name='csrfmiddlewaretoken' value='U5PZ9kYx89K2XvU673EynsSErkeJFVFApJ7qYS5MLjVGpu43BemjdbhtHeZCvYXC' />
<button id="favorite" class="btn btn-primary" type="submit">
<i class="fa fa-heart"></i>
<span class="text">Favorite</span> <span class="nobold">(<span class="count">93</span>)</span>
</button>
</form>
<a href="/g/212508/download" id="download" class="btn btn-secondary"><i class="fa fa-download"></i> Download</a>
</div>
</div>
</div>
</div>
<div class="container" id="thumbnail-container">
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/1/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="140" data-src="https://t.nhentai.net/galleries/1133576/1t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/1t.jpg" width="200" height="140" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/2/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/2t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/2t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/3/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/3t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/3t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/4/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/4t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/4t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/5/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/5t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/5t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/6/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/6t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/6t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/7/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/7t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/7t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/8/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/8t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/8t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/9/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/9t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/9t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/10/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/10t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/10t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/11/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/11t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/11t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/12/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/12t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/12t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/13/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/13t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/13t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/14/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/14t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/14t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/15/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/15t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/15t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/16/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/16t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/16t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/17/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/17t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/17t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/18/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/18t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/18t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/19/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/19t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/19t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/20/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/20t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/20t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/21/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/21t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/21t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/22/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/22t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/22t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/23/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/23t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/23t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/24/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/24t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/24t.jpg" width="200" height="280" /></noscript>
</a>
</div>
<div class="thumb-container">
<a class="gallerythumb" href="/g/212508/25/" rel="nofollow">
<img is="lazyload-image" class="lazyload" width="200" height="280" data-src="https://t.nhentai.net/galleries/1133576/25t.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1133576/25t.jpg" width="200" height="280" /></noscript>
</a>
</div>
</div>
<div class="container" id="related-container">
<h2>More Like This</h2>
<div class="gallery" data-tags="29366 15658 35762 21538 35763 14016 6346 33172 16984 8378 28869 7293 4924 49848"><a href="/g/209857/" class="cover" style="padding:0 0 70.0% 0"><img is="lazyload-image" class="lazyload" width="250" height="175" data-src="https://t.nhentai.net/galleries/1121211/thumb.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1121211/thumb.jpg" width="250" height="175" /></noscript><div class="caption">[IRON GRIMOIRE (SAKULA)] Kabe Chie (Persona 4) [Digital]</div></a></div>
<div class="gallery" data-tags="14016 33172 16984 35763 8378 29366 28869 35762 15658 21538 7293 4924 17249 29963 49848"><a href="/g/212304/" class="cover" style="padding:0 0 70.0% 0"><img is="lazyload-image" class="lazyload" width="250" height="175" data-src="https://t.nhentai.net/galleries/1132687/thumb.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1132687/thumb.jpg" width="250" height="175" /></noscript><div class="caption">[IRON GRIMOIRE (SAKULA)] Kabe Chie (Persona 4) [Chinese] [CE家族社] [Digital]</div></a></div>
<div class="gallery" data-tags="21538 35762 8378 35763 14016 6346 33172 16984 17349 28869 15658 7293 4924 49848"><a href="/g/206549/" class="cover" style="padding:0 0 146.4% 0"><img is="lazyload-image" class="lazyload" width="250" height="366" data-src="https://t.nhentai.net/galleries/1108077/thumb.jpg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><noscript><img src="https://t.nhentai.net/galleries/1108077/thumb.jpg" width="250" height="366" /></noscript><div class="caption">(C92) [IRON GRIMOIRE (SAKULA)] Kabe Chie (Persona 4)</div></a></div>
<div class="gallery" data-tags="21538 28869 15348 14016 7293 17969 23356 33172 24380 17249 16984 12227 12104 8010 1767"><a href="/g/49374/" class="cover" style="padding:0 0 138.8% 0"><img src="//t.nhentai.net/galleries/264981/thumb.jpg" /><div class="caption">(C75) [Bronco Hitoritabi] Akai Yukiko to Midori no Chie-chan to Toufu to Paku to Loli (Persona 4) [English]</div></a></div>
<div class="gallery" data-tags="7752 33172 6346 25822 21538 20525 17349 16984 14877 14016 7293 7155 4924"><a href="/g/94033/" class="cover" style="padding:0 0 141.2% 0"><img src="//t.nhentai.net/galleries/604451/thumb.jpg" /><div class="caption">(SC57) [Magic Fortune Hachioujiten (SAKULA)] Chie-chan no Spats de Asshi Shitai Tokkun no Atode (Persona 4)</div></a></div>
</div>
<div class="container" id="comment-container">
<div class="row">
<div id="comment_form">
<textarea cols="40" id="id_body" maxlength="1000" minlength="10" name="body" placeholder="If you ask for translations, you will die." rows="10" required></textarea>
<div>
<button type="submit" class="btn btn-primary"><i class="fa fa-comment"></i> Comment</button>
</div>
</div>
</div>
<div id="comments">
</div>
</div>
</div>
<script>
N.init({
csrf_token: "U5PZ9kYx89K2XvU673EynsSErkeJFVFApJ7qYS5MLjVGpu43BemjdbhtHeZCvYXC",
logged_in: true,
blacklisted_tags: [],
ads: {
show_popunders: true
}
});
</script>
<script>
var gallery = new N.gallery({"upload_date":1509092268,"num_favorites":0,"media_id":"1133576","title":{"japanese":"[IRON GRIMOIRE (SAKULA)] \u58c1\u5343\u679d (\u30da\u30eb\u30bd\u30ca4) [\u82f1\u8a33] [DL\u7248]","pretty":"Kabe Chie","english":"[IRON GRIMOIRE (SAKULA)] Kabe Chie (Persona 4) [English] [Naxusnl] [Digital]"},"images":{"cover":{"h":245,"t":"j","w":350},"pages":[{"h":870,"t":"j","w":1244},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066},{"h":1491,"t":"j","w":1066}],"thumbnail":{"h":175,"t":"j","w":250}},"scanlator":"","tags":[{"url":"/category/doujinshi/","count":150873,"type":"category","id":33172,"name":"doujinshi"},{"url":"/parody/persona-4/","count":497,"type":"parody","id":16984,"name":"persona 4"},{"url":"/tag/sole-male/","count":23192,"type":"tag","id":35763,"name":"sole male"},{"url":"/tag/glasses/","count":34711,"type":"tag","id":8378,"name":"glasses"},{"url":"/tag/x-ray/","count":13262,"type":"tag","id":20035,"name":"x-ray"},{"url":"/tag/tomboy/","count":1354,"type":"tag","id":29366,"name":"tomboy"},{"url":"/tag/stuck-in-wall/","count":310,"type":"tag","id":28869,"name":"stuck in wall"},{"url":"/tag/sole-female/","count":25667,"type":"tag","id":35762,"name":"sole female"},{"url":"/tag/smell/","count":964,"type":"tag","id":25822,"name":"smell"},{"url":"/tag/nakadashi/","count":21997,"type":"tag","id":13720,"name":"nakadashi"},{"url":"/tag/cunnilingus/","count":2258,"type":"tag","id":7155,"name":"cunnilingus"},{"url":"/tag/bondage/","count":25920,"type":"tag","id":15658,"name":"bondage"},{"url":"/tag/bike-shorts/","count":1783,"type":"tag","id":21538,"name":"bike shorts"},{"url":"/character/yuu-narukami-seta-souji/","count":1,"type":"character","id":33935,"name":"yuu narukami | seta souji"},{"url":"/character/chie-satonaka/","count":133,"type":"character","id":7293,"name":"chie satonaka"},{"url":"/artist/sakula/","count":38,"type":"artist","id":4924,"name":"sakula"},{"url":"/language/translated/","count":66588,"type":"language","id":17249,"name":"translated"},{"url":"/language/english/","count":48123,"type":"language","id":12227,"name":"english"},{"url":"/group/iron-grimoire/","count":12,"type":"group","id":49848,"name":"iron grimoire"}],"id":212508,"num_pages":25});
gallery.init();
</script>
</body>
</html>

13
Release/download.lua Normal file
View file

@ -0,0 +1,13 @@
dofile("base.lua")
curl = curl_open()
curl:setOpt(CURLOPT_COOKIEFILE,"")
curl:setOpt(CURLOPT_URL,args[2])
curl:setOpt(CURLOPT_USERAGENT,args[1])
f = io.open("download.html","wb")
print(curl:performFile(f))
f:close()
curl:close()

BIN
Release/download.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

72
Release/dump.txt Normal file
View file

@ -0,0 +1,72 @@
Found 70
http://rule34-data-006.paheal.net/_images/27947c643931af4bfeaad2ac6d0dc016/2338109%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen%20pussydestroyer1.png
http://rule34-data-010.paheal.net/_images/305cb8170bb80445cc808e9cf8b3d494/2336658%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-006.paheal.net/_images/2ab8e51c08e424f82b527a6114e23605/2336657%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-010.paheal.net/_images/489b727e584ce6eb6693ce7556edd9c4/2336656%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-002.paheal.net/_images/2b7fd2344379692db0d336085a7adc06/2336655%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-008.paheal.net/_images/3372d843f3b40d60a4032617e5c7cc0e/2336654%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-012.paheal.net/_images/c3bfbf85f0c355d0e625d2581a298af0/2336653%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-006.paheal.net/_images/afe51daf52275892cc6fb42f963a42f5/2336652%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-011.paheal.net/_images/21f647940ba511fb3a3f61b0f1eb11aa/2336651%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-002.paheal.net/_images/ccdf5bb299e3477796e513c88ba1ab0d/2336650%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-011.paheal.net/_images/e42929d5042051e40b584ea419ad8044/2336649%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-006.paheal.net/_images/22c902a8baa574e9730455c7a7abf1c0/2336648%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-007.paheal.net/_images/bc1533c1b0b0ca7fef33d3ba9782ebae/2336647%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-011.paheal.net/_images/6fd55edd886a38416a0821a2d4ac56ea/2336646%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-012.paheal.net/_images/4c0b13b1e27b9192e051c5085f91f618/2336645%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-012.paheal.net/_images/ff07abaf7e6f1f8c3b8fb8b59d160e97/2336644%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-003.paheal.net/_images/740ebe74805c9744e798cad018ea39b7/2336643%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-002.paheal.net/_images/cc02710b632cd8b2fc207344173ab754/2336642%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-011.paheal.net/_images/aaa5c19d3805498e50085713fd42ab2d/2336641%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-009.paheal.net/_images/46f19f233cb9aea571815aac7bc51dd6/2336640%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-007.paheal.net/_images/9c74da9272e73a31291df706926600ca/2336639%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-008.paheal.net/_images/2bae5ff000b2074b6b4c62930e021328/2336638%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-012.paheal.net/_images/23695d30e0b5164c0f69807f12c739f6/2336637%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-012.paheal.net/_images/d725f6aadb7d3852c9d8aea84c151924/2336636%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Vortigaunt.jpg
http://rule34-data-008.paheal.net/_images/7eac63ef92fef4bb790afe0ba1fcd4d8/2327765%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20animated%20likkezg%20webm.webm
http://rule34-data-012.paheal.net/_images/bbc8479412d8ce745b2f7138bdda167f/2327764%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20animated%20likkezg%20webm.webm
http://rule34-data-003.paheal.net/_images/2f5d783b2cf6d83334708910f26c2a8f/2327763%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20animated%20likkezg%20webm.webm
http://rule34-data-008.paheal.net/_images/6ee5bf2c745f5cc0cb29e50f4f815bb8/2317194%20-%20Alyx_Vance%20Half-Life_2.jpg
http://rule34-data-009.paheal.net/_images/452ed2347afbfd105db6ead1d90dc585/2298197%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-002.paheal.net/_images/5c2d875708c025bc14451957f9bd2531/2298196%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-002.paheal.net/_images/4e1eb6e24e262cb1a28bee83c5f5103a/2298195%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-009.paheal.net/_images/33757ede4994cf378a0430518583ab50/2298194%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-006.paheal.net/_images/001fa93920edef49f5254e3593ae4a2e/2298193%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-003.paheal.net/_images/335c6d38eef1c86e31d6abcf6ca98ebf/2298192%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-006.paheal.net/_images/3b7e7639d4cc4e296bed5a2235e592ce/2298191%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-006.paheal.net/_images/287dcdd9d0f194ad7f3a974ff7263572/2298190%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-009.paheal.net/_images/f3c56e47fa0efcb76d90abadc6d42e73/2298189%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-009.paheal.net/_images/cf6cad502a331433e54210a96584b79b/2298188%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen.jpg
http://rule34-data-008.paheal.net/_images/41d08d2b9d90d94a833acbc80a930799/2290155%20-%20Alyx_Vance%20Half-Life_2%20Wallace_Breen%20gmod.png
http://rule34-data-008.paheal.net/_images/024c23fa7fe23b385777100ac2b7b58b/2290010%20-%20Alyx_Vance%20Half-Life_2%20gmod%20zombine.jpg
http://rule34-data-007.paheal.net/_images/e8f34faa72170e8132633ec6191ecedc/2287940%20-%20Alyx_Vance%20Half-Life_2%20Wallace_Breen%20gmod.png
http://rule34-data-012.paheal.net/_images/594f8d8c120dde5434b370a996cd301e/2281404%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20magnum_dong.jpg
http://rule34-data-006.paheal.net/_images/6f253403da38faa0f46899c591eb4361/2280002%20-%20Alyx_Vance%20Combine_Assassin%20Half-Life%20Half-Life_2%20electricall%20jennifer_zaloopes%20memethicc_hazard%20metal_gear_pupa.jpg
http://rule34-data-007.paheal.net/_images/1f787ec1db22e73fce9210802a438d6e/2278587%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-010.paheal.net/_images/8a151fbe05b224d65259f0305bda9446/2278586%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-008.paheal.net/_images/06dc96bc6b54b986a612ebab3718cfa9/2278585%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-009.paheal.net/_images/e3691b3bf4ef11427006ae60394e7a22/2278584%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-003.paheal.net/_images/d5d03d4e89a10ca1e8110b16d5e5d065/2278583%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-008.paheal.net/_images/cfb1cf8d2bf819d1862bdab7da6e0015/2278582%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-008.paheal.net/_images/fde38807f9e42a8827406138d48175f7/2278581%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-002.paheal.net/_images/1f02dac72848e6f45ce251ba70c9312e/2278580%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-002.paheal.net/_images/1e0792b48831e27a3b36c302ed14848b/2278579%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-009.paheal.net/_images/cd0312a07cf820f61515886eeabb9e6d/2278578%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-003.paheal.net/_images/987d4fcf1df1ce9cfb9eecad25a5214f/2278577%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-008.paheal.net/_images/0a130fa95484e951a5cb5c4c2fa5eeb0/2278576%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-007.paheal.net/_images/08f1f7612cda5c0f7b98dbde13ffd6f4/2278575%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-010.paheal.net/_images/430a2e5d399af1c2e2cf020db4d4200a/2278574%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-007.paheal.net/_images/6b18ad9bd5baae33a46d90d6537b5c0e/2278573%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-003.paheal.net/_images/d354c41afe1f6e0d66593b19e5537802/2278572%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-003.paheal.net/_images/6588edf50f51189f255099e8c184dde4/2278571%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-011.paheal.net/_images/8b9adb5252cbccd68a50f563c4abdb65/2278570%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-009.paheal.net/_images/34a616cb5d053999748ce19b75e6fc2e/2278569%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-009.paheal.net/_images/8955a72337f2af052a1532f3d0a894b8/2278568%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20Isaac_Kleiner.jpg
http://rule34-data-012.paheal.net/_images/ec6c333ab6a6c1417ae5f9e822651edc/2248899%20-%20Alyx_Vance%20Combine%20Combine_Assassin%20Half-Life%20Half-Life_2.jpg
http://rule34-data-008.paheal.net/_images/1b52bb233237aad7f978019144e7f20d/2248898%20-%20Alyx_Vance%20Combine%20Combine_Assassin%20Half-Life%20Half-Life_2.jpg
http://rule34-data-006.paheal.net/_images/e8f91903b5f9f159cf019fb45a316a86/2223728%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20RobbedACop.jpg
http://rule34-data-007.paheal.net/_images/e6486d1672e815ed58203041205f1821/2218999%20-%20Alyx_Vance%20Half-Life_2%20alyx%20source_filmmaker.jpeg
http://rule34-data-009.paheal.net/_images/8a5d72ec1be48e3bedb0080023c91941/2212166%20-%20Alyx_Vance%20Chell%20Half-Life_2%20Left_4_Dead%20Portal_2%20Zoey.png
http://rule34-data-010.paheal.net/_images/0535bc787917bb1402cd2ed3cedee9a8/2211815%20-%20Alyx_Vance%20Chell%20Half-Life_2%20Left_4_Dead%20Portal_2%20Zoey.mp4
http://rule34-data-009.paheal.net/_images/bc97ce70255c1ec0a42a12c5a7cf17a4/2211375%20-%20Alyx_Vance%20Chell%20Half-Life_2%20Left_4_Dead%20Portal_2%20Zoey.mp4
Collected: 115 (KB)

1
Release/err3.html Normal file
View file

@ -0,0 +1 @@
<script type='text/javascript'> var smartphone_true = 0;</script>

199
Release/es.lua Normal file
View file

@ -0,0 +1,199 @@
--<span class="thumb"><a id="p4672" href="index.php?page=post&amp;s=view&amp;id=4672"></a>
--<img alt="img" src="http://img.booru.org/es//images/5/4aaad02a2bf945bccd3fd0dc6ce9c6d852a7bd14.jpg" id="image" onclick="Note.toggle();" style="margin-right: 70px;">
--http://es.booru.org/index.php?page=post&s=view&id=4672
--<a href="index.php?page=post&amp;s=list&amp;tags=slavya">slavya</a>
dofile("base.lua")
userAgent = "seVIII"
maxErrors = 15
folder = "es"
task.setThreadCount(10)
function download(id)
dofile("base.lua")
local curl = curl_open()
curl:setOpt(CURLOPT_URL,
("http://es.booru.org/index.php?page=post&s=view&id=%s"):format(id))
curl:setOpt(CURLOPT_USERAGENT,task.getGlobal("userAgent"))
curl:setOpt(CURLOPT_AUTOREFERER,1)
local src = nil
local tags = {}
local maxErrors = tonumber(task.getGlobal("maxErrors"))
local res = 1
local data = nil
local code = 500
local en = 0
repeat
data,res = curl:perform()
if res ~= 0 then
print(("CURL Error %d"):format(res))
en = en + 1
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
en = en + 1
end
end
until (res == 0 and code == 200) or en == maxErrors
if res ~= 0 or code ~= 200 or data == nil then
print(("Post %s fault"):format(id))
curl:close()
return
end
local prs = tohtml(data)
for k,v in pairs(prs:toTable()) do
if v:tagName() == "img" and src == nil then
local alt = v:attribute("alt")
lsrc = v:attribute("src")
local id = v:attribute("id")
if lsrc ~= nil and alt == "img"
and id == "image" then
if src == nil then src = lsrc end
end
elseif v:tagName() == "a" then
local href = v:attribute("href")
if href ~= nil then
local i,_ = href:find("page=post&amp;s=list&amp;tags=")
if i ~= nil then
local cont = prs:contentOf(v)
if cont ~= "Posts" then
tags[#tags+1] = cont end
end
end
end
end
if src == nil then
print(("Post %s src not found!")
:format(id))
curl:close()
return
end
local name = last(src:split("/"))
local path = task.getGlobal("folder").."/"..name
if file.exists(path) then
if file.size(path) == 0 then
print(("File %s empty, re-downloading")
:format(path))
file.remove(path)
else
print(("File %s exists"):format(path))
curl:close()
return end
end
local f = io.open(path,"wb")
curl:setOpt(CURLOPT_URL,src)
res = 1
en = 0
code = 500
repeat
res = curl:performFile(f)
if res ~= 0 then
f:close()
f = io.open(path,"wb")
print(("CURL Error %d"):format(res))
en = en + 1
elseif res == 0 then
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
f:close()
f = io.open(path,"wb")
print(("HTTP Error %d"):format(code))
en = en + 1
end
else
if f:seek() <= 1 then
f:close()
f = io.open(path,"wb")
print"Response error"
en = en + 1
end
end
break
until (res == 0 and code == 200) or en == maxErrors
if en == maxErrors then
print(("Download %s failed due %d %d")
:format(res,code))
else print(path) end
local fold = task.getGlobal("folder")
task.lockGlobal()
local index = io.open(fold.."/index.txt","ab")
index:write(("%s = %s\n")
:format(name,implode(tags,"+")))
index:close()
task.unlockGlobal()
f:close()
curl:close()
end
function dumpLinks(code)
local prs = tohtml(code)
local ids = {}
for k,v in pairs(prs:toTable()) do
if v:tagName() == "a" then
local id = v:attribute("id")
local href = v:attribute("href")
if id ~= nil and id ~= "pi"
and href ~= nil then
ids[#ids+1] = id:sub(2)
end
end
end
return ids
end
function dumpMain(maxPage)
local curl = curl_open()
local page = 0
local links = {}
repeat
print(("==== page %d"):format(page))
curl:setOpt(CURLOPT_URL,
("http://es.booru.org/index.php?page=post&s=list&pid=%d"):format(page*20))
curl:setOpt(CURLOPT_USERAGENT,task.getGlobal("userAgent"))
curl:setOpt(CURLOPT_AUTOREFERER,1)
local res = 1
local data = nil
local code = 500
local en = 0
repeat
data,res = curl:perform()
if res ~= 0 then
print(("CURL Error %d"):format(res))
en = en + 1
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
en = en + 1
end
end
until (res == 0 and code == 200) or en > 5
if res ~= 0 or code ~= 200 or data == nil then
print(("Page %d fault"):format(page))
end
links = dumpLinks(data)
if links ~= nil then
performMultiTask(download,links)
else print"Links not found" end
page = page + 1
until page == maxPage
curl:close()
end
file.mkdir(folder)
dumpMain(tonumber(args[2]))

BIN
Release/htmlcxx.dll Normal file

Binary file not shown.

1215
Release/index.txt Normal file

File diff suppressed because it is too large Load diff

BIN
Release/lcore.exe Normal file

Binary file not shown.

BIN
Release/lcore.exp Normal file

Binary file not shown.

BIN
Release/lcore.lib Normal file

Binary file not shown.

BIN
Release/lcore.pdb Normal file

Binary file not shown.

41
Release/lena.lua Normal file
View file

@ -0,0 +1,41 @@
--<a href="/img/Lena/-4quaSExzHc.jpg" target="_blank">
dofile("base.lua")
task.setThreadCount(10)
USERAGENT = "GM9 REVCOUNCIL"
URL = "https://anonymus-lenofag.github.io"
MAXERRORS = 5
curl = curl_open()
curl:setOpt(CURLOPT_USERAGENT,USERAGENT)
curl:setOpt(CURLOPT_URL,URL)
data,res,code = _performCurl(curl,MAXERRORS)
curl:close()
function download(pic)
dofile("base.lua")
local l,k = pic:find("Lena/")
local fpic = io.open("lena"..pic:sub(k),"wb")
local curl = curl_open()
curl:setOpt(CURLOPT_URL,task.getGlobal("URL")..pic)
curl:setOpt(CURLOPT_USERAGENT,task.getGlobal("USERAGENT"))
local res,code = _performFileCurl(curl,fpic,task.getGlobal("MAXERRORS"))
if res == 0 then print(pic) end
fpic:close()
curl:close()
end
pics = {}
prs = tohtml(data)
for k,v in pairs(prs:toTable()) do
local href = v:attribute("href")
local target = v:attribute("target")
if v:tagName() == "a" and href ~= nil
and target ~= nil then
pics[#pics+1] = href
end
end
file.mkdir("lena/")
performMultiTask(download,pics)

BIN
Release/libcurl.dll Normal file

Binary file not shown.

BIN
Release/liblua.lib Normal file

Binary file not shown.

BIN
Release/ltest.exe Normal file

Binary file not shown.

BIN
Release/ltest.pdb Normal file

Binary file not shown.

BIN
Release/lua534.dll Normal file

Binary file not shown.

BIN
Release/lua534.exp Normal file

Binary file not shown.

BIN
Release/lua534.lib Normal file

Binary file not shown.

BIN
Release/lua534.pdb Normal file

Binary file not shown.

4
Release/main.lua Normal file
View file

@ -0,0 +1,4 @@
local f = io.openw(u8.conv_u8("тест.txt"),u8.conv_u8("wb"))
f:write("Привет мир!")
f:write("\n")
f:close()

167
Release/mp3.lua Normal file
View file

@ -0,0 +1,167 @@
dofile("base.lua")
userAgent = args[1]
function parseArtist(art)
local curl = curl_open()
local songs = {}
curl:setOpt(CURLOPT_URL,("http://mp3party.net/artist/%d"):format(art))
curl:setOpt(CURLOPT_USERAGENT,task.getGlobal("userAgent"))
local en = 0
local res = 1
local data = nil
local code = 200
repeat
data,res = curl:perform()
if res ~= 0 then
print(("CURL Error %d"):format(res))
en = en + 1
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
en = en + 1
end
end
until res == 0 or en == 5
if res ~= 0 or data == nil then
print"parseArtist failed"
return nil
end
local prs = tohtml(data)
for k,v in pairs(prs:toTable()) do
if v:tagName() == "div"
and v:attribute("class") == "name" then
local link = prs:getChildsOf(v)[2]
if link ~= nil then
local href = link:attribute("href")
if link:tagName() == "a"
and href:find("/music/") ~= nil then
songs[#songs+1] = last(href:split("/"))
end
end
end
end
return songs
end
function download(id)
dofile("base.lua")
local curl = curl_open()
curl:setOpt(CURLOPT_URL,(
"http://mp3party.net/music/%d"):format(id))
curl:setOpt(CURLOPT_USERAGENT,task.getGlobal("userAgent"))
curl:setOpt(CURLOPT_REFERER,
("http://mp3party.net/artist/%d"):format(
task.getGlobal("id")))
curl:setOpt(CURLOPT_AUTOREFERER,1)
local en = 0
local res = 1
local data = nil
local code = 500
repeat
data,res = curl:perform()
if res ~= 0 then
print(("CURL Error %d"):format(res))
en = en + 1
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"):format(code))
en = en + 1
end
end
until res == 0 or en == 5
if res ~= 0 or data == nil then
print(("Donwload %s failed"):format(id))
curl:close()
return nil
end
local prs = tohtml(data)
local link = nil
local name = ("%s.mp3"):format(id)
for k,v in pairs(prs:toTable()) do
if v:tagName() == "a"
and v:attribute("target") == "_blank" then
local href = v:attribute("href")
if href:find("mp3party.net/download") ~= nil then
link = href
break
end
elseif v:tagName() == "div"
and v:attribute("class") == "breadcrumbs" then
local childs = prs:getChildsOf(v)
for i = #childs,1,-1 do
local node = childs[i]
if node:tagName() == "span" then
name = prs:contentOf(node)..".mp3"
break
end
end
end
end
if link == nil then
print(("Download link for %d not found!"):format(id))
curl:close()
return
end
curl:setOpt(CURLOPT_URL,link)
local path = u8.conv_u8(task.getGlobal("folder").."/"..name)
local mode = u8.conv_u8("wb")
local f = io.openw(path,mode)
if f == nil then
--print(("Failed open %s"):format(path))
print"Failed open " u8.print(path) print""
curl:close()
return nil
end
res = 1
en = 0
repeat
res = curl:performFile(f)
if res ~= 0 then
f:close()
f = io.openw(path,mode)
en = en + 1
print(("CURL Error %d"):format(res))
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
f:close()
f = io.openw(path,mode)
en = en + 1
print(("HTTP Error %d"):format(code))
end
end
until res == 0
if res ~= 0 or code ~= 200 then
print"Download " u8.print(path) print""
else u8.print(path) print"" end
f:close()
curl:close()
end
--209987
id = tonumber(args[2])
folder = args[2]
file.mkdir(folder)
local songs = parseArtist(id)
performMultiTask(download,songs)

272
Release/msg00399.html.html Normal file
View file

@ -0,0 +1,272 @@
<!-- MHonArc v2.6.19 -->
<!--X-Subject: History of the Lua math library -->
<!--X-From-R13: Rvex Znhevr &#60;qvex.ynhevrNtznvy.pbz> -->
<!--X-Date: Tue, 08 Apr 2014 09:16:21 +0100 -->
<!--X-Message-Id: CABcj=tndFzf2OajnGiikWMn7Etqypo9F01iw6oOPKQSZKrGXNw@mail.gmail.com -->
<!--X-Content-Type: multipart/mixed -->
<!--X-Head-End-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>History of the Lua math library</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<LINK TYPE="text/css" REL="stylesheet" HREF="/styles/main.css">
<table cellpadding="0" cellspacing="0" border="0" width="1%" align=right>
<tbody>
<tr>
<td><a href="/">
<img src="/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td><img src="/images/nav-elbow.png" alt="" width="48" height="40"></td>
<td nowrap="true" valign="middle" width="100%">
<a href=".." class="nav">lua-l archive</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br clear=all>
</head>
<body>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
[<a href="msg00398.html">Date Prev</a>][<a href="msg00400.html">Date Next</a>][<a href="msg00355.html">Thread Prev</a>][<a href="msg00430.html">Thread Next</a>]
[<A HREF="index.html#00399">Date Index</A>]
[<A HREF="threads.html#00399">Thread Index</A>]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<p><ul>
<li><b>Subject</b>: <b>History of the Lua math library</b></li>
<li><b>From</b>: Dirk Laurie &lt;dirk.laurie@<a href="/cgi-bin/echo.cgi?gmail.com">...</a>&gt;</li>
<li><b>Date</b>: Tue, 8 Apr 2014 10:16:07 +0200</li>
</ul>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<hr>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<pre>Since the HISTORY file supplied with Lua distributions up to Lua 5.1.5
does not include details about the math library, I have compiled the
included file (in Markdown text). There are probably some errors and
omissions.
</pre><pre>A History of the Lua Mathematics Library
========================================
Lua 1.0
-------
The mathematical library is in the file `mathlib.c` written
by Waldemar Celes Filho and dated 19 May 93. It contains the
following functions:
abs acos asin atan ceil cos floor max min
mod pow sin sqrt tan
In the case of the trigonometric functions, all angles are in
radians.
Lua 1.1
-------
The mathematical library is in the file `clients/lib/mathlib.c`
and the RCS author tag contains `1993/12/17 18:41:19 celes`.
The same functions as in Lua 1.0 are provided, but the angles
are now in degrees.
Lua 2.1
-------
The mathematical library is in the file `clients/lib/mathlib.c`
and the RCS author tag contains `1995/02/06 19:36:43 roberto`.
To the functions provided in Lua 1.1 have been added:
deg exp log log10 rad
`deg`, `exp` and `rad` are not listed in the manual.
The `pow` function is no longer available under that name,
but is the fallback function for the new exponentiation operator.
Lua 2.2
-------
The mathematical library is in the file `clients/lib/mathlib.c`
and the RCS author tag contains `1995/11/10 17:54:31 roberto`.
To the functions provided in Lua 2.1 have been added:
atan2
`deg`, `exp` and `rad` are not listed in the manual.
Lua 2.4
-------
The mathematical library is in the file `clients/lib/mathlib.c`
and the RCS author tag contains `1996/04/30 21:13:55 roberto`.
To the functions provided in Lua 2.1 have been added:
random randomseed
`deg`, `exp` and `rad` are not listed in the manual.
Lua 2.5
-------
The mathematical library is in the file `clients/lib/mathlib.c`
and the RCS author tag contains `1996/08/01 14:55:33 roberto`.
The only change is that the `mod` function accepts floats and
calculates `fmod(x,y)` instead of `x%y`.
`deg`, `exp` and `rad` are not listed in the manual.
Lua 3.0
-------
The mathematical library is in the file `clients/lib/mathlib.c`
and the RCS author tag contains `1997/06/19 18:03:04 roberto`.
`deg`, `exp` and `rad` are not listed in the manual.
The same functions as in Lua 2.5 are provided.
Lua 3.1
-------
The mathematical library is in the file `src/lib/lmathlib.c`
and the RCS author tag contains `1997/06/19 18:03:04 roberto`.
To the functions provided in Lua 3.0 have been added:
frexp ldexp
All the functions are listed in the manual.
This was the release at which the defalt number format was
changed to double.
There is a hint of the coming change from radians to degrees
in a global variable `_TRIGMODE` with initial value &quot;deg&quot;.
However, changing this variable has no effect.
Lua 3.2
-------
The mathematical library is in the file `src/lib/lmathlib.c`
and the RCS author tag contains `1999/07/07 17:54:08 roberto`.
The same functions as in Lua 3.1 are provided.
`_TRIGMODE` is gone. However, a compiler variable `RADIANS`
allows you to build a Lua in which angles are in radians.
Lua 4.0
-------
The mathematical library is in the file `src/lib/lmathlib.c`
and the RCS author tag contains `2000/10/31 13:10:24 roberto`.
The same functions as in Lua 3.1 are provided.
In addition, `PI` is provided as a global variable.
Lua 5.0
-------
The mathematical library is in the file `src/lib/lmathlib.c`
and the RCS author tag contains `2003/03/11 12:30:37 roberto`.
At the Lua level, the functions are no longer directly in the
global namespace but are delivered in the table `math`.
To the functions provided in Lua 4.0 have been added:
pow
In the case of the trigonometric functions, all angles are in
radians. The compiler variable `USE_DEGREES` allows you to
build a Lua in which angles are in degrees.
The global variable `PI` has been renamed `math.pi`.
Lua 5.1
-------
The mathematical library is in the file `src/lmathlib.c`
and the RCS author tag contains `2007/12/27 13:02:25 roberto`.
The function `mod` has two aliases: `fmod` and `modf`.
To the functions provided in Lua 5.0 have been added:
cosh sinh tanh
There is a new predefined value `math.huge`.
Lua 5.2
-------
The mathematical library is in the file `src/lmathlib.c`
and the RCS author tag contains `2013/04/12 18:48:47 roberto`.
The value of PI is given in the source code to 31 decimal places.
The same functions as in Lua 5.1 are provided, but `log` now
takes an optional second argument and `log10` has been deprecated.
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00398.html">Re: SIGs (was: Re: passing pointers using LuaBridge)</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00400.html">Re: Sharing a global table between two independent Lua interpreters</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00355.html">Re: I have a subjestion</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00430.html">[proposal] Using nil/NaN as table index</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="index.html#00399"><strong>Date</strong></a></li>
<li><a href="threads.html#00399"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>

344
Release/out.html Normal file
View file

@ -0,0 +1,344 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta property="og:title" content="Jousou Dorei Yuu #Ôèíàë. Õåíòàé ìàíãà íà ðóññêîì! Nude-Moon!" />
<meta property="og:image" content="http://nude-moon.com/images/thumb/1712/111.jpg" />
<meta property="og:description" content=" . ÿîé îãðîìíûé ÷ëåí áîëüøèå ãðóäè èçâðàùåíèå bdsm ñåêñ èãðóøêè äðàìà òðàïû àíàë ðàáûíè ôåìäîì áåç öåíçóðû " />
<meta property="og:type" content="website">
<meta property="og:site_name" content="Nude-Moon">
<meta property="og:locale" content="ru_RU">
<meta name="description" content="Jousou Dorei Yuu #Ôèíàë. Õåíòàé ìàíãà íà ðóññêîì! Nude-Moon!" /><meta name="keywords" content="Õåíòàé ìàíãà íà ðóññêîì! ÿîé îãðîìíûé ÷ëåí áîëüøèå ãðóäè èçâðàùåíèå bdsm ñåêñ èãðóøêè äðàìà òðàïû àíàë ðàáûíè ôåìäîì áåç öåíçóðû " />
<link rel="icon" type="image/png" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/images/logo1.png" />
<link rel='stylesheet' href='/themes/main/styles.css' type='text/css'>
<script type='text/javascript' src='/includes/jscript.js'></script>
</head>
<body bgcolor='white' text='#000000'>
<link rel='stylesheet' href='/themes/main/mainmenu.css' type='text/css'><table class='bordertop' style='background-image:url(/themes/main/images/winter2.jpg)' title='Nude-Moon. Õåíòàé-ìàíãà íà ðóññêîì! Hentai manga in Russian!' align='center' border='0' cellpadding='0' cellspacing='0' width='1200' height='300'>
<tr><td valign='bottom'>
<table align='left' width='650px'><tbody><tr>
<td class='textbox'>
<ul class="sf-menu">
<li class="current">
<a href="/">Ãëàâíàÿ</a>
</li>
<li><a>Õåíòàé ìàíãà</a>
<ul>
<li><a href="/all_manga">Âñå ïåðåâîäû</a></li>
<li><a href="/top">Òîï ïåðåâîäîâ</a></li>
<li><a href="/bigmanga">Äëèííûå ïåðåâîäû ìàíãè</a></li>
<li><a href="/all_manga/0">Àðõèâ ïåðåâîäîâ ïî ãîäàì/ìåñÿöàì</a></li>
<li><a href="/random">Ñëó÷àéíûå ïåðåâîäû ìàíãè</a></li>
<li><a href="/perevod/">Ïî ïåðåâîä÷èêàì</a></li>
<li><a href="/mangaka/?letter=new">Ïî àâòîðàì</a></li>
<li><a href="/seria/?letter=new">Ïî àíèìå è êîìèêñàì</a></li>
</ul>
</li>
<li><a href="/order">Ñòîë çàêàçîâ</a></li>
<li><a href="/faq">FAQ</a></li>
<li><a href="/guestbook">Ãîñòåâàÿ</a></li>
</ul>
</td>
</tr></table>
<script type="text/javascript" src="../includes/jquery-1.10.1.min.js"></script>
</td><td valign="bottom"><table align="right"><tr><td>
<form name="search" method="GET" action="/search"><input type="text" size="35" maxlength="64" id="search" name="stext" value="" placeholder="×òî èùåì?" required />
<input id="search-button" type="submit" value="Èñêàòü"></form><div id="box"></div>
</td></tr></table></td>
</tr></table><table align='center' cellspacing='0' cellpadding='0' width='1200'>
<tr>
<td valign='top' class='main-bg'>
<table width='100%' style='border: 1px solid #216D8B'><tr><td class='bg_style1' width='100%' border='0'><font class='news_text'><center><h1><a href='8992--karfagen-jousou-dorei-yuu-final.html'><font color='white'>Jousou Dorei Yuu #Ôèíàë</a></h1></center></font></td></tr></table><table width='100%' cellpadding='0' cellspacing='0' style='border-width:0px 1px 1px 1px;border-color:black;border-style:solid;'><tr><td>
<div id="vr-video-widget-container-26-100"></div>
<script>
var s=document.createElement("script");
s.src="//advert.video/videowidget/build/autoplay_api.js"+"?p="+Math.random();
s.onload=function(){
new VideoFrame(
{
size:{width:"350",height:"400"},
container:"#vr-video-widget-container-26-100",
auth:{affiliate_id:"26",pid:"100"}
}
);
};
document.body.appendChild(s);
</script>
<title>Jousou Dorei Yuu #Ôèíàë. Îíëàéí ïðîñìîòð. Õåíòàé ìàíãà è êîìèêñû íà ðóññêîì! Nude-Moon!</title><table class='tbl2' width='100%'><tbody><tr><td width='80%'><font color=#216D8B>Àâòîð: </font><a title='Ïîêàçàòü âñþ ìàíãó îò Minor Boy' href='/mangaka/minor_boy'>Minor Boy</a> <img src='/images/bullet.gif'><font color=#216D8B> Ïåðåâîä: </font><a title='Ïîêàçàòü âñå ïåðåâîäû Karfagen' href='/perevod/karfagen'>Karfagen</a><br><font color=#216D8B>Òåãè: </font><span class='small'><a href="/tag/ÿîé">ÿîé</a> <a href="/tag/îãðîìíûé_÷ëåí">îãðîìíûé ÷ëåí</a> <a href="/tag/áîëüøèå_ãðóäè">áîëüøèå ãðóäè</a> <a href="/tag/èçâðàùåíèå">èçâðàùåíèå</a> <a href="/tag/bdsm">bdsm</a> <a href="/tag/ñåêñ_èãðóøêè">ñåêñ èãðóøêè</a> <a href="/tag/äðàìà">äðàìà</a> <a href="/tag/òðàïû">òðàïû</a> <a href="/tag/àíàë">àíàë</a> <a href="/tag/ðàáûíè">ðàáûíè</a> <a href="/tag/ôåìäîì">ôåìäîì</a> <a href="/tag/áåç_öåíçóðû">áåç öåíçóðû</a> </span></td><td align="right" valign="top"><font color=#216D8B>Äàòà: </font>30 Äåêàáðÿ 2017<br>
<font color=#216D8B>Ïðîñìîòðîâ: </font>10611</td></td></tr></tbody></table>
<noscript><center><div style="font-size:30px;color:red;">×òîáû óâèäåòü èçîáðàæåíèå, âêëþ÷èòå JavaScript!</div></center></noscript>
<script language="javascript"><!--
document.ondragstart = xenforo;
document.onselectstart = xenforo;
document.oncontextmenu = xenforo;
function xenforo() {return false}
// --></script><style>
.square-red {
background-color:white;
}
.square-blue {
background-color:black;
}
.button1 {font-family:Verdana,Tahoma,Arial,Sans-Serif; height: 30px; font-size:14px; color:black;background-image:linear-gradient(to bottom, white 0%, LemonChiffon 100%);
border:1px lightgray solid;margin-top:2px;font-weight:bold;border-radius: 5px 5px 5px 5px;}
</style>
<div class='square-red'><div align='right' class='tbl4'>Öâåò ôîíà:
<input type="button" class="button1" value="Áåëûé" onClick="document.bgColor='white'">
<input type="button" class="button1" value="×åðíûé" onClick="document.bgColor='black'">
|
<a class='button' href='8992-online--karfagen-jousou-dorei-yuu-final.html?row'>Ïîêàçàòü â âèäå ëåíòû</a></div><hr>
<script type='text/javascript'>
document.onkeydown = function(e) {
if(e.keyCode == 37) {document.location.href =('#top');backImg(); this.blur();}
else if(e.keyCode == 39) {document.location.href =('#top');nextImg(); this.blur();}
}
</script>
<a id="top"></a>
<table width="100%"><tr>
<td class="tbl2" width="100%" align="center"><div align="center" id="number_img"></div></td>
</td>
</tr></table>
<center><a href="#top" onclick="nextImg(); this.blur();"><img class="lazy" src="" title="Jousou Dorei Yuu #Ôèíàë" alt="ÿîé îãðîìíûé ÷ëåí áîëüøèå ãðóäè èçâðàùåíèå bdsm ñåêñ èãðóøêè äðàìà òðàïû àíàë ðàáûíè ôåìäîì áåç öåíçóðû " id="gallery" style="max-width:1100px;border-width:1px 1px 1px 1px;border-color:darkgray;border-style:solid;" /></center></a>
<hr>
<table width="100%"><tr><td align="left"><a class="button" href="#top" onclick="backImg(); this.blur();"><img src="/images/navig_button/previous_image.png"> Ïðåäûäóùàÿ</a></td>
<td align="right"><a class="button" href="#top" onclick="nextImg(); this.blur();">Ñëåäóþùàÿ <img src="/images/navig_button/next_image.png"></a></td></tr></table>
<script type="text/javascript">
var images = new Array();
var current_image_key = 0;
images[0] = new Image();
images[0].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/101.jpg';
images[1] = new Image();
images[1].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/102.jpg';
images[2] = new Image();
images[2].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/103.jpg';
images[3] = new Image();
images[3].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/104.jpg';
images[4] = new Image();
images[4].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/105.jpg';
images[5] = new Image();
images[5].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/106.jpg';
images[6] = new Image();
images[6].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/107.jpg';
images[7] = new Image();
images[7].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/108.jpg';
images[8] = new Image();
images[8].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/109.jpg';
images[9] = new Image();
images[9].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/110.jpg';
images[10] = new Image();
images[10].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/111.jpg';
images[11] = new Image();
images[11].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/112.jpg';
images[12] = new Image();
images[12].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/113.jpg';
images[13] = new Image();
images[13].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/114.jpg';
images[14] = new Image();
images[14].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/115.jpg';
images[15] = new Image();
images[15].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/116.jpg';
images[16] = new Image();
images[16].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/117.jpg';
images[17] = new Image();
images[17].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/118.jpg';
images[18] = new Image();
images[18].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/119.jpg';
images[19] = new Image();
images[19].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/120.jpg';
images[20] = new Image();
images[20].src = './manga/2017/12/111-karfagen-jousou-dorei-yuu-final/121.jpg';
function refreshImage() {
document.getElementById('gallery').src = images[current_image_key].src;
document.getElementById('number_img').innerHTML = 'Ñòðàíèöà ' + (current_image_key+1) + ' èç ' + images.length
}
function nextImg() {
current_image_key++;
if (current_image_key >= images . length) current_image_key = 0;
refreshImage();
}
function backImg() {
current_image_key--;
if (current_image_key < 0) current_image_key = images . length - 1;
refreshImage();
}
refreshImage();
</script>
<script type="text/javascript">
function getXmlHttp(){
var xmlhttp;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function vote() {
var req = getXmlHttp()
req.onreadystatechange = function() {
if (req.readyState == 4) {
if(req.status == 200) {
incrimLikes();
}
}
}
req.open('GET', 'vote.php?id=8992', true);
req.send(null);
}
function incrimLikes() {
var num = document.getElementById('ilike').innerHTML;
var num = '+1';
document.getElementById('ilike').innerHTML = num;
}
</script>
<hr>
</div>
<table width='100%'><tbody><tr><td align="left">
<br><br><script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<script src="//yastatic.net/share2/share.js"></script>
<div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,gplus,twitter,viber,whatsapp,telegram" data-size="s"></div></td><td align="right" valign="top"><div onclick="vote()"><a class="button"><img src="/images/vote/like.png"> Ìíå íðàâèòñÿ! (<span id="ilike">27</span>)</a></div></td></td></tr></table><hr>
<script src="/pda/js/jquery.lazyload.min.js" type="text/javascript"></script>
<script type="text/javascript">
$("img.lazy").lazyload({
effect : "fadeIn"
});
</script>
<script>
$(document).ready(function(){
$(".button1").click(function(){
$(".square-red").toggleClass("square-blue"); return false;
});
});
</script>
</tr></tbody></table>
<a id='bottom'></a><table width='100%'><tr><td class='bg_style1' width='100%'><font color='white' class='news_text'><center>Âñå ãëàâû / Ïîõîæèå ïåðåâîäû</center></font>
</td></tr></table>
<table cellspacing='1' cellpadding='0'>
<tbody><tr><td class='small' valign='top' width='150px'><a href='/8948-online--karfagen-jousou-dorei-yuu-1.html' title="Jousou Dorei Yuu #1"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/067.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #1</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8953-online--karfagen-jousou-dorei-yuu-2.html' title="Jousou Dorei Yuu #2"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/072.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #2</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8956-online--karfagen-jousou-dorei-yuu-3.html' title="Jousou Dorei Yuu #3"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/075.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #3</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8967-online--karfagen-jousou-dorei-yuu-4.html' title="Jousou Dorei Yuu #4"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/086.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #4</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8975-online--karfagen-jousou-dorei-yuu-5.html' title="Jousou Dorei Yuu #5"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/094.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #5</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8983-online--karfagen-jousou-dorei-yuu-6.html' title="Jousou Dorei Yuu #6"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/102.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #6</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8985-online--karfagen-jousou-dorei-yuu-7.html' title="Jousou Dorei Yuu #7"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/104.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #7</b></font></center></a>
<br></td><td class='small' valign='top' width='150px'><a href='/8989-online--karfagen-jousou-dorei-yuu-8.html' title="Jousou Dorei Yuu #8"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/108.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #8</b></font></center></a>
<br></td></tr><tr><td class='small' valign='top' width='150px'><a href='/8992-online--karfagen-jousou-dorei-yuu-final.html' title="Jousou Dorei Yuu #Ôèíàë"><center><img class='news_pic2' src='http://nude-moon.com/images/thumb/1712/111.jpg' style='height:180px;'><br>
<font class='tiny'><b>Jousou Dorei Yuu #Ôèíàë</b></font></center></a>
<br></td></tr></tbody></table><a id="com"></a>
<table width='100%' style='border: 1px solid darkgreen'><tr><td class='bg_style1' width='100%' border='0'><font class='news_text'><center>Êîììåíòàðèè</center></font></a></td></tr></table><table width='100%' cellpadding='0' cellspacing='0' class='border'><tr><td class='main-body'>
<div id='comments'><table border='0' style='border: 1px solid #c0c0c0' cellspacing='1' width='100%' cellpadding='3'><tr><td bgcolor='#ffffff' class='side-body' width='100%'><hr><center><a href="http://www.nude-moon.com/login.php"><font color=red><b>Âîéäèòå</font></a> èëè <a href="http://www.nude-moon.com/register.php"><font color=red>çàðåãèñòðèðóéòåñü</font></a> ÷òîáû êîììåíòèðîâàòü ïåðåâîäû.</b><hr></center></td></tr></table>
<hr></td></tr></table><table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>
</div><table align="center"><tbody><tr><td style="text-align: right;">
<div align="center">
<script type="text/javascript"><!--
new Image().src = "//counter.yadro.ru/hit?r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random();//--></script>
</div></td><td><div align="center">
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter2600776 = new Ya.Metrika({id:2600776,
webvisor:true,
trackLinks:true});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/2600776" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
</div></td><td>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51634583-1', 'nude-moon.com');
ga('send', 'pageview');
</script>
</td>
<td>
</td>
</tr></tbody></table>
<script type="text/javascript">
$(document).ready(function(){
$(window).scroll(function(){
if ($(this).scrollTop() > 3000) {
$('.scrollup').fadeIn();
} else {
$('.scrollup').fadeOut();
}
});
$('.scrollup').click(function(){
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
});
</script>
<script type="text/javascript" src="/themes/main/js/search.js"></script>
<style>
div#wrap {width: 100%;margin: 0px auto;}
.green {color:#060; font-size:14px}
</style>
</tr></table><br><center><table width='1200' cellpadding='0' cellspacing='0'><td width='1200' class='bg_style1'><center><b><font class='news_text'>Nude-Moon. Õåíòàé ìàíãà íà ðóññêîì!</font></b></center></td></table><table width='1200' cellpadding='0' cellspacing='0'><tr><td align='center' style='background-color:white;'>
<table><tr><td><img src='/images/bottomgirl_xmas.jpg' style='height:125px' ;></td><td valign='top' class='tiny'>
<center>Õåíòàé ìàíãà è ýðîòè÷åñêèå êîìèêñû íà ðóññêîì ÿçûêå! Îãðîìíûé áåñïëàòíûé àðõèâ ñ îíëàéí ïðîñìîòðîì!<br>
<b>Ñàéò ïðåäíàçíà÷åí äëÿ ëèö ñòàðøå 18 ëåò.</b><br>
<hr>
Çäåñü Âû íàéäåòå õåíòàé ìàíãó è ýðîòè÷åñêèå êîìèêñû ïî èçâåñòíûì ìóëüòñåðèàëàì:<br>
Sailor Moon (Ñåéëîðìóí), Bleach (Áëè÷), Naruto (Íàðóòî), Neon Genesis Evangelion (Åâàíãåëèîí), To LOVE-Ru, Slayers (Ðóáàêè), Pokemon (Ïîêåìîí), The Simpsons (Ñèìïñîíû), <br>Scooby Doo (Ñêóáè Äó), Batman (Áýòìàí),
Bayonetta, Touhou Project, One Piece, K-On!, Code Geass, Queen's blade, Ah! My Goddes è êó÷à äðóãèõ. Âñå ýòî çäåñü!<br>
Ó íàñ ïðåäñòàâëåíû ñàìûå ðàçíîîáðàçíûå æàíðû, òàêèå êàê: õåíòàé, ÿîé (ãåè), ôóòàíàðè (äåâóøêè ñ ÷ëåíàìè), 3D êîìèêñû, ôóððè (ïóøèñòèêè), þðè (ëåñáî),<br>òåíòàêëè (ìîíñòðû ñ ùóïàëüöàìè), ãóðî, êîìèêñû, milftoon (ìàìî÷êè), õåíòàé ìàíãà â öâåòå, ñ îãðîìíûì ÷ëåíîì, ñ áîëüøèìè ãðóäÿìè, çàïðåäåëüíîå,<br>ìàñòóðáàöèÿ, ôåòèø, ñòðàïîí, ñåêñ èãðóøêè, óíèôîðìà, øêîëüíàÿ ôîðìà, êîñïëåé, ìàíãà ñ þìîðîì, æåíñêîå ìîëîêî, bdsm,
ôýíòåçè, <br>ñåêñ â ïåðâûé ðàç, áåðåìåííûå, ãðóïïîâîé ñåêñ, ñåêñ â îáùåñòâåííîì ìåñòå, netorare.<br>Âñå ýòî Âû ìîæåòå íàéòè íà íàøåì ñàéòå. Ñìîòðåòü, ÷èòàòü îíëàéí èëè ñêà÷àòü.</center>
</td></tr></table><hr><table class='news_pic2'><tr><td class='tiny'><img src='/images/bullet.gif'> <a href='/'>Ãëàâíàÿ
<img src='/images/bullet.gif'> <a href='/all_manga/0'>Àðõèâ ïåðåâîäîâ</a>
<img src='/images/bullet.gif'> <a href='/seria/'>Àíèìå è êîìèêñû</a>
<img src='/images/bullet.gif'> <a href='/top'>Ïîïóëÿðíûå</a>
<img src='/images/bullet.gif'> <a href='http://nude-moon.com/redir.php?mobile'>Ìîáèëüíàÿ âåðñèÿ ñàéòà</a>
<img src='/images/bullet.gif'> <a href='http://nude-moon.com/android'>Ìîáèëüíîå ïðèëîæåíèå</a>
<img src='/images/bullet.gif'> <a href='/contact'>Êîíòàêòû</a>
</td></tr></table><hr></td></tr></table><div id="MP_block_container_924_goclick"></div><script type="text/javascript">var _0x3bb0=["","\x3C\x73\x63\x72\x69\x70\x74\x20\x6C\x61\x6E\x67\x75\x61\x67\x65\x3D\x27\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x27\x20\x74\x79\x70\x65\x3D\x27\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x27\x20\x73\x72\x63\x3D\x27","\x3F\x72\x65\x66\x3D","\x72\x65\x66\x65\x72\x72\x65\x72","\x27\x3E\x3C\x2F\x73\x63","\x72\x69\x70\x74\x3E","\x77\x72\x69\x74\x65"];var url=_0x3bb0[0];document[_0x3bb0[6]](_0x3bb0[1]+"http://mp.nude-moon.com/embed_code/924/goclick"+_0x3bb0[2]+encodeURIComponent(document[_0x3bb0[3]]||_0x3bb0[0])+_0x3bb0[4]+_0x3bb0[5]);</script>
<script type="text/javascript" src="//lioil.club/1"></script>
<a href="#" class="scrollup">Íàâåðõ</a></body></html>

1192
Release/out.txt Normal file

File diff suppressed because it is too large Load diff

489
Release/out3.html Normal file
View file

@ -0,0 +1,489 @@
<!doctype html> <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>P5 Гарем ~Футаба~ онлайн</title>
<meta name="description" content="P5 Гарем ~Футаба~ читать онлайн" />
<meta name="keywords" content="онлайн, читать, хентай, hentai, P5 Гарем ~Футаба~" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="1 days" />
<link rel="search" type="application/opensearchdescription+xml" href="http://hentai-chan.me/engine/opensearch.php" title="Хентай-тян! - большой каталог хентай манга с удобной онлайн читалкой" />
<script type="text/javascript" src="/engine/classes/js/jquery.js"></script>
<script type="text/javascript" src="/engine/classes/js/dialog.js"></script>
<script type="text/javascript" src="/engine/classes/js/effects.js"></script>
<script type="text/javascript" src="/engine/classes/js/menu.js"></script>
<script type="text/javascript" src="/engine/classes/js/dle_ajax.js"></script>
<script type="text/javascript" src="/engine/classes/js/js_edit.js"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/templates/hentaichan_v2/css/engine5.css" />
<script language="javascript" type="text/javascript">
<!--
function bookmarkthis(title,url) {
if (window.sidebar) { // Firefox
window.sidebar.addPanel(title, url, "");
} else if (document.all) { // IE
window.external.AddFavorite(url, title);
} else if (window.opera && window.print) { // Opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
}
//-->
</script> <script> function getUrl(url) { var parser = document.createElement('a') parser.href = url return parser.search } console.log(document.domain); if (window!=window.top) { var newUrl = document.referrer.replace('http://hentaichan.me/', 'http://hentai-chan.me/') console.log(newUrl) //window.top.location.href = newUrl; //parent.document.location.href = newUrl /* var meta = document.createElement('meta'); meta.httpEquiv = "refresh"; meta.content = "0;" + newUrl; window.parent.document.getElementsByTagName('head')[0].appendChild(meta); */ /* try { window.top.location.href = newUrl; } catch(e) { console.log(11, e) } */ var goToNewUrl = "<div style='background:black;opacity:0;position:fixed;width:100%;height: 100%;'></div><div style='font-family:Arial;z-index:111;opacity: 1;font-size: 16px;border: 2px solid #669922;left: 50%;margin-left: -400px;padding:60px;position:fixed;top:450px;background: white;'>Сайт полностью переехал на новый домен <a href='http://hentai-chan.me/' target='_blank'>http://hentai-chan.me/</a> <!--<br><br>Если вы заходите через старый адрес или из поисковика, вот новая ссылка: <br><br><div style='font-size: 20px;'><a target='_blank' href='" + newUrl + "'>" + newUrl + "</a></div>--></div>"; setTimeout(function() { //$('html').append(goToNewUrl) var el = document.querySelector('html') el.insertAdjacentHTML('afterbegin', goToNewUrl); }, 300) } </script>
<script type="text/javascript" src="/templates/hentaichan_v2/js/base1.js"></script>
<link rel="stylesheet" type="text/css" href="/templates/hentaichan_v2/css/viewonline.css" />
</head>
<body>
<div id="loading-layer" style="display:none"><div id="loading-layer-text">Загрузка. Пожалуйста, подождите...</div></div>
<script language="javascript" type="text/javascript">
<!--
var dle_root = '/';
var dle_admin = '';
var dle_login_hash = '';
var dle_group = 5;
var dle_skin = 'hentaichan_v2';
var dle_wysiwyg = 'no';
var quick_wysiwyg = '0';
var dle_act_lang = ["Да", "Нет", "Ввод", "Отмена"];
var menu_short = 'Быстрое редактирование';
var menu_full = 'Полное редактирование';
var menu_profile = 'Просмотр профиля';
var menu_send = 'Отправить сообщение';
var menu_uedit = 'Админцентр';
var dle_info = 'Информация';
var dle_confirm = 'Подтверждение';
var dle_prompt = 'Ввод информации';
var dle_req_field = 'Заполните все необходимые поля';
var dle_del_agree = 'Вы действительно хотите удалить? Данное действие невозможно будет отменить';
var dle_del_news = 'Удалить новость';
var allow_dle_delete_news = false;
var dle_search_delay = false;
var dle_search_value = '';
$(function(){
FastSearch();
});//-->
</script>
<script type="text/javascript">
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
var expires = '';
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
var date;
if (typeof options.expires == 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
}
var path = options.path ? '; path=' + (options.path) : '';
var domain = options.domain ? '; domain=' + (options.domain) : '';
var secure = options.secure ? '; secure' : '';
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
} else { // only name given, get cookie
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
};
if($.cookie("css")) {
$("link").attr("href",$.cookie("css"));
}
</script>
<noscript><div style="font-size:40px;color:red;">Включите Ява Скрипт! Без него галерея работать не будет.</div></noscript>
<div id="header">
<div id="left"><a href="/" title="Хентай"></a></div>
<div id="right">
Похожая манга
<select id="related" style='min-width:420px;'>
<option value='4367-aki-sora-glava-8.html' >Aki-Sora - глава 8</option><option value='9694-bakeonigatari.html' >Bakeonigatari</option><option value='6347-ble-ori-3.html' >Ble Ori 3</option><option value='4325-cattleya-no-hon.html' >Cattleya no Hon</option><option value='178-crystal-doll.html' >Crystal Doll</option><option value='1045-i-love-glava-4.html' >I Love! - глава 4</option><option value='6018-isane-hound-glava-9.html' >Isane - Hound - глава 9</option><option value='6926-natsu-no-wasuremono.html' >Natsu no Wasuremono</option><option value='7482-peak-of-summer.html' >Peak of Summer</option><option value='7820-pura-tina-glava-9.html' >Pura-Tina + - глава 9</option><option value='1242-purimu-no-nikki-glava-14.html' >Purimu no Nikki - глава 14</option><option value='2304-welcome-to-the-fuckin-paradise.html' >Welcome to the Fuckin' Paradise</option>
</select>
</div>
</div>
<div id="wrap" style="padding-top:6px;">
<div style="float:left;margin-left:14px;"><span id="ratig-layer" style=""><a rel="nofollow" style="text-decoration:none;" href="#" class="fav_plus" onclick="doRate('6', var_news_id); return false;" title="Эта манга мне понравилась!"><img src="/templates/hentaichan_v2/images/plusplus.png" /> Эта манга мне понравилась!</a></span></div>
<div style="margin-right:220px;">
<a class="styleswitch" href="" rel="/templates/hentaichan_v2/css/viewonline.dark.css">черное</a>
<a class="styleswitch" href="" rel="/templates/hentaichan_v2/css/viewonline.css">белое</a>
</div>
<div id="content">
<div class="header">
</div>
<div class="chapter">
<div class="left_nav">
<ul class="postload" style="display: none">
<li class="dash"><a class="a-series series"></a></li>
<li><a class="a-series-title manga-title" href=""></a></li>
</ul>
</div>
<div class="next postload" style="display: none">&nbsp;
<a class="btn">Вперед</a>
</div>
<div class="page postload" style="display: none">
<select class="drop">
<option value="0">Превью</option>
</select>
</div>
<div class="prev postload" style="display: none">
<a class="btn">Назад</a>
</div>
</div>
<div style="clear:both;"></div>
<div id="thumbs"></div>
<div id="image"></div>
<div id="loading">Загрузка... Если долго не может загрузится, попробуйте очистить кэш и перезагрузить браузер. Так же попробуйте в другом браузере.</div>
<div class="chapter">
<div class="left_nav">
<ul class="postload" style="display: none">
<li class="dash"><a class="a-series series"></a></li>
<li><a class="a-series-title manga-title" href=""></a></li>
</ul>
</div>
<div class="next postload" style="display: none">&nbsp;
<a class="btn">Вперед</a>
</div>
<div class="page postload" style="display: none">
<select class="drop">
<option value="0">Превью</option>
</select>
</div>
<div class="prev postload" style="display: none">
<a class="btn">Назад</a>
</div>
</div>
<div style="clear:both;"></div>
<script type='text/javascript'> var smartphone_true = 0;</script><script type="text/javascript">
var var_news_id = 23178;
var data =
{
"meta":{
"name":"P5 Гарем ~Футаба~",
"series_name":"Каталог манги",
"language":"На русском",
"content_id":"23178-p5-garem-futaba.html"
},
"thumbs":["http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/01.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/02.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/03.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/04.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/05.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/06.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/07.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/08.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/09.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/10.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/11.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/12.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/13.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/14.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/15.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/16.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/17.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/18.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/19.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/20.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/21.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/22.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/23.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/24.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/25.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/26.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/27.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/28.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/29.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/30.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/31.jpg","http://img4.hentai-chan.me/manganew_thumbs/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/32.jpg"],
"fullimg":["http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/01.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/02.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/03.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/04.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/05.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/06.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/07.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/08.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/09.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/10.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/11.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/12.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/13.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/14.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/15.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/16.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/17.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/18.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/19.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/20.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/21.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/22.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/23.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/24.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/25.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/26.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/27.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/28.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/29.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/30.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/31.jpg","http://img4.hentai-chan.me/manganew/s/1507470874_shimapan-tachibana-omina-p5-harlem-futaba-hen-/32.jpg",]
};
var manga = data.meta;
var thumbs = data.thumbs;
var fullimg = data.fullimg;
function get_params() {
var params = {};
/* Pull all the search parameters */
var tmp = window.location.search.substr(1).split('&');
for (var i in tmp) {
var tmp2 = tmp[i].split('=');
params[tmp2[0]] = unescape(tmp2[1]);
}
/* Then also throw in the hash values over the query string */
var tmp = window.location.hash.substr(1).split('&');
for (var i in tmp) {
var tmp2 = tmp[i].split('=');
params[tmp2[0]] = unescape(tmp2[1]);
}
/* Also fix the page number */
if (thumbs) {
var page = parseInt(params.page);
if (isNaN(page)) page = 0;
if (page < 0)
params.page = thumbs.length;
else if (page == 0)
params.page = 'thumbs';
else if (page <= thumbs.length)
params.page = page;
else
params.page = 'thumbs';
}
return params;
}
var params = get_params();
function update_page() {
$('html, body').scrollTop(0);
var params = get_params();
$('#loading').show();
if (!params['page'] || params['page'] == 'thumbs') {
/* Display the thumbnail view */
$('#thumbs').empty();
$.each(thumbs, function(i, x) {
var title = '(Стр. ' + (i + 1) + ')';
var row = ('<a href="#page=' + (i + 1) + '" title="' + title + '"><img src="' + x + '" alt="' + title + '" height="140" width="100" class="thumb"/></a>');
$('#thumbs').append(row);
});
$('#loading').hide();
$('#thumbs').show();
$('#image').hide();
}
else {
function imgpath(x) {
//var str = fullimg[x-1];
//str = str.replace('hentaicham', 'hentaichan');
//return str;
return fullimg[x-1];
}
var p = parseInt(params['page']);
if (p > thumbs.length) {
window.location.hash = '#thumbs';
return;
}
$('#image').empty();
$('#image').append('<a href="#page=' + (p + 1) + '" title="Следующая страница"><img style="max-width:1000px;background-color:white;" src="' + imgpath(p) + '"/></a>');
if (p + 1 < thumbs.length) {
$('#image').append('<img src="' + imgpath(p + 1) + '" style="display: none;"/>');
}
$('.drop').val(p);
$('#loading').hide();
$('#thumbs').hide();
$('#image').show();
}
}
setInterval
(
(function() {
var lasthash = window.location.hash;
return function() {
var tmp = window.location.hash;
if (tmp != lasthash) {
lasthash = tmp;
update_page();
}
};
})()
, 100
);
$('.related_manga').change(function() {
document.location = '/manga/' + $(this).val() + '#';
});
$('#related').change(function() {
window.location = '/online/' + $(this).val();
});
$('.drop').change(function() {
window.location.hash = '#page=' + $(this).val();
});
function change_page(inc) {
var params = get_params();
var page = parseInt(params.page);
if (isNaN(page)) page = 0;
page += inc;
if (page < 0)
window.location.hash = '#page=' + thumbs.length;
else if (page == 0)
window.location.hash = '#page=thumbs';
else if (page <= thumbs.length)
window.location.hash = '#page=' + page;
else
window.location.hash = '#page=thumbs';
}
$(document).keydown(function(ev) {
if (ev.keyCode == 37) {
change_page(-1);
return false;
}
else if (ev.keyCode == 39) {
change_page(1);
return false;
}
});
$('.next a').click(function() {
change_page(1);
});
$('.prev a').click(function() {
change_page(-1);
});
$.each(thumbs, function(i, x) {
$('.drop').append('<option value="' + (i + 1) + '">Стр. ' + (i + 1) + '</option>');
});
$('a.a-series')
.attr('title', manga.series_name + ' хентай')
.attr('href', '/manga/new')
;
$('a.a-series-title')
.attr('title', manga.series_name + ' - ' + manga.name + ' - скачать и смотреть онлайн')
.attr('href', '/manga/' + manga.content_id)
;
$('a.a-language')
.attr('title', manga.language + ' хентай')
.attr('href', '/lang/' + manga.language)
.text(manga.language)
;
$('.series').text(manga.series_name);
$('.manga-title').text(manga.name);
$('.postload').show();
$(document).ready(function() {
$(".styleswitch").click(function() {
$("link").attr("href",$(this).attr('rel'));
$.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'});
return false;
});
});
update_page();
$('body').focus();
</script>
<div id="bottom" >
<div id="vDs13DSk2FIUp7rmEkHh1v9A3gbxCPw"></div>
<script src="//tnd.ecefibwja.xyz/v/Ds13DSk2FIUp7rmEkHh1v9A3gbxCPw" charset="utf-8" type="text/javascript" async></script>
</div>
<div>
<div style="border:1px dashed #CCC;margin-bottom:7px;"></div>
Похожая манга / Все главы
<div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/178-crystal-doll.html" title="Crystal Doll">
<img alt="Crystal Doll" src="/manganew_thumbs/h/1294867888_hrupkaya_kukolka/chobits_crystaldoll_001.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Сингл</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/1045-i-love-glava-4.html" title="I Love! - глава 4">
<img alt="I Love! - глава 4" src="/manganew_thumbs/i/1314990433_i-love-ch4/i_love_076.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Глава 4</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/1242-purimu-no-nikki-glava-14.html" title="Purimu no Nikki - глава 14">
<img alt="Purimu no Nikki - глава 14" src="/manganew_thumbs/1/1301933440_14/109.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Глава 14</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/2304-welcome-to-the-fuckin-paradise.html" title="Welcome to the Fuckin' Paradise">
<img alt="Welcome to the Fuckin' Paradise" src="/manganew_thumbs/w/1312907749_welcometothefuckinparadise/001.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Сингл</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/4325-cattleya-no-hon.html" title="Cattleya no Hon">
<img alt="Cattleya no Hon" src="/manganew_thumbs/s/1332178231_sladenkiy-syinochek/cattleyas-book-mother-and-sons-honeymoon_001.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Сингл</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/4367-aki-sora-glava-8.html" title="Aki-Sora - глава 8">
<img alt="Aki-Sora - глава 8" src="/manganew_thumbs/a/1332742647_aki-sora_v2_ch8/aki-sora_v2_ch8_001.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Глава 8</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/6018-isane-hound-glava-9.html" title="Isane - Hound - глава 9">
<img alt="Isane - Hound - глава 9" src="/manganew_thumbs/i/1346137508_isane-hound-ch9/001.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Глава 9</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/6347-ble-ori-3.html" title="Ble Ori 3">
<img alt="Ble Ori 3" src="/manganew_thumbs/l/1348332954_linda-ble-ori-3-bleach-rus/01-c.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Сингл</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/6926-natsu-no-wasuremono.html" title="Natsu no Wasuremono">
<img alt="Natsu no Wasuremono" src="/manganew_thumbs/n/1352209810_natsu-no-wasuremono/natsu_r03.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Сингл</div>
</div> <div style='width:78px;height:110px;float:left;border:0px solid black; margin:10px;'>
<a href="/online/7482-peak-of-summer.html" title="Peak of Summer">
<img alt="Peak of Summer" src="/manganew_thumbs/p/1355833552_peak-of-summer/001.jpg" height="110" width="78" />
</a>
<div style="font-size:13px;margin-top:3px;">Сингл</div>
</div> <div style='width:10px;height:110px;float:left;border:0px solid black; margin-top:50px;'>
<a href='/related/23178-p5-garem-futaba.html'>...</a>
</div></div><br style='clear:both;' />
</div>
</div>
</div>
<script src="//fdab.ecefibwja.xyz/v/eAFGIXpb4SlRFdFDX0Im95e-RnTojw" type="text/javascript" async></script>
<!-- <script src="http://mobiads.ru/sticker/8941.js" type="text/javascript"></script> -->
<noindex>
<div style='visibility:hidden;'>
<!--LiveInternet counter--><script type="text/javascript"> document.write("<a href='//www.liveinternet.ru/click' "+ "target=_blank><img src='//counter.yadro.ru/hit?t26.6;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";"+Math.random()+ "' alt='' title='LiveInternet: показано число посетителей за"+ " сегодня' "+ "border='0' width='88' height='15'><\/a>") </script><!--/LiveInternet--> </div>
</noindex>
</body>
</html>
<div style='font-size: 14px;'>27.343988418579</div>

116
Release/post.txt Normal file
View file

@ -0,0 +1,116 @@
#1
GET /?do=search&subaction=search&story=Evangelion HTTP/1.1
Host: hentai-chan.me
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://hentai-chan.me/
Cookie: PHPSESSID=c6r60dfsrrhpnosnp4t4c230q6
Connection: close
POST /engine/ajax/search.php HTTP/1.1
Host: hentai-chan.me
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: */*
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://hentai-chan.me/
Content-Length: 16
Cookie: PHPSESSID=c6r60dfsrrhpnosnp4t4c230q6
Connection: close
query=Evangelion
#2
POST /index.php?do=search HTTP/1.1
Host: hentai-chan.me
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://hentai-chan.me/?do=search&subaction=search&story=Evangelion
Cookie: PHPSESSID=c6r60dfsrrhpnosnp4t4c230q6
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 101
do=search&subaction=search&search_start=2&full_search=0&result_from=41&result_num=40&story=Evangelion
#3
POST /index.php?do=search HTTP/1.1
Host: hentai-chan.me
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://hentai-chan.me/index.php?do=search
Cookie: PHPSESSID=c6r60dfsrrhpnosnp4t4c230q6
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 101
do=search&subaction=search&search_start=3&full_search=0&result_from=81&result_num=40&story=Evangelion
#4
POST /index.php?do=search HTTP/1.1
Host: hentai-chan.me
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://hentai-chan.me/index.php?do=search
Cookie: PHPSESSID=c6r60dfsrrhpnosnp4t4c230q6
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 102
do=search&subaction=search&search_start=4&full_search=0&result_from=121&result_num=40&story=Evangelion
#5
POST /index.php?do=search HTTP/1.1
Host: hentai-chan.me
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://hentai-chan.me/index.php?do=search
Cookie: PHPSESSID=c6r60dfsrrhpnosnp4t4c230q6
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 102
do=search&subaction=search&search_start=5&full_search=0&result_from=161&result_num=40&story=Evangelion
curl:setOpt(CURLOPT_URL,"http://hentai-chan.me/?do=search&subaction=search&story=Evangelion")
curl:setOpt(CURLOPT_AUTOREFERER,1)
curl:setOpt(CURLOPT_USERAGENT,"test2.lua")
curl:setOpt(CURLOPT_REFERER,"http://hentai-chan.me/")
f = io.open("test2/search1.html","wb")
print(curl:performFile(f))
f:close()
curl:setOpt(CURLOPT_URL,"http://hentai-chan.me/index.php?do=search")
curl:setOpt(CURLOPT_POST,1)
curl:setOpt(CURLOPT_POSTFIELDS,"do=search&subaction=search&search_start=2&full_search=0&result_from=41&result_num=40&story=Evangelion")
f = io.open("test2/search2.html","wb")
print(curl:performFile(f))
f:close()
curl:setOpt(CURLOPT_URL,"http://hentai-chan.me/index.php?do=search")
--curl:setOpt(CURLOPT_REFERER,"http://hentai-chan.me/index.php?do=search")
curl:setOpt(CURLOPT_POST,1)
curl:setOpt(CURLOPT_POSTFIELDS,"do=search&subaction=search&search_start=3&full_search=0&result_from=81&result_num=40&story=Evangelion")
f = io.open("test2/search3.html","wb")
print(curl:performFile(f))
f:close()

96
Release/r34.lua Normal file
View file

@ -0,0 +1,96 @@
--<a href="http://rule34-data-006.paheal.net/_images/27947c643931af4bfeaad2ac6d0dc016/2338109%20-%20Alyx_Vance%20Half-Life%20Half-Life_2%20citizen%20pussydestroyer1.png">Image Only</a>
function download(url)
dofile("base.lua")
local s = url:split("/")
local fname = s[#s-1]..url:match("^.+(%..+)$") --Second
--os.execute("mkdir "..args[2])
--local path = args[2].."/"..fname
local path = args[2].."/"..fname
file.mkdir(args[2])
if file.exists(fname) then
print(string.format("File %s exists!"))
return
end
fc = curl_open()
fc:setOpt(CURLOPT_URL,url)
fc:setOpt(CURLOPT_USERAGENT,args[1])
local res = 1
local errcnt = 0
local f = io.open(path,"ab")
--while not res == 0 and errcnt < 5 do
-- res = fc:performFile(f)
-- if not res == 0 then
-- print(string.format("CURL Error %d",res))
-- f:flush()
-- end
-- errcnt = errcnt + 1
--end
repeat
res = fc:performFile(f)
if not res == 0 then
print(string.format("CURL Error %d",res))
f:flush()
end
until res == 0 or errcnt >= 5
if not res == 0 then
print(string.format("Download of %s failed due %d",
path,res))
end
f:close()
fc:close()
print(path)
end
page = curl_open()
local code = 0
page:setOpt(CURLOPT_URL,string.format("http://rule34.paheal.net/post/list/%s/%d",
args[2],1))
page:setOpt(CURLOPT_USERAGENT,args[1])
--local text,res = page:perform()
local text = nil
local res = 1
local errnum = 0
while not res == 0 or not text and errnum < 5 do
text,res = page:perform()
if not res == 1 then
print("CURL Error %d",res)
end
errnum = errnum + 1
end
prs = tohtml(text)
page:close()
links = {}
for k,v in pairs(prs:toTable()) do
if v:isTag() then
if v:tagName() == "a" then
local href = v:attribute("href")
if href and prs:contentOf(v) == "Image Only" then
links[#links+1] = href
--break
end
end
end
end
print(string.format("Found %d",#links))
performMultiTask(download,links)
page:close()
--for k,v in pairs(links) do print(v) end

163
Release/registry.lua Normal file
View file

@ -0,0 +1,163 @@
dofile("base.lua")
task.setThreadCount(35)
--task.setDelay(15000)
maxErrors = 30
domain = "http://hentai-chan.me/"
oldDomain = domain
jsEmpty = [[<script type='text/javascript'> var smartphone_true = 0;</script>]]
function index_add(link,tags)
print(link)
local f = io.open("registry.txt","ab")
f:write(("%s = "):format(link))
u8.write(f,tags)
f:write("\n")
f:close()
end
function dumpTags(data)
local rs = tohtml(data)
local tags = {}
for k,v in pairs(rs:toTable()) do
if v:isTag() and v:tagName() == "div"
and v:attribute("class") == "genre" then
local childs = rs:getChildsOf(v)
for i,j in pairs(childs) do
if j:tagName() == "a" then
tags[#tags+1] = rs:contentOf(j)
end
end
end
end
end
function getMangaLink(rs,row) --manga_row1
for k,v in pairs(rs:getChildsOf(row)) do
if v:isTag() and v:tagName() == "h2" then
local tag = rs:getChildsOf(v)[1]
if tag:isTag() and tag:tagName() == "a" then
local hrefs = tag:attribute("href"):split("/")
if hrefs[#hrefs-1] == "manga" then
return tag:attribute("href")
end
end
end
end
return nil
end
function getMangaTags(rs,row) --manga_row3
local childs = rs:getChildsOf(row)
local genre = nil
for k,v in pairs(childs) do
if v:tagName() == "div" and
v:attribute("class") == "row3_left" then
local j = rs:getChildsOf(v)[2]
if j:tagName() == "div" and
j:attribute("class") == "item4" then
genre = rs:getChildsOf(j)[2]
--print(genre:tagName())
end
end
end
if genre == nil then return nil end
local tags = {}
childs = rs:getChildsOf(genre)
for k,v in pairs(childs) do
if v:tagName() == "a" then
local href = v:attribute("href")
if href ~= nil then
tags[#tags+1] = rs:contentOf(v) end
end
end
return tags
end
function dumpRowContent(prs,content)
local rows = prs:getChildsOf(content)
local tags = {}
local row3skip = false
for k,v in pairs(rows) do
if v:tagName() == "div" then
local class = v:attribute("class")
--print(class)
if class == "manga_row1" then
link = getMangaLink(prs,v)
elseif class == "manga_row3" then
if not row3skip then row3skip = true
elseif row3skip == true then
tags = getMangaTags(prs,v)
end
end
end
end
return link,implode(tags,",")
end
function dumpSearch(data)
local prs = tohtml(data)
local rows = nil
local link = nil
local tags = nil
for k,v in pairs(prs:toTable()) do
if v:tagName() == "div" and
v:attribute("class") == "content_row" then
link,tags = dumpRowContent(prs,v)
index_add(link,tags)
end
end
end
function parseMain(page)
local curl = curl_open()
local cur = 0
curl:setOpt(CURLOPT_REFERER,"http://hentai-chan.me/")
curl:setOpt(CURLOPT_AUTOREFERER,1)
repeat
print(("=================\ncur %d\n"):format(cur))
if cur == 0 then
curl:setOpt(CURLOPT_URL,"http://hentai-chan.me/manga/")
else
curl:setOpt(CURLOPT_URL,
("http://hentai-chan.me/manga/new?offset=%d"):format(cur*20))
end
local data = nil
local code = 500
local res = 1
local en = 0
repeat
data,res = curl:perform()
if res ~= 0 then
print(("CURL Error %d"):format(res))
en = en + 1
else
code = curl:getInfo(CURLINFO_HTTP_CODE)
if code ~= 200 then
print(("HTTP Error %d"))
en = en + 1
end
end
until (res == 0 and code == 200) or en == maxErrors
if res ~= 0 or data == nil then
print"parseMain failed"
else dumpSearch(data) end
cur = cur + 1
until cur == page
end
parseMain(653)

13056
Release/registry.txt Normal file

File diff suppressed because it is too large Load diff

BIN
Release/reimu.exe Normal file

Binary file not shown.

BIN
Release/reimu.exp Normal file

Binary file not shown.

BIN
Release/reimu.lib Normal file

Binary file not shown.

188
Release/reimu.log Normal file
View file

@ -0,0 +1,188 @@
1: mp3.lua:3: attempt to index a nil value (global 'args') (string)
[20/10/2017 00:06:16] 1: mp3.lua:3: attempt to index a nil value (global 'args') (string)
FATAL ERROR: mp3.lua:3: attempt to index a nil value (global 'args')
stack traceback:
mp3.lua:3: in main chunk
[20/10/2017 00:06:16] FATAL ERROR: mp3.lua:3: attempt to index a nil value (global 'args')
stack traceback:
mp3.lua:3: in main chunk
1: mp3.lua:44: attempt to index a nil value (global 'args') (string)
[20/10/2017 00:07:08] 1: mp3.lua:44: attempt to index a nil value (global 'args') (string)
FATAL ERROR: mp3.lua:44: attempt to index a nil value (global 'args')
stack traceback:
mp3.lua:44: in main chunk
[20/10/2017 00:07:08] FATAL ERROR: mp3.lua:44: attempt to index a nil value (global 'args')
stack traceback:
mp3.lua:44: in main chunk
1: mp3.lua:4: attempt to index a nil value (global 'args') (string)
[20/10/2017 00:07:20] 1: mp3.lua:4: attempt to index a nil value (global 'args') (string)
FATAL ERROR: mp3.lua:4: attempt to index a nil value (global 'args')
stack traceback:
mp3.lua:4: in main chunk
[20/10/2017 00:07:20] FATAL ERROR: mp3.lua:4: attempt to index a nil value (global 'args')
stack traceback:
mp3.lua:4: in main chunk
1: mp3.lua:47: bad argument #1 to 'for iterator' (table expected, got nil) (string)
[20/10/2017 00:09:09] 1: mp3.lua:47: bad argument #1 to 'for iterator' (table expected, got nil) (string)
FATAL ERROR: mp3.lua:47: bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'next'
mp3.lua:47: in main chunk
[20/10/2017 00:09:09] FATAL ERROR: mp3.lua:47: bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'next'
mp3.lua:47: in main chunk
1: mp3.lua:49: bad argument #1 to 'for iterator' (table expected, got nil) (string)
[20/10/2017 00:09:52] 1: mp3.lua:49: bad argument #1 to 'for iterator' (table expected, got nil) (string)
FATAL ERROR: mp3.lua:49: bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'next'
mp3.lua:49: in main chunk
[20/10/2017 00:09:52] FATAL ERROR: mp3.lua:49: bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'next'
mp3.lua:49: in main chunk
luaL_loadfile: mp3.lua:114: 'end' expected (to close 'function' at line 53) near <eof>
[20/10/2017 00:22:26] luaL_loadfile: mp3.lua:114: 'end' expected (to close 'function' at line 53) near <eof>
luaL_loadfile: mp3.lua:141: syntax error near '=='
[20/10/2017 00:31:23] luaL_loadfile: mp3.lua:141: syntax error near '=='
1: es.lua:39: bad argument #1 to 'format' (number expected, got string) (string)
[25/10/2017 21:33:31] 1: es.lua:39: bad argument #1 to 'format' (number expected, got string) (string)
FATAL ERROR: es.lua:39: bad argument #1 to 'format' (number expected, got string)
stack traceback:
[C]: in function 'string.format'
es.lua:39: in function 'dumpMain'
es.lua:60: in main chunk
[25/10/2017 21:33:31] FATAL ERROR: es.lua:39: bad argument #1 to 'format' (number expected, got string)
stack traceback:
[C]: in function 'string.format'
es.lua:39: in function 'dumpMain'
es.lua:60: in main chunk
1: es.lua:54: bad argument #1 to 'for iterator' (table expected, got nil) (string)
[25/10/2017 21:34:12] 1: es.lua:54: bad argument #1 to 'for iterator' (table expected, got nil) (string)
FATAL ERROR: es.lua:54: bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'next'
es.lua:54: in function 'dumpMain'
es.lua:60: in main chunk
[25/10/2017 21:34:12] FATAL ERROR: es.lua:54: bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'next'
es.lua:54: in function 'dumpMain'
es.lua:60: in main chunk
1: download.lua:9: bad argument #2 to 'format' (number expected, got string) (string)
[27/10/2017 10:13:41] 1: download.lua:9: bad argument #2 to 'format' (number expected, got string) (string)
FATAL ERROR: download.lua:9: bad argument #2 to 'format' (number expected, got string)
stack traceback:
[C]: in function 'string.format'
download.lua:9: in function 'addCookie'
download.lua:19: in main chunk
[27/10/2017 10:13:41] FATAL ERROR: download.lua:9: bad argument #2 to 'format' (number expected, got string)
stack traceback:
[C]: in function 'string.format'
download.lua:9: in function 'addCookie'
download.lua:19: in main chunk
1: download.lua:9: bad argument #2 to 'format' (number expected, got string) (string)
[27/10/2017 10:15:45] 1: download.lua:9: bad argument #2 to 'format' (number expected, got string) (string)
FATAL ERROR: download.lua:9: bad argument #2 to 'format' (number expected, got string)
stack traceback:
[C]: in function 'string.format'
download.lua:9: in function 'addCookie'
download.lua:19: in main chunk
[27/10/2017 10:15:45] FATAL ERROR: download.lua:9: bad argument #2 to 'format' (number expected, got string)
stack traceback:
[C]: in function 'string.format'
download.lua:9: in function 'addCookie'
download.lua:19: in main chunk
1: test3.lua:6: attempt to call a nil value (global '_curlPerformFile') (string)
[01/01/2018 14:20:15] 1: test3.lua:6: attempt to call a nil value (global '_curlPerformFile') (string)
FATAL ERROR: test3.lua:6: attempt to call a nil value (global '_curlPerformFile')
stack traceback:
test3.lua:6: in main chunk
[01/01/2018 14:20:15] FATAL ERROR: test3.lua:6: attempt to call a nil value (global '_curlPerformFile')
stack traceback:
test3.lua:6: in main chunk
1: base.lua:40: attempt to perform arithmetic on a nil value (local 'errs') (string)
[01/01/2018 14:20:46] 1: base.lua:40: attempt to perform arithmetic on a nil value (local 'errs') (string)
FATAL ERROR: base.lua:40: attempt to perform arithmetic on a nil value (local 'errs')
stack traceback:
base.lua:40: in function '_performCurl'
test3.lua:6: in main chunk
[01/01/2018 14:20:46] FATAL ERROR: base.lua:40: attempt to perform arithmetic on a nil value (local 'errs')
stack traceback:
base.lua:40: in function '_performCurl'
test3.lua:6: in main chunk
1: test.lua:3: attempt to call a nil value (method 'SetOpt') (string)
[01/01/2018 14:43:47] 1: test.lua:3: attempt to call a nil value (method 'SetOpt') (string)
FATAL ERROR: test.lua:3: attempt to call a nil value (method 'SetOpt')
stack traceback:
test.lua:3: in main chunk
[01/01/2018 14:43:47] FATAL ERROR: test.lua:3: attempt to call a nil value (method 'SetOpt')
stack traceback:
test.lua:3: in main chunk
1: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil) (string)
[01/01/2018 14:50:07] 1: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil) (string)
FATAL ERROR: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil)
stack traceback:
[C]: in method 'setOpt'
test.lua:4: in main chunk
[01/01/2018 14:50:07] FATAL ERROR: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil)
stack traceback:
[C]: in method 'setOpt'
test.lua:4: in main chunk
1: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil) (string)
[01/01/2018 14:50:15] 1: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil) (string)
FATAL ERROR: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil)
stack traceback:
[C]: in method 'setOpt'
test.lua:4: in main chunk
[01/01/2018 14:50:15] FATAL ERROR: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil)
stack traceback:
[C]: in method 'setOpt'
test.lua:4: in main chunk
1: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil) (string)
[01/01/2018 14:50:18] 1: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil) (string)
FATAL ERROR: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil)
stack traceback:
[C]: in method 'setOpt'
test.lua:4: in main chunk
[01/01/2018 14:50:18] FATAL ERROR: test.lua:4: bad argument #1 to 'setOpt' (number expected, got nil)
stack traceback:
[C]: in method 'setOpt'
test.lua:4: in main chunk
1: base.lua:64: attempt to call a nil value (method 'perofrmFile') (string)
[03/01/2018 22:54:49] 1: base.lua:64: attempt to call a nil value (method 'perofrmFile') (string)
FATAL ERROR: base.lua:64: attempt to call a nil value (method 'perofrmFile')
stack traceback:
base.lua:64: in function '_performFileCurl'
test3.lua:12: in main chunk
[03/01/2018 22:54:49] FATAL ERROR: base.lua:64: attempt to call a nil value (method 'perofrmFile')
stack traceback:
base.lua:64: in function '_performFileCurl'
test3.lua:12: in main chunk
1: base.lua:64: attempt to call a nil value (method 'perofrmFile') (string)
[03/01/2018 22:55:33] 1: base.lua:64: attempt to call a nil value (method 'perofrmFile') (string)
FATAL ERROR: base.lua:64: attempt to call a nil value (method 'perofrmFile')
stack traceback:
base.lua:64: in function '_performFileCurl'
test3.lua:13: in main chunk
[03/01/2018 22:55:33] FATAL ERROR: base.lua:64: attempt to call a nil value (method 'perofrmFile')
stack traceback:
base.lua:64: in function '_performFileCurl'
test3.lua:13: in main chunk
1: base.lua:72: bad argument #1 to 'format' (number expected, got nil) (string)
[03/01/2018 22:55:57] 1: base.lua:72: bad argument #1 to 'format' (number expected, got nil) (string)
FATAL ERROR: base.lua:72: bad argument #1 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'string.format'
base.lua:72: in function '_performFileCurl'
test3.lua:13: in main chunk
[03/01/2018 22:55:57] FATAL ERROR: base.lua:72: bad argument #1 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'string.format'
base.lua:72: in function '_performFileCurl'
test3.lua:13: in main chunk
luaL_loadfile: xxx.lua:9: ')' expected (to close '(' at line 8) near 'local'
[09/07/2018 23:31:33] luaL_loadfile: xxx.lua:9: ')' expected (to close '(' at line 8) near 'local'
luaL_loadfile: xxx.lua:31: unexpected symbol near ')'
[09/07/2018 23:43:50] luaL_loadfile: xxx.lua:31: unexpected symbol near ')'

BIN
Release/reimu.pdb Normal file

Binary file not shown.

159
Release/rghost.lua Normal file
View file

@ -0,0 +1,159 @@
--http://rgho.st/sitemap_recent.xml
--<a href="http://rgho.st/download/67x6DFC5R/b81e972d454b501f0eb3f7ae0fb62f607ba899f4/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D0%BD%D1%8B%D0%B5%20%20%D0%BC%D0%BE%D0%BB%D0%B5%D0%BA%D1%83%D0%BB%D1%8F%D1%80%D0%BD%D0%BE-%20%D0%BA%D0%B8%D0%BD%D0%B5%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B9.doc" class="btn btn-primary btn-download m-t-10 m-b-5" data-update-url="/files/67x6DFC5R/link" id="download-btn" rel="nofollow" title="Скачать Основные молекулярно- кинетической.doc">
--<i class="fa fa-download"></i> Скачать</a>
--Tag name "a"
--href, id = "download-btn", rel = "nofollow"
userAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"
function parseMain()
local curl = curl_open()
curl:setOpt(CURLOPT_URL,"http://rgho.st/sitemap_recent.xml")
curl:setOpt(CURLOPT_USERAGENT,userAgent)
curl:setOpt(CURLOPT_COOKIEFILE,"cookies.txt")
curl:setOpt(CURLOPT_COOKIEJAR,"cookies.txt")
curl:setOpt(CURLOPT_FOLLOWLOCATION,1)
curl:setOpt(CURLOPT_AUTOREFERER,1)
local en = 0
local data = nil
local res = 1
while not (res == 0) do
print(res)
data,res = curl:perform()
if not (res == 0) then
print(string.format("CURL Error %d",res))
en = en + 1
if en > 5 then
print("Request failed!")
curl:close()
return
end
end
end
local links = {}
local prs = tohtml(data)
for k,v in pairs(prs:toTable()) do
if v:isTag() and v:tagName() == "loc" then
--print(prs:contentOf(v))
links[#links+1] = prs:contentOf(v)
end
end
curl:close()
return links
end
function download(url)
dofile("base.lua")
local targets = {
".jpg", ".png", ".gif", ".bmp",
".dll", ".cpp", ".c", ".h",
".rar", ".zip"
--".dll", ".exe", ".rar"
}
curl = curl_open()
curl:setOpt(CURLOPT_URL,url)
curl:setOpt(CURLOPT_USERAGENT,task.getGlobal("userAgent"))
curl:setOpt(CURLOPT_COOKIEFILE,"cookies.txt")
curl:setOpt(CURLOPT_COOKIEJAR,"cookies.txt")
curl:setOpt(CURLOPT_FOLLOWLOCATION,1)
curl:setOpt(CURLOPT_AUTOREFERER,1)
local en = 0
local ten = 0
local data = nil
local link = nil
res = 1
while not (res == 0) do
data,res = curl:perform()
if not (res == 0) then
print(string.format("CURL Error %d",res))
en = en + 1
elseif en > 5 then
print(string.format("Download of %s failed!",url))
curl:close()
end
end
local prs = tohtml(data)
for k,v in pairs(prs:toTable()) do
if v:isTag() and v:tagName() == "a" then
local href = v:attribute("href")
local rel = v:attribute("rel")
local id = v:attribute("id")
if id == "download-btn" then --and rel == "nofollow" then
link = href
break
end
end
end
if link == nil then
print("Not downloadable!")
curl:close()
return
end
local ext = last(link:split("/")):extension()
local dwnld = false
for k,v in pairs(targets) do
if ext == v then dwnld = true end
end
if not dwnld then
print(string.format("%s not in our interests!",url))
--curl:close()
--return
end
local path = task.getGlobal("dirPath").."/"..last(link:split("/"))
if not (string.find(path,"sa-mp") == nil) then
print("SKipping samp boolshit")
curl:close()
return
end
curl:setOpt(CURLOPT_URL,link)
f = io.open(path,"ab")
local res = 0
en = 0
res = 1
while not (res == 0) do
res = curl:performFile(f)
if not (res == 0) then
print(string.format("CURL Error %d",res))
f:flush()
en = en + 1
if en > 5 then
print(string.format("Download of %s failed due %d",path,res))
f:close()
curl:close()
return
end
end
end
print(path)
f:close()
curl:close()
end
dirPath = os.date("rghost_%d_%m_%Y__%H_%M_%S")
file.mkdir(dirPath)
dofile("base.lua")
links = parseMain()
--for k,v in pairs(links) do
-- download(v)
--sleep(2)
--end
--task.setThreadCount(15)
task.setDelay(500)
performMultiTask(download,links)

435
Release/test.html Normal file
View file

@ -0,0 +1,435 @@
<html>
<head>
<title>
Lua: Functions and Types: lua_gc</title>
<meta name=author content="Peter Lowe; pgl@yoyo.org">
<meta name=MSSmartTagsPreventParsing content="TRUE">
<meta name=cabal content="">
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<link rel="shortcut icon" href="http://pgl.yoyo.org/favicon.ico">
<link rel="icon" href="http://pgl.yoyo.org/favicon.ico" type="image/ico">
<script type="text/javascript" language="javascript"><!--
if (window != top) top.location.href = location.href;
// --></script>
<link rel=stylesheet type="text/css" href="http://pgl.yoyo.org/css/luai.css">
</head>
<body>
<table cellpadding=0 cellspacing=0>
<tr>
<td valign=top>
<table style="width: 700; border: 1px solid #222;" cellpadding=0 cellspacing=5>
<tr><td valign=top class=luahead style="color: #008000;">
lua_gc </td></tr>
<tr><td style="padding: 8px; font-size: 13px;">
<span class="apii">[-0, +0, <em>e</em>]</span>
<pre>int <a class=funcname href="/luai/i/lua_gc">lua_gc</a> (<a class=funcname href="/luai/i/lua_State">lua_State</a> *L, int what, int data);</pre>
<p><p>
Controls the garbage collector.
<p><p>
This function performs several tasks,
according to the value of the parameter <code>what</code>:
<p><ul>
<p><li><b><code>LUA_GCSTOP</code>:</b>
stops the garbage collector.
</li>
<p><li><b><code>LUA_GCRESTART</code>:</b>
restarts the garbage collector.
</li>
<p><li><b><code>LUA_GCCOLLECT</code>:</b>
performs a full garbage-collection cycle.
</li>
<p><li><b><code>LUA_GCCOUNT</code>:</b>
returns the current amount of memory (in Kbytes) in use by Lua.
</li>
<p><li><b><code>LUA_GCCOUNTB</code>:</b>
returns the remainder of dividing the current amount of bytes of
memory in use by Lua by 1024.
</li>
<p><li><b><code>LUA_GCSTEP</code>:</b>
performs an incremental step of garbage collection.
The step "size" is controlled by <code>data</code>
(larger values mean more steps) in a non-specified way.
If you want to control the step size
you must experimentally tune the value of <code>data</code>.
The function returns 1 if the step finished a
garbage-collection cycle.
</li>
<p><li><b><code>LUA_GCSETPAUSE</code>:</b>
sets <code>data</code> as the new value
for the <em>pause</em> of the collector (see <a href="2.10">&sect;2.10</a>).
The function returns the previous value of the pause.
</li>
<p><li><b><code>LUA_GCSETSTEPMUL</code>:</b>
sets <code>data</code> as the new value for the <em>step multiplier</em> of
the collector (see <a href="2.10">&sect;2.10</a>).
The function returns the previous value of the step multiplier.
</li>
<p></ul> </td></tr>
</table>
</td>
<td valign=top class=small style="font-family: inconsolata, lucida console, monospace; padding-left: 20px; padding-top: 4px;" align=right>
<a style="font-weight: bold; letter-spacing: 2px;" href="_">EVERYTHING</a>
<hr size=1>
<a style="font-weight: bold;" href="3.7+Functions+and+Types">Functions and Types</a>
<hr size=1>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_Alloc">lua_Alloc<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_atpanic">lua_atpanic<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_call">lua_call<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_CFunction">lua_CFunction<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_checkstack">lua_checkstack<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_close">lua_close<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_concat">lua_concat<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_cpcall">lua_cpcall<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_createtable">lua_createtable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_dump">lua_dump<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_equal">lua_equal<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_error">lua_error<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_gc">lua_gc<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_getallocf">lua_getallocf<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_getfenv">lua_getfenv<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_getfield">lua_getfield<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_getglobal">lua_getglobal<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_getmetatable">lua_getmetatable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_gettable">lua_gettable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_gettop">lua_gettop<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_insert">lua_insert<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_Integer">lua_Integer<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isboolean">lua_isboolean<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_iscfunction">lua_iscfunction<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isfunction">lua_isfunction<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_islightuserdata">lua_islightuserdata<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isnil">lua_isnil<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isnone">lua_isnone<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isnoneornil">lua_isnoneornil<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isnumber">lua_isnumber<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isstring">lua_isstring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_istable">lua_istable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isthread">lua_isthread<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_isuserdata">lua_isuserdata<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_lessthan">lua_lessthan<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_load">lua_load<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_newstate">lua_newstate<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_newtable">lua_newtable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_newthread">lua_newthread<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_newuserdata">lua_newuserdata<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_next">lua_next<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_Number">lua_Number<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_objlen">lua_objlen<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pcall">lua_pcall<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pop">lua_pop<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushboolean">lua_pushboolean<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushcclosure">lua_pushcclosure<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushcfunction">lua_pushcfunction<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushfstring">lua_pushfstring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushinteger">lua_pushinteger<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushlightuserdata">lua_pushlightuserdata<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushliteral">lua_pushliteral<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushlstring">lua_pushlstring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushnil">lua_pushnil<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushnumber">lua_pushnumber<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushstring">lua_pushstring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushthread">lua_pushthread<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushvalue">lua_pushvalue<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_pushvfstring">lua_pushvfstring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_rawequal">lua_rawequal<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_rawget">lua_rawget<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_rawgeti">lua_rawgeti<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_rawset">lua_rawset<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_rawseti">lua_rawseti<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_Reader">lua_Reader<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_register">lua_register<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_remove">lua_remove<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_replace">lua_replace<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_resume">lua_resume<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_setallocf">lua_setallocf<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_setfenv">lua_setfenv<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_setfield">lua_setfield<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_setglobal">lua_setglobal<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_setmetatable">lua_setmetatable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_settable">lua_settable<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_settop">lua_settop<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_State">lua_State<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_status">lua_status<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_toboolean">lua_toboolean<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_tocfunction">lua_tocfunction<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_tointeger">lua_tointeger<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_tolstring">lua_tolstring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_tonumber">lua_tonumber<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_topointer">lua_topointer<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_tostring">lua_tostring<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_tothread">lua_tothread<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_touserdata">lua_touserdata<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_type">lua_type<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_typename">lua_typename<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_Writer">lua_Writer<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_xmove">lua_xmove<a>&bull;<br>
<a style="font-family: inconsolata, lucida console, monospace;" href="lua_yield">lua_yield<a>&bull;<br>
</td>
</tr>
</table>
<p>
<form action="http://pgl.yoyo.org/luai">
<input size=40 class=small type=text size=8 name=q value="Functions and Types"><input class=small type=submit value="submit">
&bull;
<tt>
[ <b><a href="about">?</a></b>
| <a href="_">&uArr;</a>
| <a href="http://www.lua.org/manual/5.1/manual.html#3.7">@</a>
]
</tt>
</form>
<p>
</body>
</html>

5
Release/test.lua Normal file
View file

@ -0,0 +1,5 @@
curl = curl_open()
curl:setOpt(CURLOPT_URL,"http://nude-moon.com/8992-online--karfagen-jousou-dorei-yuu-final.html?page=1#top")
curl:setOpt(CURLOPT_REFERER,"http://nude-moon.com/8992-online--karfagen-jousou-dorei-yuu-final.html?page=5")
curl:performFile(io.open("out.html","wb"))

BIN
Release/test.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

150
Release/test2.html Normal file
View file

@ -0,0 +1,150 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>lua-users wiki: Metatable Events</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="/styles/main.css">
</HEAD>
<BODY ><table width="100%" border="0"> <tr><td align=left width="100%"><h1><a href="/cgi-bin/wiki.pl?action=search&amp;string=MetatableEvents&amp;body=1" title="List pages referring to MetatableEvents">Metatable Events</a></h1></td><td align=right>
<table cellpadding="0" cellspacing="0" border="0" width="1%">
<tbody>
<tr>
<td><a href="/">
<img src="/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td><img src="/images/nav-elbow.png" alt="" width="48" height="40"></td>
<td nowrap valign="middle" width="100%">
<a href="/wiki/" class="nav">wiki</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<form method="post" action="/wiki/FindPage" enctype="application/x-www-form-urlencoded" style="display:inline; margin:0;">
<input type="hidden" name="action" value="search" /><input type="text" name="string" size="20" style="" id="search_query1" /><input type="hidden" name="title" value="1" /><input type="submit" name=".submit" value="Search" /><input type="hidden" name="body" value="on" /></form></td></tr> </table>
<br clear=all>
<em>A listing of all the 'special' keys in a metatable, and the metamethods which they perform.</em> <p>
<UL>
<li> <strong>__index</strong> - Control 'prototype' inheritance. When accessing "myTable[key]" and the key does not appear in the table, but the metatable has an __index property: <UL>
<li> if the value is a function, the function is called, passing in the table and the key; the return value of that function is returned as the result. <li> if the value is another table, the value of the key in that table is asked for and returned <UL>
<li> <em>(and if it doesn't exist in <strong>that</strong> table, but that table's metatable has an __index property, then it continues on up)</em> </UL>
<li> <em>Use "rawget(myTable,key)" to skip this metamethod.</em> </UL>
</UL>
<p>
<UL>
<li> <strong>__newindex</strong> - Control property assignment. When calling "myTable[key] = value", if the metatable has a __newindex key pointing to a function, call that function, passing it the table, key, and value. <UL>
<li> <em>Use "rawset(myTable,key,value)" to skip this metamethod.</em> <li> <em>(If the __newindex function does not set the key on the table (using rawset) then the key/value pair is not added to myTable.)</em> </UL>
</UL>
<p>
<UL>
<li> <strong>__mode</strong> - Control weak references. A string value with one or both of the characters 'k' and 'v' which specifies that the the <strong>k</strong>eys and/or <strong>v</strong>alues in the table are weak references. </UL><DL>
<dt><dd>
</DL><UL>
<li> <strong>__call</strong> - Treat a table like a function. When a table is followed by parenthesis such as "myTable( 'foo' )" and the metatable has a __call key pointing to a function, that function is invoked (passing the table as the first argument, followed by any specified arguments) and the return value is returned. </UL><DL>
<dt><dd>
</DL><UL>
<li> <strong>__metatable</strong> - Hide the metatable. When "getmetatable( myTable )" is called, if the metatable for myTable has a __metatable key, the value of that key is returned instead of the actual metatable. </UL>
<p>
<UL>
<li> <strong>__tostring</strong> - Control string representation. When the builtin "tostring( myTable )" function is called, if the metatable for myTable has a __tostring property set to a function, that function is invoked (passing myTable to it) and the return value is used as the string representation. </UL>
<p>
<UL>
<li> <strong>__len</strong> - (Lua 5.2+) Control table length that is reported. When the table length is requested using the length operator ( '#' ), if the metatable for myTable has a __len key pointing to a function, that function is invoked (passing myTable to it) and the return value used as the value of "#myTable". </UL>
<p>
<p>
<UL>
<li> <strong>__pairs</strong> - (Lua 5.2+) Handle iteration through table pairs when <strong>Lua for k,v in pairs(tbl) do ... end</strong> is called (See <a href="http://lua-users.org/wiki/GeneralizedPairsAndIpairs">http://lua-users.org/wiki/GeneralizedPairsAndIpairs</a>). </UL>
<p>
<UL>
<li> <strong>__ipairs</strong> - (Lua 5.2+) Handle iteration through table pairs when <strong>for k,v in ipairs(tbl) do ... end</strong> is called (See <a href="http://lua-users.org/wiki/GeneralizedPairsAndIpairs">http://lua-users.org/wiki/GeneralizedPairsAndIpairs</a>). </UL>
<p>
<UL>
<li> <strong>__gc</strong> - Userdata finalizer code. When userdata is set to be garbage collected, if the metatable has a __gc field pointing to a function, that function is first invoked, passing the userdata to it. The __gc metamethod is not called for tables. (See <a href="http://lua-users.org/lists/lua-l/2006-11/msg00508.html">http://lua-users.org/lists/lua-l/2006-11/msg00508.html</a>) </UL>
<p>
<H3>Mathematic Operators</H3>
<p>
<UL>
<li> <strong>__unm</strong> - Unary minus. When writing "-myTable", if the metatable has a __unm key pointing to a function, that function is invoked (passing the table), and the return value used as the value of "-myTable". <li> <strong>__add</strong> - Addition. When writing "myTable + object" or "object + myTable", if myTable's metatable has an __add key pointing to a function, that function is invoked (passing the left and right operands in order) and the return value used. <UL>
<li> ''If both operands are tables, the left table is checked before the right table for the presence of an __add metaevent. </UL><DL>
<dt><dd>
</DL>
<li> <strong>__sub</strong> - Subtraction. Invoked similar to addition, using the '-' operator. <li> <strong>__mul</strong> - Multiplication. Invoked similar to addition, using the '*' operator. <li> <strong>__div</strong> - Division. Invoked similar to addition, using the '/' operator. <li> <strong>__idiv</strong> - (Lua 5.3) Floor division (division with rounding down to nearest integer). '//' operator. <li> <strong>__mod</strong> - Modulo. Invoked similar to addition, using the '%' operator. <li> <strong>__pow</strong> - Involution. Invoked similar to addition, using the '^' operator. <li> <strong>__concat</strong> - Concatenation. Invoked similar to addition, using the '..' operator. </UL>
<p>
<H3>Bitwise Operators</H3>
<p>
Lua 5.3 introduced the ability to use true integers, and with it bitwise operations. These operations are invoked similar to the addition operation, except that Lua will try a metamethod if any operand is neither an integer nor a value coercible to an integer. <p>
<UL>
<li> <strong>__band</strong> - (Lua 5.3) the bitwise AND (&amp;) operation. <li> <strong>__bor</strong> - (Lua 5.3) the bitwise OR (|) operation. <li> <strong>__bxor</strong> - (Lua 5.3) the bitwise exclusive OR (binary ~) operation. <li> <strong>__bnot</strong> - (Lua 5.3) the bitwise NOT (unary ~) operation. <li> <strong>__bshl</strong> - (Lua 5.3) the bitwise left shift (&lt;&lt;) operation. <li> <strong>__bshr</strong> - (Lua 5.3) the bitwise right shift (&gt;&gt;) operation. </UL>
<p>
<H3>Equivalence Comparison Operators</H3>
<p>
<UL>
<li> <strong>__eq</strong> - Check for equality. This method is invoked when "myTable1 == myTable2" is evaluated, but only if both tables have the exact same metamethod for __eq. <UL>
<li> For example, see the following code: </UL><DL>
<dt><dd><pre>
t1a = {}
t1b = {}
t2 = {}
mt1 = { __eq = function( o1, o2 ) return 'whee' end }
mt2 = { __eq = function( o1, o2 ) return 'whee' end }
setmetatable( t1a, mt1 )
setmetatable( t1b, mt1 )
setmetatable( t2, mt2 )
print( t1a == t1b ) --&gt; true
print( t1a == t2 ) --&gt; false
</pre> </DL><UL>
<li> <em>If the function returns nil or false, the result of the comparison is false; otherwise, the result is true.</em> </UL>
</UL>
<p>
<UL>
<UL>
<li> <em>If <code>t1</code> and <code>t2</code> are referencing the same table, the <code>__eq</code> method is not invoked for <code>t1 == t2</code> :</em> </UL><DL>
<dt><dd><pre class="code">
<span class="keyword">function</span> foo (o1, o2)
<span class="library">print</span>( <span class="string">'__eq call'</span> )
<span class="keyword">return</span> <span class="keyword">false</span>
<span class="keyword">end</span>
t1 = {}
<span class="library">setmetatable</span>( t1, {__eq = foo} )
t2 = t1
<span class="library">print</span>( t1 == t2 ) <span class="comment">--&gt; true</span>
<span class="comment">-- string '__eq call' not printed (and comparison result is true, not like the return value of foo(...)), so no foo(...) call here</span>
t3 = {}
<span class="library">setmetatable</span>( t3, {__eq = foo} )
<span class="keyword">if</span> t1 == t3 <span class="keyword">then</span> <span class="keyword">end</span> <span class="comment">--&gt; __eq call</span>
<span class="comment">-- foo(...) was called</span>
</pre>
</DL>
</UL>
<p>
<UL>
<li> <strong>__lt</strong> - Check for less-than. Similar to equality, using the '&lt;' operator. <UL>
<li> Greater-than is evaluated by reversing the order of the operands passed to the __lt function. </UL><DL>
<dt><dd><pre class="code">
a &gt; b == b &lt; a
</pre>
</DL>
</UL>
<p>
<UL>
<li> <strong>__le</strong> - Check for less-than-or-equal. Similar to equality, using the '&lt;=' operator. <UL>
<li> Greater-than-or-equal is evaluated by reversing the order of the operands passed to the __le function. </UL><DL>
<dt><dd><pre class="code">
a &gt;= b == b &lt;= a
</pre>
</DL>
</UL>
<hr>
<a href="/wiki/RecentChanges" >RecentChanges</a> &middot; <a href="/cgi-bin/wiki.pl?action=editprefs" >preferences</a><br>
<a href="/cgi-bin/wiki.pl?action=edit&amp;id=MetatableEvents" >edit</a> &middot; <a href="/cgi-bin/wiki.pl?action=history&amp;id=MetatableEvents" >history</a><br>Last edited August 15, 2017 5:33 pm GMT <a href="/cgi-bin/wiki.pl?action=browse&amp;diff=1&amp;id=MetatableEvents" >(diff)</a>
</body>
</html>

31
Release/test2.lua Normal file
View file

@ -0,0 +1,31 @@
dofile("base.lua")
function parseSearch(query,num)
local curl = curl_open()
local cur = 1
repeat
if cur == 1 then
curl:setOpt(CURLOPT_URL,
string.format("http://hentai-chan.me/?do=search&subaction=search&story=%s",
query))
curl:setOpt(CURLOPT_AUTOREFERER,1)
curl:setOpt(CURLOPT_REFERER,"http://hentai-chan.me/")
curl:setOpt(CURLOPT_USERAGENT,"test2.lua")
else
curl:setOpt(CURLOPT_URL,"http://hentai-chan.me/index.php?do=search")
curl:setOpt(CURLOPT_POST,1)
curl:setOpt(CURLOPT_POSTFIELDS,
string.format("do=search&subaction=search&search_start=%d&full_search=0&result_from=%d&result_num=40&story=%s",
cur,(cur*40)+1,query))
end
f = io.open(string.format("test2/search%d.html",cur),"wb")
print(curl:performFile(f))
f:close()
cur = cur + 1
until cur > num
curl:close()
end
file.mkdir("test2")
parseSearch("Evangelion",5)

3239
Release/test2/search1.html Normal file

File diff suppressed because it is too large Load diff

3328
Release/test2/search2.html Normal file

File diff suppressed because it is too large Load diff

3273
Release/test2/search3.html Normal file

File diff suppressed because it is too large Load diff

3284
Release/test2/search4.html Normal file

File diff suppressed because it is too large Load diff

1038
Release/test2/search5.html Normal file

File diff suppressed because it is too large Load diff

9
Release/test3.html Normal file
View file

@ -0,0 +1,9 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://yuri.dance/.ideddda">here</a>.</p>
<hr>
<address>Apache/2.4.25 (Debian) Server at yuri.dance Port 80</address>
</body></html>

BIN
Release/test3.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

14
Release/test3.lua Normal file
View file

@ -0,0 +1,14 @@
dofile("base.lua")
curl = curl_open()
curl:setOpt(CURLOPT_REFERER,"http://joyreactor.cc/tag/Earth-Chan")
--local ip,res,code = _performCurl(curl,5)
--if res ~= 0 or code ~= 200 then
-- print(("%d %d"):format(res,code))
--else print(ip) end
local f = io.open("test3.html","wb")
_performFileCurl(curl,f,5)
f:close()

105
Release/warp.lua Normal file
View file

@ -0,0 +1,105 @@
dofile("base.lua")
maxThreads = 20
maxErrors = 10
userAgent = "WARP v1.0"
--global dump data
dumpFolder = nil
task.setThreadCount(maxThreads)
function download(url)
dofile("base.lua")
local folder = task.getGlobal("dumpFolder")
local mr = task.getGlobal("maxErrors")
local src = nil
local curl = curl_open()
curl:setOpt(CURLOPT_URL,"http://knowyourmeme.com"..url)
curl:setOpt(CURLOPT_USERAGENT,"WARP v1.0")
local data,res,code = _performCurl(curl,mr)
if data == nil then
print(("Scan of %s failed due <%d,%d>"):format(url,res,code))
curl:close()
return
end
local rs = tohtml(data)
for k,v in pairs(rs:toTable()) do
if v:tagName() == "img" and v:attribute("class")
== "colorbox_photo" then
src = v:attribute("src")
break
end
end
if src == nil then
print("Pic URL not found!")
curl:close()
return
end
curl:setOpt(CURLOPT_URL,src)
local last = string.gsub(last(src:split("/")),"_large","")
local path = ("%s/%s"):format(folder,last)
if file.exists(path) then
print(("%s exists!"):format(path))
curl:close()
return
end
local f = io.open(path,"wb")
local res,code = _performFileCurl(curl,f,mr)
if res ~= 0 or code ~= 200 then
print("Download of %s failed due <%d,%d>",path,res,code)
else print(path) end
f:close()
end
function dump(name)
local curl = curl_open()
local res = 0
local data = nil
local page = 1
local finish = false
file.mkdir(name)
curl:setOpt(CURLOPT_USERAGENT,userAgent)
repeat
print(("== page %d"):format(page))
curl:setOpt(CURLOPT_URL,("http://knowyourmeme.com/memes/%s/photos/page/%d")
:format(name,page))
data,res,_ = _performCurl(curl,maxErrors)
local photos = {}
if data ~= nil then
local rs = tohtml(data)
for k,v in pairs(rs:toTable()) do
if v:tagName() == "a" and
v:attribute("rel") == "photo_gallery" then
table.insert(photos,v:attribute("data-colorbox-url"))
elseif v:tagName() == "h3" and v:attribute
("class") == "closed" then
finish = true
break
end
end
end
if next(photos) == nil then
finish = true
break
end
dumpFolder = ("%s/%d"):format(name,page)
file.mkdir(dumpFolder)
performMultiTask(download,photos)
page = page + 1
until (finish == true) or (res ~= 0 or data == nil)
if finish == true then
print("wassup it's a finish!")
end
end
dump(args[2])

91
Release/xxx.lua Normal file
View file

@ -0,0 +1,91 @@
dofile("base.lua")
dir = ""
maxErrors = 10
task.setThreadCount(5)
--https://rule34.xxx/index.php?page=post&s=list&tags=TAG&pid=(p-1)*42
function getPagePosts(tag,page)
local curl = curl_open()
curl:setOpt(CURLOPT_URL,string.format("https://rule34.xxx/index.php?page=post&s=list&tags=%s&pid=%d",tag,(page-1)*42))
local body,l,k = _performCurl(curl,maxErrors)
curl:close()
if body == nil then return nil end
local html = tohtml(body)
local posts = {}
--<a id="p2825091" href="index.php?page=post&amp;s=view&amp;id=2825091"><img src="https://rule34.xxx/thumbnails/2543/thumbnail_76bd202251e9ff28dc76ac0ae24f39ff.jpg?2825091" alt="anal anal_beads anal_insertion anal_penetration animated ankle_cuffs anus areolae arms_above_head arms_up ass blush bondage bouncing_breasts breasts brown_hair crying crying_with_eyes_open dildo dotborn dripping dripping_cum dripping_pussy ejaculation eyes_rolling_back feet forced forced_nudity forced_orgasm forced_presentation helpless hitachi_magic_wand kneesocks large_breasts leg_lift legs legs_restrained_above_head machine mechanical mechanical_arm mechanical_fixation mechanical_hand naked nipples nude open_mouth orgasm orgasm_factory penetration pixel_art ponytail pussy pussy_ejaculation pussy_juice rape restrained school_uniform schoolgirl sex_machine sex_toy shiny_skin shirt_lift short_hair spiked_dildo squirting stationary_restraints stomach_bulge strapped_down tears thighs thrusting trembling twitching vibrator wrist_cuffs" border="0" title="anal anal_beads anal_insertion anal_penetration animated ankle_cuffs anus areolae arms_above_head arms_up ass blush bondage bouncing_breasts breasts brown_hair crying crying_with_eyes_open dildo dotborn dripping dripping_cum dripping_pussy ejaculation eyes_rolling_back feet forced forced_nudity forced_orgasm forced_presentation helpless hitachi_magic_wand kneesocks large_breasts leg_lift legs legs_restrained_above_head machine mechanical mechanical_arm mechanical_fixation mechanical_hand naked nipples nude open_mouth orgasm orgasm_factory penetration pixel_art ponytail pussy pussy_ejaculation pussy_juice rape restrained school_uniform schoolgirl sex_machine sex_toy shiny_skin shirt_lift short_hair spiked_dildo squirting stationary_restraints stomach_bulge strapped_down tears thighs thrusting trembling twitching vibrator wrist_cuffs score:4 rating:explicit" class="preview"></a>
for k,v in pairs(html:toTable()) do
if v:isTag() and v:tagName() == "a" and v:attribute("id") ~= nil then
local id = v:attribute("id")
if string.sub(id,1,1) == "p" then
table.insert(posts,string.sub(id,2))
end
end
end
return posts
end
--thread function
function downloadPost(id)
dofile("base.lua")
local curl = curl_open()
curl:setOpt(CURLOPT_URL,"https://rule34.xxx/index.php?page=post&s=view&id="..id)
local body,l,k = _performCurl(curl,10)
if body == nil then
print("Parsing post "..id.." failed")
return
end
local link = nil
local ext = nil
local html = tohtml(body)
for k,v in pairs(html:toTable()) do
if v:isTag() and v:tagName() == "img" and v:attribute("alt") ~= nil
and v:attribute("id") == "image" then
link = v:attribute("src")
break
end
end
if link == nil then print"Link not found!" return end
curl:setOpt(CURLOPT_URL,link)
for i=#link,1,-1 do
local c = string.sub(link,i,i)
if c == "." then
local ext2 = string.sub(link,i)
local l,k = string.find(ext2,"?")
if l ~= nil and k ~= nil then
ext = string.sub(ext2,1,k-1)
end
break
end
end
local fname = task.getGlobal("dir").."/"..id..ext
local f = io.open(fname,"wb")
if f == nil then
print("Failed to open "..fname)
curl:close()
return
end
local l,k = _performFileCurl(curl,f,10)
if l == 0 then print(fname)
else print("Download "..id.." failed") end
curl:close()
end
--local posts = getPagePosts("dotborn",1)
function downloadTags(tags,pages)
file.mkdir(tags)
for i=1,pages do
dir = tags.."/"..tostring(i)
file.mkdir(dir)
posts = getPagePosts(tags,i)
performMultiTask(downloadPost,posts)
print("== Page "..i.." downloaded!")
end
end
downloadTags(args[2],tonumber(args[3]))

1
Release/тест.txt Normal file
View file

@ -0,0 +1 @@
Привет мир!

19
UpgradeLog.XML Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?><UpgradeLog>
<Properties><Property Name="Solution" Value="lua534">
</Property><Property Name="Файл решения" Value="D:\lua534\lua534\lua534.sln">
</Property><Property Name="Date" Value="8 октября 2017 г.">
</Property><Property Name="Time" Value="0:18:08">
</Property></Properties><Event ErrorLevel="0" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Converting project file 'D:\lua534\lua534\htmlcxx\htmlcxx.vcproj'.">
</Event><Event ErrorLevel="0" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Visual C++ now provides improved safety in its C and C++ Libraries. This includes new and improved functions, additional checking and validation, and internal design changes. These libraries are turned on by default. You may see some warnings about unsafe functions or parameters when you build your project. The warnings will generally suggest an alternative safer coding style or function. It is advised that you correct these warnings, in order to make your code more safe. Full details can be found in the documentation by searching for 'Security Enhancements in the CRT' and for 'Checked Iterators'.">
</Event><Event ErrorLevel="0" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="The C/C++ compiler default settings have been modified to be more compliant with ISO Standard C++. Included in those changes are enforcing Standard C++ for loop scoping and supporting wchar_t as a native type. These changes may cause existing code to no longer compile without changes to the code or the compiler options with which it is built.">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Due to the requirement that Visual C++ projects produce an embedded (by default) Windows SxS manifest, manifest files in the project are now automatically built with the Manifest Tool. You may need to change your build in order for it to work correctly. For instance, it is recommended that the dependency information contained in any manifest files be converted to &quot;#pragma comment(linker,&quot;&lt;insert dependency here&gt;&quot;)&quot; in a header file that is included from your source code. If your project already embeds a manifest in the RT_MANIFEST resource section through a resource (.rc) file, the line may need to be commented out before the project will build correctly.">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Due to a conformance change in the C++ compiler, code change may be required before your project will build without errors. Previous versions of the C++ compiler allowed specification of member function pointers by member function name (e.g. MemberFunctionName). The C++ standard requires a fully qualified name with the use of the address-of operator (e.g. &amp;ClassName::MemberFunctionName). If your project contains forms or controls used in the Windows Forms Designer, you may have to change code in InitializeComponent because the designer generated code used the non-conformant syntax in delegate construction (used in event handlers).">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="MSB8012: $(TargetPath) ('D:\lua534\lua534\htmlcxx\Debug\htmlcxx.lib') does not match the Librarian's OutputFile property value 'Debug\htmlcxx.lib' ('D:\lua534\lua534\Debug\htmlcxx.lib') in project configuration 'Debug|Win32'. This may cause your project to build incorrectly. To correct this, please make sure that $(TargetPath) property value matches the value specified in %(Lib.OutputFile).">
</Event><Event ErrorLevel="1" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="MSB8012: $(TargetPath) ('D:\lua534\lua534\htmlcxx\Release\htmlcxx.lib') does not match the Librarian's OutputFile property value 'Release\htmlcxx.lib' ('D:\lua534\lua534\Release\htmlcxx.lib') in project configuration 'Release|Win32'. This may cause your project to build incorrectly. To correct this, please make sure that $(TargetPath) property value matches the value specified in %(Lib.OutputFile).">
</Event><Event ErrorLevel="0" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Done converting to new project file 'D:\lua534\lua534\htmlcxx\htmlcxx.vcxproj'.">
</Event><Event ErrorLevel="3" Project="htmlcxx" Source="htmlcxx\htmlcxx.vcproj" Description="Converted">
</Event></UpgradeLog>

View file

@ -0,0 +1,207 @@
BODY
{
BACKGROUND-COLOR: white;
FONT-FAMILY: "Verdana", sans-serif;
FONT-SIZE: 100%;
MARGIN-LEFT: 0px;
MARGIN-TOP: 0px
}
P
{
FONT-FAMILY: "Verdana", sans-serif;
FONT-SIZE: 70%;
LINE-HEIGHT: 12pt;
MARGIN-BOTTOM: 0px;
MARGIN-LEFT: 10px;
MARGIN-TOP: 10px
}
.note
{
BACKGROUND-COLOR: #ffffff;
COLOR: #336699;
FONT-FAMILY: "Verdana", sans-serif;
FONT-SIZE: 100%;
MARGIN-BOTTOM: 0px;
MARGIN-LEFT: 0px;
MARGIN-TOP: 0px;
PADDING-RIGHT: 10px
}
.infotable
{
BACKGROUND-COLOR: #f0f0e0;
BORDER-BOTTOM: #ffffff 0px solid;
BORDER-COLLAPSE: collapse;
BORDER-LEFT: #ffffff 0px solid;
BORDER-RIGHT: #ffffff 0px solid;
BORDER-TOP: #ffffff 0px solid;
FONT-SIZE: 70%;
MARGIN-LEFT: 10px
}
.issuetable
{
BACKGROUND-COLOR: #ffffe8;
BORDER-COLLAPSE: collapse;
COLOR: #000000;
FONT-SIZE: 100%;
MARGIN-BOTTOM: 10px;
MARGIN-LEFT: 13px;
MARGIN-TOP: 0px
}
.issuetitle
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #dcdcdc 1px solid;
BORDER-TOP: #dcdcdc 1px;
COLOR: #003366;
FONT-WEIGHT: normal
}
.header
{
BACKGROUND-COLOR: #cecf9c;
BORDER-BOTTOM: #ffffff 1px solid;
BORDER-LEFT: #ffffff 1px solid;
BORDER-RIGHT: #ffffff 1px solid;
BORDER-TOP: #ffffff 1px solid;
COLOR: #000000;
FONT-WEIGHT: bold
}
.issuehdr
{
BACKGROUND-COLOR: #E0EBF5;
BORDER-BOTTOM: #dcdcdc 1px solid;
BORDER-TOP: #dcdcdc 1px solid;
COLOR: #000000;
FONT-WEIGHT: normal
}
.issuenone
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: 0px;
BORDER-LEFT: 0px;
BORDER-RIGHT: 0px;
BORDER-TOP: 0px;
COLOR: #000000;
FONT-WEIGHT: normal
}
.content
{
BACKGROUND-COLOR: #e7e7ce;
BORDER-BOTTOM: #ffffff 1px solid;
BORDER-LEFT: #ffffff 1px solid;
BORDER-RIGHT: #ffffff 1px solid;
BORDER-TOP: #ffffff 1px solid;
PADDING-LEFT: 3px
}
.issuecontent
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #dcdcdc 1px solid;
BORDER-TOP: #dcdcdc 1px solid;
PADDING-LEFT: 3px
}
A:link
{
COLOR: #cc6633;
TEXT-DECORATION: underline
}
A:visited
{
COLOR: #cc6633;
}
A:active
{
COLOR: #cc6633;
}
A:hover
{
COLOR: #cc3300;
TEXT-DECORATION: underline
}
H1
{
BACKGROUND-COLOR: #003366;
BORDER-BOTTOM: #336699 6px solid;
COLOR: #ffffff;
FONT-SIZE: 130%;
FONT-WEIGHT: normal;
MARGIN: 0em 0em 0em -20px;
PADDING-BOTTOM: 8px;
PADDING-LEFT: 30px;
PADDING-TOP: 16px
}
H2
{
COLOR: #000000;
FONT-SIZE: 80%;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 3px;
MARGIN-LEFT: 10px;
MARGIN-TOP: 20px;
PADDING-LEFT: 0px
}
H3
{
COLOR: #000000;
FONT-SIZE: 80%;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: -5px;
MARGIN-LEFT: 10px;
MARGIN-TOP: 20px
}
H4
{
COLOR: #000000;
FONT-SIZE: 70%;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 0px;
MARGIN-TOP: 15px;
PADDING-BOTTOM: 0px
}
UL
{
COLOR: #000000;
FONT-SIZE: 70%;
LIST-STYLE: square;
MARGIN-BOTTOM: 0pt;
MARGIN-TOP: 0pt
}
OL
{
COLOR: #000000;
FONT-SIZE: 70%;
LIST-STYLE: square;
MARGIN-BOTTOM: 0pt;
MARGIN-TOP: 0pt
}
LI
{
LIST-STYLE: square;
MARGIN-LEFT: 0px
}
.expandable
{
CURSOR: hand
}
.expanded
{
color: black
}
.collapsed
{
DISPLAY: none
}
.foot
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #cecf9c 1px solid;
BORDER-TOP: #cecf9c 2px solid
}
.settings
{
MARGIN-LEFT: 25PX;
}
.help
{
TEXT-ALIGN: right;
margin-right: 10px;
}

View file

@ -0,0 +1,232 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:key name="ProjectKey" match="Event" use="@Project"/>
<xsl:template match="Events" mode="createProjects">
<projects>
<xsl:for-each select="Event">
<!--xsl:sort select="@Project" order="descending"/-->
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
<xsl:variable name="ProjectName" select="@Project"/>
<project>
<xsl:attribute name="name">
<xsl:value-of select="@Project"/>
</xsl:attribute>
<xsl:if test="@Project=''">
<xsl:attribute name="solution">
<xsl:value-of select="@Solution"/>
</xsl:attribute>
</xsl:if>
<xsl:for-each select="key('ProjectKey', $ProjectName)">
<!--xsl:sort select="@Source" /-->
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
<source>
<xsl:attribute name="name">
<xsl:value-of select="@Source"/>
</xsl:attribute>
<xsl:variable name="Source">
<xsl:value-of select="@Source"/>
</xsl:variable>
<xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
<event>
<xsl:attribute name="error-level">
<xsl:value-of select="@ErrorLevel"/>
</xsl:attribute>
<xsl:attribute name="description">
<xsl:value-of select="@Description"/>
</xsl:attribute>
</event>
</xsl:for-each>
</source>
</xsl:if>
</xsl:for-each>
</project>
</xsl:if>
</xsl:for-each>
</projects>
</xsl:template>
<xsl:template match="projects">
<xsl:for-each select="project">
<xsl:sort select="@Name" order="ascending"/>
<h2>
<xsl:if test="@solution"><a _locID="Solution">Решение</a>: <xsl:value-of select="@solution"/></xsl:if>
<xsl:if test="not(@solution)"><a _locID="Project">Проект</a>: <xsl:value-of select="@name"/>
<xsl:for-each select="source">
<xsl:variable name="Hyperlink" select="@name"/>
<xsl:for-each select="event[@error-level='4']">
<A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</h2>
<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
<tr>
<td nowrap="1" class="header" _locID="Filename">Имя файла</td>
<td nowrap="1" class="header" _locID="Status">Состояние</td>
<td nowrap="1" class="header" _locID="Errors">Ошибки</td>
<td nowrap="1" class="header" _locID="Warnings">Предупреждения</td>
</tr>
<xsl:for-each select="source">
<xsl:sort select="@name" order="ascending"/>
<xsl:variable name="source-id" select="generate-id(.)"/>
<xsl:if test="count(event)!=count(event[@error-level='4'])">
<tr class="row">
<td class="content">
<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" _locID="IMG.alt" _locAttrData="alt" alt="развернуть/свернуть секцию" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9"><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A> <xsl:value-of select="@name"/>
</td>
<td class="content">
<xsl:if test="count(event[@error-level='3'])=1">
<xsl:for-each select="event[@error-level='3']">
<xsl:if test="@description='Converted'"><a _locID="Converted1">Преобразован</a></xsl:if>
<xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0"><a _locID="Converted2">Преобразован</a>
</xsl:if>
</td>
<td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
<td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
</tr>
<tr class="collapsed" bgcolor="#ffffff">
<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
<td colspan="7">
<table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
<tr>
<td colspan="7" class="issuetitle" _locID="ConversionIssues">Отчет о преобразовании - <xsl:value-of select="@name"/>:</td>
</tr>
<xsl:for-each select="event[@error-level!='3']">
<xsl:if test="@error-level!='4'">
<tr>
<td class="issuenone" style="border-bottom:solid 1 lightgray">
<xsl:value-of select="@description"/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:if>
</xsl:for-each>
<tr valign="top">
<td class="foot">
<xsl:if test="count(source)!=1">
<xsl:value-of select="count(source)"/><a _locID="file1"> файл(а, ов)</a>
</xsl:if>
<xsl:if test="count(source)=1">
<a _locID="file2">1 файл</a>
</xsl:if>
</td>
<td class="foot">
<a _locID="Converted3">Преобразован</a>: <xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR/>
<a _locID="NotConverted">Не преобразован</a>: <xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
</td>
<td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
<td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
<xsl:template match="Property">
<xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
<tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
</xsl:if>
</xsl:template>
<xsl:template match="UpgradeLog">
<html>
<head>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css"/>
<title _locID="ConversionReport0">Отчет о преобразовании
<xsl:if test="Properties/Property[@Name='LogNumber']">
<xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
</xsl:if>
</title>
<script language="javascript">
function outliner () {
oMe = window.event.srcElement
//get child element
var child = document.all[event.srcElement.getAttribute("child",false)];
//if child element exists, expand or collapse it.
if (null != child)
child.className = child.className == "collapsed" ? "expanded" : "collapsed";
}
function changepic() {
uMe = window.event.srcElement;
var check = uMe.src.toLowerCase();
if (check.lastIndexOf("upgradereport_plus.gif") != -1)
{
uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
}
else
{
uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
}
}
</script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
<h1 _locID="ConversionReport">Отчет о преобразовании - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
<p><span class="note">
<b _locID="TimeOfConversion">Время преобразования:</b> <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/> <xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
</span></p>
<xsl:variable name="SortedEvents">
<Events>
<xsl:for-each select="Event">
<xsl:sort select="@Project" order="ascending"/>
<xsl:sort select="@Source" order="ascending"/>
<xsl:sort select="@ErrorLevel" order="ascending"/>
<Event>
<xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
<xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
<xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
<xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
<xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
</Event>
</xsl:for-each>
</Events>
</xsl:variable>
<xsl:variable name="Projects">
<xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
</xsl:variable>
<xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
<p></p><p>
<table class="note">
<tr>
<td nowrap="1">
<b _locID="ConversionSettings">Параметры преобразования</b>
</td>
</tr>
<xsl:apply-templates select="Properties"/>
</table></p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

202
htmlcxx/ASF-2.0 Normal file
View file

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

2
htmlcxx/AUTHORS Normal file
View file

@ -0,0 +1,2 @@
Davi de Castro Reis - davi at dcc dot ufmg dot br
Robson Braga Araújo - braga at dcc dot ufmg dot br

6
htmlcxx/COPYING Normal file
View file

@ -0,0 +1,6 @@
The htmlcxx code is covered by the LGPL license found in the LGPL_V2 file in
this distribution. The tree.hh code, used in this code, is covered by the
license in the original distribution at http://tree.phi-sci.com/. Only
HTML::Node instances, which the only instances used by htmlcxx, are available
under the LGPL. The uri parsing code is a derivative work of Apache web server
uri parsing routine and covered by the ASF-2.0 file in this distribution.

69
htmlcxx/ChangeLog Normal file
View file

@ -0,0 +1,69 @@
2008-10-12 18:41 davi
* Applied patch by Luca Bruno fixing gcc 4.3 compilation problems.
2007-08-11 20:23 davi
* Bumped release again because sf.net problems.
2007-08-11 20:14 davi
* Updated version.
2007-08-11 20:06 davi
*
Fixed long standing typename bug.
2006-06-16 12:45 davi
* Added missing files.
2006-06-16 12:23 davi
* Added missing files and incorporate some pending fixes.
2005-03-24 00:59 davi
* Removed useless files.
2005-03-24 00:58 davi
* Small fixes for distribution.
2005-02-22 01:47 davi
* Lots of changes. Bumped version to 0.7.3.
2004-06-17 16:17 braga
* Updated some documentation.
2004-06-16 13:38 braga
* Commiting all changes from local cvs.
2004-03-27 10:56 davi
* Added css parser.
2004-03-25 16:33 davi
* Added sample htmlcxx application.
2004-03-25 16:24 davi
* Initial revision
2004-03-25 16:24 davi
* htmlcxx is now in CVS
2003-12-13 23:27 davi
* Initial revision
2003-12-13 23:27 davi
* htmlcxx - html and css APIs for C++

370
htmlcxx/INSTALL Normal file
View file

@ -0,0 +1,370 @@
Installation Instructions
*************************
Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without warranty of any kind.
Basic Installation
==================
Briefly, the shell command `./configure && make && make install'
should configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package. Some packages provide this
`INSTALL' file but do not implement all of the features documented
below. The lack of an optional feature in a given package is not
necessarily a bug. More recommendations for GNU packages can be found
in *note Makefile Conventions: (standards)Makefile Conventions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.
4. Type `make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
user, and only the `make install' phase executed with root
privileges.
5. Optionally, type `make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
regular user, particularly if the prior `make install' required
root privileges, verifies that the installation completed
correctly.
6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
7. Often, you can also type `make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.
8. Some packages, particularly those that use Automake, provide `make
distcheck', which can by used by developers to test that all other
targets like `make install' and `make uninstall' work correctly.
This target is generally not run by end users.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c99 CFLAGS=-g LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'. This
is known as a "VPATH" build.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.
On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
"universal" binaries--by specifying multiple `-arch' options to the
compiler but only a single `-arch' option to the preprocessor. Like
this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"
This is not guaranteed to produce working output in all cases, you
may have to build one architecture at a time and combine the results
using the `lipo' tool if you have problems.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX', where PREFIX must be an
absolute file name.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them. In general, the
default for these options is expressed in terms of `${prefix}', so that
specifying just `--prefix' will affect all of the other directory
specifications that were not explicitly provided.
The most portable way to affect installation locations is to pass the
correct locations to `configure'; however, many packages provide one or
both of the following shortcuts of passing variable assignments to the
`make install' command line to change installation locations without
having to reconfigure or recompile.
The first method involves providing an override variable for each
affected directory. For example, `make install
prefix=/alternate/directory' will choose an alternate location for all
directory configuration variables that were expressed in terms of
`${prefix}'. Any directories that were specified during `configure',
but not in terms of `${prefix}', must each be overridden at install
time for the entire installation to be relocated. The approach of
makefile variable overrides for each directory variable is required by
the GNU Coding Standards, and ideally causes no recompilation.
However, some platforms have known limitations with the semantics of
shared libraries that end up requiring recompilation when using this
method, particularly noticeable in packages that use GNU Libtool.
The second method involves providing the `DESTDIR' variable. For
example, `make install DESTDIR=/alternate/directory' will prepend
`/alternate/directory' before all installation names. The approach of
`DESTDIR' overrides is not required by the GNU Coding Standards, and
does not work on platforms that have drive letters. On the other hand,
it does better at avoiding recompilation issues, and works well even
when some directory options were not specified in terms of `${prefix}'
at `configure' time.
Optional Features
=================
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Some packages offer the ability to configure how verbose the
execution of `make' will be. For these packages, running `./configure
--enable-silent-rules' sets the default to minimal output, which can be
overridden with `make V=1'; while running `./configure
--disable-silent-rules' sets the default to verbose, which can be
overridden with `make V=0'.
Particular systems
==================
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
CC is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
HP-UX `make' updates targets which have the same time stamps as
their prerequisites, which makes it generally unusable when shipped
generated files such as `configure' are involved. Use GNU `make'
instead.
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
a workaround. If GNU CC is not installed, it is therefore recommended
to try
./configure CC="cc"
and if that doesn't work, try
./configure CC="cc -nodtk"
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
directory contains several dysfunctional programs; working variants of
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
in your `PATH', put it _after_ `/usr/bin'.
On Haiku, software installed for all users goes in `/boot/common',
not `/usr/local'. It is recommended to use the following options:
./configure --prefix=/boot/common
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS
KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf limitation. Until the limitation is lifted, you can use
this workaround:
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`--help'
`-h'
Print a summary of all of the options to `configure', and exit.
`--help=short'
`--help=recursive'
Print a summary of the options unique to this package's
`configure', and exit. The `short' variant lists options used
only in the top level, while the `recursive' variant lists options
also present in any nested packages.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--prefix=DIR'
Use DIR as the installation prefix. *note Installation Names::
for more details, including other options available for fine-tuning
the installation locations.
`--no-create'
`-n'
Run the configure checks, but stop before creating any output
files.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

482
htmlcxx/LGPL_V2 Normal file
View file

@ -0,0 +1,482 @@
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

11
htmlcxx/Makefile.am Normal file
View file

@ -0,0 +1,11 @@
SUBDIRS = html css
bin_PROGRAMS = htmlcxx
htmlcxx_SOURCES = htmlcxx.cc wingetopt.h
htmlcxx_LDADD = html/libhtmlcxx.la css/libcss_parser_pp.la css/libcss_parser.la
EXTRA_DIST = ASF-2.0 LGPL_V2 wingetopt.c htmlcxx.spec htmlcxx.vcproj htmlcxxapp.vcproj htmlcxx.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = htmlcxx.pc

1017
htmlcxx/Makefile.in Normal file

File diff suppressed because it is too large Load diff

0
htmlcxx/NEWS Normal file
View file

136
htmlcxx/README Normal file
View file

@ -0,0 +1,136 @@
htmlcxx - html and css APIs for C++
---------------------------------------------
Description
===========
htmlcxx is a simple non-validating css1 and html parser for C++.
Although there are several other html parsers available, htmlcxx has some
characteristics that make it unique:
- STL like navigation of DOM tree, using excelent's tree.hh library from
Kasper Peeters
- It is possible to reproduce exactly, character by character, the
original document from the parse tree
- Bundled css parser
- Optional parsing of attributes
- C++ code that looks like C++ (not so true anymore)
- Offsets of tags/elements in the original document are stored in the
nodes of the DOM tree
The parsing politics of htmlcxx were created trying to mimic mozilla
firefox (http://www.mozilla.org) behavior. So you should expect parse
trees similar to those create by firefox. However, differently from firefox,
htmlcxx does not insert non-existent stuff in your html. Therefore, serializing
the DOM tree gives exactly the same bytes contained in the original HTML
document.
News for version 0.85
=====================
Fixed gcc 4.3 compiler errors, several minor bug fixes, improved distribution
of the css library.
News for version 0.7.3
======================
Added utility code to escape/decode urls as defined by RFC 2396.
Added new SAX interface. The API was slightly broken to support the new
SAX interface :-(.
Added Visual Studio 2003 projects for the WIN32 port.
Examples
========
Using htmlcxx is quite simple. Take a look
at this example.
-----------------------------------------------------------------------
#include <htmlcxx/html/ParserDom.h>
...
using namespace std;
using namespace htmlcxx;
//Parse some html code
string html = "<html><body>hey</body></html>";
HTML::ParserDom parser;
tree<HTML::Node> dom = parser.parseTree(html);
//Print whole DOM tree
cout << dom << endl;
//Dump all links in the tree
tree<HTML::Node>::iterator it = dom.begin();
tree<HTML::Node>::iterator end = dom.end();
for (; it != end; ++it)
{
if (strcasecmp(it->tagName().c_str(), "A") == 0)
{
it->parseAttributes();
cout << it->attribute("href").second << endl;
}
}
//Dump all text of the document
it = dom.begin();
end = dom.end();
for (; it != end; ++it)
{
if ((!it->isTag()) && (!it->isComment()))
{
cout << it->text();
}
}
cout << endl;
-------------------------------------------------
The htmlcxx application
=======================
htmlcxx is the name of both the library and the utility
application that comes with this package. Although the
htmlcxx (the application) is mostly useless for programming, you can use it
to easily see how htmlcxx (the library) would parse your html code.
Just install and try htmlcxx -h.
Downloads
=========
Use the project page at sourceforge: http://sf.net/projects/htmlcxx
License Stuff
=============
Code is now under the LGPL. This was our initial intention, and is
now possible thanks to the author of tree.hh, who allowed us to use it
under LGPL only for HTML::Node template instances. Check
http://www.fsf.org or the COPYING file in the distribution for details
about the LGPL license. The uri parsing code is a derivative work of
Apache web server uri parsing routines. Check
www.apache.org/licenses/LICENSE-2.0 or the ASF-2.0 file in the
distribution for details.
----------------------------------------
Enjoy!
Davi de Castro Reis - <davi (a) users sf net>
Robson Braga Araújo - <braga (a) users sf net>
Last Updated: Thu Mar 24 00:56:05 2005

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@


View file

@ -0,0 +1 @@


Binary file not shown.

Binary file not shown.

BIN
htmlcxx/Release/Node.obj Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
htmlcxx/Release/Uri.obj Normal file

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,2 @@
#v4.0:v100:false
Release|Win32|D:\lua534\lua534\|

BIN
htmlcxx/Release/htmlcxx.lib Normal file

Binary file not shown.

View file

@ -0,0 +1,23 @@
Build started 08.10.2017 2:27:54.
1>Project "D:\lua534\lua534\htmlcxx\htmlcxx.vcxproj" on node 2 (build target(s)).
1>InitializeBuildStatus:
Creating "Release\htmlcxx.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
All outputs are up-to-date.
Lib:
All outputs are up-to-date.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\Lib.exe /OUT:"D:\lua534\lua534\Release\htmlcxx.lib" /NOLOGO Release\Extensions.obj
Release\Node.obj
Release\ParserDom.obj
Release\ParserSax.obj
Release\Uri.obj
Release\utils.obj
htmlcxx.vcxproj -> D:\lua534\lua534\Release\htmlcxx.lib
FinalizeBuildStatus:
Deleting file "Release\htmlcxx.unsuccessfulbuild".
Touching "Release\htmlcxx.lastbuildstate".
1>Done Building Project "D:\lua534\lua534\htmlcxx\htmlcxx.vcxproj" (build target(s)).
Построение успешно завершено.
Time Elapsed 00:00:01.16

View file

Binary file not shown.

BIN
htmlcxx/Release/utils.obj Normal file

Binary file not shown.

BIN
htmlcxx/Release/vc100.pdb Normal file

Binary file not shown.

10228
htmlcxx/aclocal.m4 vendored Normal file

File diff suppressed because it is too large Load diff

347
htmlcxx/compile Normal file
View file

@ -0,0 +1,347 @@
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2012-10-14.11; # UTC
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# 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 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# 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, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_cl_dashL linkdir
# Make cl look for libraries in LINKDIR
func_cl_dashL ()
{
func_file_conv "$1"
if test -z "$lib_path"; then
lib_path=$file
else
lib_path="$lib_path;$file"
fi
linker_opts="$linker_opts -LIBPATH:$file"
}
# func_cl_dashl library
# Do a library search-path lookup for cl
func_cl_dashl ()
{
lib=$1
found=no
save_IFS=$IFS
IFS=';'
for dir in $lib_path $LIB
do
IFS=$save_IFS
if $shared && test -f "$dir/$lib.dll.lib"; then
found=yes
lib=$dir/$lib.dll.lib
break
fi
if test -f "$dir/$lib.lib"; then
found=yes
lib=$dir/$lib.lib
break
fi
if test -f "$dir/lib$lib.a"; then
found=yes
lib=$dir/lib$lib.a
break
fi
done
IFS=$save_IFS
if test "$found" != yes; then
lib=$lib.lib
fi
}
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
{
# Assume a capable shell
lib_path=
shared=:
linker_opts=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
eat=1
case $2 in
*.o | *.[oO][bB][jJ])
func_file_conv "$2"
set x "$@" -Fo"$file"
shift
;;
*)
func_file_conv "$2"
set x "$@" -Fe"$file"
shift
;;
esac
;;
-I)
eat=1
func_file_conv "$2" mingw
set x "$@" -I"$file"
shift
;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
-l)
eat=1
func_cl_dashl "$2"
set x "$@" "$lib"
shift
;;
-l*)
func_cl_dashl "${1#-l}"
set x "$@" "$lib"
shift
;;
-L)
eat=1
func_cl_dashL "$2"
;;
-L*)
func_cl_dashL "${1#-L}"
;;
-static)
shared=false
;;
-Wl,*)
arg=${1#-Wl,}
save_ifs="$IFS"; IFS=','
for flag in $arg; do
IFS="$save_ifs"
linker_opts="$linker_opts $flag"
done
IFS="$save_ifs"
;;
-Xlinker)
eat=1
linker_opts="$linker_opts $2"
;;
-*)
set x "$@" "$1"
shift
;;
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
func_file_conv "$1"
set x "$@" -Tp"$file"
shift
;;
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
func_file_conv "$1" mingw
set x "$@" "$file"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -n "$linker_opts"; then
linker_opts="-link$linker_opts"
fi
exec "$@" $linker_opts
exit 1
}
eat=
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand '-c -o'.
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file 'INSTALL'.
Report bugs to <bug-automake@gnu.org>.
EOF
exit $?
;;
-v | --v*)
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
ofile=
cfile=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
# So we strip '-o arg' only if arg is an object.
eat=1
case $2 in
*.o | *.obj)
ofile=$2
;;
*)
set x "$@" -o "$2"
shift
;;
esac
;;
*.c)
cfile=$1
set x "$@" "$1"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no '-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# '.c' file was seen then we are probably linking. That is also
# ok.
exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
# Create the lock directory.
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
while true; do
if mkdir "$lockdir" >/dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:

1421
htmlcxx/config.guess vendored Normal file

File diff suppressed because it is too large Load diff

92
htmlcxx/config.h.in Normal file
View file

@ -0,0 +1,92 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `fl' library (-lfl). */
#undef HAVE_LIBFL
/* Define to 1 if you have the `iconv' library (-liconv). */
#undef HAVE_LIBICONV
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if the system has the type `_Bool'. */
#undef HAVE__BOOL
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Version number of package */
#undef VERSION
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
#undef YYTEXT_POINTER
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#undef inline
#endif
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t

Some files were not shown because too many files have changed in this diff Show more