{ if (isset($_REQUEST["ccap_{$key}"])) { return $_REQUEST["ccap_{$key}"]; } elseif (isset($ccap_options[$key])) { return $ccap_options[$key]; } else { return NULL; } } // Load CAPTCHA parameters $display_style = option_get('display_style'); $include_audio = option_get('include_audio'); $height = option_get('height'); $width = option_get('width'); $length = option_get('length'); $code_color = option_get('code_color'); // Calculate CAPTCHA strength function factorial($x) { if ($x <= 1) { return 1; } else { return $x * factorial($x - 1); } } function captcha_strength($height, $width, $length) { $images = $height * $width; if ($length >= $images) { return 0; } else {
<select name="skin" class="mw_option_field" option_group="<? print $params['module_id'] ?>" type="text" refresh_modules="media/gallery" > <option value="'" <? if( trim(option_get('skin', $params['module_id'])) == '') : ?> selected="selected" <? endif; ?> >None</option> <option value="1" <? if( option_get('skin', $params['module_id']) == '1') : ?> selected="selected" <? endif; ?> >1</option> <option value="2" <? if( option_get('skin', $params['module_id']) == '2') : ?> selected="selected" <? endif; ?> >2</option> <option value="2" <? if( option_get('skin', $params['module_id']) == '2') : ?> selected="selected" <? endif; ?> >3</option> </select> <input value="<?php print option_get('media_name', $params['module_id']); ?> " /> <?php print option_get('media_name', $params['module_id']); ?> <br /> <br /> <br /> <br /> <br /> <label>Title</label> <label>Description</label> <textarea name="media_description" cols="" rows="2"><?php print $pic['media_description']; ?>
if($media_type == false){ $media_type = 'picture'; } if($size == false){ $size = 120; } ?> <?php print option_get('media_name', $params['module_id']) ?> <? //p($config); $skin = option_get('skin', $params['module_id']); $media1 = CI::model ( 'core' )->mediaGet($to_table = false, $to_table_id = false, $media_type = false, $order = "ASC", $queue_id = false, $no_cache = false, $id = false, $collection = $params['module_id']); //$media1 = get_media($id, $for, $media_type, $queue_id); $media1 = $media1['pictures']; $media = $media1; ?> <?php if(empty($media1) ): ?> Gallery is empty <?php else : ?>