close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
| Rev | Line | |
|---|
| [043e67d] | 1 | <?php |
|---|
| [3ec149c] | 2 | // ************************************************************************************************************************************************* |
|---|
| 3 | // Aplicación WEB: ogAdmWebCon. |
|---|
| 4 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
|---|
| 5 | // Fecha Creación: 2009-2010 |
|---|
| 6 | // Fecha Última modificación: Agosto-2010 |
|---|
| 7 | // Nombre del fichero: CreaComando.php |
|---|
| 8 | // Descripción : |
|---|
| 9 | // Devuelve una objeto comando totalmente operativo (con la conexión abierta) |
|---|
| 10 | // Parametros: |
|---|
| 11 | // - cadenaconexion: Una cadena con los datos necesarios para la conexión: nombre del servidor |
|---|
| 12 | // usuario,password,base de datos,etc separados por coma |
|---|
| 13 | // ************************************************************************************************************************************************* |
|---|
| 14 | function CreaComando($cadenaconexion){ |
|---|
| [9f1274e] | 15 | $strcn=explode(";",$cadenaconexion); |
|---|
| [3ec149c] | 16 | $cn=new Conexion; |
|---|
| 17 | $cmd=new Comando; |
|---|
| 18 | $cn->CadenaConexion($strcn[0],$strcn[1],$strcn[2],$strcn[3],$strcn[4]); |
|---|
| 19 | if (!$cn->Abrir()) return (false); |
|---|
| 20 | $cn->SetUtf8(); |
|---|
| 21 | $cmd->Conexion=&$cn; |
|---|
| 22 | return($cmd); |
|---|
| 23 | } |
|---|
| [9f1274e] | 24 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.