My mother will sometimes surf the internet online shop, there are things like or need to use Chrome collection up, I came back to help her take the pay.
How to browse to her collection of things is a problem, if you go to her computer operation, need to login users, install security control what a lot of, and I like to fold on the rice first, then buy. Plus her computer is a bit slow, every time to get half a day.
Think about it and write a simple program. You can access your chrome collection files remotely and locally.
The program I put on the net plate, please teachers criticize correct: http://pan.baidu.com/s/1pJ18ZYb
The program was developed in PHP using the popular CodeIgniter framework, with the front end ztree.
Well, sometimes it's fun to write a program for something other than work.
The program I put on the net plate, please teachers criticize correct: http://pan.baidu.com/s/1pJ18ZYb
My little brother my Weibo: http://weibo.com/cavalryblack something wood Contact ~ ~
In addition, and everyone said, Rice break is very interesting, want to buy something before, put the title to buy Rice folded in a while, and then there is a rebate. Of course the return and the money to buy things than, very very little. But better than nothing, has now returned to me more than 200 yuan. My family this year's water is basically the money to turn back with rice ~ ~ Address Vegetarian: http://www.mizhe.com/#NEWnZ2ZUl2ZFp2
- Very, very simple, the main code is as follows:
- Configuration file: \bookmarks\application\config\base_config.php
- /* Basic Configuration */
- $config [' WHERE ']= ' remote ';//local access, default local locally, remote remotes
- $config [' address_local ']= ' C:\Program Files (x86) \chrome\google\chrome\user data\default\bookmarks ';//Local address
- $config [' Address_remote ']= "//192.168.0.17/default/bookmarks";//Remote Access address
- ?>
- Controller:
- Class Bookmarks extends Ci_controller {
- Public function Show ($default = ' local ')
- {
- $data [' Default ']= $default;
- $this->load->helper (' url ');
- $this->load->config (' base_config ');
- if ($default = = ' local ')//using the pass-through method
- {
- $file = $this->config->item (' address_local ');
- }
- ElseIf ($default = = ' Remote ')
- {
- $file = $this->config->item (' address_remote ');
- }
- Else
- {
- Exit (' Parameter error!! ');
- }
- if (file_exists ($file))
- {
- $json =file_get_contents ($file);
- $data [' json ']= $json;
- $arr =json_decode ($json, true);
- $data [' JSON ']=json_encode ($arr [' Roots '] [' bookmark_bar ']);
- $this->load->view (' Bookmarks_view ', $data);
- }
- Else
- {
- $this->load->view (' No_find_view ', $data);
- }
- }
- }
Copy Code |