当前位置: 首页>>代码示例>>PHP>>正文


PHP mslib_fe::rewritenamein方法代码示例

本文整理汇总了PHP中mslib_fe::rewritenamein方法的典型用法代码示例。如果您正苦于以下问题:PHP mslib_fe::rewritenamein方法的具体用法?PHP mslib_fe::rewritenamein怎么用?PHP mslib_fe::rewritenamein使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mslib_fe的用法示例。


在下文中一共展示了mslib_fe::rewritenamein方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: uniqid

 	$updateArray['name']=preg_replace('/\s+/', ' ', $updateArray['first_name'].' '.$updateArray['middle_name'].' '.$updateArray['last_name']);
 
 	$query=$GLOBALS['TYPO3_DB']->UPDATEquery('fe_users', 'uid='.$item['uid'], $updateArray);
 	$res=$GLOBALS['TYPO3_DB']->sql_query($query);
 	echo $query.'<br/>';
 	continue;
 */
 if (!$item['email']) {
     $item['email'] = uniqid() . '@UNKNOWN';
 }
 if ($item['email']) {
     if (!$item['username']) {
         if ($item['uid']) {
             $username = '';
             if ($item['company_name']) {
                 $username .= str_replace('-', '', mslib_fe::rewritenamein($item['company_name']));
             }
             $username .= $item['uid'];
             $item['username'] = $username;
         } else {
             $item['username'] = $item['email'];
         }
         // Make sure the username is not in use by someone else
         // Prefix of the username
         $username = $item['username'];
         // Set output variable value to the prefix
         $finalUsername = $username;
         $filter = array();
         if ($item['uid']) {
             // We want to filter out the iterated user
             $filter[] = 'uid !=\'' . addslashes($item['uid']) . '\'';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_customer_import.php

示例2: getNestedItems

 function getNestedItems($input, $level = array())
 {
     $output = array();
     foreach ($input as $key => $item) {
         $level[] = $key;
         if (is_array($item)) {
             $output = (array) $output + (array) mslib_befe::getNestedItems($item, $level);
         } else {
             $output[mslib_fe::rewritenamein((string) implode('_', $level), '', 1)] = $item;
         }
         array_pop($level);
     }
     return $output;
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:14,代码来源:class.mslib_befe.php

示例3: image_type_to_extension

 if ($imgtype) {
     // valid image
     $ext = image_type_to_extension($imgtype, false);
     if ($ext) {
         $i = 0;
         $filename = mslib_fe::rewritenamein($this->post['products_name'][0]) . '.' . $ext;
         $folder = mslib_befe::getImagePrefixFolder($filename);
         $array = explode(".", $filename);
         if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder)) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder);
         }
         $folder .= '/';
         $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder . $filename;
         if (file_exists($target)) {
             do {
                 $filename = mslib_fe::rewritenamein($this->post['products_name'][0]) . ($i > 0 ? '-' . $i : '') . '.' . $ext;
                 $folder_name = mslib_befe::getImagePrefixFolder($filename);
                 $array = explode(".", $filename);
                 $folder = $folder_name;
                 if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder)) {
                     \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder);
                 }
                 $folder .= '/';
                 $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder . $filename;
                 $i++;
             } while (file_exists($target));
         }
         if (move_uploaded_file($file['tmp_name'], $target)) {
             $target_origineel = $target;
             $update_product_images[$key] = mslib_befe::resizeProductImage($target_origineel, $filename, $this->DOCUMENT_ROOT . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey), 1);
         }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_edit_product.php

示例4: customAjaxPage

 function customAjaxPage(&$params, &$ref)
 {
     error_log("customAjaxPage hook");
     error_log("products path: " . $ref->ms['image_paths']['products']['original']);
     $ref->ms['image_paths']['variants']['original'] = 'uploads/tx_msvariants/images/original';
     error_log("variants path: " . $ref->ms['image_paths']['variants']['original']);
     if ($ref->ADMIN_USER) {
         if (isset($_SERVER["CONTENT_LENGTH"])) {
             //        switch ($ref->get['file_type']) {
             //          case 'variants_image':
             //          for ($x=0; $x<$ref->ms['MODULES']['NUMBER_OF_PRODUCT_IMAGES']; $x++) {
             //              // hidden filename that is retrieved from the ajax upload
             //            $i=$x;
             //            if ($i==0) {
             //              $i='';
             //            }
             //            $field='products_image'.$i;
             //            if ($ref->get['file_type']==$field) {
             $temp_file = $ref->DOCUMENT_ROOT . 'uploads/tx_multishop/tmp/' . uniqid();
             if (isset($_FILES['qqfile'])) {
                 move_uploaded_file($_FILES['qqfile']['tmp_name'], $temp_file);
             } else {
                 $input = fopen("php://input", "r");
                 $debug_file = fopen("/Applications/XAMPP/xamppfiles/htdocs/typo3/typo3temp/debug.txt", "w");
                 fwrite($debug_file, sys_get_temp_dir());
                 fclose($debug_file);
                 $temp = tmpfile();
                 $realSize = stream_copy_to_stream($input, $temp);
                 fclose($input);
                 $target = fopen($temp_file, "w");
                 fseek($temp, 0, SEEK_SET);
                 stream_copy_to_stream($temp, $target);
                 fclose($target);
             }
             error_log("temp file created");
             $size = getimagesize($temp_file);
             if ($size[0] > 5 and $size[1] > 5) {
                 error_log("size ok");
                 $imgtype = mslib_befe::exif_imagetype($temp_file);
                 if ($imgtype) {
                     error_log("type ok");
                     // valid image
                     $ext = image_type_to_extension($imgtype, false);
                     if ($ext) {
                         error_log("ext ok");
                         $i = 0;
                         $filename = mslib_fe::rewritenamein($ref->get['products_name']) . '.' . $ext;
                         $folder = mslib_befe::getImagePrefixFolder($filename);
                         $array = explode(".", $filename);
                         if (!is_dir($ref->DOCUMENT_ROOT . $ref->ms['image_paths']['variants']['original'] . '/' . $folder)) {
                             t3lib_div::mkdir($ref->DOCUMENT_ROOT . $ref->ms['image_paths']['variants']['original'] . '/' . $folder);
                         }
                         error_log("mkdir ok");
                         $folder .= '/';
                         $target = $ref->DOCUMENT_ROOT . $ref->ms['image_paths']['variants']['original'] . '/' . $folder . $filename;
                         if (file_exists($target)) {
                             error_log("file exists ok");
                             do {
                                 $filename = mslib_fe::rewritenamein($ref->get['products_name']) . ($i > 0 ? '-' . $i : '') . '.' . $ext;
                                 $folder_name = mslib_befe::getImagePrefixFolder($filename);
                                 $array = explode(".", $filename);
                                 $folder = $folder_name;
                                 if (!is_dir($ref->DOCUMENT_ROOT . $ref->ms['image_paths']['variants']['original'] . '/' . $folder)) {
                                     t3lib_div::mkdir($ref->DOCUMENT_ROOT . $ref->ms['image_paths']['variants']['original'] . '/' . $folder);
                                 }
                                 $folder .= '/';
                                 $target = $ref->DOCUMENT_ROOT . $ref->ms['image_paths']['variants']['original'] . '/' . $folder . $filename;
                                 $i++;
                             } while (file_exists($target));
                         }
                         error_log("before copy file ok");
                         if (copy($temp_file, $target)) {
                             $filename = mslib_befe::resizeProductImage($target, $filename, $ref->DOCUMENT_ROOT . t3lib_extMgm::siteRelPath($ref->extKey), 1);
                             $result = array();
                             $result['success'] = true;
                             $result['error'] = false;
                             $result['filename'] = $filename;
                             echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
                             exit;
                         }
                     }
                 }
             }
         }
         //          }
         //          break;
         //        }
         //      }
     }
     //    exit();
     //    break;
 }
开发者ID:piramidex,项目名称:msvariants,代码行数:92,代码来源:class.tx_msvariants_customajaxpage.php

示例5: image_type_to_extension

     if ($size[0] > 5 and $size[1] > 5) {
         $imgtype = mslib_befe::exif_imagetype($file['tmp_name']);
         if ($imgtype) {
             // valid image
             $ext = image_type_to_extension($imgtype, false);
             $i = 0;
             $filename = mslib_fe::rewritenamein($this->post['categories_name'][0]) . '.' . $ext;
             $folder = mslib_befe::getImagePrefixFolder($filename);
             if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['categories']['original'] . '/' . $folder)) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['categories']['original'] . '/' . $folder);
             }
             $folder .= '/';
             $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['categories']['original'] . '/' . $folder . $filename;
             if (file_exists($target)) {
                 do {
                     $filename = mslib_fe::rewritenamein($this->post['categories_name'][0]) . '-' . $i . '.' . $ext;
                     $folder = mslib_befe::getImagePrefixFolder($filename);
                     if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['categories']['original'] . '/' . $folder)) {
                         \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['categories']['original'] . '/' . $folder);
                     }
                     $folder .= '/';
                     $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['categories']['original'] . '/' . $folder . $filename;
                     $i++;
                 } while (file_exists($target));
             }
             if (move_uploaded_file($file['tmp_name'], $target)) {
                 $update_category_image = mslib_befe::resizeCategoryImage($target, $filename, $this->DOCUMENT_ROOT . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey), 1);
             }
         }
     }
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_edit_category.php

示例6: image_type_to_extension

 $ext = image_type_to_extension($imgtype, false);
 if ($ext) {
     $i = 0;
     $filename = mslib_fe::rewritenamein($row_desc['products_name']) . '.' . $ext;
     //echo $filename;
     $folder = mslib_befe::getImagePrefixFolder($filename);
     $array = explode(".", $filename);
     if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder)) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder);
     }
     $folder .= '/';
     $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder . $filename;
     //echo $target;
     if (file_exists($target)) {
         do {
             $filename = mslib_fe::rewritenamein($row_desc['products_name']) . ($i > 0 ? '-' . $i : '') . '.' . $ext;
             $folder_name = mslib_befe::getImagePrefixFolder($filename);
             $array = explode(".", $filename);
             $folder = $folder_name;
             if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder)) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder);
             }
             $folder .= '/';
             $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['products']['original'] . '/' . $folder . $filename;
             $i++;
             //echo $target . "<br/>";
         } while (file_exists($target));
     }
     if (copy($file, $target)) {
         $target_origineel = $target;
         $update_product_images = mslib_befe::resizeProductImage($target_origineel, $filename, $this->DOCUMENT_ROOT . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey));
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:copy_duplicate_product.php

示例7: set_time_limit

 // psp thank you or error pages eof
 case 'sitemap_generator':
     if (isset($this->get['tx_multishop_pi1']['encryptionKey']) && !empty($this->get['tx_multishop_pi1']['encryptionKey'])) {
         if ($this->get['tx_multishop_pi1']['encryptionKey'] == $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']) {
             set_time_limit(7200);
             ignore_user_abort(true);
             $content = '';
             $log_file = $this->DOCUMENT_ROOT . 'uploads/tx_multishop/sitemap_tmp.txt';
             $sitemap_file = $this->DOCUMENT_ROOT . 'uploads/tx_multishop/sitemap_' . mslib_fe::rewritenamein($this->HTTP_HOST) . '.txt';
             $sitemap_file_web_path = 'uploads/tx_multishop/sitemap_' . mslib_fe::rewritenamein($this->HTTP_HOST) . '.txt';
             $max_pages = 2;
             $prefix_domain = $this->FULL_HTTP_URL;
             @unlink($log_file);
             $log_xml_file = $this->DOCUMENT_ROOT . 'uploads/tx_multishop/sitemap_xml.txt';
             $sitemap_xml_file = $this->DOCUMENT_ROOT . 'uploads/tx_multishop/sitemap_' . mslib_fe::rewritenamein($this->HTTP_HOST) . '.xml';
             $sitemap_xml_file_web_path = 'uploads/tx_multishop/sitemap_' . mslib_fe::rewritenamein($this->HTTP_HOST) . '.xml';
             $prefix_domain = $this->FULL_HTTP_URL;
             @unlink($log_xml_file);
             $tmpContent = '';
             $tmpContent .= '<' . '?xml version="1.0" encoding="UTF-8"?' . '>';
             $tmpContent .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";
             file_put_contents($log_xml_file, $tmpContent, FILE_APPEND | LOCK_EX);
             $link = $prefix_domain . mslib_fe::typolink($this->shop_pid);
             // TXT
             $tmpContent = $link . "\n";
             file_put_contents($log_file, $tmpContent, FILE_APPEND | LOCK_EX);
             // XML
             $tmpContent = '<url>' . "\n";
             $tmpContent .= "\t" . '<loc>' . $link . '</loc>' . "\n";
             $tmpContent .= "\t" . '<lastmod>' . date('c') . '</lastmod>' . "\n";
             $tmpContent .= "\t" . '<changefreq>daily</changefreq>' . "\n";
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:core.php

示例8: image_type_to_extension

 if ($imgtype) {
     // valid image
     $ext = image_type_to_extension($imgtype, false);
     if ($ext) {
         $i = 0;
         $filename = mslib_fe::rewritenamein($tmp_filename) . '.' . $ext;
         $folder = mslib_befe::getImagePrefixFolder($filename);
         $array = explode(".", $filename);
         if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['attribute_values']['original'] . '/' . $folder)) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['attribute_values']['original'] . '/' . $folder);
         }
         $folder .= '/';
         $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['attribute_values']['original'] . '/' . $folder . $filename;
         if (file_exists($target)) {
             do {
                 $filename = mslib_fe::rewritenamein($tmp_filename) . ($i > 0 ? '-' . $i : '') . '.' . $ext;
                 $folder_name = mslib_befe::getImagePrefixFolder($filename);
                 $array = explode(".", $filename);
                 $folder = $folder_name;
                 if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['attribute_values']['original'] . '/' . $folder)) {
                     \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['attribute_values']['original'] . '/' . $folder);
                 }
                 $folder .= '/';
                 $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['attribute_values']['original'] . '/' . $folder . $filename;
                 $i++;
             } while (file_exists($target));
         }
         if (copy($temp_file, $target)) {
             $filename = mslib_befe::resizeProductAttributeValuesImage($target, $filename, $this->DOCUMENT_ROOT . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey), 1);
             $result = array();
             $result['success'] = true;
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_ajax_attributes_options_values.php

示例9: file_put_contents

 file_put_contents($tmpfile, $data);
 $plaatje1 = $tmpfile;
 if (($extentie1 = mslib_befe::exif_imagetype($plaatje1)) && $plaatje1_name != '') {
     $extentie1 = image_type_to_extension($extentie1, false);
     $ext = $extentie1;
     $ix = 0;
     $filename = mslib_fe::rewritenamein($categories_name) . '.' . $ext;
     $folder = mslib_befe::getImagePrefixFolder($filename);
     if (!is_dir(PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder)) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir(PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder);
     }
     $folder .= '/';
     $target = PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder . $filename;
     if (file_exists($target)) {
         do {
             $filename = mslib_fe::rewritenamein($manufacturers_name) . ($ix > 0 ? '-' . $ix : '') . '.' . $ext;
             $folder = mslib_befe::getImagePrefixFolder($filename);
             if (!is_dir(PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder)) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir(PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder);
             }
             $folder .= '/';
             $target = PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder . $filename;
             $ix++;
         } while (file_exists($target));
     }
     // end
     $manufacturers_image = $path . '/' . $naam;
     // backup original
     $target = PATH_site . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder . $filename;
     copy($tmpfile, $target);
     @unlink($tmpfile);
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_import.php

示例10: image_type_to_extension

     if ($size[0] > 5 and $size[1] > 5) {
         $imgtype = mslib_befe::exif_imagetype($file['tmp_name']);
         if ($imgtype) {
             // valid image
             $ext = image_type_to_extension($imgtype, false);
             $i = 0;
             $filename = mslib_fe::rewritenamein($this->post['manufacturers_name'][0]) . '.' . $ext;
             $folder = mslib_befe::getImagePrefixFolder($filename);
             if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder)) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder);
             }
             $folder .= '/';
             $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder . $filename;
             if (file_exists($target)) {
                 do {
                     $filename = mslib_fe::rewritenamein($this->post['manufacturers_name'][0]) . '-' . $i . '.' . $ext;
                     $folder = mslib_befe::getImagePrefixFolder($filename);
                     if (!is_dir($this->DOCUMENT_ROOT . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder)) {
                         \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($this->DOCUMENT_ROOT . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder);
                     }
                     $folder .= '/';
                     $target = $this->DOCUMENT_ROOT . $this->ms['image_paths']['manufacturers']['original'] . '/' . $folder . $filename;
                     $i++;
                 } while (file_exists($target));
             }
             if (move_uploaded_file($file['tmp_name'], $target)) {
                 $update_manufacturers_image = mslib_befe::resizeManufacturerImage($target, $filename, $this->DOCUMENT_ROOT . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey), 1);
             }
         }
     }
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_edit_manufacturer.php

示例11: globalCrumbarTree

 public function globalCrumbarTree($c, $languages_id = '', $output = array())
 {
     if (is_numeric($c)) {
         if ($this->ms['MODULES']['CACHE_FRONT_END']) {
             if (!isset($this->ms['MODULES']['CACHE_TIME_OUT_CRUM'])) {
                 $this->ms['MODULES']['CACHE_TIME_OUT_CRUM'] = $this->ms['MODULES']['CACHE_TIME_OUT_SEARCH_PAGES'];
             }
             if (!count($output) && $this->ms['MODULES']['CACHE_TIME_OUT_CRUM']) {
                 $CACHE_FRONT_END = 1;
             } else {
                 $CACHE_FRONT_END = 0;
             }
         } else {
             $CACHE_FRONT_END = 0;
         }
         if ($CACHE_FRONT_END) {
             $this->cacheLifeTime = $this->ms['MODULES']['CACHE_TIME_OUT_CRUM'];
             $options = array('caching' => true, 'cacheDir' => $this->DOCUMENT_ROOT . 'uploads/tx_multishop/tmp/cache/', 'lifeTime' => $this->cacheLifeTime);
             $Cache_Lite = new Cache_Lite($options);
             $string = $this->cObj->data['uid'] . '_crum_' . $c . '_' . $languages_id . '_' . md5(serialize($output));
         }
         if ($this->ROOTADMIN_USER || !$CACHE_FRONT_END || $CACHE_FRONT_END && !($content = $Cache_Lite->get($string))) {
             $sql = $GLOBALS['TYPO3_DB']->SELECTquery('c.status, c.custom_settings, c.categories_id, c.parent_id, c.page_uid, cd.categories_name, cd.meta_title, cd.meta_description', 'tx_multishop_categories c, tx_multishop_categories_description cd', 'c.categories_id = \'' . $c . '\' and cd.language_id=\'' . $this->sys_language_uid . '\' and c.categories_id = cd.categories_id', '', '', '');
             $qry = $GLOBALS['TYPO3_DB']->sql_query($sql);
             if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry)) {
                 $data = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry);
                 if ($data['categories_name']) {
                     $output[] = array('name' => $data['categories_name'], 'url' => mslib_fe::rewritenamein($data['categories_name'], 'cat', $data['categories_id']), 'id' => $data['categories_id'], 'custom_settings' => $data['custom_settings'], 'meta_title' => $data['meta_title'], 'meta_description' => $data['meta_description'], 'status' => $data['status'], 'page_uid' => $data['page_uid']);
                 }
                 if ($data['parent_id'] > 0 && $data['parent_id'] != $this->categoriesStartingPoint) {
                     if ($data['categories_id'] == $data['parent_id']) {
                         echo 'globalCrumbar is looping.';
                         die;
                     } else {
                         $output = mslib_fe::globalCrumbarTree($data['parent_id'], '', $output);
                     }
                 }
                 $GLOBALS['TYPO3_DB']->sql_free_result($qry);
             }
             if ($CACHE_FRONT_END) {
                 $Cache_Lite->save(serialize($output));
             }
         } else {
             $output = unserialize($content);
         }
     }
     return $output;
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:48,代码来源:class.mslib_fe.php

示例12: array

             $updateArray['language_id'] = 0;
             $updateArray = mslib_befe::rmNullValuedKeys($updateArray);
             $query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_multishop_payment_methods_description', $updateArray);
             $res = $GLOBALS['TYPO3_DB']->sql_query($query);
             $payment_method = mslib_fe::getPaymentMethod($record['payment_method'], 'd.name');
         }
     }
     $row['payment_method'] = $payment_method['code'];
     $row['payment_method_label'] = $payment_method['name'];
 }
 if ($record['shipping_method']) {
     $shipping_method = mslib_fe::getShippingMethod($record['shipping_method'], 'd.name');
     if (!$shipping_method['code']) {
         // insert
         $insertArray = array();
         $insertArray['code'] = mslib_fe::rewritenamein($record['shipping_method']);
         $insertArray['handling_costs'] = 0;
         $insertArray['sort_order'] = 0;
         $insertArray['date'] = time();
         $insertArray['status'] = 1;
         $insertArray['provider'] = 'cod';
         $insertArray = mslib_befe::rmNullValuedKeys($insertArray);
         $query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_multishop_shipping_methods', $insertArray);
         $res = $GLOBALS['TYPO3_DB']->sql_query($query);
         $id = $GLOBALS['TYPO3_DB']->sql_insert_id();
         if ($id) {
             $updateArray = array();
             $updateArray['name'] = $record['shipping_method'];
             $updateArray['description'] = '';
             $updateArray['id'] = $id;
             $updateArray['language_id'] = 0;
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:administration.php

示例13: array

    }
    //$this->cart_page_uid.='_'.$GLOBALS["TSFE"]->fe_user->user['uid'];
}
if ($this->ms['MODULES']['FLAT_DATABASE_EXTRA_ATTRIBUTE_OPTION_COLUMNS'] and !$this->ms['FLAT_DATABASE_ATTRIBUTE_OPTIONS']) {
    // one time load for the attribute option names. When we have to add or update products to the flat table we already know the attribute option column names, so this way it requires less running queries
    $lifetime = 36000;
    $string = 'flat_database_extra_attribute_options_' . $this->shop_pid . '_' . $this->cObj->data['uid'];
    if (!$this->ms['MODULES']['CACHE_FRONT_END'] or $this->ms['MODULES']['CACHE_FRONT_END'] and !($flat_database_extra_attribute_options = mslib_befe::cacheLite('get', $string, $lifetime, 1))) {
        $flat_database_extra_attribute_options = array();
        $array = explode(";", $this->ms['MODULES']['FLAT_DATABASE_EXTRA_ATTRIBUTE_OPTION_COLUMNS']);
        foreach ($array as $row) {
            $item = explode(":", $row);
            if (is_numeric($item[0])) {
                $columnName = mslib_fe::getProductsOptionName($item[0]);
                if ($columnName) {
                    $field_name = "a_" . str_replace("-", "_", mslib_fe::rewritenamein($columnName));
                    if ($field_name) {
                        $flat_database_extra_attribute_options[$item[0]] = array(0 => $field_name, 1 => $item[1]);
                    }
                }
            }
        }
        if ($this->ms['MODULES']['CACHE_FRONT_END']) {
            mslib_befe::cacheLite('save', $string, $lifetime, 1, $flat_database_extra_attribute_options);
        }
    }
    $this->ms['FLAT_DATABASE_ATTRIBUTE_OPTIONS'] = $flat_database_extra_attribute_options;
}
if (!$this->conf['disableMetatags']) {
    if ($this->ms['MODULES']['META_TITLE'] and !$GLOBALS['TSFE']->additionalHeaderData['title']) {
        $GLOBALS['TSFE']->additionalHeaderData['title'] = '<title>' . htmlspecialchars($this->ms['MODULES']['META_TITLE']) . '</title>';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:application_top_always.php

示例14: str_replace

                             $product_id = $row['products_id'];
                             $shipping_method_id = $post_data['shipping_costs_per_product'];
                             $priceArray = mslib_fe::productFeedGeneratorGetShippingCosts($row, (int) $cn_iso_nr, $shipping_method_id);
                             $cn_iso_2 = mslib_fe::getCountryName((int) $cn_iso_nr);
                             if ($this->ms['MODULES']['SHOW_PRICES_INCLUDING_VAT']) {
                                 $tmpcontent .= $cn_iso_2 . ':::' . $priceArray['shipping_costs_including_vat'] . ' ' . $this->ms['MODULES']['CURRENCY_ARRAY']['cu_iso_3'];
                             } else {
                                 $tmpcontent .= $cn_iso_2 . ':::' . $priceArray['shipping_costs'] . ' ' . $this->ms['MODULES']['CURRENCY_ARRAY']['cu_iso_3'];
                             }
                         } else {
                             if ($attributes[$field]) {
                                 // print it from flat table
                                 if (!$this->ms['MODULES']['FLAT_DATABASE']) {
                                     $field_name = $field;
                                 } else {
                                     $field_name = "a_" . str_replace("-", "_", mslib_fe::rewritenamein($attributes[$field]));
                                     if (!$row[$field_name]) {
                                         $field_name = $field;
                                     }
                                 }
                                 $tmpcontent .= $row[$field_name];
                             }
                         }
                     }
                 }
             }
         }
         break;
 }
 // custom page hook that can be controlled by third-party plugin
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/download_product_feed.php']['iterateItemFieldProc'])) {
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:download_product_feed.php


注:本文中的mslib_fe::rewritenamein方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。