30. juni 2005 - 21:54
Der er
26 kommentarer og 1 løsning
Problemer med en webshop
Hejsa.. jeg roder lidt rundt med en webshop fra
http://opensolution.org/os/ en gratis php shop uden databaser.. i opsætningen af shoppen står der at man shal CHMOD 777 nogle mapper og filer, men da dette ikke kan gøres via FTP på en windows server. har jeg fået min udbyder til at rette dette på serveren. men jeg har stadig et problem.. når jeg opretter en vare og tilføjer et billede. så kommer billedet ikke ind på siden... nogle der ved hvad der kan være galt.? shoppen kan sees her:
www.bp-computers.dk/shop og selve admin modulet til shoppen hvor man tilføjer varer kan sees her:
www.bp-computers.dk/shop/admin login og pass er admin, i må gerne pille.. jeg ændrer bare passwordet når det virker..
Håber at der er nogle der har et godt bud på hvad der er galt..
Mvh Brian
Annonceindlæg fra Kingston Technology
syntes ikke rigtig den oploader gør den ?
jo det virker man kan oploade rar filer der til hm så det må være noget med billeder den ikke kan opload
Du har da ret hygget dig.. men dem med BPM havde jeg ikke overvejet at prøve... prøver lige at kigge lidt i config filen, om der er noget der der giver mening..
nu har jeg fundet config filen frem.. men det står meget i jeg ikke forstår... <?php error_reporting( E_ALL ); /* * List of database files */ $config['db_products'] = 'products.php'; $config['db_products_files'] = 'products_files.php'; $config['db_categories'] = 'categories.php'; $config['db_categories_files'] = 'categories_files.php'; $config['db_couriers'] = 'couriers.php'; $config['db_orders'] = 'orders.php'; $config['db_orders_products'] = 'orders_products.php'; $config['db_preferences'] = 'config/general.php'; /* * List of directories */ $config['dir_core'] = 'core/'; $config['dir_db'] = 'db/'; $config['dir_js'] = 'js/'; $config['dir_libraries'] = 'libraries/'; $config['dir_lang'] = 'lang/'; $config['dir_tpl'] = 'templates/'; $config['dir_files'] = 'files/'; $config['dir_ext'] = 'ext/'; $config['dir_products_files'] = 'products/'; $config['dir_categories_files']= 'categories/'; $config['dir_plugins'] = 'plugins/'; $config['dir_template'] = "default/"; /* * Logo file */ $config['logo_img'] = "logo_qc.gif"; $config['products_foto_size'] = 100; $config['categories_foto_size'] = 100; $config['max_dimension_of_image'] = 900; $config['foto_jobs_ratio'] = 0.65; $config['products_list'] = 5; $config['orders_list'] = 20; $config['contact_page'] = 1; /* * Contact email */ $config['email'] = "email@email.com"; /* * Information on mail about new order true/false */ $config['mail_informing'] = false; /* * Start page */ $config['start_page'] = "productsList"; $config['login'] = "admin"; $config['pass'] = "admin"; /* * Title, description and keywords to Your website */ $config['title'] = "Quick.Cart - Simple e-commerce by OpenSolution.org"; $config['description'] = "Quick.Cart - Simple e-commerce by OpenSolution.org"; $config['keywords'] = "Quick.Cart, easy, e-commerce, ecommerce, simple, flat, no database, no sql, OpenSolution.org, OpenSolution, Open, Solution"; /* * Language and currency */ $config['language'] = "en"; $config['currency_symbol'] = "$"; $config['version'] = '0.3.0'; ##################### # Dont change below # ##################### $config['db_type'] = 'ff'; define( 'DIR_CORE', $config['dir_core'] ); define( 'DIR_DB', $config['dir_db'] ); define( 'DIR_FILES', $config['dir_files'] ); define( 'DIR_LIBRARIES', $config['dir_libraries'] ); define( 'DIR_PRODUCTS_FILES', $config['dir_files'].$config['dir_products_files'] ); define( 'DIR_CATEGORIES_FILES', $config['dir_files'].$config['dir_categories_files'] ); define( 'DIR_PLUGINS', $config['dir_plugins'] ); define( 'DIR_LANG', $config['dir_lang'] ); define( 'TEMPLATE', $config['dir_template'] ); define( 'TPL', $config['dir_tpl'] ); define( 'PRODUCTS_LIST', $config['products_list'] ); define( 'ORDERS_LIST', $config['orders_list'] ); define( 'PRODUCTS_FOTO_SIZE', $config['products_foto_size'] ); define( 'CATEGORIES_FOTO_SIZE', $config['categories_foto_size'] ); define( 'MAX_DIMENSION_OF_IMAGE', $config['max_dimension_of_image'] ); define( 'DB_PRODUCTS', $config['db_products'] ); define( 'DB_PRODUCTS_FILES', $config['db_products_files'] ); define( 'DB_CATEGORIES', $config['db_categories'] ); define( 'DB_CATEGORIES_FILES', $config['db_categories_files'] ); define( 'DB_COURIERS', $config['db_couriers'] ); define( 'DB_ORDERS', $config['db_orders'] ); define( 'DB_ORDERS_PRODUCTS', $config['db_orders_products'] ); define( 'DB_PREFERENCES', $config['db_preferences'] ); define( 'EMAIL', $config['email'] ); define( 'VERSION', $config['version'] ); define( 'LANGUAGE', $config['language'] ); ?>
tror ikke det er den der gør sådan ud ikke kan hmm
er der ikke en som hedder opload? eller noget i den stil?
Files.php <?php if( !function_exists( 'throwFilesDir' ) ){ /** * Zwracanie katalogu plikow * @return string * @param int $iType */ function throwFilesDir( $iType = 1 ){ if( $iType == 1 ){ return DIR_PRODUCTS_FILES; } else{ return DIR_CATEGORIES_FILES; } } // end function throwFilesDir } if( !function_exists( 'listFiles' ) ){ /** * Wyswietlanie spisu plikow * @return array * @param int $iLink * @param string $sFile * @param int $iType */ function listFiles( $iLink, $sFile = null, $iType = 1 ){ global $aList, $oFoto, $tpl; $sDir = throwFilesDir( $iType ); $aData = dbListFiles( $iLink, $iType ); $aReturn['list'] = null; $iExist = 0; if( isset( $aData[1] ) && is_array( $aData[1] ) ){ $iCount = count( $aData[1] ); for( $i = 0; $i < $iCount; $i++ ){ list( $aList['id'], $aList['iPosition'], $aList['file'], $aList['description'], $aList['type'] ) = $aData[1][$i]; if( is_file( $sDir.$aList['file'] ) ){ $aName = $oFoto->throwNameExtOfFile( $aList['file'] ); $aList['fotoSmall'] = $sDir.$aName[0].'_m.'.$aName[1]; $aList['fotoBig'] = $sDir.$aList['file']; if( $iExist == 0 ) $aReturn['default_photo'] = $tpl->tbHtml( $sFile, 'FOTO_DEFAULT' ); else{ if( $iExist == 1 ) $aReturn['photos'] = $tpl->tbHtml( $sFile, 'FOTO_HEAD' ); $aReturn['photos'] .= $tpl->tbHtml( $sFile, 'FOTO_LIST' ); } $iExist++; } } // end for if( $iExist > 1 ) $aReturn['photos'] .= $tpl->tbHtml( $sFile, 'FOTO_FOOTER' ); } $iExist = 0; if( isset( $aData[0] ) && is_array( $aData[0] ) ){ $aExt = throwIconsFromExt( ); $iCount = count( $aData[0] ); for( $i = 0; $i < $iCount; $i++ ){ list( $aList['id'], $aList['iPosition'], $aList['file'], $aList['description'], $aList['type'] ) = $aData[0][$i]; if( is_file( $sDir.$aList['file'] ) ){ $aName = $oFoto->throwNameExtOfFile( $aList['file'] ); if( !isset( $aExt[$aName[1]] ) ) $aExt[$aName[1]] = 'nn'; $aList['sIcon'] = 'ico_'.$aExt[$aName[1]]; if( $iExist == 0 ) $aReturn['files'] = $tpl->tbHtml( $sFile, 'FILES_HEAD' ); $aReturn['files'] .= $tpl->tbHtml( $sFile, 'FILES_LIST' ); $iExist++; } } // end for if( $iExist > 0 ) $aReturn['files'] .= $tpl->tbHtml( $sFile, 'FILES_FOOTER' ); } return $aReturn; } // end function listFiles } if( !function_exists( 'throwFirstPhoto' ) ){ /** * Pobieranie pierwszych zdjec * @return array * @param int $iType */ function throwFirstPhoto( $iType ){ $aData = dbThrowFirstPhoto( $iType ); $iCount = count( $aData ); $aFoto = null; for( $i = 0; $i < $iCount; $i++ ){ list( $aFoto[$aData[$i][1]]['id'], $aFoto[$aData[$i][1]]['iLink'], $aFoto[$aData[$i][1]]['foto'], $aFoto[$aData[$i][1]]['description'] ) = $aData[$i]; } // end for return $aFoto; } // end function throwFirstPhoto } ?> Files-admin.php <?php if( !function_exists( 'addFile' ) ){ /** * Dodawanie pliku * @return void * @param int $iLink * @param string $sFileName * @param string $sDescription * @param int $iType * @param int $iLinkType */ function addFile( $iLink, $sFileName, $sDescription, $iType, $iLinkType = 1 ){ dbAddFile( $iLink, $sFileName, changeTxt( ereg_replace( '\'', '', $sDescription ) ), $iType, $iLinkType ); } // end function addFile } if( !function_exists( 'delFile' ) ){ /** * Usuwanie pliku * @return void * @param int $iFile * @param int $iType */ function delFile( $iFile, $iType = 1 ){ global $oFoto; $sDir = throwFilesDir( $iType ); $sFileName = dbDelFile( $iFile, $iType ); if( isset( $sFileName ) ){ $aName = $oFoto->throwNameExtOfFile( $sFileName ); if( is_file( $sDir.$aName[0].'_m.'.$aName[1] ) ) unlink( $sDir.$aName[0].'_m.'.$aName[1] ); unlink( $sDir.$sFileName ); } } // end function delFile } if( !function_exists( 'addFiles' ) ){ /** * Dodawanie plikow * @return void * @param array $aForm * @param int $iLink * @param int $iSize * @param int $iType */ function addFiles( $aForm, $iLink, $iSize, $iType = 1 ){ global $oFoto; $sDir = throwFilesDir( $iType ); $iCount = count( $_FILES['sFile']['name'] ); $oFoto->setThumbSize( $iSize ); for( $i = 0; $i < $iCount; $i++ ){ if( !empty( $_FILES['sFile']['name'][$i] ) ){ $aFile['tmp_name'] = $_FILES['sFile']['tmp_name'][$i]; $aFile['name'] = $_FILES['sFile']['name'][$i]; if( $oFoto->checkCorrectFile( $aFile['name'], 'gif|jpg|png|jpeg' ) == true ){ $mFotos = $oFoto->copyAndCreateThumb( $sDir, $aFile, $aFile['name'], 'upload' ); if( isset( $mFotos ) ) addFile( $iLink, $mFotos['bFile'], $aForm['aFileDescription'][$i], 1, $iType ); } else{ $sFileName = $oFoto->uploadFile( $aFile, $sDir ); addFile( $iLink, $sFileName, $aForm['aFileDescription'][$i], 0, $iType ); } } } // end for } // end function addFiles } if( !function_exists( 'delFiles' ) ){ /** * Usuwanie plikow * @return void * @param int $iLink * @param int $iType */ function delFiles( $iLink, $iType = 1 ){ $aData = dbListFiles( $iLink, $iType ); if( isset( $aData[0] ) ){ $iCount = count( $aData[0] ); for( $i = 0; $i < $iCount; $i++ ){ delFile( $aData[0][$i][0], $iType ); } // end for } if( isset( $aData[1] ) ){ $iCount = count( $aData[1] ); for( $i = 0; $i < $iCount; $i++ ){ delFile( $aData[1][$i][0], $iType ); } // end for } } // end function delFiles } ?> files-ff.php <?php if( !function_exists( 'dbThrowFirstPhoto' ) ){ /** * Pobieranie pierwszych zdjec * @return array */ function dbThrowFirstPhoto( $iType = 1 ){ $aFile = file( DIR_DB.dbThrowFile( $iType ) ); $iCount = count( $aFile ); for( $i = 1; $i < $iCount; $i++ ){ $aExp = explode( '$', $aFile[$i] ); if( !isset( $aFoto[$aExp[1]] ) && $aExp[4] == 1 ){ $aData[] = $aExp; $aFoto[$aExp[1]] = true; } } // end for if( isset( $aData ) ) return $aData; else return null; } // end function dbThrowFirstPhoto } if( !function_exists( 'dbListFiles' ) ){ /** * Pobieranie plikow * @return array * @param int $iLink * @param int $iType */ function dbListFiles( $iLink, $iType = 1 ){ $aFile = file( DIR_DB.dbThrowFile( $iType ) ); $iCount = count( $aFile ); for( $i = 1; $i < $iCount; $i++ ){ $aExp = explode( '$', $aFile[$i] ); if( $aExp[1] == $iLink ) $aData[$aExp[4]][] = $aExp; } // end for if( isset( $aData ) ) return $aData; } // end function dbListFiles } if( !function_exists( 'dbThrowFile' ) ){ /** * Zwracanie pliku * @return string * @param int $iType */ function dbThrowFile( $iType = 1 ){ if( $iType == 1 ){ return DB_PRODUCTS_FILES; } else{ return DB_CATEGORIES_FILES; } } // end function dbThrowFile } if( !function_exists( 'dbAddFile' ) ){ /** * Dodanie pliku * @return void * @param int $iLink * @param string $sFileName * @param string $sDescription * @param int $iType * @param int $iLinkType */ function dbAddFile( $iLink, $sFileName, $sDescription, $iType, $iLinkType = 1 ){ global $oFF; $sFile = dbThrowFile( $iLinkType ); $oFF->setRow( Array( throwLastId( $sFile, 0 ) + 1, $iLink, $sFileName, $sDescription, $iType ) ); $oFF->addToFile( DIR_DB.$sFile ); } // end function dbAddFile } if( !function_exists( 'dbDelFile' ) ){ /** * Usuwanie pliku * @return string * @param int $iFile * @param int $iType */ function dbDelFile( $iFile, $iType = 1 ){ global $oFF; $sFile = dbThrowFile( $iType ); $aFile = file( DIR_DB.$sFile ); $rFile = fopen( DIR_DB.$sFile, 'w' ); $iCount = count( $aFile ); for( $i = 0; $i < $iCount; $i++ ){ if( $i > 0 ){ $aFile[$i] = ereg_replace( "\r", "", $aFile[$i] ); $aExp = explode( '$', $aFile[$i] ); if( $aExp[0] == $iFile ){ $aFile[$i] = ''; $sDel = $aExp[2]; } } fwrite( $rFile, $aFile[$i] ); } // end for fclose( $rFile ); if( isset( $sDel ) ) return $sDel; else return null; } // end function dbDelFile } if( !function_exists( 'dbChangeFileDescription' ) ){ /** * Zmiana danych zdjecia * @return void * @param array $aForm * @param int $iType */ function dbChangeFileDescription( $aForm, $iType = 1 ){ global $oFF; $sFile = dbThrowFile( $iType ); $oFF->setRow( $aForm ); $oFF->changeInFile( DIR_DB.$sFile, $aForm[0], 0 ); } // end function dbChangeFileDescription } ?>
30. juni 2005 - 23:30
#10
<?php if( !function_exists( 'addFile' ) ){ /** * Dodawanie pliku * @return void * @param int $iLink * @param string $sFileName * @param string $sDescription * @param int $iType * @param int $iLinkType */ function addFile( $iLink, $sFileName, $sDescription, $iType, $iLinkType = 1 ){ dbAddFile( $iLink, $sFileName, changeTxt( ereg_replace( '\'', '', $sDescription ) ), $iType, $iLinkType ); } // end function addFile } if( !function_exists( 'delFile' ) ){ /** * Usuwanie pliku * @return void * @param int $iFile * @param int $iType */ function delFile( $iFile, $iType = 1 ){ global $oFoto; $sDir = throwFilesDir( $iType ); $sFileName = dbDelFile( $iFile, $iType ); if( isset( $sFileName ) ){ $aName = $oFoto->throwNameExtOfFile( $sFileName ); if( is_file( $sDir.$aName[0].'_m.'.$aName[1] ) ) unlink( $sDir.$aName[0].'_m.'.$aName[1] ); unlink( $sDir.$sFileName ); } } // end function delFile } if( !function_exists( 'addFiles' ) ){ /** * Dodawanie plikow * @return void * @param array $aForm * @param int $iLink * @param int $iSize * @param int $iType */ function addFiles( $aForm, $iLink, $iSize, $iType = 1 ){ global $oFoto; $sDir = throwFilesDir( $iType ); $iCount = count( $_FILES['sFile']['name'] ); $oFoto->setThumbSize( $iSize ); for( $i = 0; $i < $iCount; $i++ ){ if( !empty( $_FILES['sFile']['name'][$i] ) ){ $aFile['tmp_name'] = $_FILES['sFile']['tmp_name'][$i]; $aFile['name'] = $_FILES['sFile']['name'][$i]; if( $oFoto->checkCorrectFile( $aFile['name'], 'bmp' ) == true ){ $mFotos = $oFoto->copyAndCreateThumb( $sDir, $aFile, $aFile['name'], 'upload' ); if( isset( $mFotos ) ) addFile( $iLink, $mFotos['bFile'], $aForm['aFileDescription'][$i], 1, $iType ); } else{ $sFileName = $oFoto->uploadFile( $aFile, $sDir ); addFile( $iLink, $sFileName, $aForm['aFileDescription'][$i], 0, $iType ); } } } // end for } // end function addFiles } if( !function_exists( 'delFiles' ) ){ /** * Usuwanie plikow * @return void * @param int $iLink * @param int $iType */ function delFiles( $iLink, $iType = 1 ){ $aData = dbListFiles( $iLink, $iType ); if( isset( $aData[0] ) ){ $iCount = count( $aData[0] ); for( $i = 0; $i < $iCount; $i++ ){ delFile( $aData[0][$i][0], $iType ); } // end for } if( isset( $aData[1] ) ){ $iCount = count( $aData[1] ); for( $i = 0; $i < $iCount; $i++ ){ delFile( $aData[1][$i][0], $iType ); } // end for } } // end function delFiles } ?> prøv den
30. juni 2005 - 23:35
#11
virker det?
30. juni 2005 - 23:36
#12
Nu kan den uploade gif filer også... hvad har du ændret i koden.. syntes ikke lige at jeg kan finde ændringerne... men så er næste problem så at den vider filen, og ikke et billede.. det kan jeg leve med. men den skulle egentlig gerne have vist billedet... men det er nok et helt andet sted det skal rettes...
30. juni 2005 - 23:39
#13
hm det kan man vel lave inde i den fil som viser siden er der en side som hedder productsMore&iProduct eller noget lignene
30. juni 2005 - 23:41
#14
sender lige products.php måske man kan ændre den så den viser foto og ikke fil??? <?php if( !function_exists( 'listProducts' ) ){ /** * Wyswietlanie spisu produktow * @return string * @param string $sFile * @param string $sOption */ function listProducts( $sFile = 'products_list.tpl', $sOption = 'list' ){ if( !isset( $_GET['page'] ) || !is_numeric( $_GET['page'] ) || $_GET['page'] < 1 ) $_GET['page'] = 1; if( isset( $_SESSION['iUserQC'] ) ) $iStatus = 0; else $iStatus = 1; if( $sOption == 'category' ){ $aData = dbListProductsCategory( $iStatus, $_GET['iCategory'] ); $sPage = $_GET['p'].'&iCategory='.$_GET['iCategory']; } elseif( $sOption == 'search' ){ $aData = dbListProductsSearch( $iStatus, trim( $_GET['sWord'] ) ); $sPage = $_GET['p'].'&sWord='.$_GET['sWord']; } else{ $aData = dbListProducts( $iStatus ); $sPage = $_GET['p']; } if( isset( $aData ) && is_array( $aData ) ) $content = throwProductsData( $sFile, $aData, $sPage ); else $content = $GLOBALS['tpl']->tbHtml( $sFile, 'NOT_FOUND' ); return $content; } // end function listProducts } if( !function_exists( 'throwProductsData' ) ){ /** * Wyswietlanie produktow z podanej juz tablicy * @return string * @param string $sFile * @param array $aData * @param string $sPage */ function throwProductsData( $sFile, $aData, $sPage ){ global $tpl, $aProducts, $oFoto; $aFoto = throwFirstPhoto( 1 ); $iCount = count( $aData ); $content = null; $aCategories = throwCategories( ); for( $i = 0; $i < $iCount; $i++ ){ list( $aProducts['position'], $aProducts['name'], $aProducts['id'], $aProducts['category'], $aProducts['price'], $aProducts['shortDescription'], $aProducts['fullDescription'], $aProducts['status'] ) = $aData[$i]; if( isset( $aFoto[$aProducts['id']] ) && is_file( DIR_PRODUCTS_FILES.$aFoto[$aProducts['id']]['foto'] ) ){ $aName = $oFoto->throwNameExtOfFile( $aFoto[$aProducts['id']]['foto'] ); $aProducts['file'] = $aFoto[$aProducts['id']]['foto']; $aProducts['fotoSmall'] = DIR_PRODUCTS_FILES.$aName[0].'_m.'.$aName[1]; $aProducts['fotoBig'] = DIR_PRODUCTS_FILES.$aFoto[$aProducts['id']]['foto']; $aProducts['foto'] = $tpl->tbHtml( $sFile, 'FOTO' ); } else $aProducts['foto'] = ' '; if( empty( $aProducts['shortDescription'] ) ) $aProducts['shortDescription'] = ' '; if( empty( $aProducts['fullDescription'] ) ) $aProducts['fullDescription'] = ' '; if( isset( $aCategories[$aProducts['category']] ) ) $aProducts['sCategory'] = $aCategories[$aProducts['category']]; $content .= $tpl->tbHtml( $sFile, 'LIST_LIST' ); } // end for $aProducts['pages'] = countPages( $aData[0]['iFindAll'], PRODUCTS_LIST, $_GET['page'], $sPage ); return $tpl->tbHtml( $sFile, 'LIST_HEAD' ).$content.$tpl->tbHtml( $sFile, 'LIST_FOOTER' ); } // end function throwProductsData } if( !function_exists( 'throwProduct' ) ){ /** * Zwracanie danych * @return array * @param int $iProduct */ function throwProduct( $iProduct ){ global $oFoto; if( isset( $_SESSION['iUserQC'] ) ) $iStatus = 0; else $iStatus = 1; $aData = dbThrowProduct( $iProduct, $iStatus ); if( isset( $aData ) ){ $aCategories = throwCategories( ); list( $aProduct['position'], $aProduct['name'], $aProduct['id'], $aProduct['category'], $aProduct['price'], $aProduct['shortDescription'], $aProduct['fullDescription'], $aProduct['status'] ) = $aData ; if( isset( $aCategories[$aProduct['category']] ) ){ $iParentCategory = throwCategoriesParentId( $aProduct['category'] ); $aProduct['sCategory'] = $aCategories[$aProduct['category']]; if( $iParentCategory != $aProduct['category'] ){ $aProduct['sCategory'] = $aCategories[$iParentCategory].' - '.$aProduct['sCategory']; } } else{ $aProduct['sCategory'] = ' '; } return $aProduct; } else return null; } // end function throwProduct } if( !function_exists( 'throwProducts' ) ){ /** * Zwracanie produktow w tablicy * @return array */ function throwProducts( ){ return dbThrowProducts( ); } // end function throwProducts } ?>
30. juni 2005 - 23:42
#15
products-admin.php <?php if( !function_exists( 'addProduct' ) ){ /** * Dodawanie produktu * @return void * @param array $aForm */ function addProduct( $aForm ){ $aForm['iProduct'] = throwLastId( ) + 1; if( checkLength( $aForm['sShortDescription'], 1 ) ) $aForm['sShortDescription'] = changeTxt( $aForm['sShortDescription'], 'Br' ); if( checkLength( $aForm['sFullDescription'], 1 ) ) $aForm['sFullDescription'] = changeTxt( $aForm['sFullDescription'], 'Br' ); if( empty( $aForm['iPosition'] ) || !is_numeric( $aForm['iPosition'] ) ) $aForm['iPosition'] = 9; $aForm['sName'] = changeTxt( $aForm['sName'] ); $aForm['fPrice'] = ereg_replace( ',', '.', $aForm['fPrice'] ); $aForm['fPrice'] = tPrice( $aForm['fPrice'] ); addFiles( $aForm, $aForm['iProduct'], PRODUCTS_FOTO_SIZE, 1 ); dbAddProduct( $aForm ); } // end function addProduct } if( !function_exists( 'changeProduct' ) ){ /** * Zmiana danych produktu * @return void * @param array $aForm */ function changeProduct( $aForm ){ if( isset( $aForm['aFileDescriptionChange'] ) && is_array( $aForm['aFileDescriptionChange'] ) ){ foreach( $aForm['aFileDescriptionChange'] as $iKey => $sValue ){ dbChangeFileDescription( Array( $iKey, $aForm['iProduct'], $aForm['aFileNameChange'][$iKey], changeTxt( ereg_replace( '\'', '', $sValue ) ), $aForm['aFileType'][$iKey] ), 1 ); } } if( isset( $aForm['aDelFile'] ) && is_array( $aForm['aDelFile'] ) ){ $iCount = count( $aForm['aDelFile'] ); for( $i = 0; $i < $iCount; $i++ ) delFile( $aForm['aDelFile'][$i], 1 ); } if( checkLength( $aForm['sShortDescription'], 1 ) ) $aForm['sShortDescription'] = changeTxt( $aForm['sShortDescription'], 'Br' ); if( checkLength( $aForm['sFullDescription'], 1 ) ) $aForm['sFullDescription'] = changeTxt( $aForm['sFullDescription'], 'Br' ); if( empty( $aForm['iPosition'] ) || !is_numeric( $aForm['iPosition'] ) ) $aForm['iPosition'] = 9; $aForm['sName'] = changeTxt( $aForm['sName'] ); $aForm['fPrice'] = ereg_replace( ',', '.', $aForm['fPrice'] ); $aForm['fPrice'] = tPrice( $aForm['fPrice'] ); addFiles( $aForm, $aForm['iProduct'], PRODUCTS_FOTO_SIZE, 1 ); dbChangeProduct( $aForm ); } // end function changeProduct } if( !function_exists( 'delProduct' ) ){ /** * Usuwanie produktu * @return void * @param int $iProduct */ function delProduct( $iProduct ){ delFiles( $iProduct, 1 ); dbDelProduct( $iProduct ); } // end function delProduct } ?>
30. juni 2005 - 23:45
#16
hm kan ikke sådan lige se det :( lige nu er os lidt træt :D men har du msn så kan du prøve at sende filen :)
30. juni 2005 - 23:49
#17
yep.. har msn brian@REMOVEbadazz.dk
30. juni 2005 - 23:52
#18
har tilføjet dig er du ikke på
30. juni 2005 - 23:54
#19
har du husket af fjerne REMOVE ?? har ikke fået noget meddelse om at jeg er added..
01. juli 2005 - 00:00
#20
når troede det os skulle være der :D
01. juli 2005 - 17:27
#21
harh, kunne ikke lade være med lidt moralprædiken omkring det med copyright, da jeg er så pisse hellig, Badazz.dk's design og templaten fra adressen
http://zymic.com/download_template.php?id=4 syntes jeg ærlig talt ligner hinanden ret meget, så burde du ikke få fjernet det der "Copyright by" fra bunden da jeg ved at de 15 årige ejere af zymic nok har brugt en del tid på det design og så at du bare ændrer lidt billeder og sætter et ©-mærke ind? ;)
- du må meget undskylde, kunne ikke lade være
01. juli 2005 - 20:07
#22
som svar til micmicmicmic så er det ikke mig der har lavet designet på badazz.dk det er en anden der har lavet det til mig. og jeg var ikke klar over at det var hukket andet sted, men badazz.dk bliver nedtaget snarest..
01. juli 2005 - 20:16
#23
jeg syntes det er 'flot' rettet, kun det lille copyright halløj der ikke helt passer ind ;)
01. juli 2005 - 22:51
#24
det er mig der har langt billedet med damen ind. da jeg fik den var der bare hvide kasser. og jeg fik at vide at han selv havde lavet designet... men åbentbart ikke.. den er i ørtigt også taget ned nu..
09. september 2005 - 23:29
#25
mr-xmas du skal hvis have dine point...
20. november 2005 - 19:52
#26
Lukker hermed. da mr-xmas ikke har reageret på tilbudet om point
20. november 2005 - 19:52
#27
lukket
Vi tilbyder markedets bedste kurser inden for webudvikling