Location: PHPKode > projects > MembersGear > membersgear/templates/apache_modules_extensions_check.php
{literal}     
        <script language="javascript" type="text/javascript">
            var $ks = jQuery.noConflict(); 
            function mod_rewrite_request() {   
                    $ks.ajax({
                      type: "POST",
                      url: "../mod_rewrite/mod_rewrite3.html",
                      dataType: "html",
                      success: function(data) {
                               if(ltrim(rtrim(data)) != 'ENABLED')
                                 {
                                    createCookie('apache_mod_rewrite','0',0);   
                                    window.location.href = '../check_server_requirements_mod_dir.php?check=mod_rewrite';
                                    
                                 }
                                 
                                 if(ltrim(rtrim(data))  == 'ENABLED')        
                                  
                                  {    
                                    createCookie('apache_mod_rewrite','1',0);     
                                  }
                             }
                    
                     });
            
            }          
                
                
         
            function sendRequest() {
                
                
                $ks.ajax({
                      type: "POST",
                      url: "mod_dir/",
                      dataType: "html",
                      success: function(data) {
                               if(ltrim(rtrim(data)) != 'ENABLED')
                                 {
                                    createCookie('apache_mod_dir','0',0);       
                                     window.location.href ='../check_server_requirements_mod_dir.php?check=mod_dir';
                                    
                                 }
                                 
                                 if(ltrim(rtrim(data))  == 'ENABLED')            
                                   {
                                       createCookie('apache_mod_dir','1',0);
                                       
                                        if(readCookie("apache_mod_rewrite")!="1") 
                                          { 
                                               mod_rewrite_request();
                                          }    
                                       
                                 }
                          }     
                    
                     });
               
                }      

            //alert(readCookie("apache_mod_dir"));
            if((readCookie("apache_mod_dir")!="1") || readCookie("apache_mod_rewrite")!="1")    {
              sendRequest(); 
            }

        </script>

{/literal}
Return current item: MembersGear