options SET option_value='$value' WHERE option_name='agItem' and option_id=".$_POST[ 'gId' ]; }else{ $sql = "INSERT INTO $wpdb->options (option_name, option_value) VALUES('agItem','$value')"; } $wpdb->query($sql); if( isset( $_POST[ 'gId' ] ) ) echo "

Opciones guardadas

"; else echo "

Galeria creada

"; } if( isset( $_GET['gId'] ) || isset( $_POST['gid'] ) ){ $ggId = isset( $_GET[ 'gId' ]) ? $_GET[ 'gId' ] : $_POST['gId']; $gItem = $wpdb->get_row("SELECT * FROM $wpdb->options WHERE option_name='agItem' and option_id=".$ggId); $gItemsopc = split( ":", $gItem->option_value ); $options['user'] = $gItemsopc[0]; $options['album'] = $gItemsopc[1]; $options['rows'] = $gItemsopc[2]; $options['cols'] = $gItemsopc[3]; $options['aligntable'] = $gItemsopc[4]; $options['pag'] = $gItemsopc[5]; $options['isAlbum'] = (trim($options['album']) == "") ? "false" : "true"; $options['showPagination'] = $gItemsopc[6]; $options['thumbsize'] = $gItemsopc[7]; } ?>

Personalizar galeria

Nueva galeria

Opciones de usuario:

Galeria