if ($stmt->rowCount() == 0) { set_msg_err("Error: " . $_REQUEST['group_email_address'] . " is not in the database, or their Account_Type is not 'group_admin'"); $smarty->display('header.tpl'); require 'src/change_owner.php'; $smarty->display('footer.tpl'); exit; } $change_group = 1; } $q = "update domains set owner_id='{$owner_id}'"; if ($change_group == 1) { $q .= ", group_owner_id = '{$group_owner_id}'"; } $q .= " where domain_id = '" . $_REQUEST['domain_id'] . "'"; $pdo->query($q) or die(print_r($pdo->errorInfo())); $log_entry = "changed owner to " . get_owner_name($owner_id); if ($change_group == 1) { $log_entry .= " and changed group_owner to " . get_groupowner_name($group_owner_id); } dns_log($_REQUEST['domain_id'], $log_entry); set_msg("Ownership changed successfully"); header("Location: {$base_url}&mode=domains"); exit; } } } } } else { if ($_REQUEST['domain_mode'] == 'domain_prefs') { } }
// home page include DIR_FS_MODULES . 'doc_ctl/pages/main/tab_home.php'; } elseif ($id == 0 || $doc_details->fields['type'] == 'drive' || $doc_details->fields['type'] == 'folder') { // folder $dir_path = TEXT_DOCUMENT_TITLE . '/' . build_dir_path($id); $result = html_heading_bar(array(), array(' ', $dir_path, TEXT_ACTION)); $list_header = $result['html_code']; $field_list = array('id', 'file_name', 'title', 'type', 'doc_ext', 'description', 'security'); $query_raw = "select " . implode(', ', $field_list) . " from " . TABLE_DC_DOCUMENT . " where parent_id = '" . $id . "' order by position"; $query_split = new splitPageResults($_GET['list'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows); $query_result = $db->Execute($query_raw); include DIR_FS_MODULES . 'doc_ctl/pages/main/tab_folder.php'; } else { // load document details $dir_path = TEXT_PATH . ': /' . build_dir_path($id); $dir_path = substr($dir_path, 0, strrpos($dir_path, '/')); $bookmarked = test_bookmark(); $locked = $doc_details->fields['lock_id'] > 0 ? true : false; $checkout_id = $doc_details->fields['checkout_id']; $checked_out = get_owner_name($checkout_id); $doc_history = get_doc_history($id, $doc_details->fields['revision']); include DIR_FS_MODULES . 'doc_ctl/pages/main/tab_document.php'; } // put the output together $html = "<div>"; $html .= $fieldset_content; $html .= "</div>"; $xml .= "\t" . xmlEntry("htmlContents", $html); // error check echo createXmlHeader() . $xml . createXmlFooter(); die;
$fieldset_content .= ' <th colspan="2">' . TEXT_PROPERTIES . '</th>' . chr(10); $fieldset_content .= ' </tr>' . chr(10); $fieldset_content .= ' </thead>' . chr(10); $fieldset_content .= ' <tbody class="ui-widget-content">' . chr(10); $fieldset_content .= ' <tr>' . chr(10); $fieldset_content .= ' <td>' . TEXT_FILENAME . '</td>' . chr(10); $fieldset_content .= ' <td>' . $doc_details->fields['file_name'] . '</td>' . chr(10); $fieldset_content .= ' </tr><tr>' . chr(10); $fieldset_content .= ' <td>' . TEXT_OWNER . '</td>' . chr(10); $fieldset_content .= ' <td>' . get_owner_name($doc_details->fields['doc_owner']) . '</td>' . chr(10); $fieldset_content .= ' </tr><tr>' . chr(10); $fieldset_content .= ' <td>' . TEXT_LOCKED . '</td>' . chr(10); $fieldset_content .= ' <td>' . ($locked ? TEXT_YES . ' - ' . get_owner_name($doc_details->fields['lock_id']) : TEXT_NO) . '</td>' . chr(10); $fieldset_content .= ' </tr><tr>' . chr(10); $fieldset_content .= ' <td>' . TEXT_CHECKED_OUT . '</td>' . chr(10); $fieldset_content .= ' <td>' . ($checkout_id > 0 ? TEXT_YES . ' - ' . get_owner_name($doc_details->fields['checkout_id']) : TEXT_NO) . '</td>' . chr(10); $fieldset_content .= ' </tr><tr>' . chr(10); $fieldset_content .= ' <td>' . TEXT_BOOKMARKED . '</td>' . chr(10); $fieldset_content .= ' <td>' . (test_bookmark() ? TEXT_YES : TEXT_NO) . '</td>' . chr(10); $fieldset_content .= ' </tr>' . chr(10); if ($security_level > 3) { if (!$doc_details->fields['security']) { $doc_details->fields['security'] = 'u:0;g:0'; } $temp = explode(';', $doc_details->fields['security']); $security = array(); $desc = ''; foreach ($temp as $value) { $member = explode(':', $value); switch ($member[0]) { case 'u':
$order_str = 'alliance_application DESC'; } $listquery = $db->query('SELECT * FROM alliance ORDER BY ' . $order_str . ''); $game->out(' <table class="style_inner" width="650" align="center" border="0" cellpadding="2" cellspacing="4"> <tr> <td ><a href="' . parse_link('a=alliance_application&list=0') . '"><span class="sub_caption2">' . constant($game->sprache("TEXT17")) . '</span></a></td><td ><a href="' . parse_link('a=alliance_application&list=1') . '"><span class="sub_caption2">' . constant($game->sprache("TEXT32")) . '</span></a></td><td><span class="sub_caption2">' . constant($game->sprache("TEXT28")) . '</span></td><td ><a href="' . parse_link('a=alliance_application&list=3') . '"><span class="sub_caption2">' . constant($game->sprache("TEXT29")) . '</span></a></td ><td><a href="' . parse_link('a=alliance_application&list=4') . '"><span class="sub_caption2">' . constant($game->sprache("TEXT18")) . '</span></a></td><td ><a href="' . parse_link('a=alliance_application&list=5') . '"><span class="sub_caption2">' . constant($game->sprache("TEXT30")) . '</span></td><td ><span class="sub_caption2">' . constant($game->sprache("TEXT31")) . '</span></a></td> </tr> '); while (($alliance = $db->fetchrow($listquery)) != false) { $game->out(' <tr> <td >' . $alliance['alliance_name'] . '</td> <td >' . $alliance['alliance_tag'] . '</td> <td >' . get_owner_name($alliance['alliance_owner']) . '</td> <td align="center">' . $alliance['alliance_member'] . '</td> <td >' . $alliance['alliance_points'] . '</td> <td >' . $alliance['alliance_rank_points'] . '</td> '); if ($alliance['alliance_application'] == 1) { $game->out('<td >[<a href="' . parse_link('a=alliance_application&application=new&alliance=' . $alliance['alliance_id'] . '') . '"><span style="color: #00FF00;">' . constant($game->sprache("TEXT33")) . '</span></a>]</td></tr>'); } else { $game->out(' <td ><span style="color: #FF0000;">' . constant($game->sprache("TEXT36")) . '</span></td></tr>'); } } $game->out(' </table> '); } if (isset($_POST['application_submit'])) {