Index: trunk/tools/tool_lib.php
===================================================================
diff -u -N
--- trunk/tools/tool_lib.php (revision 912)
+++ trunk/tools/tool_lib.php (revision 0)
@@ -1,54 +0,0 @@
-Connect($db_info['DBHost'],$db_info['DBUser'],$db_info['DBUserPassword'],$db_info['DBName']);
-
- $sub_folder=$tool_db->GetOne('SELECT VariableValue FROM '.TABLE_PREFIX.'ConfigurationValues WHERE VariableName=\'Site_Path\'');
- define('BASE_PATH', $_SERVER['DOCUMENT_ROOT'].rtrim($sub_folder,'/'));
- unset($sub_folder);
-
- /**
- * Same as print_r, but for html pages
- *
- * @param string $s
- * @param bool $returnResult
- * @return string
- * @access public
- */
- function tool_printPre($s,$returnResult=false)
- {
- $ret='
'.print_r($s,true).'
';
- if($returnResult) return $ret;
- echo $ret;
- }
-
-?>
\ No newline at end of file
Index: trunk/tools/launchinIE.dll
===================================================================
diff -u -N -r818 -r3404
Binary files differ
Index: trunk/tools/launchinIE.reg
===================================================================
diff -u -N -r818 -r3404
Binary files differ
Index: trunk/tools/phrase_locator.php
===================================================================
diff -u -N
--- trunk/tools/phrase_locator.php (revision 1852)
+++ trunk/tools/phrase_locator.php (revision 0)
@@ -1,89 +0,0 @@
-GetCol($sql);
- foreach ($db_phrases as $phrase)
- {
- unset($phrases[$phrase]); // phrase is translated
- if( !isset($phrase_files[$phrase]) )
- {
- unset($phrase_files[$phrase]);
- }
- else
- {
- echo 'inconsistance in phrase '.$phrase.'
';
- }
- }
-
- $ret = Array();
- foreach($phrases as $phrase => $dummy_value)
- {
- $ret[] = $phrase;
- }
-
- tool_printPre($ret);
- tool_printPre($phrase_files);
-
- if( unlink(BASE_PATH.'/new_phrases.txt') )
- {
- $fp = fopen(BASE_PATH.'/new_phrases.txt','w');
- foreach ($ret as $phrase)
- {
- fwrite($fp,$phrase."\n");
- }
- fclose($fp);
- }
- else
- {
- die('Can\'t create file new_phrases.txt');
- }
-
-
- function addPhrase($array, $file)
- {
- global $phrases, $phrase_files;
-
- foreach ($array as $phrase_name)
- {
- $phrase_name = strtolower($phrase_name);
- $phrases[$phrase_name] = 1;
- if( !isset($phrase_files[$phrase_name]) ) $phrase_files[$phrase_name] = Array();
- $phrase_files[$phrase_name][] = substr($file, strlen(BASE_PATH), strlen($file) );
- }
- }
-
- function scanDir($FolderPath)
- {
- $scan_types = Array('php','js','tpl');
- $FolderHandle = opendir($FolderPath);
- if($FolderHandle)
- {
- while( false !== ($file = readdir($FolderHandle)) )
- {
- if($file == '.' || $file == '..') continue;
- $file = $FolderPath.$file;
-
- if( is_dir($file) )
- {
- scanDir($file.'/');
- }
- elseif( is_file($file) && in_array(substr($file,-3),$scan_types) )
- {
- $filedata = file_get_contents($file);
-
- preg_match_all('/\'(lu_.*|la_.*)\'/U',$filedata,$rets);
- if($rets[1]) addPhrase($rets[1], $file);
-
- preg_match_all('/"(lu_.*|la_.*)"/U',$filedata,$rets);
- if($rets[1]) addPhrase($rets[1], $file);
- }
- }
- closedir($FolderHandle);
- }
- }
-?>
\ No newline at end of file
Index: trunk/tools/flush_tables.php
===================================================================
diff -u -N
--- trunk/tools/flush_tables.php (revision 912)
+++ trunk/tools/flush_tables.php (revision 0)
@@ -1,27 +0,0 @@
-GetCol('SHOW TABLES LIKE \''.TABLE_PREFIX.'%\'');
- foreach($tables as $table)
- {
- $tool_db->Query($sql_prefix.' '.$table);
- }
-
-?>
\ No newline at end of file
Index: trunk/tools/xml2txt.php
===================================================================
diff -u -N
--- trunk/tools/xml2txt.php (revision 912)
+++ trunk/tools/xml2txt.php (revision 0)
@@ -1,70 +0,0 @@
-'DateFormat','TIMEFORMAT'=>'TimeFormat',
- 'DECIMAL'=>'Decimal','THOUSANDS'=>'Thousands',
- 'CHARSET'=>'Charset');
-
- $fp = fopen(SRC_NAME,'r');
- $xml = fread($fp,filesize(SRC_NAME));
- fclose($fp);
-
- $objInXML = new xml_doc($xml);
- unset($xml);
- $objInXML->parse();
- $objInXML->getTag(0,$name,$attribs,$contents,$tags);
-
- $fp=fopen(DST_NAME,'w');
-
- foreach($tags as $t)
- {
- $LangRoot =& $objInXML->getTagByID($t);
- fwrite($fp,'PackName='.$LangRoot->attributes['PACKNAME']."\n");
-
- foreach($LangRoot->children as $tag)
- {
- switch($tag->name)
- {
- case 'PHRASES':
- $tag_index = 0; $tag_count = count($tag->children);
- while($tag_index < $tag_count)
- {
- $inner_tag =& $tag->children[$tag_index];
- $Phrase = $inner_tag->attributes['LABEL'];
- $Translation = $inner_tag->contents;
- $PhraseType = $inner_tag->attributes['TYPE'];
- fwrite($fp,'P_='.$Phrase.';'.$Translation.';'.$PhraseType."\n");
- $tag_index++;
- }
- break;
-
- case 'EVENTS':
- $tag_index = 0; $tag_count = count($tag->children);
- while($tag_index < $tag_count)
- {
- $inner_tag =& $tag->children[$tag_index];
- $event = $inner_tag->attributes["EVENT"];
- $MsgType = strtolower($inner_tag->attributes["MESSAGETYPE"]);
- $template = $inner_tag->contents;
- $Type = $inner_tag->attributes["TYPE"];
-
- fwrite($fp,'E_='.$event.';'.$template.';'.$Type.';'.$MsgType."\n");
- $tag_index++;
- }
- break;
-
- default:
- fwrite($fp,$xml2txt_map[$tag->name].'='.base64_encode($tag->contents)."\n");
- break;
- }
- }
- }
-
- fclose($fp);
-?>
\ No newline at end of file
Index: trunk/tools/pi.php
===================================================================
diff -u -N
--- trunk/tools/pi.php (revision 2531)
+++ trunk/tools/pi.php (revision 0)
@@ -1,8 +0,0 @@
-
\ No newline at end of file
Index: trunk/tools/explang.php
===================================================================
diff -u -N
--- trunk/tools/explang.php (revision 534)
+++ trunk/tools/explang.php (revision 0)
@@ -1,26 +0,0 @@
-Query_Item("SELECT * FROM ".$objLanguages->SourceTable);
-foreach($objLanguages->Items as $l)
-{
- fputs($fp,"[".$l->Get("PackName")."|".$l->Get("LocalName")."]\n");
- $sql = "SELECT * FROM ".GetTablePrefix()."Phrase WHERE LanguageId=".$l->Get("LanguageId");
- $rs=$ado->Execute($sql);
- while($rs && ! $rs->EOF)
- {
- $s = " ".$rs->fields["Phrase"]."=".$rs->fields["PhraseType"].",".$rs->fields["Translation"]."\n";
- fputs($fp,$s);
- $rs->MoveNext();
- }
-}
-
-fclose($fp);
-?>
-
Index: trunk/tools/taglib.php
===================================================================
diff -u -N
--- trunk/tools/taglib.php (revision 13)
+++ trunk/tools/taglib.php (revision 0)
@@ -1,109 +0,0 @@
-DeleteTags();
- $t = new clsTagFunction();
- $t->Set("name","include");
- $t->Set("description","insert template output into the current template");
- $t->Create();
- $t->AddAttribute("_template","tpl","Template to insert","",TRUE);
- $t->AddAttribute("_supresserror","bool","Supress missing template errors","",FALSE);
- $t->AddAttribute("_dataexists","bool","Only include template output if content exists (content is defined by the tags in the template)","",FALSE);
- $t->AddAttribute("_nodatatemplate","tpl","Template to include if the nodataexists condition is true","",FALSE);
- unset($t);
-
- $t = new clsTagFunction();
- $t->Set("name","perm_include");
- $t->Set("description","insert template output into the current template if permissions are set");
- $t->Create();
- $t->AddAttribute("_template","tpl","Template to insert","",TRUE);
- $t->AddAttribute("_noaccess","tpl","Template to insert if access is denied","",FALSE);
- $t->AddAttribute("_permission","","Comma-separated list of permissions, any of which will grant access","",FALSE);
- $t->AddAttribute("_module","","Used in place of the _permission attribute, this attribute verifies the module listed is enabled","",FALSE);
- $t->AddAttribute("_system","bool","Must be set to true if any permissions in _permission list is a system permission","",FALSE);
- $t->AddAttribute("_supresserror","bool","Supress missing template errors","",FALSE);
- $t->AddAttribute("_dataexists","bool","Only include template output if content exists (content is defined by the tags in the template)","",FALSE);
- $t->AddAttribute("_nodatatemplate","tpl","Template to include if the nodataexists condition is true","",FALSE);
- unset($t);
-
- $t = new clsTagFunction();
- $t->Set("name","mod_include");
- $t->Set("description","insert templates from all enabled modules. No error occurs if the template does not exist.");
- $t->Create();
- $t->AddAttribute("_template","tpl","Template to insert. This template path should be relative to the module template root directory","",TRUE);
- $t->AddAttribute("_modules","","Comma-separated list of modules. Defaults to all enabled modules if not set","",FALSE);
- $t->AddAttribute("_supresserror","bool","Supress missing template errors","",FALSE);
- $t->AddAttribute("_dataexists","bool","Only include template output if content exists (content is defined by the tags in the template)","",FALSE);
- $t->AddAttribute("_nodatatemplate","tpl","Template to include if the nodataexists condition is true","",FALSE);
-
- //$objTagList->ParseFile($pathtoroot."kernel/parser.php");
- //$objTagList->ParseFile($pathtoroot."in-bulletin/parser.php");
- //$objTagList->ParseFile($pathtoroot."in-link/parser.php");
- //$objTagList->ParseFile($pathtoroot."in-news/parser.php");
- if(is_array($ParserFiles))
- {
- foreach($ParserFiles as $file)
- {
- $objTagList->ParseFile($pathtoroot.$file);
- }
- }
- if(is_array($ItemTagFiles))
- {
- foreach($ItemTagFiles as $file)
- {
- $objTagList->ParseItemFile($pathtoroot.$file);
- }
- }
-
-}
-
-$objTagList->Clear();
-$objTagList->Query_Item("SELECT * FROM ".$objTagList->SourceTable);
-
-if($objTagList->NumItems()>0)
-{
- foreach($objTagList->Items as $i)
- {
- $i->LoadAttribs();
- //echo " ".$i->attribs->NumItems()." Attributes
\n";
- if(strlen($i->Get("name")))
- {
- echo "";
- echo "";
- if($i->Get("scope")!="global")
- {
- echo "".$i->Get("scope").".".$i->Get("name")."";
- }
- else
- echo "".$i->Get("name")."";
- echo " | ";
- echo $i->Get("example")." |
";
- echo "";
- echo "".$i->Get("description")." |
";
- if($i->attribs->NumItems()>0)
- {
- echo "";
- echo "Attributes: \n";
- //echo "";print_r($i->attribs->Items); echo " ";
- echo "";
- foreach($i->attribs->Items as $a)
- {
- echo "".$a->Get("Name")."[".$a->Get("AttrType")."] | ".$a->Get("Description")." | ";
- }
- echo " ";
- }
- echo " |
";
- }
- }
-}
-?>