Skip to content

Instantly share code, notes, and snippets.

@suabo
suabo / oxid_clean_articlelongdesc.php
Created November 8, 2018 18:00
clean article long desc
<?php
/**
* Clean article long descriptions
* Author: Marcel Grolms - suabo
*/
echo "<html><head><meta charset='utf-8' /></head><body>";
include('bootstrap.php');
@suabo
suabo / oxid_mailto.tpl
Created August 18, 2018 13:33
Smarty (OXID) E-Mail MailTo Link verschlüsseln
[{mailto address=$oxcmp_shop->oxshops__oxinfoemail->value encode="javascript"}]
@suabo
suabo / mysqldumpwithoutviews.sh
Created August 18, 2018 13:28
MySQL OXID Dump without Views - Bash Script
#!/bin/bash
# $1 = dbname
# $2 = dbusername
# $3 = dumpfile
# $4 = hostname
# $5 = gzip
if [ "$1" == "" ]
then
echo "Syntax!"
echo "cmd dbname dbusername dumpfile [hostname]"
@suabo
suabo / oxcmp_user.php
Created July 1, 2016 15:51
oxcmp_user.php v.4.5.4 with Seccurity fix from 4.9.9
<?php
/**
* This file was modified to fix the security bulletin 2016-001!
*/
/**
* This file is part of OXID eShop Community Edition.
*
* OXID eShop Community Edition is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
<?php
// ===================================================
// = place this file in the root of your OXID eShop! =
// ===================================================
require_once 'bootstrap.php';
// CONFIG
$sTheme = 'azure';
$iLangId = 0; // German
<?php
require_once __DIR__.'/../core/oxfunctions.php';
function gn2_autoload_shim($class) { (substr($class, -7) == "_parent") ? eval('class '.$class.' {}') : ""; }
spl_autoload_register('gn2_autoload_shim')
@suabo
suabo / copy-oxid-theme.php
Last active August 29, 2015 14:02
Copy OXID Theme ab V. 4.7
<?php
/**
* for shop versions 4.7.x / 5.0.x
* # copy the source-themefolders in application/views/tpl and /out and rename
* # Adjust values for Source and Target below
* # Put file into rootlevel
* # run this script
* # delete this file after usage
*/