Documentation

Packages.template.php

Simple Machines Forum (SMF)

Tags
author

Simple Machines https://www.simplemachines.org

copyright

2025 Simple Machines and individual contributors

license

https://www.simplemachines.org/about/smf/license.php BSD

version
3.0

Alpha 2

Table of Contents

Functions

template_main()  : mixed
The main template
template_view_package()  : mixed
View package details when installing/uninstalling
template_extract_package()  : mixed
Extract package contents
template_list()  : mixed
List files in a package
template_examine()  : mixed
Examine a single file within a package
template_browse()  : mixed
List all packages
template_servers()  : mixed
List package servers
template_package_confirm()  : mixed
Confirm package operation
template_package_list()  : mixed
List packages.
template_downloaded()  : mixed
Confirmation page showing a package was uploaded/downloaded successfully.
template_install_options()  : mixed
Installation options - FTP info and backup settings
template_control_chmod()  : bool
CHMOD control form
template_ftp_required()  : mixed
Wrapper for the above template function showing that FTP is required
template_view_operations()  : mixed
View operation details.
template_file_permissions()  : mixed
The file permissions page.
template_permission_show_contents()  : mixed
Shows permissions for items within a directory (called from template_file_permissions)
template_action_permissions()  : mixed
A progress page showing what permissions changes are being applied

Functions

template_view_package()

View package details when installing/uninstalling

template_view_package() : mixed

template_extract_package()

Extract package contents

template_extract_package() : mixed

template_examine()

Examine a single file within a package

template_examine() : mixed

template_package_confirm()

Confirm package operation

template_package_confirm() : mixed

template_downloaded()

Confirmation page showing a package was uploaded/downloaded successfully.

template_downloaded() : mixed

template_install_options()

Installation options - FTP info and backup settings

template_install_options() : mixed

template_control_chmod()

CHMOD control form

template_control_chmod() : bool
Return values
bool

False if nothing to do.

template_ftp_required()

Wrapper for the above template function showing that FTP is required

template_ftp_required() : mixed

template_view_operations()

View operation details.

template_view_operations() : mixed

template_file_permissions()

The file permissions page.

template_file_permissions() : mixed

template_permission_show_contents()

Shows permissions for items within a directory (called from template_file_permissions)

template_permission_show_contents(string $ident, array<string|int, mixed> $contents, int $level[, bool $has_more = false ]) : mixed
Parameters
$ident : string

A unique ID - typically the directory name

$contents : array<string|int, mixed>

An array of items within the directory

$level : int

How far to go inside the directory

$has_more : bool = false

Whether there are more files to display besides what's in $contents

template_action_permissions()

A progress page showing what permissions changes are being applied

template_action_permissions() : mixed

        
On this page

Search results