18 lines
653 B
PHP
Executable File
18 lines
653 B
PHP
Executable File
<?php
|
|
class main extends MySQL{
|
|
|
|
/* ------------------------------------------------------------------------------------------------------------------------- */
|
|
function get_pages( $id ){ // Получаем страницы
|
|
$db = $this -> db;
|
|
$db -> or_by_desc = 1;
|
|
$a['public'] = 1;
|
|
$a['post_type'] = 'page';
|
|
$a['pages_cat'] = $id;
|
|
$postrow = $db -> get_massiv( 'pages', $a, 't' );
|
|
//print_r( $postrow );
|
|
return $postrow;
|
|
}
|
|
/* ------------------------------------------------------------------------------------------------------------------------- */
|
|
|
|
}
|
|
?>
|