Software > Cumulus y Cumulus MX
Dayfile. Visor muy útil
kocher:
Una opción que puede resultar útil, es la de elegir que tabla deseamos ver (por defecto) al cargar la página.
Para ello, vamos a (aproximadamente) las líneas 303 - 308 y editamos así:
--- Código: ---
// which 'table' do we want ?
if (!isset($_REQUEST["pane"])) {
$pane = 0; // option 0: - show 'daily' // option 1: - show 'seasonal'
} else {
$pane = $_REQUEST["pane"];
}
--- Fin del código ---
jezuleon:
Nada, no me sale, ni con el archivo dayfile.txt en la carpeta del servidor, ni cambiando el archivo httpd.conf, al que le he modificado la línea ScriptAlias /cgi-bin/ "C:/xampp2/cgi-bin/" por
Alias "/cumulus/data" "C:/Cumulus/data" y cuando intento entrar en la dirección web me dice acceso prohibido.
Bueno, seguiré probando, si no pues nada, así me he entretenido un buen rato.
kocher:
Buenos días Jezuleon.
¿ Puedes poner aquí las líneas (aproximadamente) 28-38 ?
--- Código: ---
$this_file_name = "betel_readDayfile-test-modif.php"; // If you want to change the name of this file, change this TOO !
$dayfile = './data/dayfile.txt'; // to work correctly this should be a relative address NOT full url
$field_delimiter = ';';
$date_delimiter = '/';
--- Fin del código ---
jmviper:
--- Cita de: jezuleon en 09 de Abril de 2017, 02:07:18 ---Nada, no me sale, ni con el archivo dayfile.txt en la carpeta del servidor, ni cambiando el archivo httpd.conf, al que le he modificado la línea ScriptAlias /cgi-bin/ "C:/xampp2/cgi-bin/" por
Alias "/cumulus/data" "C:/Cumulus/data" y cuando intento entrar en la dirección web me dice acceso prohibido.
Bueno, seguiré probando, si no pues nada, así me he entretenido un buen rato.
--- Fin de la cita ---
No no... esa línea está dentro de <IfModule alias_module> .... </IfModule>. Dije anteriormente que debes de poner lo del Alias en un sitio que no esté entre etiquetas de apertura y cierre.
Yo lo tengo inmediatamente después de la línea que pone </Directory> (con cierre).
Siempre después hay que reiniciar apache para que se lleven a cabo los cambios
jezuleon:
--- Cita de: kocher en 09 de Abril de 2017, 08:25:34 ---Buenos días Jezuleon.
¿ Puedes poner aquí las líneas (aproximadamente) 28-38 ?
--- Código: ---
$this_file_name = "betel_readDayfile-test-modif.php"; // If you want to change the name of this file, change this TOO !
$dayfile = './data/dayfile.txt'; // to work correctly this should be a relative address NOT full url
$field_delimiter = ';';
$date_delimiter = '/';
--- Fin del código ---
--- Fin de la cita ---
$this_file_name = "betel_readDayfile-test-modif.php"; // If you want to change the name of this file, change this TOO !
$dayfile = 'dayfile.txt'; // to work correctly this should be a relative address NOT full url
$field_delimiter = ';';
$date_delimiter = '/';
$buttons = true; // true = button options, false = dropdown options
Esto es como lo tengo ahora, ya que he copiado el dayfile.txt en la carpeta del servidor
<Directory "C:/xampp2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Alias "/cumulus/data" "C:/Cumulus/data"
#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value. If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain
Así acabo de poner el alias, he buscado de abajo para arriba en el archivo httdp.conf el primer sitio que pone </Directory> y lo he copiado justo debajo, luego he guardado el archivo, he parado el servidor apache y lo he vuelto a arrancar, y en el navegador escribo http://estacionjezuleon.mooo.com/cumulus/data y me dice acceso prohibido
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa