mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-18 04:29:28 +00:00
17 lines
452 B
PHP
17 lines
452 B
PHP
<?php
|
|
if (! defined('DB_NAME')) exit('No direct script access allowed');
|
|
|
|
// add app fhctemplate
|
|
if($result = $db->db_query("SELECT 1 FROM system.tbl_app WHERE app='fhctemplate'"))
|
|
{
|
|
if($db->db_num_rows($result) === 0)
|
|
{
|
|
$qry = "INSERT INTO system.tbl_app (app) VALUES('fhctemplate');";
|
|
|
|
if(!$db->db_query($qry))
|
|
echo '<strong>System Tabelle app: '.$db->db_last_error().'</strong><br>';
|
|
else
|
|
echo '<br>app fhctemplate hinzugefuegt';
|
|
}
|
|
}
|