File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 116116 $ GLOBALS ['DB ' ]->exec ("UPDATE inky_images SET lastupdate = 0 " );
117117 // Read Directory
118118 echo "<table> " ;
119- $ files = glob ("./*/*.{png,jpg,jpeg} " );
119+ $ files = glob ("./*/*.{png,jpg,jpeg} " , \ GLOB_BRACE );
120120 for ($ i = 0 ;$ i < count ($ files );$ i ++) {
121121 $ stmt = $ GLOBALS ['DB ' ]->prepare ("UPDATE inky_images SET lastupdate = 1 WHERE imagename = :imagename " );
122122 $ stmt ->bindValue (':imagename ' , $ files [$ i ], PDO ::PARAM_STR );
159159 echo 'Inky: ' ;
160160 echo '<a href=" ' . $ GLOBALS ['CONFIG ' ]['INKY_URL ' ] . '/next/" target="_blank"><button>Next image</button></a> ' ;
161161 echo '<a href=" ' . $ GLOBALS ['CONFIG ' ]['INKY_URL ' ] . '/clear/" target="_blank"><button>Clear screen</button></a> ' ;
162+ echo '<a href="javascript:window.open( \'' . $ GLOBALS ['CONFIG ' ]['INKY_URL ' ] . '/show/ \' + document.getElementById( \'extra_url \').value, \'_blank \').focus();"><button>Show URL</button></a> <input type="text" id="extra_url" style="width: 400px;" /> ' ;
162163 echo '<br/><br/> ' ;
163164
164165 $ i = 0 ;
You can’t perform that action at this time.
0 commit comments