Owncloud: Personalizar

  • Modifique los permisos del archivo
chmod 777 /var/www/html/NUBES/SIUA/lib/private/legacy/defaults.php
  • Abra el archivo
nano /var/www/html/NUBES/SIUA/lib/private/legacy/defaults.php
  • Modifique:

$this->defaultEntity = 'ownCloud';
X
$this->defaultEntity = 'NUBE-SIUA';


$this->defaultName = 'ownCloud';
X
$this->defaultName = 'NUBE-SIUA';


$this->defaultTitle = 'ownCloud';
X
$this->defaultTitle = 'NUBE-SIUA';


$this->defaultSlogan = $this->l->t('A safe home for all your data');
X
$this->defaultSlogan = $this->l->t('Unidad de Gestión e Innovación Tecnológica');$this->defaultBaseUrl = 'https://nube.siua.ac.cr';
  • Descargue el archivo: owncloud
  • Y remplace las imágenes de la ruta:
core/img
<IfModule mod_ssl.c>
<VirtualHost *:443>
  ServerAdmin gustavo.matamoros@gmail.com
  ServerName nube.siua.ac.cr
  DocumentRoot /var/www/html/NUBES/SIUA/
  Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
  DirectoryIndex index.php
SSLCertificateFile /etc/letsencrypt/live/sici.siua.ac.cr/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sici.siua.ac.cr/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
<?php
$CONFIG = array (
  'instanceid' => 'oc7eip01e7x4',
  'passwordsalt' => '6IKWsRbVDzvPbtKpLd6wRy+qLCVnTz',
  'secret' => 'jKTBUS3UrLsXq3AvPK3a8IIZLYiUAFnvMjw8QK3VkBopXozy',
  'default_language' => 'es',
  'defaultapp' => 'files',
  'trusted_domains' => 
  array (
    0 => 'nube.siua.ac.cr',
    1 => 'cloud.siua.ac.cr',
    2=> '181.193.87.9',
  ),
  'datadirectory' => '/media/EOS/data',
  'overwrite.cli.url' => '',
  'dbtype' => 'mysql',
  'version' => '10.0.7.2',
  'dbname' => 'nube_siua',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_ugit1',
  'dbpassword' => 'FWFPRaOEorhpFuIlCPfJX0qpXqfGU8',
  'logtimezone' => 'UTC',
  'installed' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'password' => '',
  ),
  'memcache.local' => '\\OC\\Memcache\\APC',
  'mail_from_address' => 'interuniversitariadealajuela',
  'mail_smtpmode' => 'php',
  'mail_domain' => 'gmail.com',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
);
  • Cambiamos permisos
chmod 777 -R /var/www/html/NUBES/SIUA/settings/templates/
  • Personalizar email.php
NUBES/SIUA/settings/templates/changemail/email.php
echo str_replace('{link}', $_['link'], $l->t('Use the following link to confirm your changes to the email address: {link}'));
X
echo str_replace('{link}', $_['link'], $l->t('Use el siguiente enlace para confirmar el cambio de correo: {link}'));
  • notify.php
sftp://181.193.87.9:44/var/www/html/NUBES/SIUA/settings/templates/changemail/notify.php
echo str_replace('{mailAddress}', $_['mailAddress'], $l->t('Email address changed to {mailAddress} successfully.'));
X
echo str_replace('{mailAddress}', $_['mailAddress'], $l->t('El correo se ha modificado a {mailAddress} correctamente!.'));
  • email.new_user.php
sftp://181.193.87.9:44/var/www/html/NUBES/SIUA/settings/templates/email.new_user.php
print_unescaped($l->t('Hey there,<br><br>just letting you know that you now have an %s account.<br><br>Your username: %s<br>Access it: <a href="%s">%s</a><br><br>', [$theme->getName(), $_['username'], $_['url'], $_['url']]));
X
print_unescaped($l->t('Hola,<br><br>Le informamos que usted ahora tienen una cuenta %s.<br><br>Su usuario es: %s<br>Para acceder: <a href="%s">%s</a><br><br>', [$theme->getName(), $_['username'], $_['url'], $_['url']]));
p($l->t('Cheers!'));
X
p($l->t('Saludos!'));
  • email.new_user_plain_text.php
sftp://181.193.87.9:44/var/www/html/NUBES/SIUA/settings/templates/email.new_user_plain_text.php
print_unescaped($l->t("Hey there,\n\njust letting you know that you now have an %s account.\n\nYour username: %s\nAccess it: %s\n\n", [$theme->getName(), $_['username'], $_['url']]));
X
print_unescaped($l->t("Hola,\n\nLe informamos que usted ahora tienen una cuenta %s.\n\nSu usuario es: %s\nPara acceder: %s\n\n", [$theme->getName(), $_['username'], $_['url']]));
p($l->t("Cheers!"));
X
p($l->t("Saludos!"));
  • Traducción
chmod 777 -R /var/www/html/NUBES/SIUA/core/templates/
  • COmentarios:
chmod 777 -R /var/www/html/NUBES/SIUA/apps/comments/l10n/es_MX.jschmod 777 -R /var/www/html/NUBES/SIUA/apps/comments/l10n/es_MX.json 
  •  Des habilitar la verificación de integridad de archivos
 nano /var/www/html/NUBES/SIUA/config/config.php
  •  Agregamos al final
'integrity.check.disabled' => true,