Lines Matching refs:this

23 			$this->disabled = $this->lang['noauth'];
25 $this->disabled = $this->lang['nosupport'];
29 $this->_auth = & $auth;
32 if ( ! $this->_setup() ) return false;
33 if ( !$this->functions->checkDatabase() ) {
34 $this->functions = null;
64 if (is_null($this->_auth)) return false;
79 case "set_user" : $this->_setUser($_REQUEST['user']); break;
80 …case "createcategories" : $this->_createCategory($_REQUEST['CategoryName'], $_REQUEST['FileName']…
81 case "updatecategories" : $this->_deleteCategory($_REQUEST['deletecategory']); break;
82 …case "uploadmaster" : $this->_handleUploadedFiles($_REQUEST['Category'], $_REQUEST['Version'], $…
83 case "deletemaster" : $this->_handleDeleteMaster($_REQUEST['deletemaster']); break;
84 …case "deleteuser" : $this->_handleDeleteUser($_REQUEST['deleteuser'], $_REQUEST['manageUser']); …
87 $this->functions->_handleRequest($fn);
96 if(is_null($this->_auth)) {
97 print $this->lang['badauth'];
101 print $this->locale_xhtml('intro');
106 $this->_userCategoryManager($_REQUEST['manageUser']);
109 $this->_userRightsForm();
112 $this->_categoryManager();
115 $this->_importManager();
118 $this->functions->_exportManager($this);
121 $this->_deleteMasterLanguageManager();
128 $categories = array_keys($this->functions->_getCategories());
131 …$form = $this->_startFieldSet($this->getLang('ImportMasterLanguage'), 'translator_master_import', …
141 $this->_finishFieldset($form);
143 $this->functions->_revertManager($this, $this->revertableUpload);
148 $categories = $this->functions->_getCategories();
152 $form = $this->_startFieldSet($this->getLang('RemoveMasterLanguage'), 'translator_master_remove');
156 foreach ( $this->functions->_getAvailableVersions($category['CategoryID']) as $Version ) {
166 $this->_finishFieldset($form);
174 $categories = $this->functions->_getCategories();
178 $form = $this->_startFieldSet($this->getLang('CategoryManager'), 'translator_categories');
185 … $form->addElement(form_makeField('submit', 'fn[updatecategories]', $this->getLang('Delete'), ''));
186 $this->_finishFieldset($form);
190 $form = $this->_startFieldSet($this->getLang('AddCategory'), 'translator_new_categories');
192 …$form->addElement(form_makeTextField('CategoryName', $_REQUEST['CategoryName'], $this->getLang('Ca…
194 …$form->addElement(form_makeTextField('FileName', $_REQUEST['FileName'], $this->getLang('CategoryFi…
197 $form->addElement(form_makeField('submit', 'fn[createcategories]', $this->getLang('Create'), ''));
198 $this->_finishFieldset($form);
208 $user_list = $this->_getUserLanguages();
210 $form = $this->_startFieldSet($this->getLang('UserManager'), 'translator_users');
219 $form->addElement(form_makeField('submit', 'fn[set_user]', $this->getLang('Update'), ''));
220 $this->_finishFieldset($form);
238 $user_list = $this->_auth->retrieveUsers();
239 $this->functions->database->prepare("SELECT User, Lang FROM tblUserRights;");
240 $this->functions->database->execute();
242 if ( $this->functions->database->num_rows() != 0 ) {
244 $data = array(); $this->functions->database->bind_assoc($data);
245 while ( $this->functions->database->fetch() ) {
270 $this->functions->database->prepare("DELETE FROM tblUserRights WHERE User=?;");
271 $this->functions->database->execute($user);
278 $this->functions->database->prepare("SELECT * FROM tblUserRights WHERE User=?;");
279 $this->functions->database->execute($user);
280 if ( $this->functions->database->num_rows() > 0 )
281 $this->functions->database->prepare("UPDATE tblUserRights SET Lang=? WHERE User=?;");
283 $this->functions->database->prepare("INSERT INTO tblUserRights (Lang, User) VALUES(?, ?);");
285 $this->functions->database->execute($lang, $user);
291 msg($this->getLang('CategoryNameMissing'), -1);
296 msg($this->getLang('FileNameMissing'), -1);
300 $this->functions->database->prepare("SELECT * FROM tblCategory WHERE Name=?;");
301 $this->functions->database->execute($categoryName);
302 if ( $this->functions->database->num_rows() > 0 ) {
303 msg($this->getLang('CategoryExists'), -1);
308 $this->functions->database->prepare("INSERT INTO tblCategory (Name, FileName) VALUES (?,?);");
309 $this->functions->database->execute($categoryName, $fileName);
329 $this->functions->database->prepare("DELETE FROM tblCategory WHERE CategoryID=?;");
330 $this->functions->database->execute($name);
331 $this->_handleDeleteFiles($name, "%", true);
341 list($CategoryID, $CategoryRegex) = $this->functions->_getCategoryFromName($category);
355 …msg($this->functions->_messageReplacer('MasterFileNotInFormat', array($FILE['name'], $CategoryRege…
367 msg($this->getLang('VersionNeeded'), -1);
371 $FILE['lang'] = $this->getConf('default_language');
381 $status = $this->_importLanguage($file, $CategoryID, $version);
385 $this->revertableUpload[] = $file;
397 $this->_handleDeleteFiles($key, $version);
412 list($CategoryID, $FileName) = $this->functions->_getCategoryFromName($Category);
417 $this->_getTranslastionsForUser($removeUserKeys, $User, $CategoryID, $version);
427 …$this->_getTranslastionsForUser($removeUserKeys, $User, $CategoryID, $version, $dateEntry, $Langua…
433 …$this->functions->database->prepare("DELETE FROM tblTranslation WHERE KeyID=? AND User=? AND Lang=…
436 $this->functions->database->execute($KeyID, $User, $Lang);
437 $removed += $this->functions->database->num_rows();
440 msg($this->functions->_messageReplacer('RemovedUserEntries', array($removed, $User)));
472 …$this->functions->database->prepare("SELECT tblTranslation.KeyID FROM tblTranslation INNER JOIN tb…
474 $this->functions->database->execute($EXECUTE);
475 $data = array(); $this->functions->database->bind_assoc($data);
476 while ( $this->functions->database->fetch() ) {
485 $Category = array_shift(array_keys($this->functions->_getCategories($CategoryID, true)));
487 list($CategoryID, $FileName) = $this->functions->_getCategoryFromName($Category);
498 …$this->functions->database->prepare("DELETE FROM tblMaster WHERE CategoryID=? AND Version LIKE ? $…
499 $this->functions->database->execute($EXECUTE);
500 if ( $this->functions->database->num_rows() > 0 ) {
502 …msg($this->functions->_messageReplacer('RemovedEntries', array($this->functions->database->num_row…
511 $isMasterLang = $Lang == $this->getConf('default_language');
526 $this->functions->database->prepare("DELETE FROM tblMaster WHERE CategoryID=? AND Version=?;");
527 $this->functions->database->execute($CategoryID, $version);
557 … $this->functions->_createMasterTableEntry($translation, $CategoryID, $version, $finalStatus);
561 $this->functions->_checkForMasterKeyIDs($translation, $finalStatus, $CategoryID);
562 … $this->functions->_insertTranslationArray($translation, $finalStatus, $Lang, $currentDateTime);
565 return $this->functions->_statusResult($finalStatus, $Lang, $FileName);
569 …pl_link(wl($ID, array('do' => 'admin', 'page' => 'translator', ), true), $this->getLang('backToFir…
575 …$this->functions->database->prepare("SELECT tblCategory.CategoryID, tblCategory.Name FROM (tblTran…
576 $this->functions->database->execute($user);
578 if ( $this->functions->database->num_rows() == 0 ) {
579 print $this->getLang('UserHasNoTranslations');
580 print $this->_printBackToAdmin();
584 $categories=array(); $data=array(); $this->functions->database->bind_assoc($data);
585 while ( $this->functions->database->fetch()) {
589 …$form = $this->_startFieldSet($this->functions->_messageReplacer('RemoveUserLanguage', $user), 'tr…
594 …$form->addElement(form_makeOpenTag("th")); $form->addElement($this->getLang('Category')); $form->a…
595 …$form->addElement(form_makeOpenTag("th")); $form->addElement($this->getLang('Version')); $form->ad…
596 …$form->addElement(form_makeOpenTag("th")); $form->addElement($this->getLang('AmountOfValues')); $f…
599 …$formByDate = $this->_startFieldSet($this->functions->_messageReplacer('RemoveUserLanguageByDate',…
604 …$formByDate->addElement(form_makeOpenTag("th")); $formByDate->addElement($this->getLang('Date')); …
605 …$formByDate->addElement(form_makeOpenTag("th")); $formByDate->addElement($this->getLang('Language'…
606 …$formByDate->addElement(form_makeOpenTag("th")); $formByDate->addElement($this->getLang('AmountOfV…
613 …$this->functions->database->prepare("SELECT Version, COUNT(tblTranslation.KeyID) as Amount FROM tb…
614 $this->functions->database->execute($user, $CategoryID);
616 $data=array(); $this->functions->database->bind_assoc($data);
617 while ( $this->functions->database->fetch()) {
629 …$this->functions->database->prepare("SELECT Date, Lang, COUNT(tblTranslation.KeyID) as Amount FROM…
630 $this->functions->database->execute($user);
632 $data=array(); $this->functions->database->bind_assoc($data);
633 while ( $this->functions->database->fetch()) {
652 $this->_finishFieldset($form);
653 $this->_finishFieldset($formByDate);
654 print $this->_printBackToAdmin();
658 if ( !$this->functions =& plugin_load('helper', 'translator') ) {
659 msg($this->lang['helpermissing'], -1);
664 return $this->functions->init_database(true);