mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Update function for creating the shadow entries.
This commit is contained in:
parent
d054ac8d9c
commit
043c406091
5 changed files with 80 additions and 31 deletions
22
include/shadowupdate.php
Normal file
22
include/shadowupdate.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
require_once("boot.php");
|
||||
require_once("include/threads.php");
|
||||
|
||||
global $a, $db;
|
||||
|
||||
if(is_null($a))
|
||||
$a = new App;
|
||||
|
||||
if(is_null($db)) {
|
||||
@include(".htconfig.php");
|
||||
require_once("include/dba.php");
|
||||
$db = new dba($db_host, $db_user, $db_pass, $db_data);
|
||||
unset($db_host, $db_user, $db_pass, $db_data);
|
||||
}
|
||||
|
||||
load_config('config');
|
||||
load_config('system');
|
||||
|
||||
update_shadow_copy();
|
||||
killme();
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue