예제 #1
0
	def __init__(self, param):
		self.conf = {
			'url':'http://localhost/discuz_600/',
			'encoding':'gbk',
			'image_base':'R:/',
			'action_login':string.Template('logging.php?action=login'),
			'action_login_referer':'',
			'action_preparepost':string.Template('post.php?action=newthread&fid=$fid&extra=20'),
			'action_post':string.Template('post.php?action=newthread&fid=$fid&inajax=1&extra=20&topicsubmit=yes'),
			'action_seccode':string.Template('seccode.php?update=0.${randstr}'),
		}
		self.conf.update(param)
		#
		DiscuzBase.__init__(self)
		self.url = self.conf['url']
		self.encoding = self.conf['encoding']
		self.image_base = self.conf['image_base']
		self.formhash = ''
예제 #2
0
	def __init__(self, param):
		self.conf = {
			'url':'http://localhost/discuz/',
			'encoding':'gbk',
			'image_base':'R:/',
			'action_login':string.Template('member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash=LIQ5i'),
			'action_login_referer':'',
			'action_preparepost':string.Template('forum.php?mod=post&action=newthread&fid=$fid'),
			'action_post':string.Template('forum.php?mod=post&action=newthread&extra=&topicsubmit=yes&fid=$fid'),
			'action_seccode':string.Template('misc.php?mod=seccode&action=update&idhash=${sechash}&inajax=1&ajaxtarget=seccode_${sechash}'),
		}
		self.conf.update(param)
		#
		DiscuzBase.__init__(self)
		self.url = self.conf['url']
		self.encoding = self.conf['encoding']
		self.image_base = self.conf['image_base']
		self.formhash = ''
		self.posttime = ''
		self.sechash = ''
예제 #3
0
	def __init__(self, param):
		self.conf = {
			'url':'http://localhost/discuz_610/',
			'encoding':'gbk',
			'image_base':'R:/',
			'action_login':string.Template('logging.php?action=login'),
			'action_login_referer':'',
			'action_preparepost':string.Template('post.php?action=newthread&fid=$fid&extra=page%3D1'),
			'action_post':string.Template('post.php?action=newthread&fid=$fid&extra=page%3D1&topicsubmit=yes'),
			'action_secqaa':string.Template('ajax.php?action=updatesecqaa&inajax=1'),
			'action_seccode':string.Template('ajax.php?action=updateseccode&inajax=1'),
		}
		self.conf.update(param)
		#
		DiscuzBase.__init__(self)
		self.url = self.conf['url']
		self.encoding = self.conf['encoding']
		self.image_base = self.conf['image_base']
		self.formhash = ''
		self.username = ''
		self.psw_md5 = ''