• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

marineが作成するテーマの倉庫


Commit MetaInfo

Revision0ffc0993187fd7b403b41e73f51f9b3f2e4f37fe (tree)
Time2012-04-01 20:39:05
Authormarine <marine@mist...>
Commitermarine

Log Message

不要ファイル削除

Change Summary

  • delete: "vgrid/org \201` xugj_already_js.php"

Incremental Difference

--- "a/vgrid/org \201` xugj_already_js.php"
+++ /dev/null
@@ -1,81 +0,0 @@
1-<?php
2-if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
3-/* ------------------------------------------------- */
4-/* assign true or false. */
5-/* XCL22_header ,jquery is already */
6-/* ------------------------------------------------- */
7-$this->assign( 'xcl22_jquery_is_already' , xcl22_jquery_is_already($this->_tpl_vars["xoops_module_header"]) ) ;
8-function xcl22_jquery_is_already($document)
9-{
10- $ret = false;
11- //jquery_is_alreadys, load main jQuerylibrary ?
12- $handler =& xoops_gethandler('config');
13- $configArr =& $handler->getConfigsByDirname('legacyRender');
14- //$coreType = is_numeric(configArr['jquery_core']) ? 'google' : 'local';
15- if( $configArr['jquery_core'] !=""){
16- $ret = true;
17- }
18- return $ret;
19-}
20-
21-/* ------------------------------------------------- */
22-/* assign true or false. */
23-/* xoops_module_header ,jquery is already */
24-/* ------------------------------------------------- */
25-$this->assign( 'xugj_jquery_is_already' , xugj_jquery_is_already($this->_tpl_vars["xoops_module_header"]) ) ;
26-function xugj_jquery_is_already($document)
27-{
28- $ret = false;
29- if (preg_match('/(ajax\.googleapis\.com\/ajax\/libs\/jquery|jquery.*\.js)/isx',$document)) {
30- $ret = true;
31- }
32- return $ret;
33-}
34-
35-/* ------------------------------------------------- */
36-/* assign arry for etc. */
37-/* xoops_module_header js file name arry */
38-/* ------------------------------------------------- */
39-
40-$this->assign( 'xugj_already_js' , xugj_strip_xoops_module_header_links($this->_tpl_vars["xoops_module_header"]) ) ;
41-function xugj_strip_xoops_module_header_links($document)
42-{
43- preg_match_all("'<\s*script\s.*?src\s*=\s* # find <script src=
44- ([\"\'])? # find single or double quote
45- (?(1) (.*?)\\1 | ([^\s\>]+)) # if quote found, match up to next matching
46- # quote, otherwise match up to next space
47- 'isx",$document,$links);
48-
49- // catenate the non-empty matches from the conditional subpattern
50- $match =array();
51- while(list($key,$val) = each($links[2]))
52- {
53- if(!empty($val)){
54- $match[] = $val;
55- }
56- }
57-
58- while(list($key,$val) = each($links[3]))
59- {
60- if(!empty($val)){
61- $match[] = $val;
62- }
63- }
64- $match_js =array();
65- while(list($key,$val) = each($match))
66- {
67- $jsbase_name=pathinfo($val,PATHINFO_BASENAME );
68- if(!empty($jsbase_name)){
69- $jsbase_name=strtolower($jsbase_name);
70- $jsbase_name = preg_replace('/.*=/isx','',$jsbase_name);
71- if( substr($jsbase_name,-3) == '.js'){
72- $match_js[] = $jsbase_name;
73- }
74- }
75- }
76- // return the js name
77- return $match_js;
78-
79-}
80-
81-?>
\ No newline at end of file