1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
switch($_GET['action']):
case "create":
case "update":
//Pictures
if(!empty($element->element['picture'])){
foreach ($element->element['picture'] as $key=>$id):
if($id['picture']) Full_and_Thumbnail($GLOBALS['ROOT'].$element->files_dir.$id['picture'], $GLOBALS['ROOT'].$element->files_dir.$id['picture'], getOption('alps_night_paris_pic'), 4);
endforeach;
}
break;
case "upload":
if($setting[1] == "picture") Full_and_Thumbnail($GLOBALS['ROOT'].$element->files_dir.$filename, $GLOBALS['ROOT'].$element->files_dir.$filename, getOption('alps_night_paris_pic'), 4);
break;
endswitch;