| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/gm/modules/ |
Upload File : |
<?php
/* --------------------------------------------------------------
gm_gprint_admin_gm_send_order.php 2019-11-11
Gambio GmbH
http://www.gambio.de
Copyright (c) 2019 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
require_once(DIR_FS_CATALOG . 'gm/modules/gm_gprint_tables.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintConfiguration.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintContentManager.php');
$coo_gm_gprint_content_manager = new GMGPrintContentManager();
$coo_gm_gprint_order_data = $coo_gm_gprint_content_manager->get_content_by_orders_id($t_row['orders_id']);
if(isset($coo_gm_gprint_order_data[$t_order_data_values['orders_products_id']]))
{
if(strpos_wrapper($t_attributes_data, '<br />: <br />') > 0 || strpos_wrapper($t_attributes_data, '<br />:<br />') > 0)
{
$t_attributes_data = str_replace('<br />: <br />', '', $t_attributes_data);
$t_attributes_data = str_replace('<br />:<br />', '', $t_attributes_data);
if(substr_wrapper($t_attributes_model, -6) == '<br />')
{
$t_attributes_model = substr_wrapper($t_attributes_model, 0, -6);
}
}
elseif(strpos_wrapper($t_attributes_data, '<br />: <br />') === 0 || strpos_wrapper($t_attributes_data, '<br />:<br />') === 0)
{
$t_attributes_data = str_replace('<br />: <br />', '', $t_attributes_data);
$t_attributes_data = str_replace('<br />:<br />', '', $t_attributes_data);
if(substr_wrapper($t_attributes_model, 0, 12) == '<br /><br />')
{
$t_attributes_model = substr_wrapper($t_attributes_model, 0, 6);
}
}
elseif(strrpos_wrapper($t_attributes_data, '<br />:') - strlen_wrapper($t_attributes_data) <= -7)
{
$t_attributes_data = substr_wrapper($t_attributes_data, 0, strrpos_wrapper($t_attributes_data, '<br />:') !== false ? strrpos_wrapper($t_attributes_data, '<br />:') : null);
if(substr_wrapper($t_attributes_model, -6) == '<br />')
{
$t_attributes_model = substr_wrapper($t_attributes_model, 0, -6);
}
}
}
$t_attributes_data = str_replace(':', ': ', $t_attributes_data);
$t_attributes_data = str_replace(': ', ': ', $t_attributes_data);
if(!empty($coo_gm_gprint_order_data[$t_order_data_values['orders_products_id']]))
{
for($i = 0; $i < count($coo_gm_gprint_order_data[$t_order_data_values['orders_products_id']]); $i++)
{
$t_attributes_data .= '<br />'
. $coo_gm_gprint_order_data[$t_order_data_values['orders_products_id']][$i]['NAME']
. ': '
. $coo_gm_gprint_order_data[$t_order_data_values['orders_products_id']][$i]['VALUE'];
$t_attributes_model .= '<br />';
}
}