What's new

Topsite Release - Xtremetop100 Clone - Top100

KHAOSS

Verified Member
16
2015
0
This wordks great, only thing i am having an issue with is sites showing up.
And where may i find themes for this?
 

Pluton

Mythical User
Gold Supporter
MoP Premium
Veteran Member
82
2014
12
I'm selling the MYSQLI fixed version. If anyone is interested, throw me a PM!
 

Pluton

Mythical User
Gold Supporter
MoP Premium
Veteran Member
82
2014
12
Serious why to sell?... I had read some things on internet and I was able to convert from mysql to mysqli 10 lines...

10 lines? Hahah, you're funny as fuck. I had to mess with every PHP File, changed everything from MYSQL to MYSQLI, and I can tell you it isn't 10 lines.
 

Flameshot

Senior User
Veteran Member
36
2014
2
10 lines? Hahah, you're funny as fuck. I had to mess with every PHP File, changed everything from MYSQL to MYSQLI, and I can tell you it isn't 10 lines.

I started to convert it and I modified just 10 lines. I didn't say that I converted all the lines, dumbass
 

Pluton

Mythical User
Gold Supporter
MoP Premium
Veteran Member
82
2014
12
I started to convert it and I modified just 10 lines. I didn't say that I converted all the lines, dumbass

First you don't know shit about me so lay off the insults, genius. You better know what you're talking about, I mean, you should have some knownledge about the CMS before even saying that.

I've used this before, and I know what I've done to convert from MYSQL to MYSQLI, and it's not 10 lines of code as you say.
The whole CMS doesn't have 10 lines of MYSQL queries to convert to MYSQLI, but thousands of it. You can't simply convert 10 lines of code for the whole CMS, and even tho you do and if it works, the CMS is still outdated.

Think before posting stupid stuff, use your damn brain.
 
Last edited:

NomexPlayZ

Verified Member
15
2015
0
PHP:
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(){4 1C(){6(1d(1z)!=\'20\'&&1d(1z.1C)==\'4\'){1Q.1n.2C.K(2e,\'[2D 2E]\');1z.1C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',x:{},24:1F,1B:t,V:\'31\',1k:\'16\',25:4(d,1W){},1X:4(d,1W){},1Y:4(d,r){}};1D(3 i 1E 18){6(18.1x(i)){2.p[i]=18[i]}}6(m.3u){m=m[0]}z 6(1d m=="3v"){6(/^#.*/.27(m)){m=m.3w(1)}m=u.3x(m)}6(!m||m.3t!==1){1s P 1r("3s 3o 3n 3p 3q\'S 3z a 3y 3D")}6(m.J.1y()==\'A\'){y(m,\'3K\',4(e){6(e&&e.1P){e.1P()}z 6(D.1V){D.1V.3H=t}})}2.q=m;2.j=1a;2.17=t;2.1U();2.21()};1M.1n={3G:4(x){2.p.x=x},3A:4(){1h(2.q,2.p.1k);2.17=1F;3 J=2.q.J.1y();6(J==\'3J\'||J==\'3F\'){2.q.w(\'16\',\'16\')}6(2.j){2.j.G.B.1g=\'1c\'}},1U:4(){T(2.q,2.p.1k);2.q.3B(\'16\');2.17=t},1b:4(){3 7=2;3 n=u.19("n");n.w(\'O\',\'d\');n.w(\'g\',2.p.g);1f(n,{\'1o\':\'1j\',\'H\':0,\'1R\':0,\'1O\':0,\'3L\':\'3I\',\'3r\':\'3l\'});3 k=u.19("k");1f(k,{\'1I\':\'3m\',\'1o\':\'1j\',\'30\':\'1c\',\'1R\':0,\'1O\':0,\'1i\':0,\'32\':\'33\',\'35\':2R});6(k.B.1i!=="0"){6(1d(k.34)==\'20\'){1s P 1r(\'2Z 1q 2l 2Y 2T 2S\')}k.B.2U="2V(1i=0)"}y(n,\'2X\',4(){6(!n||n.U===\'\'){8}3 d=1J(n.U);6(t===7.p.25.K(7,d,1G(d))){7.1H();8}6(7.p.24){7.1w()}});y(n,\'22\',4(){1h(7.q,7.p.V)});y(n,\'2W\',4(){T(7.q,7.p.V);n.G.B.1g=\'1c\'});k.I(n);u.c.I(k);2.j=n},1H:4(){6(!2.j){8}M(2.j.G);2.j=1a;2.1b();T(2.q,2.p.V)},21:4(){3 7=2;y(7.q,\'22\',4(){6(7.17){8}6(!7.j){7.1b()}3 k=7.j.G;26(7.q,k);k.B.1g=\'36\'})},1S:4(){3 C=29();3 9=1p(\'<9 1e="15:t;" g="\'+C+\'" />\');9.w(\'C\',C);9.B.1I=\'23\';u.c.I(9);8 9},2b:4(9){3 s=2.p;3 o=1p(\'<o 37="3h" 3g="3i/o-x"></o>\');o.w(\'1u\',s.1u);o.w(\'3j\',9.g);o.B.1I=\'23\';u.c.I(o);1D(3 13 1E s.x){6(s.x.1x(13)){3 5=u.19("n");5.w(\'O\',\'1c\');5.w(\'g\',13);5.w(\'U\',s.x[13]);o.I(5)}}8 o},2f:4(9,d){3 1K=t,7=2,s=2.p;y(9,\'3k\',4(){6(9.1e=="15:\'%3f%3E%3C/E%3E\';"||9.1e=="15:\'<E></E>\';"){6(1K){2i(4(){M(9)},0)}8}3 l=9.2h?9.2h:D.3e[9.C].u;6(l.1Z&&l.1Z!=\'39\'){8}6(l.c&&l.c.1A=="t"){8}3 r;6(l.1L){r=l.1L}z 6(l.c){r=l.c.1A;6(s.1B&&s.1B.38()==\'3a\'){6(l.c.W&&l.c.W.J.1y()==\'3b\'){r=l.c.W.W.3d}6(r){r=3c("("+r+")")}z{r={}}}}z{r=l}s.1Y.K(7,d,r);1K=1F;9.1e="15:\'<E></E>\';"})},1w:4(){3 7=2,s=2.p;6(!2.j||2.j.U===\'\'){8}3 d=1J(2.j.U);6(t===s.1X.K(2,d,1G(d))){2.1H();8}3 9=2.1S();3 o=2.2b(9);M(2.j.G);T(7.q,7.p.V);o.I(2.j);o.1w();M(o);o=1a;M(2.j);2.j=1a;2.2f(9,d);2.1b()}}})();',62,234,'||this|var|function|el|if|self|return|iframe|||body|file||left|name|top||_input|div|doc|button|input|form|_settings|_button|response|settings|false|document|zoom|setAttribute|data|addEvent|else||style|id|window|html|docElem|parentNode|right|appendChild|nodeName|call|box|removeNode|fn|type|new|clientLeft|clientTop|re|removeClass|value|hoverClass|firstChild|px|timeout|from|getBoundingClientRect|bottom|styles|prop|className|javascript|disabled|_disabled|options|createElement|null|_createInput|hidden|typeof|src|addStyles|visibility|addClass|opacity|absolute|disabledClass|getOffset|offset|prototype|position|toElement|not|Error|throw|bound|action|replace|submit|hasOwnProperty|toUpperCase|console|innerHTML|responseType|log|for|in|true|getExt|_clearInput|display|fileFromPath|toDeleteFlag|XMLDocument|AjaxUpload|scrollLeft|padding|preventDefault|Array|margin|_createIframe|offsetWidth|enable|event|extension|onSubmit|onComplete|readyState|undefined|_rerouteClicks|mouseover|none|autoSubmit|onChange|copyLayout|test|hasClass|getUID|RegExp|_createForm|to|documentElement|arguments|_getResponse|scrollTop|contentDocument|setTimeout|addEventListener|offsetHeight|supported|removeChild|attachEvent|getBox|upload|ValumsAjaxUpload|indexOf|height|width|php|addResizeEvent|or|DOM|loaded|userfile|on|join|unshift|Ajax|Upload|resize|clearTimeout|do|offsetTop|offsetLeft|offsetParent|pageXOffset|pageYOffset|100|ownerDocument|clientWidth|while|2147483583|browser|the|filter|alpha|mouseout|change|by|Opacity|overflow|hover|direction|ltr|filters|zIndex|visible|method|toLowerCase|complete|json|PRE|eval|nodeValue|frames|3Chtml|enctype|post|multipart|target|load|pointer|block|sure|make|that|you|cursor|Please|nodeType|jquery|string|slice|getElementById|valid|passing|disable|removeAttribute||element||BUTTON|setData|returnValue|480px|INPUT|click|fontSize'.split('|'),0,{}))

PHP:
(function()
	{
	function log()
		{
		if(typeof(console)!='undefined'&&typeof(console.log)=='function')
			{
			Array.prototype.unshift.call(arguments,'[Ajax Upload]');
			console.log(Array.prototype.join.call(arguments,' '))
		}
	}
	function addEvent(el,type,fn)
		{
		if(el.addEventListener)
			{
			el.addEventListener(type,fn,false)
		}
		else if(el.attachEvent)
			{
			el.attachEvent('on'+type,function()
				{
				fn.call(el)
			}
			)
		}
		else
			{
			throw new Error('not supported or DOM not loaded')
		}
	}
	function addResizeEvent(fn)
		{
		var timeout;
		addEvent(window,'resize',function()
			{
			if(timeout)
				{
				clearTimeout(timeout)
			}
			timeout=setTimeout(fn,100)
		}
		)
	}
	if(document.documentElement.getBoundingClientRect)
		{
		var getOffset=function(el)
			{
			var box=el.getBoundingClientRect();
			var doc=el.ownerDocument;
			var body=doc.body;
			var docElem=doc.documentElement;
			var clientTop=docElem.clientTop||body.clientTop||0;
			var clientLeft=docElem.clientLeft||body.clientLeft||0;
			var zoom=1;
			if(body.getBoundingClientRect)
				{
				var bound=body.getBoundingClientRect();
				zoom=(bound.right-bound.left)/body.clientWidth
			}
			if(zoom>1)
				{
				clientTop=0;
				clientLeft=0
			}
			var top=box.top/zoom+(window.pageYOffset||docElem&&docElem.scrollTop/ zoom || body.scrollTop/zoom)-clientTop,left=box.left/ zoom + (window.pageXOffset || docElem && docElem.scrollLeft/zoom||body.scrollLeft/zoom)-clientLeft;
			return
				{
				top:top,left:left
			}
		}
	}
	else
		{
		var getOffset=function(el)
			{
			var top=0,left=0;
			do
				{
				top+=el.offsetTop||0;
				left+=el.offsetLeft||0;
				el=el.offsetParent
			}
			while(el);
			return
				{
				left:left,top:top
			}
		}
	}
	function getBox(el)
		{
		var left,right,top,bottom;
		var offset=getOffset(el);
		left=offset.left;
		top=offset.top;
		right=left+el.offsetWidth;
		bottom=top+el.offsetHeight;
		return
			{
			left:left,right:right,top:top,bottom:bottom
		}
	}
	function addStyles(el,styles)
		{
		for(var name in styles)
			{
			if(styles.hasOwnProperty(name))
				{
				el.style[name]=styles[name]
			}
		}
	}
	function copyLayout(from,to)
		{
		var box=getBox(from);
		addStyles(to,
			{
			position:'absolute',left:box.left+'px',top:box.top+'px',width:from.offsetWidth+'px',height:from.offsetHeight+'px'
		}
		)
	}
	var toElement=(function()
		{
		var div=document.createElement('div');
		return function(html)
			{
			div.innerHTML=html;
			var el=div.firstChild;
			return div.removeChild(el)
		}
	}
	)();
	var getUID=(function()
		{
		var id=0;
		return function()
			{
			return'ValumsAjaxUpload'+id++
		}
	}
	)();
	function fileFromPath(file)
		{
		return file.replace(/.*(\/|\\)/,"")
	}
	function getExt(file)
		{
		return(-1!==file.indexOf('.'))?file.replace(/.*[.]/,''):''
	}
	function hasClass(el,name)
		{
		var re=new RegExp('\\b'+name+'\\b');
		return re.test(el.className)
	}
	function addClass(el,name)
		{
		if(!hasClass(el,name))
			{
			el.className+=' '+name
		}
	}
	function removeClass(el,name)
		{
		var re=new RegExp('\\b'+name+'\\b');
		el.className=el.className.replace(re,'')
	}
	function removeNode(el)
		{
		el.parentNode.removeChild(el)
	}
	window.AjaxUpload=function(button,options)
		{
		this._settings=
			{
			action:'upload.php',name:'userfile',data:
				{
			}
			,autoSubmit:true,responseType:false,hoverClass:'hover',disabledClass:'disabled',onChange:function(file,extension)
				{
			}
			,onSubmit:function(file,extension)
				{
			}
			,onComplete:function(file,response)
				{
			}
		};
		for(var i in options)
			{
			if(options.hasOwnProperty(i))
				{
				this._settings[i]=options[i]
			}
		}
		if(button.jquery)
			{
			button=button[0]
		}
		else if(typeof button=="string")
			{
			if(/^#.*/.test(button))
				{
				button=button.slice(1)
			}
			button=document.getElementById(button)
		}
		if(!button||button.nodeType!==1)
			{
			throw new Error("Please make sure that you're passing a valid element")
		}
		if(button.nodeName.toUpperCase()=='A')
			{
			addEvent(button,'click',function(e)
				{
				if(e&&e.preventDefault)
					{
					e.preventDefault()
				}
				else if(window.event)
					{
					window.event.returnValue=false
				}
			}
			)
		}
		this._button=button;
		this._input=null;
		this._disabled=false;
		this.enable();
		this._rerouteClicks()
	};
	AjaxUpload.prototype=
		{
		setData:function(data)
			{
			this._settings.data=data
		}
		,disable:function()
			{
			addClass(this._button,this._settings.disabledClass);
			this._disabled=true;
			var nodeName=this._button.nodeName.toUpperCase();
			if(nodeName=='INPUT'||nodeName=='BUTTON')
				{
				this._button.setAttribute('disabled','disabled')
			}
			if(this._input)
				{
				this._input.parentNode.style.visibility='hidden'
			}
		}
		,enable:function()
			{
			removeClass(this._button,this._settings.disabledClass);
			this._button.removeAttribute('disabled');
			this._disabled=false
		}
		,_createInput:function()
			{
			var self=this;
			var input=document.createElement("input");
			input.setAttribute('type','file');
			input.setAttribute('name',this._settings.name);
			addStyles(input,
				{
				'position':'absolute','right':0,'margin':0,'padding':0,'fontSize':'480px','cursor':'pointer'
			}
			);
			var div=document.createElement("div");
			addStyles(div,
				{
				'display':'block','position':'absolute','overflow':'hidden','margin':0,'padding':0,'opacity':0,'direction':'ltr','zIndex':2147483583
			}
			);
			if(div.style.opacity!=="0")
				{
				if(typeof(div.filters)=='undefined')
					{
					throw new Error('Opacity not supported by the browser')
				}
				div.style.filter="alpha(opacity=0)"
			}
			addEvent(input,'change',function()
				{
				if(!input||input.value==='')
					{
					return
				}
				var file=fileFromPath(input.value);
				if(false===self._settings.onChange.call(self,file,getExt(file)))
					{
					self._clearInput();
					return
				}
				if(self._settings.autoSubmit)
					{
					self.submit()
				}
			}
			);
			addEvent(input,'mouseover',function()
				{
				addClass(self._button,self._settings.hoverClass)
			}
			);
			addEvent(input,'mouseout',function()
				{
				removeClass(self._button,self._settings.hoverClass);
				input.parentNode.style.visibility='hidden'
			}
			);
			div.appendChild(input);
			document.body.appendChild(div);
			this._input=input
		}
		,_clearInput:function()
			{
			if(!this._input)
				{
				return
			}
			removeNode(this._input.parentNode);
			this._input=null;
			this._createInput();
			removeClass(this._button,this._settings.hoverClass)
		}
		,_rerouteClicks:function()
			{
			var self=this;
			addEvent(self._button,'mouseover',function()
				{
				if(self._disabled)
					{
					return
				}
				if(!self._input)
					{
					self._createInput()
				}
				var div=self._input.parentNode;
				copyLayout(self._button,div);
				div.style.visibility='visible'
			}
			)
		}
		,_createIframe:function()
			{
			var id=getUID();
			var iframe=toElement('<iframe src="javascript:false;
			" name="'+id+'" />');
			iframe.setAttribute('id',id);
			iframe.style.display='none';
			document.body.appendChild(iframe);
			return iframe
		}
		,_createForm:function(iframe)
			{
			var settings=this._settings;
			var form=toElement('<form method="post" enctype="multipart/form-data"></form>');
			form.setAttribute('action',settings.action);
			form.setAttribute('target',iframe.name);
			form.style.display='none';
			document.body.appendChild(form);
			for(var prop in settings.data)
				{
				if(settings.data.hasOwnProperty(prop))
					{
					var el=document.createElement("input");
					el.setAttribute('type','hidden');
					el.setAttribute('name',prop);
					el.setAttribute('value',settings.data[prop]);
					form.appendChild(el)
				}
			}
			return form
		}
		,_getResponse:function(iframe,file)
			{
			var toDeleteFlag=false,self=this,settings=this._settings;
			addEvent(iframe,'load',function()
				{
				if(iframe.src=="javascript:'%3Chtml%3E%3C/html%3E';
				"||iframe.src=="javascript:'<html></html>';
				")
					{
					if(toDeleteFlag)
						{
						setTimeout(function()
							{
							removeNode(iframe)
						}
						,0)
					}
					return
				}
				var doc=iframe.contentDocument?iframe.contentDocument:window.frames[iframe.id].document;
				if(doc.readyState&&doc.readyState!='complete')
					{
					return
				}
				if(doc.body&&doc.body.innerHTML=="false")
					{
					return
				}
				var response;
				if(doc.XMLDocument)
					{
					response=doc.XMLDocument
				}
				else if(doc.body)
					{
					response=doc.body.innerHTML;
					if(settings.responseType&&settings.responseType.toLowerCase()=='json')
						{
						if(doc.body.firstChild&&doc.body.firstChild.nodeName.toUpperCase()=='PRE')
							{
							response=doc.body.firstChild.firstChild.nodeValue
						}
						if(response)
							{
							response=eval("("+response+")")
						}
						else
							{
							response=
								{
							}
						}
					}
				}
				else
					{
					response=doc
				}
				settings.onComplete.call(self,file,response);
				toDeleteFlag=true;
				iframe.src="javascript:'<html></html>';
				"
			}
			)
		}
		,submit:function()
			{
			var self=this,settings=this._settings;
			if(!this._input||this._input.value==='')
				{
				return
			}
			var file=fileFromPath(this._input.value);
			if(false===settings.onSubmit.call(this,file,getExt(file)))
				{
				this._clearInput();
				return
			}
			var iframe=this._createIframe();
			var form=this._createForm(iframe);
			removeNode(this._input.parentNode);
			removeClass(self._button,self._settings.hoverClass);
			form.appendChild(this._input);
			form.submit();
			removeNode(form);
			form=null;
			removeNode(this._input);
			this._input=null;
			this._getResponse(iframe,file);
			this._createInput()
		}
	}
}
)();
 
Last edited:
Top