403Webshell
Server IP : 80.241.246.6  /  Your IP : 216.73.216.188
Web Server : Apache/2.4.25 (Debian)
System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User : www-data ( 33)
PHP Version : 7.0.33-0+deb9u12
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/kharagauli_new/admin/view/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli_new/admin/view/templates/add_new_category.php
<?php
/*
@author suxoza <suxoza@gmail.com>
*/
 header("Content-type: text/html; Charset=utf-8");
  session_start();
   mb_internal_encoding("UTF-8");
    error_reporting(E_ALL);
     date_default_timezone_set("Asia/Tbilisi");
    set_include_path(
        get_include_path()
        .PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT'].'/clases'
        .PATH_SEPARATOR.str_replace('/admin','',$_SERVER['DOCUMENT_ROOT']).'/Smarty'
        .PATH_SEPARATOR.str_replace('/admin','',$_SERVER['DOCUMENT_ROOT']).'/cls'
    );

    function class_loader($class){
        require_once $class.'.php';
    }

    spl_autoload_register('class_loader');

$_ = new Central;



//$_->pre($_->language_config->name);



$language = $_->_lang;
?>

<form action="/add_new_category" method="post" id="add_new_category_form">
<table>
            <input type="hidden" name="menu_pos" value="0"/>
            <input type="hidden" name="parent" value="0"/>
       <?php require_once 'add_new_category_inline.php';?>
        <?php   
          for($i = 0; $i < count($_->language_config); $i++):?>
                    <tr>
                        <td>დასახელება <?=$_->language_config[$i]?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td>
                            <input class="<?=($i)?'names_s not_removed':'';?>" type="text" name="name_<?=$_->language_config[$i];?>" onkeyup="<?php if(!$i){?>added_values(this)<?php }else{?>document.getElementById('_URl_<?=$i;?>').value = this.value.replace(/\s/g,'-');<?php }?>" autocomplete="off"/>
                        </td>
                    </tr>
                    <tr>
                        <td>URL <?=$_->language_config[$i]?>: </td>
                        <td>
                            <input class="urls_s not_removed" type="text" id="_URl_<?=$i;?>" name="URL_<?=$_->language_config[$i];?>" onkeyup="this.value = this.value.replace(/\s/g,'-');"/>
                        </td>
                    </tr>
                <?php if(!$i):?>
                    </table>
                      <input type="button" style="float: right;" onclick="if(!$('#_any_languages').is(':visible'))$('#_any_languages').slideDown();else $('#_any_languages').slideUp();" value="სხვა ენები"/>
                     <table id="_any_languages"> 

               <?php endif;?>            
                <?php if($i == count($_->language_config) - 1):?>
                   </table>
                <?php endif;?>
    <?php endfor;?>
     <tr>
        <td> </td>
        <td>
            <input type="button" value="send" onclick="add_new_category()"/>
        </td>
    </tr>
</table>
</form>
<script>
    var zuzuna = false;
    $('form[action$="add_new_category"]').submit(function(){
        return zuzuna;
    });
    
    function added_values(a){
        //document.getElementById('_URl').value = this.value.replace(/\s/g,'_');
        var th = $(a);
        $('.names_s').val(th.val());
        $('.urls_s').val(th.val().replace(/\s/g,'-'));
    }
    
    function add_new_category(){
        var ret = true;
        var select = $('#add_new_category_form select[name="category"]');
        var inp = ($('#add_new_category_form input:text[name="name"]').length)?$('#add_new_category_form input:text[name="name"]').val():'saxli';
        if(inp.length  && parseInt($('option:selected',select).val()) == $('option:selected',select).val()){
            $('#add_new_category_form select').each(function(){
               if($(this).is(':visible')){
                   if(parseInt($(this).val()) != $(this).val()){
                       ret = false;
                   }
               }
            });
            // if($('#add_new_category_form input:text[name="href_url"]').is(':visible')){
            //     if(!learnRegExp($('#add_new_category_form input:text[name="href_url"]').val()))ret = false;
            // }
            if(ret){
                $('#add_new_category_form select,input:text').each(function(){
                    if(!$(this).is(':visible') && !$(this).is('.not_removed'))$(this).remove();
                });
               
                zuzuna = true;
                $('#add_new_category_form').submit();
            }
         }    
    }
    var loca_array = {
        general_top    :0,
        general_left   :1,
        general_right  :2,
        general_bottom :3
    };
    var location_href_menu = (location.hash && location.hash.indexOf('#general_') != -1)?loca_array[location.hash.substr(1)]:loca_array.general_top;
    $('#add_new_category_form input:hidden[name="menu_pos"]').val(location_href_menu);
    
    function select_next_step_1(a){
        var th = $(a);
        if(th.val() == 0){
            $('.second_step').removeClass('display_none').addClass('display_block');
        }else{
            $('.second_step').removeClass('display_block').addClass('display_none');
            $('.third_step').removeClass('display_block').addClass('display_none');
            $('.fourth_step').removeClass('display_block').addClass('display_none');
        }
        
    }
    
    function select_next_step_2(a){
        var th = $(a);
        if(th.val() == 1)
            $('.third_step').removeClass('display_none').addClass('display_block');
        else
            $('.third_step').removeClass('display_block').addClass('display_none');
        if(th.val() == 2)
            $('.fourth_step').removeClass('display_none').addClass('display_block');
        else
            $('.fourth_step').removeClass('display_block').addClass('display_none');
        
    }
    

    
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit