You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(20) |
Sep
|
Oct
(7) |
Nov
(81) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(4) |
Feb
|
Mar
(6) |
Apr
(1) |
May
(2) |
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Javier B. <jb...@us...> - 2004-11-15 12:38:36
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17468/pages Removed Files: add.php Log Message: borrada la page add.php por ser redundante (ahora se maneja desde quote.php con llamada a la funcion) --- add.php DELETED --- |
From: Javier B. <jb...@us...> - 2004-11-15 12:09:53
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11677/modules Modified Files: common.php Added Files: Quote.php Log Message: import inicial de la clase quote + cambios en index --- NEW FILE: Quote.php --- <?php /* * Quote class * 15/11/04 */ class Quote { function ask_quote() { global $add;?> <form id="addquote" action="" method="post"> <p><textarea id="quote" name="quote" class="textarea" cols="60%" rows="10"></textarea></p> <p> <input type="button" id="preview" value="<?=$add['preview'];?>" /> <input type="submit" id="submit" value="<?=$add['submit'];?>" /> <input type="button" id="reset" value="<?=$add['reset'];?>" /> </p> </form> <p><?=$add['tip'];?></p> <p><?=$add['privacy'];?></p><? } function validate_quote($quote) { } function insert_quote() { } function show_quote($id) { include ("config.php"); $sql = "SELECT points,quote,author,channel,network,ip FROM quote WHERE id='$id'"; $quote = $bd->_Execute($sql); if($quote->RecordCount() == 1) { ?> <p class="quote"> <a href="" title="Permanent link to this quote."><b>#<?=$id?></b></a> <a href="./?le=bbb35129920419b934023f4eb0de854b&rox=312" class="qa">+</a>(<?=$quote->fields['points']?>) <a href="./?le=bbb35129920419b934023f4eb0de854b&sox=312" class="qa">-</a> <a href="./?le=bbb35129920419b934023f4eb0de854b&sux=312" onClick="return confirm('Flag quote for review?');" class="qa">[X]</a> </p> <p class="qt"><?=$quote->fields['quote']?></p><?php } else { return (0); } } function show_quotes_by_id($order, $start, $end) { include ("config.php"); $sql = "SELECT id FROM quote ORDER BY id $order LIMIT $start,$end"; $ids = $bd->_Execute($sql); if($ids->RecordCount()) { while (!$ids->EOF) { $this->show_quote($ids->fields['id']); $ids->MoveNext(); } } else { return (0); } } function show_quotes_by_top($top) { include ("config.php"); $sql = "SELECT id FROM quote ORDER BY points LIMIT $top"; $ids = $bd->_Execute($sql); if($ids->RecordCount()) { ?> <table cellpadding="2" cellspacing="0" width="80%"> <tr><td><?php while (!$ids->EOF) { $this->show_quote($ids->fields['id']); $ids->MoveNext(); } ?> </td></tr> </table><?php } else { return (0); } } } Index: common.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/modules/common.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** common.php 30 Jul 2004 20:47:12 -0000 1.1 --- common.php 15 Nov 2004 12:09:43 -0000 1.2 *************** *** 1,4 **** --- 1,17 ---- <?php + function variable_clean($var) + { + $allowed='<a><br><b><h1><h2>'. + '<h3><h4><i><code>' . + '<li><ol><p><strong>' . + '<u><ul><span><pre>'; + $tmp = str_replace ('--', '', $var); + $tmp = htmlentities($tmp); + $tmp = strip_tags ($tmp, $allowed); + //$tmp = addslashes ($tmp); + return ($tmp); + } + /* * arregla una cadena para quitarle |
From: Javier B. <jb...@us...> - 2004-11-15 12:09:53
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11677/pages Modified Files: header.php Log Message: import inicial de la clase quote + cambios en index Index: header.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/header.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** header.php 13 Aug 2004 17:48:06 -0000 1.9 --- header.php 15 Nov 2004 12:09:43 -0000 1.10 *************** *** 28,39 **** <div id="subtitle"> <a href="index.php"><?=$sentences['index']?></a> ! / <a href="index.php?page=latest"><?=$sentences['latest']?></a> ! / <a href="index.php?page=browse"><?=$sentences['browse']?></a> ! / <a href="index.php?page=random"><?=$sentences['random']?></a> ! <a href="index.php?page=random1">>0</a> ! / <a href="index.php?page=top100">Top 100</a> ! <a href="index.php?page=top200">-200</a> ! / <a href="index.php?page=add"><b><?=$sentences['add']?></b></a> ! / <a href="index.php?page=search"><?=$sentences['search']?></a> / # <input type="text" id="quote" class="smalltext" size="4" /> </div> --- 28,39 ---- <div id="subtitle"> <a href="index.php"><?=$sentences['index']?></a> ! / <a href="?page=quote&action=latest"><?=$sentences['latest']?></a> ! / <a href="?page=browse"><?=$sentences['browse']?></a> ! / <a href="?page=quote&action=random"><?=$sentences['random']?></a> ! <a href="?page=random1&action=random1">>0</a> ! / <a href="?page=quote&action=top&top=100">Top 100</a> ! <a href="?page=quote&action=top&top=200">-200</a> ! / <a href="?page=quote&action=add"><b><?=$sentences['add']?></b></a> ! / <a href="?page=search"><?=$sentences['search']?></a> / # <input type="text" id="quote" class="smalltext" size="4" /> </div> |
From: Javier B. <jb...@us...> - 2004-11-15 12:09:52
|
Update of /cvsroot/openbash-org/openbash-org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11677 Modified Files: config.php index.php Log Message: import inicial de la clase quote + cambios en index Index: config.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/config.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** config.php 19 Aug 2004 17:00:36 -0000 1.13 --- config.php 15 Nov 2004 12:09:42 -0000 1.14 *************** *** 3,11 **** $title = 'OpenBash.org'; ! $hostbd = 'localhost'; # equipo donde se ejecuta la base de datos ! $userbd = 'openbash'; # el user con acceso a la base de datos ! $passbd = '02jdf9234y9'; # el pass de ese user ! $namedb = 'openbash-org'; # la base de datos ! $tipobd = 'mysql'; $lang = 'spanish'; --- 3,11 ---- $title = 'OpenBash.org'; ! $hostbd = 'localhost'; # host where the database is running ! $userbd = 'openbash'; # a user with full privileges to access the database ! $passbd = '02jdf9234y9'; # the user's password database ! $namedb = 'openbash-org'; # the database name ! $tipobd = 'mysql'; # type of database: mysql, pgsql, etc $lang = 'spanish'; *************** *** 13,20 **** $admin_pass = ''; include ('adodb/adodb.inc.php'); $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; $bd = &NewADOConnection($tipobd); ! $bd->PConnect($hostbd, $userbd, $passbd, $adndb); $bd->Debug = True; --- 13,22 ---- $admin_pass = ''; + $summaries = 50; # number of quotes shown on a single page + include ('adodb/adodb.inc.php'); $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; $bd = &NewADOConnection($tipobd); ! $bd->PConnect($hostbd, $userbd, $passbd, $namedb); $bd->Debug = True; Index: index.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/index.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** index.php 13 Aug 2004 17:48:05 -0000 1.14 --- index.php 15 Nov 2004 12:09:42 -0000 1.15 *************** *** 6,11 **** * Language selection */ ! if (isset($_SESSION['language'])) ! $lang = $_SESSION['language']; include ("language/${lang}.php"); /* --- 6,10 ---- * Language selection */ ! if (isset($_SESSION['language'])) { $lang = $_SESSION['language']; } include ("language/${lang}.php"); /* *************** *** 17,54 **** if (isset($_GET['page'])) { switch ($_GET['page']) { ! case 'admin': ! $page = 'admin.php'; ! break; ! case 'latest': ! $page = 'latest.php'; ! break; ! case 'browse': ! $page = 'browse.php'; ! break; ! case 'random': ! $page = 'random.php'; ! break; ! case 'random1': ! $page = 'random1.php'; ! break; ! case 'top100': ! $page = 'top100.php'; ! break; ! case 'top200': ! $page = 'top200.php'; ! break; ! case 'add': ! $page = 'add.php'; ! break; ! case 'search': ! $page = 'search.php'; ! break; ! default: ! $page = 'general.php'; ! break; } ! } else { ! $page = 'general.php'; ! } /* --- 16,33 ---- if (isset($_GET['page'])) { switch ($_GET['page']) { ! case 'admin': $page = 'admin.php'; break; ! case 'quote': $page = 'quote.php'; break; ! /* ! * case 'browse': $page = 'browse.php'; break; ! * case 'random': $page = 'quote.php'; break; ! * case 'random1': $page = 'random1.php';break; ! * case 'top100': $page = 'top100.php'; break; ! * case 'top200': $page = 'top200.php'; break; ! * case 'add': $page = 'add.php'; break; ! */ ! case 'search': $page = 'search.php'; break; ! default: $page = 'general.php';break; } ! } else { $page = 'general.php'; } /* |
From: José M. M. <ri...@us...> - 2004-10-23 10:47:14
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19978 Modified Files: add.php Log Message: - Falta tener una clase Quote igual que la clase News. Index: add.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/add.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** add.php 9 Aug 2004 17:13:19 -0000 1.4 --- add.php 23 Oct 2004 10:47:03 -0000 1.5 *************** *** 1,3 **** --- 1,6 ---- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ?> + <?php + if(!isset($_GET['texto'])) { + ?> <form id="addquote" action="" method="post"> <p><textarea id="texto" class="textarea" cols="60%" rows="10"></textarea></p> *************** *** 10,11 **** --- 13,21 ---- <p><?php echo $add['tip'];?></p> <p><?php echo $add['privacy'];?></p> + <? + } else { + /* + * Rellenar cuando se tenga la clase Quote. + */ + } + ?> |
From: ETd <et...@us...> - 2004-10-08 20:15:08
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30064 Added Files: etdDBContainer.php Log Message: etdDBContainer es una clase que pretende servir de super clase para todos aquellos modulos que tengan que ver con los datos almacenados en una tabla: noticias, quotes,... usa ADOdb como capa de abstraccion --- NEW FILE: etdDBContainer.php --- <?php /** * ETD-Soft '04 * 02 / JUN / 04 * * v1.1: add new function getFields() that returns an array with the name of * the different fields in $this->dbTable * date: 10/aug/04 * author: etd <et...@no...> */ include('lib/adodb/adodb.inc.php'); require_once( 'modules/Error.php' ); define( 'ETD_DB_SELECT_LIMIT', 40); //the limit of SELECT statements class etdDBContainer { var $db; //ADODB database abstraction var $cols; //an array of the different rows var $primary_col_index; //$cols[$primary_col_index] is the Field with Primary Index defined var $primary_field; //the name of the field that is the primary index of the table /* * etdDBContainer class constructor * @param array dbOptions = array( * 'user' => The DB user, * 'pass' => The DB password, * 'host' => The hostname of the DB server, * 'name' => The name of the DB to use * ------------ OPTIONAL ---------------- * 'table_conf' => If the settings are stored on a DB, the table, * 'key' => The column name of the diferent key, * 'value' => The column name of the values of those keys * ------------ /OPTIONAL ---------------- * ); * @returns false if something goes wrong */ function etdDBContainer($dbOptions) { if ( !isset($dbOptions) ) { $this = new Error( 'Las opciones de la DB no se han inicializado correctamente.' ); return false; } $dsn = sprintf ('mysql://%s:%s@%s/%s',$dbOptions['user'], $dbOptions['pass'], $dbOptions['host'], $dbOptions['name'] ); $this->db = NewADOConnection($dsn); if (!$this->db) { $this = new Error( 'DB initialization failed!' ); return false; } if (get_class($this) == 'etddbcontainer' ) { $this = new Error('etdDBContainer is an abstracted class!'); return false; } //check if the passed DB table is a valid one if ( !in_array( $dbOptions['table'], $this->db->metaTables() ) ) { $this = new Error( sprintf ( '`%s` no es una tabla de la base de datos `%s`.', $dbOptions['table'], $dbOptions['name']) ); return false; } $this->dbTable = $dbOptions['table']; //find the primary key for de table //$this->a_debug( $this->db->tableInfo($this->dbTable) ); $this->cols = $this->db->metaColumns($this->dbTable); foreach ( $this->cols as $field ) { if ($field->primary_key == 1) { $this->primary_col_index = strtoupper($field->name); $this->primary_field = $field->name; break; } } //echo sprintf('Se ha detectado el indice primario en `%s`. %s<br />', $this->primary_field, $this->primary_col_index); } /* * addRowToTable.- add a new Row to $dbTable * @param string dbTable the table to ad row into * @param array aValues the values to be inserted into the table * @returns PEAR_Error in case of error, 0 otherwise */ function addRowToTable( $dbTable, $aValues ) { $tmpTable = $this->dbTable; $tmpCols = $this->cols; $this->dbTable = $this->backupTable; $this->cols = $this->db->metaColumns($this->dbTable); $result = $this->addRow( $aValues ); $this->dbTable = $tmpTable; $this->cols = $tmpCols; return $result; } /* * addRow.- add a new Row to $this->dbTable * @param array aValues the values to be inserted into the table * @returns PEAR_Error in case of error, 0 otherwise */ function addRow( $aValues ) { $n = sizeof($this->cols); if ( $n != sizeof($aValues) ) { return Error( sprintf('El numero de valores pasados (%s) no coincide con el numero de campos de la tabla(%s). ', sizeof($aValues), $n) ); } echo '<div style="color: red;">no implementado!addRow</div>'; echo '<div style="border: thin solid gray; background-color: silver; "><pre>'.print_r($this->cols).'</pre></div>'; return; for ( $i = 0; $i<$n; $i++) { $sFields .= sprintf(" `%s`,", $this->cols[$i]['name']); $sValues .= sprintf(" '%s',", $aValues[$i]); } //cut the trailing comma $sFields = substr( $sFields, 0, -1); $sValues = substr( $sValues, 0, -1); $sql = sprintf('INSERT INTO `%s` ( %s ) VALUES ( %s );', $this->dbTable, $sFields, $sValues); $result = $this->db->query( $sql ); if (get_class($result) == 'error' ) { return Error( 'Se ha producido un error al actualizar la base de datos. '.$result->getMessage() ); } return 0; } /* * delRow.- with this function we can delete a row given a * valid $this->cols[$this->primary_col_index] value * @param int iValue the identifier of the row to be deleted * @returns 0 on success, PEAR_Error otherwise */ function delRow( $iValue ) { echo '<div style="color: red;">no implementado!delRow</div>'; return; if ( !$this->isValid($iValue) ) { return Error( sprintf('No se encuentra en la tabla [%s] una fila cuyo campo `%s` sea: %s', $this->dbTable, $this->primary_field, $iValue) ); } $sql = sprintf( "DELETE FROM `%s` WHERE `%s` = '%s' LIMIT 1", $this->dbTable, $this->primary_field, $iValue ); $result = $this->db->Execute( $sql ); if ( get_class($result) == 'error' ) { return Error( 'Error al eliminar la fila solicitada. '.$result->getMessage() ); } return 0; //everything is OK } /* * isValid.- with this function we can determine whether the passed * value is valid or not * @param int iValue the identifier of the row * @returns boolean true if a valid key was passed, false, otherwise */ function isValid( $iValue ) { echo '<div style="color: red;">no implementado!isValid</div>'; return; if ( is_numeric($iValue) ) { $sql = sprintf('SELECT `%s` FROM `%s` WHERE 1 LIMIT 0, %s', $this->primary_field, $this->dbTable, ETD_DB_SELECT_LIMIT); $tmp_ids = $this->db->getCol( $sql ); if ( in_array( $iValue, $tmp_ids ) ) { return true; } } return false; } /* * getRows.- this function returns an associative array * that contains all the data from $this->dbTable * $return array a nested array */ function getRows() { $sql = sprintf('SELECT * FROM `%s`', $this->dbTable); $this->db->SetFetchMode(ADODB_FETCH_ASSOC); $result = $this->db->Execute($sql); if (!$result) { return new Error( 'No se han podido seleccionar todos los elementos de la tabla.'.$this->db->ErrorMsg() ); } while (!$result->EOF) { $tmp[] = $result->fields; $result->MoveNext(); } return $tmp; } /* * getFields.- this function returns an associative array * that contains all the fields from $this->dbTable * $return array a nested array */ function getFields() { $tmp = $this->db->MetaColumns($this->dbTable); foreach( $tmp as $field ) { $result[] = $field->name; } return $result; } } ?> |
From: ETd <et...@us...> - 2004-10-08 16:10:26
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3682 Added Files: Error.php NewsManager.php Log Message: Error: no sé muy bien como vamos a hacer el Error-handling NewsManager: Gestion de noticias --- NEW FILE: Error.php --- <? /* * Error.php * 8 / OCT / 2004 * author: etd <et...@no...> * */ class Error { var $msg; function Error( $pErrorMsg ) { $this->$msg; } function getMessage() { return $this->msg; } } ?> --- NEW FILE: NewsManager.php --- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ /* * NewsManager.php * 8 / OCT / 2004 * author: etd <et...@no...> * * based on etdDBClass by etd. this class is used to manage (add/del/modify/list) * the news stored on 'news' dbTable. * */ require_once( "etdDBContainer.php" ); require_once( "News.php" ); class NewsManager extends etdDBContainer { /* * class constructor, needs some DB options see * etdDBContainer for Details */ function NewsManager( $dbOptions ) { return $this->etdDBContainer( $dbOptions ); } /* * getNews() .- return an array of News elements with * all the different news from the DB */ function getNews() { $result = $this->getRows(); if ( get_class($result) == 'error' ) { return new Error( 'Error al recuperar los contenidos de la base de datos.'.$result->getMessage() ); } foreach( $result as $noticia ) { $tmp[] = new News($noticia['id'], $noticia['author'], $noticia['datetime'], $noticia['title'], $noticia['body'] ); } return $tmp; } /* * addNew() */ function addNew($pAuthor, $pDayTime, $pTitle, $pBody) { $id = rand(5, 15); $tmpA = array ( $id, $pAuthor, $pDayTime, $pTitle, $pBody ); $result = $this->addRow( $tmpA ); if (get_class($result) == 'error' ) { return new Error( 'Error al añadir la noticia: '.$result->getMessage() ); } return true; } /* * delNew() */ function delNew() { } } ?> |
From: ETd <et...@us...> - 2004-10-08 16:06:32
|
Update of /cvsroot/openbash-org/openbash-org/lib/adodb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2861/lib/adodb Log Message: Directory /cvsroot/openbash-org/openbash-org/lib/adodb added to the repository |
From: ETd <et...@us...> - 2004-10-08 16:05:46
|
Update of /cvsroot/openbash-org/openbash-org/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2697/lib Log Message: Directory /cvsroot/openbash-org/openbash-org/lib added to the repository |
From: ETd <et...@us...> - 2004-10-08 16:01:47
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1581/modules Modified Files: News.php Log Message: Creado el esqueleto principal de la clase, hereda el comportamiento de una subclase (etdDBContainer) y falta casi todo por hacer :) Index: News.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/modules/News.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** News.php 21 Aug 2004 19:55:42 -0000 1.1 --- News.php 8 Oct 2004 16:01:35 -0000 1.2 *************** *** 1,4 **** --- 1,10 ---- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ + /* + * News.php + * 8 / OCT / 2004 + * author: etd <et...@no...> + */ + class News { var $id; *************** *** 19,32 **** } ! /* ! * Displays the news in a fancy way ! */ ! function echoNews () { ! ?> ! <div class="news"> ! <?php ! ! } - ?> --- 25,35 ---- } ! function getId() { return $this->id; } ! function getAuthor() { return $this->author; } ! function getDate() { return $this->datetime; } ! function getTitle() { return $this->title; } ! function getBody() { return $this->body; } ! } ! ?> |
From: ETd <et...@us...> - 2004-10-08 15:55:58
|
Update of /cvsroot/openbash-org/openbash-org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv441 Modified Files: openbash-org.mysql Log Message: el campo 'id' de la tabla news pasa a autoincrementado Index: openbash-org.mysql =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/openbash-org.mysql,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** openbash-org.mysql 19 Aug 2004 16:45:41 -0000 1.7 --- openbash-org.mysql 8 Oct 2004 15:55:48 -0000 1.8 *************** *** 18,23 **** CREATE TABLE `news` ( ! `id` BIGINT UNSIGNED NOT NULL , ! `author` VARCHAR( 255 ) DEFAULT 'admin' NOT NULL , `datetime` TIMESTAMP NOT NULL , `title` VARCHAR( 255 ) NOT NULL , --- 18,23 ---- CREATE TABLE `news` ( ! `id` BIGINT UNSIGNED NOT NULL auto_increment , ! `author` VARCHAR( 255 ) DEFAULT 'admin' NOT NULL , `datetime` TIMESTAMP NOT NULL , `title` VARCHAR( 255 ) NOT NULL , |
From: José M. M. <ri...@us...> - 2004-08-21 19:55:55
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16481 Added Files: News.php Log Message: -Esqueleto preliminar de la clase News, para mostrar las noticias en la portada. --- NEW FILE: News.php --- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ class News { var $id; var $author; var $datetime; var $title; var $body; /* * The constructor */ function News($n_id, $n_author, $n_datetime, $n_title, $n_body) { $this->id = $n_id; $this->author = $n_author; $this->datetime = $n_datetime; $this->title = $n_title; $this->body = $n_body; } /* * Displays the news in a fancy way */ function echoNews () { ?> <div class="news"> <?php } ?> |
From: José M. M. <ri...@us...> - 2004-08-19 18:15:15
|
Update of /cvsroot/openbash-org/openbash-org/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24670/css Modified Files: styles.css Log Message: - Ampliado el tipo de letra de span.time porque se ve muy pequeño en Konqueror Index: styles.css =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/css/styles.css,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** styles.css 19 Aug 2004 17:35:05 -0000 1.8 --- styles.css 19 Aug 2004 18:14:49 -0000 1.9 *************** *** 71,75 **** { float: right; ! font-size: 9px; font-family: Courier New, monospace; position: relative; --- 71,75 ---- { float: right; ! font-size: 10px; font-family: Courier New, monospace; position: relative; |
From: José M. M. <ri...@us...> - 2004-08-19 18:07:03
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23293/pages Modified Files: general.php Log Message: - Añadido el titular "Noticias" en la parte de la derecha - Cambiados un par de <?php echo por <?=?> Index: general.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/general.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** general.php 19 Aug 2004 17:35:06 -0000 1.5 --- general.php 19 Aug 2004 18:06:52 -0000 1.6 *************** *** 1,11 **** <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ?> <div class="general"> - <h1><?php echo $index['title'];?></h1> <div class="general_left"> <p> ! <?php echo $index['welcome_message'];?> </p> </div> <div class="general_right"> <p> Aquí van las noticias, ye qué pasa. --- 1,12 ---- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ?> <div class="general"> <div class="general_left"> + <h1><?=$index['title']?></h1> <p> ! <?=$index['welcome_message']?> </p> </div> <div class="general_right"> + <h1><?=$index['news']?></h1> <p> Aquí van las noticias, ye qué pasa. |
From: José M. M. <ri...@us...> - 2004-08-19 18:07:03
|
Update of /cvsroot/openbash-org/openbash-org/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23293/language Modified Files: english.php spanish.php Log Message: - Añadido el titular "Noticias" en la parte de la derecha - Cambiados un par de <?php echo por <?=?> Index: spanish.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/language/spanish.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** spanish.php 13 Aug 2004 21:05:46 -0000 1.11 --- spanish.php 19 Aug 2004 18:06:51 -0000 1.12 *************** *** 17,20 **** --- 17,21 ---- welcome_message => 'Hola paleto, bienvenid@ al tracker de quotes ' .'estúpidas en castellano.', + news => 'Noticias' ); Index: english.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/language/english.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** english.php 13 Aug 2004 21:05:46 -0000 1.9 --- english.php 19 Aug 2004 18:06:51 -0000 1.10 *************** *** 16,19 **** --- 16,20 ---- title => 'OpenBash.org', welcome_message => 'Hi. Welcome to OpenBash.org', + news => 'News' ); |
From: José M. M. <ri...@us...> - 2004-08-19 17:35:15
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17670/pages Modified Files: general.php Log Message: Partida por la mitad la página principal Index: general.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/general.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** general.php 9 Aug 2004 18:05:02 -0000 1.4 --- general.php 19 Aug 2004 17:35:06 -0000 1.5 *************** *** 1,5 **** <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ?> ! <h1><?php echo $index['title'];?></h1> ! <p> ! <?php echo $index['welcome_message'];?> ! </p> --- 1,15 ---- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ?> ! <div class="general"> ! <h1><?php echo $index['title'];?></h1> ! <div class="general_left"> ! <p> ! <?php echo $index['welcome_message'];?> ! </p> ! </div> ! <div class="general_right"> ! <p> ! Aquí van las noticias, ye qué pasa. ! </p> ! </div> ! <br style="clear: both" /> ! </div> |
From: José M. M. <ri...@us...> - 2004-08-19 17:35:14
|
Update of /cvsroot/openbash-org/openbash-org/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17670/css Modified Files: styles.css Log Message: Partida por la mitad la página principal Index: styles.css =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/css/styles.css,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** styles.css 5 Aug 2004 18:25:21 -0000 1.7 --- styles.css 19 Aug 2004 17:35:05 -0000 1.8 *************** *** 116,117 **** --- 116,134 ---- } .topnum {font-family: arial, helvetica, sans-serif; color: #000000;} + + div.general { + width: 100%; + height: 100%; + } + + .general_left { + width: 50%; + height: 100%; + float: left; + } + + .general_right { + width: 50%; + height: 100%; + float: right; + } |
From: José M. M. <ri...@us...> - 2004-08-19 17:00:48
|
Update of /cvsroot/openbash-org/openbash-org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11097 Modified Files: config.php Log Message: - Quitado el session_start() del config.php Index: config.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/config.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** config.php 13 Aug 2004 17:48:05 -0000 1.12 --- config.php 19 Aug 2004 17:00:36 -0000 1.13 *************** *** 19,22 **** $bd->Debug = True; - session_start(); ?> --- 19,21 ---- |
From: José M. M. <ri...@us...> - 2004-08-19 16:45:50
|
Update of /cvsroot/openbash-org/openbash-org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8271 Modified Files: openbash-org.mysql Log Message: - Añadidos campos "channel" y "network" en cada quote. Index: openbash-org.mysql =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/openbash-org.mysql,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** openbash-org.mysql 12 Aug 2004 06:39:51 -0000 1.6 --- openbash-org.mysql 19 Aug 2004 16:45:41 -0000 1.7 *************** *** 9,12 **** --- 9,14 ---- `purge` INT DEFAULT '0' NOT NULL , `author` VARCHAR( 100 ) NOT NULL , + `channel` VARCHAR (50) NOT NULL , + `network` VARCHAR (50) NOT NULL , `pending` BOOL DEFAULT 1 NOT NULL , `ip` VARCHAR ( 12 ) NOT NULL , *************** *** 49,53 **** PRIMARY KEY ( `vble` ) ) TYPE = InnoDB; - - - --- 51,52 ---- |
From: José M. M. <ri...@us...> - 2004-08-13 21:05:55
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12136/pages Modified Files: footer.php Log Message: - Traducida la cadena "Tiempo de proceso", que estaba puesta a pelo. Index: footer.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/footer.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** footer.php 8 Aug 2004 19:53:06 -0000 1.8 --- footer.php 13 Aug 2004 21:05:46 -0000 1.9 *************** *** 18,22 **** $end = utime(); $run = $end - $start; ! printf ('<span class="time">Tiempo de proceso: %s</span>', substr($run, 0, 5)); ?> </p> --- 18,23 ---- $end = utime(); $run = $end - $start; ! printf ('<span class="time">'.$sentences['time'].': %s</span>', ! substr($run, 0, 5)); ?> </p> |
From: José M. M. <ri...@us...> - 2004-08-13 21:05:55
|
Update of /cvsroot/openbash-org/openbash-org/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12136/language Modified Files: english.php spanish.php Log Message: - Traducida la cadena "Tiempo de proceso", que estaba puesta a pelo. Index: spanish.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/language/spanish.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** spanish.php 13 Aug 2004 17:48:05 -0000 1.10 --- spanish.php 13 Aug 2004 21:05:46 -0000 1.11 *************** *** 9,13 **** search => 'Buscar', approved => 'Frases aprobadas', ! pending => 'Frases pendientes' ); --- 9,14 ---- search => 'Buscar', approved => 'Frases aprobadas', ! pending => 'Frases pendientes', ! time => 'Tiempo de proceso' ); Index: english.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/language/english.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** english.php 13 Aug 2004 17:48:05 -0000 1.8 --- english.php 13 Aug 2004 21:05:46 -0000 1.9 *************** *** 9,13 **** search => 'Search', approved => 'Approved quotes', ! pending => 'Pending quotes' ); --- 9,14 ---- search => 'Search', approved => 'Approved quotes', ! pending => 'Pending quotes', ! time => 'Process time' ); |
From: M. <ch...@sl...> - 2004-08-13 17:50:51
|
El viernes 13 de agosto a las 17:19, Jos=E9 Mar=EDa Mateos escribi=F3: > Log Message: > Directory /cvsroot/openbash-org/openbash-org/admin_pages added to the rep= ository Que sep=E1is que esto es mentira cochina. Que las p=E1ginas de administraci=F3n van en pages/ como todas XD --=20 ** Las Penas del Agente Smith: http://blogs.eurielec.etsit.upm.es/chema ** http://EuropeSwPatentFree.hispalinux.es - EuropeSwPatentFree GPG key ID: 0x2948FA19 | Please encrypt private mail Software Libre Formaci=F3n - http://www.sl-form.com |
From: José M. M. <ri...@us...> - 2004-08-13 17:48:14
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10880/pages Modified Files: header.php Added Files: admin.php admin_general.php Log Message: - Comenzada la programación de las partes de administración. - Hecho el menú principal y el mecanismo de selección de páginas. - Falta: pages/admin_{quotes,news,users}.php --- NEW FILE: admin.php --- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ if (isset($_GET['a_opt'])) { switch ($_GET['a_opt']) { case 'quotes': $admin_page = 'quotes'; break; case 'news': $admin_page = 'news'; break; case 'users': $admin_page = 'users'; break; default: $admin_page = 'general'; } } else $admin_page = 'general'; include('pages/admin_'.$admin_page.'.php'); ?> Index: header.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/header.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** header.php 8 Aug 2004 16:56:29 -0000 1.8 --- header.php 13 Aug 2004 17:48:06 -0000 1.9 *************** *** 19,23 **** <div class="colleft"> <b><i>OBDB</i></b> ! <b><i><a class="admin" href="index.php?pagina=admin">Admin</a></i></b> </div> <div class="colright"> --- 19,23 ---- <div class="colleft"> <b><i>OBDB</i></b> ! <b><i><a class="admin" href="index.php?page=admin">Admin</a></i></b> </div> <div class="colright"> --- NEW FILE: admin_general.php --- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ?> <h1><?=$admin['title']?></h1> <p><?=$admin['welcome']?></p> <ul> <li><a href="index.php?page=admin&a_opt=quotes"><?=$admin['quotes']?></a> </li> <li><a href="index.php?page=admin&a_opt=news"><?=$admin['news']?></a> </li> <li><a href="index.php?page=admin&a_opt=users"><?=$admin['users']?></a> </li> </ul> |
From: José M. M. <ri...@us...> - 2004-08-13 17:48:14
|
Update of /cvsroot/openbash-org/openbash-org/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10880/language Modified Files: english.php spanish.php Log Message: - Comenzada la programación de las partes de administración. - Hecho el menú principal y el mecanismo de selección de páginas. - Falta: pages/admin_{quotes,news,users}.php Index: spanish.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/language/spanish.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** spanish.php 9 Aug 2004 18:05:01 -0000 1.9 --- spanish.php 13 Aug 2004 17:48:05 -0000 1.10 *************** *** 30,33 **** --- 30,41 ---- .'electrónico nunca se harán públicos' ); + + $admin = array ( + title => 'Panel de administración', + welcome => 'Por favor, elige una opción de la siguiente lista:', + quotes => 'Administrar frases', + news => 'Administrar noticias', + users => 'Administrar usuarios' + ); ?> Index: english.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/language/english.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** english.php 9 Aug 2004 18:05:00 -0000 1.7 --- english.php 13 Aug 2004 17:48:05 -0000 1.8 *************** *** 30,33 **** .'publicly available' ); ! ?> --- 30,41 ---- .'publicly available' ); ! ! $admin = array ( ! title => 'Administration panel', ! welcome => 'Please, choose an option from the list:', ! quotes => 'Manage quotes', ! news => 'Manage news', ! users => 'Manage users' ! ); ! ?> |
From: José M. M. <ri...@us...> - 2004-08-13 17:48:14
|
Update of /cvsroot/openbash-org/openbash-org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10880 Modified Files: config.php index.php Log Message: - Comenzada la programación de las partes de administración. - Hecho el menú principal y el mecanismo de selección de páginas. - Falta: pages/admin_{quotes,news,users}.php Index: config.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/config.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** config.php 8 Aug 2004 19:56:16 -0000 1.11 --- config.php 13 Aug 2004 17:48:05 -0000 1.12 *************** *** 1,7 **** <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ! $hostbd = 'localhost'; # equipo donde se ejecuta la base de datos ! $userbd = 'openbash'; # el user con acceso a la base de datos ! $passbd = '02jdf9234y9'; # el pass de ese user $namedb = 'openbash-org'; # la base de datos $tipobd = 'mysql'; --- 1,9 ---- <?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */ ! $title = 'OpenBash.org'; ! ! $hostbd = 'localhost'; # equipo donde se ejecuta la base de datos ! $userbd = 'openbash'; # el user con acceso a la base de datos ! $passbd = '02jdf9234y9'; # el pass de ese user $namedb = 'openbash-org'; # la base de datos $tipobd = 'mysql'; Index: index.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/index.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.php 9 Aug 2004 17:27:44 -0000 1.13 --- index.php 13 Aug 2004 17:48:05 -0000 1.14 *************** *** 17,20 **** --- 17,23 ---- if (isset($_GET['page'])) { switch ($_GET['page']) { + case 'admin': + $page = 'admin.php'; + break; case 'latest': $page = 'latest.php'; |