forked from jquery-archive/jquery-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
141 lines (133 loc) · 3.6 KB
/
index.php
File metadata and controls
141 lines (133 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
$type = 'text/javascript';
$files = array(
'../LICENSE-INFO.txt',
// note that define is only included here as a means
// to revert to the pre async include, and should not be
// used in other build methods
'jquery.mobile.define.js',
'jquery.mobile.ns.js',
'jquery.ui.widget.js',
'jquery.mobile.widget.js',
'jquery.mobile.media.js',
'jquery.mobile.support.touch.js',
'jquery.mobile.support.orientation.js',
'jquery.mobile.support.js',
'jquery.mobile.vmouse.js',
'events/touch.js',
'events/throttledresize.js',
'events/orientationchange.js',
'jquery.hashchange.js',
'jquery.ui.core.js',
'jquery.mobile.defaults.js',
'jquery.mobile.helpers.js',
'jquery.mobile.data.js',
'widgets/page.js',
'widgets/page.dialog.js',
'widgets/loader.js',
'events/navigate.js',
'navigation/path.js',
'navigation/base.js',
'navigation/history.js',
'navigation/navigator.js',
'navigation/method.js',
'widgets/pagecontainer.js',
'jquery.mobile.navigation.js',
'transitions/transition.js',
'transitions/serial.js',
'transitions/concurrent.js',
'transitions/handlers.js',
'transitions/visuals/pop.js',
'transitions/visuals/slide.js',
'transitions/visuals/slidefade.js',
'transitions/visuals/slidedown.js',
'transitions/visuals/slideup.js',
'transitions/visuals/flip.js',
'transitions/visuals/flow.js',
'transitions/visuals/turn.js',
'jquery.mobile.degradeInputs.js',
'widgets/dialog.js',
'widgets/collapsible.js',
'widgets/addFirstLastClasses.js',
'widgets/collapsibleSet.js',
'jquery.mobile.fieldContain.js',
'jquery.mobile.grid.js',
'widgets/navbar.js',
'widgets/listview.js',
'widgets/listview.autodividers.js',
'widgets/listview.hidedividers.js',
'jquery.mobile.nojs.js',
'widgets/forms/reset.js',
'widgets/forms/checkboxradio.js',
'widgets/forms/button.js',
'widgets/forms/flipswitch.js',
'widgets/forms/slider.js',
'widgets/forms/slider.tooltip.js',
'widgets/forms/rangeslider.js',
'widgets/forms/textinput.js',
'widgets/forms/clearButton.js',
'widgets/forms/autogrow.js',
'widgets/forms/select.js',
'widgets/forms/select.custom.js',
'widgets/filterable.js',
'widgets/filterable.backcompat.js',
'jquery.mobile.buttonMarkup.js',
'widgets/controlgroup.js',
'jquery.mobile.links.js',
'widgets/toolbar.js',
'widgets/fixedToolbar.js',
'widgets/fixedToolbar.workarounds.js',
'widgets/panel.js',
'widgets/popup.js',
'widgets/popup.arrow.js',
'widgets/table.js',
'widgets/table.columntoggle.js',
'widgets/table.reflow.js',
'widgets/jquery.ui.tabs.js',
'widgets/tabs.js',
'jquery.mobile.zoom.js',
'jquery.mobile.zoom.iosorientationfix.js',
'jquery.mobile.init.js'
);
function getGitHeadPath() {
$gitRoot = "../";
$gitDir = ".git";
$path = $gitRoot . $gitDir;
if ( is_file( $path ) && is_readable( $path ) ) {
$contents = file_get_contents( $path );
if ( $contents ) {
$contents = explode( " ", $contents );
if ( count( $contents ) > 1 ) {
$contents = explode( "\n", $contents[ 1 ] );
if ( $contents && count( $contents ) > 0 ) {
$path = $gitRoot . $contents[ 0 ];
}
}
}
}
return $path . "/logs/HEAD";
}
function getCommitId() {
$gitHeadPath = getGitHeadPath();
if ( $gitHeadPath ) {
$logs = ( is_readable( $gitHeadPath ) ? file_get_contents( $gitHeadPath ) : false );
if ( $logs ) {
$logs = explode( "\n", $logs );
$n_logs = count( $logs );
if ( $n_logs > 1 ) {
$log = explode( " ", $logs[ $n_logs - 2 ] );
if ( count( $log ) > 1 ) {
return $log[ 1 ];
}
}
}
}
return false;
}
$comment = getCommitId();
if ( !$comment ) {
unset( $comment );
} else {
$comment = "/* git commitid " . $comment . " */\n";
}
require_once('../combine.php');