';
$('#files_stack').removeClass('hide');
$('#files_stack').append(html);
data.id = t.files.length;
t.files.push(data);
/*
$('#dialog_http_upload .btn').removeClass('disabled');
$('#dialog_http_upload .btn').removeAttr('disabled');
*/
}
/*-----------------------------------------------*/
function upOpen()
{
dialog('dialog_http_upload').open();
upInit();
return false;
}
/*-----------------------------------------------*/
function upInit()
{
$('#dialog_http_upload .uploading').addClass('hide');
$('#files_stack').addClass('hide');
if(t.mode == 'html5') $('#up_entry').removeClass('hide');
$('#file_input_box').removeClass('hide');
t.currentFile = 0;
t.files = [];
t.uids = [];
$('#files_stack').html('');
$('#file_input_box .file-input').remove();
upInputAdd(0);
}
/*-----------------------------------------------*/
function upAddStd(data)
{
$('#files_stack').removeClass('hide');
if(typeof data.files != 'undefined' && data.files.length){
var block = $(data).parent();
block.addClass('hide');
upInputAdd($('#file_input_box .file-input').length);
upAddDragAndDrop(data.files);
} else {
var ar = $(data).val().split('\\');
upAddFile({name:ar[ar.length-1], path:$(data).val(), mode:'std', el:data});
}
}
/*-----------------------------------------------*/
function upAddDragAndDrop(data)
{
$('#files_stack').removeClass('hide');
for(var i = 0; i 0 ? Math.ceil( ( data.cont_len - data.recv_len ) / speed ) : 0;
if ( tleft /g,'>').replace(/\s/g,'_').replace(/\?/g,'_');
}
function upChangeFtpPass(data)
{
if(app.is(data) && app.is(data.json)){
if(data.json.result == 'ok'){
$('#ftp_login').text(data.json.ftp_login);
$('#ftp_pass').text(data.json.ftp_login);
dialog('dialog_ftp_upload').open();
} else {
app.error(txt('ftp_pass_err-password not generated'));
}
} else {
app.load(app.ajaxRoot+'/changeftppass/', {onload:upChangeFtpPass, params:{}, progress:1},{});
}
}
/*-----------------------------------------------*/
function randomString( _length )
{
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
var chars_length = chars.length;
var str = '';
for ( var i = 0; i
'; function init() { jQuery("#dialog_auth_upload").dialog({ modal: true, autoOpen: false, width: 350 }); $('#start_upload_btn').bind('click'); } function go(step) { $('.auth-step').addClass('hide-block'); $('#dialog_auth_'+step).removeClass('hide-block'); $('#dialog_auth_'+step+' .error-out').html(''); } function open() { if(!up.files.length){ alert("Select file for uploading"); return false; } if(!$('#dialog_upload_rules').is(':checked')){ alert("Agree with our rules"); return false; } if(t.userLogin.length){ up.upDo() return false; } jQuery("#dialog_auth_upload").dialog('open'); go('entry'); return false; } function submit(pin, owner) { up.upDo(pin); return false; } function reg() { if(!$('#dialog_reg_rules2').is(':checked')){ alert("Agree with our rules"); return false; } var email = $('#dialog_auth_reg input.email').attr('value'); $('#dialog_auth_reg .error-out').html(t.ajaxIcon+'
');
$.post("/ajax/auth.php",
{ act: "register", email: email},
function(data){
if(data.length) {
eval(' var result = ' + data);
if(result.status == '0') {
$('#dialog_auth_reg .error-out').html(result.error+'
');
return false;
} else if(result.status == '1'){
// dialog_auth_reg
go('login');
$('#dialog_auth_login input.login').attr('value', email);
$('#dialog_auth_login .error-out').html('Registration is successfully completed! Password for authentication was sent to your mailbox. Copy it and paste to the field below, press button "Authorize".
');
$('#dialog_auth_login input.password').css('border', '1px solid red');
}
} else {
alert('Unknown error!');
return false;
}
}
);
return false;
}
function login(login, password) {
var login = typeof login != 'undefined' ? login : $('#dialog_auth_login input.login').attr('value');
var password = typeof password != 'undefined' ? password : $('#dialog_auth_login input.password').attr('value');
$('#dialog_auth_login .error-out').html(t.ajaxIcon+'
');
$.post("/ajax/auth.php",
{ act: "login", login: login, password:password},
function(data){
if(data.length) {
eval(' var result = ' + data);
if(result.status == '0') {
$('#dialog_auth_login .error-out').html(result.error+'
');
return false;
} else if(result.status == '1'){
t.userLogin = login;
submit(result.pin, result.partner);
jQuery("#dialog_auth_upload").dialog('close');
}
} else {
alert('Unknown error!');
return false;
}
}
);
return false;
}
$(document).ready(function(){init();});
return t;
}());
Absolutely FREE
Speed is PHENOMENAL
Size is TREMENDOUS
Storage time is UNLIMITED
Upload speed: 0 File will be uploaded in: 0
Upload files
Everything is simple You upload files
We pay you $60
Learn more
Money for views Upload trailers, films and games reviews, video tutorials and your own video
We pay $50 for 10k
Learn more
Are you a registered user?
Only for registered users:
ConversionConversion EmoticonEmoticon