| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/baberankings.com.bak/templates/compiled/ |
Upload File : |
<? global $en,$configtable,$aconfigtable,$hidftable,$fieldtable,$admmenutable,$sertable,$modstable,$poptstable,$paytable,$picstable,$ratetable,$viewtable,$favstable,$questtable,$langtable,$roomtable,$chattable,$chatonlinetable,$polltable,$pollqtable,$blogtable,$bcomtable,$newsltable,$newstable,$typetable,$membtable,$onlinetable,$logstable,$mbantable,$picscommtable,$msgtable,$fgrouptable,$forumtable,$fthreadtable,$fposttable,$fmembtable,$fmodstable,$fsubscrforumtable,$fsubscrthreadtable; include 'includes/verify_session.php'; ?>
<script language=javascript>
window.onload=disableUploadField;function popUp(page, name, details) {
newWin=window.open(page, name, details);
newWin.focus();
return true;
}function disableUploadField (){
disableImageUploadField('img','video_link');
disableVideoUploadField('img','video_link');
}function disableImageUploadField(imageFieldId, videoFieldId) {
if( document.getElementById(imageFieldId).disabled != true ) {
document.getElementById(imageFieldId).disabled=false;
}
if( document.getElementById(videoFieldId).disabled != false ) {
document.getElementById(videoFieldId).disabled=false;
}
}function disableVideoUploadField(imageFieldId, videoFieldId) {
if( document.getElementById(imageFieldId).disabled != false ) {
document.getElementById(imageFieldId).disabled=false;
}
if( document.getElementById(videoFieldId).disabled != true ) {
document.getElementById(videoFieldId).disabled=true;
}
}
</script><h1><? echo _your_pics; ?></h1><? include 'modules/rating/process_images.php'; ?><br>
<? $to['sql_4c64a02436a1a'] = 'max'; $from['sql_4c64a02436a1a'] = '1'; $query = "SELECT *, t_name_".do_format('lang')." AS t_name, ROUND(i_ratingsum/i_ratingcnt,2) AS i_rating FROM $picstable LEFT JOIN $typetable ON t_id=i_type WHERE i_user=".do_format('m_id')." AND i_video=0 ORDER BY i_status DESC"; $sql_4c64a02436a1a = sql_query($query); if (sql_num_rows($sql_4c64a02436a1a) > 0) { if (!is_numeric($to['sql_4c64a02436a1a'])) $to['sql_4c64a02436a1a'] = sql_num_rows($sql_4c64a02436a1a); $from['sql_4c64a02436a1a'] = min($from['sql_4c64a02436a1a'],sql_num_rows($sql_4c64a02436a1a)); sql_data_seek($sql_4c64a02436a1a,$from['sql_4c64a02436a1a']-1); $en['loops_left'] = $en['total_count'] = $en['total_cnt']['sql_4c64a02436a1a'] = sql_num_rows($sql_4c64a02436a1a); } $en['loops_cnt']['sql_4c64a02436a1a'] = 0; $en['loops_count'] = min(sql_num_rows($sql_4c64a02436a1a)-($from['sql_4c64a02436a1a']-1),$to['sql_4c64a02436a1a']); $tos['sql_4c64a02436a1a'] = $to; while (($line = sql_fetch_assoc($sql_4c64a02436a1a)) && $en['loops_cnt']['sql_4c64a02436a1a'] < $tos['sql_4c64a02436a1a']) {$en = array_merge($en,$line);
if (!is_array($en['loops_cnt'])) { $en['loops_cnt'] = array(); }
$en['loops_index'] = ++$en['loops_cnt']['sql_4c64a02436a1a'];
$en['loops_left'] = $en['total_cnt']['sql_4c64a02436a1a']-$en['loops_cnt']['sql_4c64a02436a1a']; if (do_format('loops_index') == 1) { ?>
<form action='<? echo constant('dir'); ?>index.php' method='post'>
<input type=hidden name=req value=images>
<table width=80%>
<tr><td colspan=2><? echo _up_count; ?> <b><? echo do_format('loops_count'); ?></b> <? echo _pics; ?><br><BR></td></tr>
<? } if (do_format('i_video') == 0) { ?>
<? $s = getimagesize('images/pictures/'.$en['m_id'].'-'.$en['i_id'].'.jpg'); $en['height'] = $s[1]+30; $en['width'] = $s[0]+30; ?>
<tr><Td align=center valign=top width=30%>
<a onclick='javascript:popUp("<? echo constant('dir'); ?>images/pictures/<? echo do_format('m_id'); ?>-<? echo do_format('i_id'); ?>.jpg","image","width=<? echo do_format('width'); ?>,height=<? echo do_format('height'); ?>")'>
<img src='<? echo constant('dir'); ?>images/thumbnails/<? echo do_format('m_id'); ?>-<? echo do_format('i_id'); ?>.jpg' border=0>
</a>
<br>
<? if (do_format('i_status') == 0) { ?>
<font color=red><? echo _unappr; ?></font>
<? } ?>
<? if (do_format('i_status') == 1) { ?>
<a href='<? echo constant('dir'); ?>index.php?req=images&act=setmain&id=<? echo do_format('i_id'); ?>'><? echo _set_main; ?></a>
<? } ?>
<? if (do_format('i_status') == 2) { ?>
<b><? echo _main_pic; ?></b>
<? } ?>
<br><input type=checkbox name=del[<? echo do_format('i_id'); ?>] value=ON> <? echo _del; ?>
</td><Td width=70% valign=top>
<b><? echo do_format('i_ratingcnt'); ?></b> <? echo _ratings; ?><Br>
<? if (do_format('i_rating') != '') { ?>
<? echo _avg_rating; ?>: <b><? echo do_format('i_rating'); ?></b><Br>
<? } ?>
<? if (allow_more_cats == 'Yes') { ?>
<? echo _type_name; ?>: <b><? echo do_format('t_name'); ?></b><br>
<? } ?>
<Br>
<? if (allow_descr == 0 || (allow_descr == 2 && $en['m_daysleft'] > 0)) { ?>
<? echo _descr; ?>:<br>
<input type=text name=descr[<? echo do_format('i_id'); ?>] size=50 value='<? echo do_format('i_name'); ?>'>
<? } ?>
</td></tr>
<? } else { ?>
<? } ?>
<tr><td colspan=2> </td></tr><? if (do_format('loops_left') == 0) { ?>
</table>
<input type=submit name=sm value='<? echo _save_ch; ?>'>
</form>
<? $en['upped'] = '1'; } } if (do_format('upped') == '') { echo _no_img_yet; } ?><br>
<table width=80%>
<tr><td align=left>
<form action='<? echo constant('dir'); ?>index.php' method=post enctype="multipart/form-data">
<input type=hidden name=req value=images><!-- Uploading a new Image -->
<fieldset>
<legend>
<b><? echo _upload_new; ?></b></legend>
<br>
<input type=file name='img' id='img'><br></fieldset><? if (allow_descr == 0 || (allow_descr == 2 && $en['m_daysleft'] > 0)) { ?>
<br><b><? echo _descr; ?></b><br> <input type=text name=descr size=40><br>
<? } if (allow_more_cats == 'Yes') { ?>
<b><? echo _type_name; ?></b><br> <select name=type>
<? $to['sql_4c64a02437213'] = 'max'; $from['sql_4c64a02437213'] = '1'; $query = "SELECT *, t_name_".do_format('lang')." AS t_name FROM $typetable ORDER BY t_name_".do_format('lang').""; $sql_4c64a02437213 = sql_query($query); if (sql_num_rows($sql_4c64a02437213) > 0) { if (!is_numeric($to['sql_4c64a02437213'])) $to['sql_4c64a02437213'] = sql_num_rows($sql_4c64a02437213); $from['sql_4c64a02437213'] = min($from['sql_4c64a02437213'],sql_num_rows($sql_4c64a02437213)); sql_data_seek($sql_4c64a02437213,$from['sql_4c64a02437213']-1); $en['loops_left'] = $en['total_count'] = $en['total_cnt']['sql_4c64a02437213'] = sql_num_rows($sql_4c64a02437213); } $en['loops_cnt']['sql_4c64a02437213'] = 0; $en['loops_count'] = min(sql_num_rows($sql_4c64a02437213)-($from['sql_4c64a02437213']-1),$to['sql_4c64a02437213']); $tos['sql_4c64a02437213'] = $to; while (($line = sql_fetch_assoc($sql_4c64a02437213)) && $en['loops_cnt']['sql_4c64a02437213'] < $tos['sql_4c64a02437213']) {$en = array_merge($en,$line);
if (!is_array($en['loops_cnt'])) { $en['loops_cnt'] = array(); }
$en['loops_index'] = ++$en['loops_cnt']['sql_4c64a02437213'];
$en['loops_left'] = $en['total_cnt']['sql_4c64a02437213']-$en['loops_cnt']['sql_4c64a02437213']; $en['sel'] = $en['m_type'] == $en['t_id'] ? ' selected' : ''; ?>
<option value=<? echo do_format('t_id'); ?> <? echo do_format('sel'); ?>><? echo do_format('t_name'); ?></option>
<? } ?>
</select><br>
<? } ?><br>
<input type=submit name=sm value='<? echo _do_upload; ?>'></td></tr>
</form>
</table>