PHP programs written to help mothers remotely access chrome bookmarks ~
My mother sometimes browses the online shop online, and uses chrome to collect things she liked or needed. After I came back, I helped her take the payment.
How to browse her favorite items is a problem. if you want to operate on her computer, you need to log on to the user and install security controls to get a lot of things, and I like to fold them in advance, buy again. In addition, her computer is a little slow, and every time it takes half a day.
I thought about it and wrote a simple program. You can remotely and locally access chrome favorites files.
I packed the program to put the network disk, please the teacher criticized: http://pan.baidu.com/s/1pJ18ZYb
The program is developed using php, the popular CodeIgniter framework is used, and the front-end uses zTree.
Well, sometimes it's fun to write a program for anything other than work.
I packed the program to put the network disk, please the teacher criticized: http://pan.baidu.com/s/1pJ18ZYb
Younger brother I micro blog: http://weibo.com/cavalryblack something Wood contact ~~
In addition, I would like to share with you that the rice discount is very interesting. before you want to buy something, put the title you want to buy in the rice discount, and then you will have a rebate. Of course, the return rate is very low compared with the purchase price. But now I have returned more than 200 yuan. My family's water fees this year are basically paid with rice turning back money ~~ Addresses: http://www.mizhe.com/#NEWnZ2ZUl2ZFp2
- Very simple. the main code is as follows:
- Configuration File: \ Bookmarks \ application \ config \ base_config.php
- /* Basic configuration */
- $ Config ['where'] = 'remote'; // remote access or local access, local by default, remote
- $ 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') // use the parameter passing 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 ['ots'] ['bookmark _ bar']);
- $ This-> load-> view ('bookmarks _ view', $ data );
- }
- Else
- {
- $ This-> load-> view ('no _ find_view ', $ data );
- }
- }
- }
|