res-set.php

File Type: php File Location: monofiles/ File name: res-set.php
<?php
    
include_once 'data_connect.php';
    include 
'log.php';
    
    
update_account($_SESSION['userID'],'set');
    
    
$gt = isset($_GET['sort']) ? '?'.$_GET['sort'].'='.$_GET['sortval'] : '' ;
    
    switch(
true){
    
    case 
$_GET['postsperpage']: 
        
        
$location 'opensaved.php'.$gt;
        break;
    
    
    case 
$_GET['pagesperpage']: 
        
        
$location 'pages.php'.$gt;
        break;
        
        
    case 
$_GET['imgsperpage']: 
            
        
$location 'uploads.php';
        break;
        
    }
            
            if (isset(
$location))
                
header("Location:$location")
?>