안뇽하세요 디씨의 날고기는 프로그래머 님들..

저는 사실 디자인일을 하구있는 한 처자 이온데 ㅠ
php 오픈소스 프로그램을 썻거든요
근데 접때 누가 수정해줘서 수정해준체로 좀 썻엇어요 근데 이 프로그램이 버전 업뎃을 해서여 ㅠ
업뎃을 해야하는데, 수정한 부분을 계속 쓰고 싶거든요.. 수정이라고 할까 아무튼 기능을 추가  했다고 봐야져..
근데 지금 어찌 할 방도가 없어서..주변에 아는 남정네들을 다뒤져도 어째 웹프로그램 아는사람 하나가 없는지 ㅜㅜ
암튼 도와주시면 성은이 망극 ㅜㅜ

일단 요부분이 본래 수정(추가)전의 코드구요......
===============================================================================================================
foreach ($results as $result) {
    if ($result[\'image\'] && file_exists(DIR_IMAGE . $result[\'image\'])) {
     $this->data[\'product_images\'][] = array(
      \'preview\' => $this->model_tool_image->resize($result[\'image\'], 100, 100),
      \'file\'    => $result[\'image\']
     );
    } else {
     $this->data[\'product_images\'][] = array(
      \'preview\' => $this->model_tool_image->resize(\'no_image.jpg\', 100, 100),
      \'file\'    => $result[\'image\']
     );
    }
   }
  }

===============================================================================================================


요게 예전에 누가 기능 추가 해준 코드에요..그니까 저 위의 코드에 굵은 글씨부분을 추가한거..

foreach ($results as $result) {
   
    if ($result[\'image\'] && file_exists(DIR_IMAGE . $result[\'image\'])) {
     $this->data[\'product_images\'][] = array(
      \'preview\' => $this->model_tool_image->resize($result[\'image\'], 100, 100),
      \'file\'    => $result[\'image\'],       \'product_color_id\'    => $result[\'product_color_id\']     

     );
    } else {
     $this->data[\'product_images\'][] = array(
      \'preview\' => $this->model_tool_image->resize(\'no_image.jpg\', 100, 100),
      \'file\'    => $result[\'image\'],       \'product_color_id\'    => $result[\'product_color_id\'] 
     );     }    }   }   $this->data[\'product_colors\'] = array();   if (isset($product_info)) {    $results = $this->model_catalog_product->getProductColors($this->request->get[\'product_id\']);      foreach ($results as $result) {         if ($result[\'color\'] && file_exists(DIR_IMAGE . $result[\'color\'])) {      $this->data[\'product_colors\'][] = array(       \'preview\' => $this->model_tool_image->resize($result[\'color\'], 30, 30),       \'file\'    => $result[\'color\'],       \'product_color_id\'    => $result[\'product_color_id\'],       \'name\'    => $result[\'name\']      );     } else {      $this->data[\'product_colors\'][] = array(       \'preview\' => $this->model_tool_image->resize(\'no_image.jpg\', 30, 30),       \'file\'    => $result[\'color\'],       \'product_color_id\'    => 0,       \'name\'    => \'\'           );
    }
   }
  }
  $this->data[\'product_sizes\'] = array();   if (isset($product_info)) {    $results = $this->model_catalog_product->getProductSizes($this->request->get[\'product_id\']);      foreach ($results as $result) {      $this->data[\'product_sizes\'][] = $result[\'size\'];    }

  }


===============================================================================================================

그리고 이건 이번에 버전업된 소스인데요...
\'\'file\'    => $result[\'image\'] 요부분이 없고 대신   $image = $this->model_tool_image->resize($result[\'image\'], 40, 40);

이렇게 있는데..키와 값의 지정(?) 방식을 달리 표현 한건가 싶은데..위에서 추가한 코드 부분을
밑의 업뎃된 버전의 코드에도 적용해서 사용하려면 우찌해야 하나여? ㅠㅠ 좀 도와주세요 ㅠㅠ 이쁜 배우자 만나실거에용 ㅠㅠ

foreach ($results as $result) {
   $action = array();
   
   $action[] = array(
    \'text\' => $this->language->get(\'text_edit\'),
    \'href\' => $this->url->link(\'catalog/product/update\', \'token=\' . $this->session->data[\'token\'] . \'&product_id=\' . $result[\'product_id\'] . $url, \'SSL\')
   );
   
   if ($result[\'image\'] && file_exists(DIR_IMAGE . $result[\'image\'])) {
    $image = $this->model_tool_image->resize($result[\'image\'], 40, 40);
   } else {
    $image = $this->model_tool_image->resize(\'no_image.jpg\', 40, 40);
   }
 
   $product_specials = $this->model_catalog_product->getProductSpecials($result[\'product_id\']);

   if ($product_specials) {
                $special = reset($product_specials);
                if(($special[\'date_start\'] != \'0000-00-00\' && $special[\'date_start\'] > date(\'Y-m-d\')) || ($special[\'date_end\'] != \'0000-00-00\' && $special[\'date_end\'] < date(\'Y-m-d\'))) {
                    $special = FALSE;
                }
            } else {
                $special = FALSE;
            }
 
        $this->data[\'products\'][] = array(
    \'product_id\'       => $result[\'product_id\'],
    \'name\'             => $result[\'name\'],
    \'model\'            => $result[\'model\'],
    \'cost\'            => $result[\'cost\'],
    \'special\'          => $special[\'cost\'],
    \'image\'            => $image,    \'quantity\'         => $result[\'quantity\'],
    \'status\'           => ($result[\'status\'] ? $this->language->get(\'text_enabled\') : $this->language->get(\'text_disabled\')),
    \'selected\'         => isset($this->request->post[\'selected\']) && in_array($result[\'product_id\'], $this->request->post[\'selected\']),
    \'action\'           => $action