<?php
/******************************************************************************/
// //
// InstantCMS v1.8 //
// http://www.instantcms.ru/ //
// //
// written by InstantCMS Team, 2007-2010 //
// produced by InstantSoft, (www.instantsoft.ru) //
// //
// LICENSED BY GNU/GPL v2 //
// //
/******************************************************************************/
function routes_photoblog(){
$routes[] = array(
'_uri' => '/^photoblog/page-([0-9]+)$/i',
'do' => 'list',
1 => 'cpage'
);
$routes[] = array(
'_uri' => '/^photoblog/sort/(pubdate|hits)/(asc|desc)$/i',
'do' => 'set_sort',
1 => 'orderby',
2 => 'orderto'
);
$routes[] = array(
'_uri' => '/^photoblog/add.html$/i',
'do' => 'add'
);
$routes[] = array(
'_uri' => '/^photoblog/([0-9]+)/del.html$/i',
'do' => 'del',
1 => 'ph_id'
);
$routes[] = array(
'_uri' => '/^photoblog/([0-9]+)/edit.html$/i',
'do' => 'edit',
1 => 'ph_id'
);
$routes[] = array(
'_uri' => '/^photoblog/([0-9]+)/upload.html$/i',
'do' => 'upload',
1 => 'ph_id'
);
$routes[] = array(
'_uri' => '/^photoblog/([0-9]+)/upload$/i',
'do' => 'go_upload',
1 => 'ph_id'
);
$routes[] = array(
'_uri' => '/^photoblog/([a-zA-Z0-9-]+).html$/i',
1 => 'seolink',
'do' => 'view'
);
return $routes;
}
?>