ALEX666999
Gold Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору -- http://rghost.ru/* -- http://rghost.net/* function GDL(origUrl) usd.setstatus('') logpref = script.name..'_GDL_v0002' local page = usd.get(origUrl) debugSaveInc(logpref..'.html', page) local actions = page:match("id='actions'>(.-)location%.href") if not actions then local err = page:match("class='error'(.-)</div>") usd.savetolog('Error: '..err:match('<h1>(.-)</h1>')..' – '..utf8ToAnsi(err:match('<p>(.-)</p>'))) usd.setretresult('%notfound%') return end local dirUrl = actions:match('<a href="([^"]+)" class="btn large download"') if not dirUrl then if actions:find("'deleted',",1, true) then return usd.setretresult('%deleted%') end usd.setretresult('%plugindefect') return end usd.waittime(math.random(1,3)) usd.relocationmode(0) page = usd.head(dirUrl) debugSaveInc(logpref..'.html', page) dirUrl = page:match('Location: ([^%s]+)', 2) or dirUrl usd.setretresult(utf8ToAnsi(unescape(dirUrl))..'|0|1') return end regDirSuccess('//rghost.ru/', GDL, OS) regDirSuccess('//rghost.net/', GDL, OS) | Всего записей: 6652 | Зарегистр. 20-05-2004 | Отправлено: 21:30 04-12-2012 | Исправлено: ALEX666999, 22:18 04-12-2012 |
|