Revision 223
Added by stefan almost 20 years ago
| details.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 |
// $Id: details.php,v 1.2 2005/04/02 06:25:53 rdjurovich Exp $
|
|
| 3 |
// $Id$ |
|
| 4 | 4 |
|
| 5 | 5 |
/* |
| 6 | 6 |
|
| ... | ... | |
| 48 | 48 |
$template->set_block('page', 'main_block', 'main');
|
| 49 | 49 |
|
| 50 | 50 |
// Insert values |
| 51 |
require(WB_PATH.'/templates/'.$file.'/info.php'); |
|
| 51 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND directory = '$file'");
|
|
| 52 |
if($result->numRows() > 0) {
|
|
| 53 |
$row = $result->fetchRow(); |
|
| 54 |
} |
|
| 55 |
|
|
| 52 | 56 |
$template->set_var(array( |
| 53 |
'NAME' => $template_name,
|
|
| 54 |
'AUTHOR' => $template_author,
|
|
| 55 |
'DESCRIPTION' => $template_description,
|
|
| 56 |
'VERSION' => $template_version,
|
|
| 57 |
'DESIGNED_FOR' => $template_designed_for
|
|
| 57 |
'NAME' => $row['name'],
|
|
| 58 |
'AUTHOR' => $row['author'],
|
|
| 59 |
'DESCRIPTION' => $row['description'],
|
|
| 60 |
'VERSION' => $row['version'],
|
|
| 61 |
'DESIGNED_FOR' => $row['platform']
|
|
| 58 | 62 |
) |
| 59 | 63 |
); |
| 60 | 64 |
|
Also available in: Unified diff
Fixed ticket #46 - addon details are taken from database. Minor changes to install/save.php.