WordPress.org

Plugin Directory

Changeset 785159


Ignore:
Timestamp:
10/09/13 10:37:40 (4 years ago)
Author:
Quero
Message:

Fix Bugs

Location:
advance-page-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • advance-page-manager/trunk/filetree.php

    r633477 r785159  
    11<?php 
     2header('Content-Type: text/html; charset=UTF-8'); 
    23require '../../../wp-config.php'; 
    34require './mysql.class.php'; 
     
    2425        $b = $sql->query_first('SELECT COUNT(ID) as B FROM '.$table_prefix.'posts WHERE post_parent = "'.$my['ID'].'" AND post_status NOT LIKE "auto-draft" AND post_type = "page"'); 
    2526        if ($b['B'] > 0) { 
    26             echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . $my['ID'] . "/\">" . htmlentities($my['post_title']) . $b['B'] ."</a> <small><a rel=\"" . $my['ID'] ."\" href=\"post.php?post=".$my['ID']."&action=edit\">edit</a></small></li>"; 
     27            echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . $my['ID'] . "/\">" . $my['post_title'] ."</a> <small><a rel=\"" . $my['ID'] ."\" href=\"post.php?post=".$my['ID']."&action=edit\">edit</a></small></li>"; 
    2728        } else { 
    28             echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . $my['ID'] . "\">" . htmlentities($my['post_title']) . "</a></li>"; 
     29            echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . $my['ID'] . "\">" . $my['post_title'] . "</a></li>"; 
    2930        } 
    3031    } 
     
    3334} 
    3435?> 
    35  
    36 <?php 
    37 // 
    38 // jQuery File Tree PHP Connector 
    39 // 
    40 // Version 1.01 
    41 // 
    42 // Cory S.N. LaViska 
    43 // A Beautiful Site (http://abeautifulsite.net/) 
    44 // 24 March 2008 
    45 // 
    46 // History: 
    47 // 
    48 // 1.01 - updated to work with foreign characters in directory/file names (12 April 2008) 
    49 // 1.00 - released (24 March 2008) 
    50 // 
    51 // Output a list of files for jQuery File Tree 
    52 // 
    53 /* 
    54 $_POST['dir'] = './'; 
    55 $_POST['dir'] = urldecode($_POST['dir']); 
    56 $root = ''; 
    57 if( file_exists($root . $_POST['dir']) ) { 
    58     $files = scandir($root . $_POST['dir']); 
    59     natcasesort($files); 
    60     if( count($files) > 2 ) {//The 2 accounts for . and ..  
    61         echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">"; 
    62         // All dirs 
    63         foreach( $files as $file ) { 
    64             if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($root . $_POST['dir'] . $file) ) { 
    65                 echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "/\">" . htmlentities($file) . "</a></li>"; 
    66             } 
    67         } 
    68         // All files 
    69         foreach( $files as $file ) { 
    70             if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && !is_dir($root . $_POST['dir'] . $file) ) { 
    71                 $ext = preg_replace('/^.*\./', '', $file); 
    72                 echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "\">" . htmlentities($file) . "</a></li>"; 
    73             } 
    74         } 
    75         echo "</ul>";    
    76     } 
    77 }*/ 
    78  
    79 ?> 
  • advance-page-manager/trunk/readme.txt

    r633477 r785159  
    44Tags: page, page manager, treeview, manager 
    55Requires at least: 3.0.1 
    6 Tested up to: 3.4 
    7 Stable tag: 1.0.0 
     6Tested up to: 3.6.1 
     7Stable tag: 1.1.0 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3131== Changelog == 
    3232 
     33= 1.1 = 
     34* Fix Bugs 
     35 
    3336= 1.0 = 
    3437* jQuery TreeView 
Note: See TracChangeset for help on using the changeset viewer.