if (!$_SESSION['origSiteObj']->sections[$_SESSION['origSection']]->pages[$_SESSION['origPage']]->hasPermission("delete", $_SESSION['auser'])) { $_SESSION['onlyCopy'] = 1; $_REQUEST['action'] = "COPY"; } } else { if (!$_SESSION['origSiteObj']->sections[$_SESSION['origSection']]->pages[$_SESSION['origPage']]->stories[$_SESSION['origStory']]->hasPermission("delete", $_SESSION['auser'])) { $_SESSION['onlyCopy'] = 1; $_REQUEST['action'] = "COPY"; } } } /****************************************************************************** * Get the sites that a person is the owner or editor of. ******************************************************************************/ $sitesArray = segue::getAllSites($_SESSION['auser']); $sitesArray = array_merge($sitesArray, segue::getAllSitesWhereUserIsEditor($_SESSION['auser'])); foreach ($sitesArray as $s) { $temp =& new site($s); $temp->fetchDown(); if ($temp->hasPermissionDown("add", $_SESSION['auser']) || $temp->name == $_REQUEST['site'] || $temp->site_owner == $_SESSION['auser']) { $_SESSION['sites'][$s] = $temp; } } } if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = "COPY"; } /****************************************************************************** * Initialize the current site. ******************************************************************************/ $siteObj =& new site($_REQUEST['site']);