Topic: [ AddOn ] list_Extensions.php
This page will show all your extensions and who made them etc.
just copy and paste:
list_extensions.php
<?php
if ( !defined ( 'PUN_ROOT' ) )
define ( 'PUN_ROOT', './' );
define ( 'PUN_PAGE', 1 );
require PUN_ROOT.'include/common.php';
// Load the language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
/*if ( file_exists ( 'extensions/simple_gallery/lang/'.$pun_user['language'].'/gallery.php' ) ) {
require PUN_ROOT.'extensions/simple_gallery/lang/'.$pun_user['language'].'/gallery.php';
} else {
require PUN_ROOT.'extensions/simple_gallery/lang/English/gallery.php';
}*/
//Set the page title here
$pun_page['crumbs'] = array(
array( $pun_config['o_board_title'], pun_link ( $pun_url['index'] ) ),
'List Extensions'
);
define ( 'PUN_ALLOW_INDEX', 1 );
require PUN_ROOT.'header.php';
$query = array(
'SELECT' => 'title, version, description, author, disabled',
'FROM' => 'extensions',
'ORDER BY' => 'title ASC'
);
$result = $db->query_build($query, true) or error(__FILE__, __LINE__);
?>
<div id="pun-main" class="main sectioned">
<div class="main-head">
List Extensions
</div>
<div class="main-content frm">
<table summary="list mods">
<tr>
<th>Name extension</th>
<th>Author</th>
<th>Version</th>
<th>Description</th>
<th>Enables/Disabled</th>
</tr>
<tbody>
<?php
while ( $data = $db->fetch_assoc( $result ) ) {
if ( $data['disabled'] == '0' ) {
$data['disabled'] = 'Enabled';
} else {
$data['disabled'] = 'Disabled';
}
echo '<tr><td>'.$data['title'].'</td><td>'.$data['author'].'</td><td>'.$data['version'].'</td><td>'.$data['description'].'</td><td>'.$data['disabled'].'</td></tr>';
}
?>
</tbody>
</table>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';