This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* create class */ | |
class Record { | |
/* record information will be held in here */ | |
private $info; | |
/* constructor */ | |
function Record($record_array) { | |
$this->info = $record_array; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __backup_mysql_database($params) | |
{ | |
$mtables = array(); $contents = "-- Database: `".$params['db_to_backup']."` --\n"; | |
$mysqli = new mysqli($params['db_host'], $params['db_uname'], $params['db_password'], $params['db_to_backup']); | |
if ($mysqli->connect_error) { | |
die('Error : ('. $mysqli->connect_errno .') '. $mysqli->connect_error); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function &backup_tables($host, $user, $pass, $name, $tables = '*'){ | |
$data = "\n/*---------------------------------------------------------------". | |
"\n SQL DB BACKUP ".date("d.m.Y H:i")." ". | |
"\n HOST: {$host}". | |
"\n DATABASE: {$name}". | |
"\n TABLES: {$tables}". | |
"\n ---------------------------------------------------------------*/\n"; | |
$link = mysql_connect($host,$user,$pass); | |
mysql_select_db($name,$link); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('MAGENTO', realpath(dirname(__FILE__))); | |
require_once MAGENTO . '/app/Mage.php'; | |
Mage::app(); | |
$entity_type_id = Mage::getModel('catalog/product')->getResource()->getTypeId(); | |
prepareCollection($entity_type_id); | |
function prepareCollection($ent_type_id){ | |
$resource = Mage::getSingleton('core/resource'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('MAGENTO', realpath(dirname(__FILE__))); | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
// $fileName = MAGENTO . '/var/import/importAttrib.csv'; | |
$fileName = 'importAttrib.csv'; | |
// getCsv($fileName); | |
getAttributeCsv($fileName); | |
function getAttributeCsv($fileName){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/magento/magento2/issues/13131 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@ini_set('max_execution_time', -1); | |
@ini_set('memory_limit', '-1'); | |
/** | |
* PHP File Manager v1.2 | |
* https://github.com/alexantr/filemanager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@ini_set('max_execution_time', -1); | |
@ini_set('memory_limit', '-1'); | |
/** | |
* PHP File Manager v1.2 | |
* https://github.com/alexantr/filemanager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
use Magento\Framework\App\Bootstrap; | |
include('app/bootstrap.php'); |
OlderNewer