Applied Corey patch.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2640 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
435c469d4b
commit
323338b661
|
@ -100,7 +100,7 @@ if ( !$event_id || $event_id < 0 )
|
||||||
Usage();
|
Usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ZM_OPT_FFMPEG )
|
if ( !ZM_OPT_FFMPEG )
|
||||||
{
|
{
|
||||||
print( STDERR "Mpeg encoding is not currently enabled\n" );
|
print( STDERR "Mpeg encoding is not currently enabled\n" );
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|
|
@ -113,6 +113,8 @@ $GLOBALS['defaultUser'] = array(
|
||||||
"Monitors" => 'Edit',
|
"Monitors" => 'Edit',
|
||||||
"Devices" => 'Edit',
|
"Devices" => 'Edit',
|
||||||
"System" => 'Edit',
|
"System" => 'Edit',
|
||||||
|
"MaxBandwidth" => "",
|
||||||
|
"MonitorIds" => "",
|
||||||
);
|
);
|
||||||
|
|
||||||
function loadConfig( $defineConsts=true )
|
function loadConfig( $defineConsts=true )
|
||||||
|
|
|
@ -143,7 +143,7 @@ else
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<input type="button" value="<?= $SLANG['GenerateVideo'] ?>" onclick="generateVideo( this.form );"<?php if ( ZM_OPT_FFMPEG ) { ?> disabled="disabled"<?php } ?>/>
|
<input type="button" value="<?= $SLANG['GenerateVideo'] ?>" onclick="generateVideo( this.form );"<?php if ( !ZM_OPT_FFMPEG ) { ?> disabled="disabled"<?php } ?>/>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_REQUEST['generated']) )
|
if ( isset($_REQUEST['generated']) )
|
||||||
|
|
Loading…
Reference in New Issue