function exists_pending_change($user_id = PGV_USER_ID, $ged_id = PGV_GED_ID) { global $pgv_changes; if (!isset($pgv_changes) || !userCanAccept($user_id, $ged_id)) { return false; } $gedcom = get_gedcom_from_id($ged_id); foreach ($pgv_changes as $pgv_change) { if ($pgv_change[0]['gedcom'] == $gedcom) { return true; } } return false; }
* @version $Id$ */ /** * Initialization */ require_once '../kernel/setup_inc.php'; // Is package installed and enabled $gBitSystem->verifyPackage('phpgedview'); include_once PHPGEDVIEW_PKG_PATH . 'BitGEDCOM.php'; $gGedcom = new BitGEDCOM(); // leave manual config until we can move it to bitweaver table require "config.php"; require_once 'includes/functions/functions_edit.php'; require_once 'includes/functions/functions_import.php'; require $INDEX_DIRECTORY . 'pgv_changes.php'; if (!userCanAccept(getUserName())) { header("Location: login.php?url=edit_changes.php"); exit; } if (isset($_REQUEST['action'])) { $action = $_REQUEST['action']; } if (isset($_REQUEST['cid'])) { $cid = $_REQUEST['cid']; } if (isset($_REQUEST['index'])) { $index = $_REQUEST['index']; } if (isset($_REQUEST['ged'])) { $ged = $_REQUEST['ged']; }