X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/glossary
home
/
cbholdings
/
pasukulu
/
mod
/
glossary
/
📁
..
📄
README.txt
(1.7 KB)
📄
TODO.txt
(607 B)
📄
approve.php
(2.22 KB)
📁
backup
📁
classes
📁
db
📄
deleteentry.php
(2.87 KB)
📄
deprecatedlib.php
(2.27 KB)
📄
edit.php
(3.43 KB)
📄
edit_form.php
(7.12 KB)
📄
editcategories.html
(3.29 KB)
📄
editcategories.php
(10.89 KB)
📄
export.php
(2.95 KB)
📄
exportentry.php
(4.47 KB)
📁
formats
📄
formats.php
(9.51 KB)
📄
import.php
(15.58 KB)
📄
import_form.php
(1.13 KB)
📄
index.php
(4.36 KB)
📁
lang
📄
lib.php
(164.78 KB)
📄
locallib.php
(29.25 KB)
📄
mod_form.php
(10.57 KB)
📁
pix
📄
print.php
(6.94 KB)
📄
rsslib.php
(7.87 KB)
📄
settings.php
(2.7 KB)
📄
showentry.php
(3.42 KB)
📄
showentry_ajax.php
(3.78 KB)
📄
sql.php
(3.83 KB)
📄
styles.css
(2.5 KB)
📄
tabs.php
(2.46 KB)
📁
templates
📁
tests
📄
upgrade.txt
(1.25 KB)
📄
version.php
(1.2 KB)
📄
view.php
(17.41 KB)
Editing: sql.php
<?php /** * SQL.PHP * This file is include from view.php and print.php * @copyright 2003 **/ /** * This file defines, or redefines, the following variables: * * bool $userispivot Whether the user is the pivot. * bool $fullpivot Whether the pivot should be displayed in full. * bool $printpivot Whether the pivot should be displayed. * string $pivotkey The property of the record at which the pivot is. * int $count The number of records matching the request. * array $allentries The entries matching the request. * mixed $field Unset in this file. * mixed $entry Unset in this file. * mixed $canapprove Unset in this file. * * It relies on the following variables: * * object $glossary The glossary object. * context $context The glossary context. * mixed $hook The hook for the selected tab. * string $sortkey The key to sort the records. * string $sortorder The order of the sorting. * int $offset The number of records to skip. * int $pagelimit The number of entries on this page, or 0 if unlimited. * string $mode The mode of browsing. * string $tab The tab selected. */ $userispivot = false; $fullpivot = true; $pivotkey = 'concept'; switch ($tab) { case GLOSSARY_AUTHOR_VIEW: $userispivot = true; $pivotkey = 'userid'; $field = ($sortkey == 'LASTNAME' ? 'LASTNAME' : 'FIRSTNAME'); list($allentries, $count) = glossary_get_entries_by_author($glossary, $context, $hook, $field, $sortorder, $offset, $pagelimit); unset($field); break; case GLOSSARY_CATEGORY_VIEW: $hook = (int) $hook; // Make sure it's properly casted to int. list($allentries, $count) = glossary_get_entries_by_category($glossary, $context, $hook, $offset, $pagelimit); $pivotkey = 'categoryname'; if ($hook != GLOSSARY_SHOW_ALL_CATEGORIES) { $printpivot = false; } break; case GLOSSARY_DATE_VIEW: $printpivot = false; $field = ($sortkey == 'CREATION' ? 'CREATION' : 'UPDATE'); list($allentries, $count) = glossary_get_entries_by_date($glossary, $context, $field, $sortorder, $offset, $pagelimit); unset($field); break; case GLOSSARY_APPROVAL_VIEW: $fullpivot = false; $printpivot = false; list($allentries, $count) = glossary_get_entries_to_approve($glossary, $context, $hook, $sortkey, $sortorder, $offset, $pagelimit); break; case GLOSSARY_STANDARD_VIEW: default: $fullpivot = false; switch ($mode) { case 'search': list($allentries, $count) = glossary_get_entries_by_search($glossary, $context, $hook, $fullsearch, $sortkey, $sortorder, $offset, $pagelimit); break; case 'term': $printpivot = false; list($allentries, $count) = glossary_get_entries_by_term($glossary, $context, $hook, $offset, $pagelimit); break; case 'entry': $printpivot = false; $entry = glossary_get_entry_by_id($hook); $canapprove = has_capability('mod/glossary:approve', $context); if ($entry && ($entry->glossaryid == $glossary->id || $entry->sourceglossaryid != $glossary->id) && (!empty($entry->approved) || $entry->userid == $USER->id || $canapprove)) { $count = 1; $allentries = array($entry); } else { $count = 0; $allentries = array(); } unset($entry, $canapprove); break; case 'letter': default: list($allentries, $count) = glossary_get_entries_by_letter($glossary, $context, $hook, $offset, $pagelimit); break; } break; }
Upload File
Create Folder