Пример #1
0
<?php

# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_gallery');
$Lang = $API->get('Lang');
# include your class files
include '../PerchGallery_Albums.class.php';
include '../PerchGallery_Album.class.php';
include '../PerchGallery_Images.class.php';
include '../PerchGallery_Image.class.php';
include '../PerchGallery_ImageVersions.class.php';
include '../PerchGallery_ImageVersion.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Gallery: List Images');
$Perch->add_css($API->app_path() . '/admin.css');
$Perch->add_javascript($API->app_path() . '/upload.js');
# Do anything you want to do before output is started
include '../modes/images.list.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/images.list.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
Пример #2
0
<?php

# include the API
include '../../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_blog');
$Lang = $API->get('Lang');
# include your class files
include '../../PerchBlog_Posts.class.php';
include '../../PerchBlog_Post.class.php';
include '../../PerchBlog_Sections.class.php';
include '../../PerchBlog_Section.class.php';
include '../../PerchBlog_Tags.class.php';
include '../../PerchBlog_Tag.class.php';
include '../../PerchBlog_Comments.class.php';
include '../../PerchBlog_Comment.class.php';
include '../../PerchBlog_Authors.class.php';
include '../../PerchBlog_Author.class.php';
include '../../PerchBlog_Cache.class.php';
include '../../PerchBlog_Util.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Posterous Import');
$Perch->add_css($API->app_path() . '/assets/css/blog.css');
# Do anything you want to do before output is started
include '../../modes/import.posterous.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../../modes/import.posterous.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
Пример #3
0
<?php

# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_events');
$Lang = $API->get('Lang');
if (!$CurrentUser->has_priv('perch_events.categories.manage')) {
    PerchUtil::redirect($API->app_path());
}
# include your class files
include '../PerchEvents_Categories.class.php';
include '../PerchEvents_Category.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Manage Event Categories');
# Do anything you want to do before output is started
include '../modes/cat.list.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/cat.list.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
Пример #4
0
<?php

include __DIR__ . '/../../../core/inc/api.php';
// Perch API
$API = new PerchAPI(1.0, 'root_locator');
// APIs
$Lang = $API->get('Lang');
$HTML = $API->get('HTML');
$Settings = $API->get('Settings');
// Page settings
$Perch->page_title = $Lang->get('Locator');
$Perch->add_css($API->app_path() . '/assets/css/locator.css');
// Page Initialising
include 'modes/addresses.list.pre.php';
// Perch Frame
include PERCH_CORE . '/inc/top.php';
// Page
include 'modes/addresses.list.post.php';
// Perch Frame
include PERCH_CORE . '/inc/btm.php';
Пример #5
0
<?php

# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_members');
$Lang = $API->get('Lang');
# include your class files
include '../PerchMembers_Members.class.php';
include '../PerchMembers_Member.class.php';
include '../PerchMembers_Tags.class.php';
include '../PerchMembers_Tag.class.php';
include '../PerchMembers_Forms.class.php';
include '../PerchMembers_Form.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Edit Members');
$Perch->add_css($API->app_path() . '/assets/css/members.css');
# Do anything you want to do before output is started
include '../modes/members.edit.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/members.edit.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
Пример #6
0
<?php

# include the API
include '../../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_gallery');
$Lang = $API->get('Lang');
# include your class files
include '../../PerchGallery_Albums.class.php';
include '../../PerchGallery_Album.class.php';
include '../../PerchGallery_Images.class.php';
include '../../PerchGallery_Image.class.php';
include '../../PerchGallery_ImageVersions.class.php';
include '../../PerchGallery_ImageVersion.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Gallery: Edit image');
$Perch->add_css($API->app_path() . '/admin.css');
# Do anything you want to do before output is started
include '../../modes/image.edit.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../../modes/image.edit.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
Пример #7
0
<?php

# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_blog');
$Lang = $API->get('Lang');
# Set the page title
$Perch->page_title = $Lang->get('Blog Comments');
$Perch->add_css($API->app_path() . '/assets/css/blog.css');
$Perch->add_javascript($API->app_path() . '/assets/js/blog.js');
# Do anything you want to do before output is started
include '../modes/comment.list.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/comment.list.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
Пример #8
0
<?php

include '../../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_gallery');
$Lang = $API->get('Lang');
include '../../PerchGallery_Albums.class.php';
include '../../PerchGallery_Album.class.php';
include '../../PerchGallery_Images.class.php';
include '../../PerchGallery_Image.class.php';
include '../../PerchGallery_ImageVersions.class.php';
include '../../PerchGallery_ImageVersion.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Gallery: Upload images');
$Perch->add_css($API->app_path() . '/admin.css');
$Perch->add_css($API->app_path() . '/js/jquery.plupload.queue/css/jquery.plupload.queue.css');
$Perch->add_javascript($API->app_path() . '/js/plupload.js');
$Perch->add_javascript($API->app_path() . '/js/plupload.gears.js');
$Perch->add_javascript($API->app_path() . '/js/plupload.silverlight.js');
$Perch->add_javascript($API->app_path() . '/js/plupload.flash.js');
$Perch->add_javascript($API->app_path() . '/js/plupload.html4.js');
$Perch->add_javascript($API->app_path() . '/js/plupload.html5.js');
$Perch->add_javascript($API->app_path() . '/js/jquery.plupload.queue/jquery.plupload.queue.js');
$Perch->add_javascript($API->app_path() . '/upload.js');
include '../../modes/image.upload.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../../modes/image.upload.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';