├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ ├── drawable
│ │ │ │ ├── great.png
│ │ │ │ ├── list_row_bg.xml
│ │ │ │ ├── list_row_bg_hover.xml
│ │ │ │ ├── list_row_selector.xml
│ │ │ │ ├── btn.xml
│ │ │ │ ├── btn_hidupkan.xml
│ │ │ │ └── btn_matikan.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_hot_tub_white_24dp.png
│ │ │ │ ├── ic_highlight_white_24dp.png
│ │ │ │ ├── ic_whatshot_white_24dp.png
│ │ │ │ ├── ic_format_color_fill_white_24dp.png
│ │ │ │ ├── ic_lightbulb_outline_white_24dp.png
│ │ │ │ ├── ic_local_gas_station_white_24dp.png
│ │ │ │ └── ic_power_settings_new_white_24dp.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_hot_tub_white_24dp.png
│ │ │ │ ├── ic_highlight_white_24dp.png
│ │ │ │ ├── ic_whatshot_white_24dp.png
│ │ │ │ ├── ic_format_color_fill_white_24dp.png
│ │ │ │ ├── ic_lightbulb_outline_white_24dp.png
│ │ │ │ ├── ic_local_gas_station_white_24dp.png
│ │ │ │ └── ic_power_settings_new_white_24dp.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_highlight_white_24dp.png
│ │ │ │ ├── ic_hot_tub_white_24dp.png
│ │ │ │ ├── ic_whatshot_white_24dp.png
│ │ │ │ ├── ic_format_color_fill_white_24dp.png
│ │ │ │ ├── ic_lightbulb_outline_white_24dp.png
│ │ │ │ ├── ic_local_gas_station_white_24dp.png
│ │ │ │ └── ic_power_settings_new_white_24dp.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_hot_tub_white_24dp.png
│ │ │ │ ├── ic_whatshot_white_24dp.png
│ │ │ │ ├── ic_highlight_white_24dp.png
│ │ │ │ ├── ic_format_color_fill_white_24dp.png
│ │ │ │ ├── ic_lightbulb_outline_white_24dp.png
│ │ │ │ ├── ic_local_gas_station_white_24dp.png
│ │ │ │ └── ic_power_settings_new_white_24dp.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_hot_tub_white_24dp.png
│ │ │ │ ├── ic_highlight_white_24dp.png
│ │ │ │ ├── ic_whatshot_white_24dp.png
│ │ │ │ ├── ic_format_color_fill_white_24dp.png
│ │ │ │ ├── ic_lightbulb_outline_white_24dp.png
│ │ │ │ ├── ic_local_gas_station_white_24dp.png
│ │ │ │ └── ic_power_settings_new_white_24dp.png
│ │ │ ├── values-w820dp
│ │ │ │ └── dimens.xml
│ │ │ ├── menu
│ │ │ │ └── menu_main.xml
│ │ │ └── layout
│ │ │ │ ├── torch_fragment.xml
│ │ │ │ ├── all_saklar.xml
│ │ │ │ ├── daftar_saklar_fragment.xml
│ │ │ │ ├── gas_fragment.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── activity_rename_saklar.xml
│ │ │ │ └── list_row.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── skripsi
│ │ │ │ └── saklarnyagandhi
│ │ │ │ ├── Constant.java
│ │ │ │ ├── model
│ │ │ │ └── Saklar.java
│ │ │ │ ├── app
│ │ │ │ └── AppController.java
│ │ │ │ ├── fragment
│ │ │ │ └── TorchFragment.java
│ │ │ │ ├── RenameGas.java
│ │ │ │ └── RenameSaklar.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── skripsi
│ │ │ └── saklarnyagandhi
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── skripsi
│ │ └── saklarnyagandhi
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── .idea
├── copyright
│ └── profiles_settings.xml
├── dictionaries
│ └── gandhi.xml
├── encodings.xml
├── modules.xml
├── runConfigurations.xml
├── gradle.xml
└── compiler.xml
├── saklar
├── system
│ ├── fonts
│ │ ├── texb.ttf
│ │ └── index.html
│ ├── .htaccess
│ ├── index.html
│ ├── core
│ │ ├── index.html
│ │ ├── compat
│ │ │ └── index.html
│ │ ├── Model.php
│ │ └── Controller.php
│ ├── database
│ │ ├── index.html
│ │ └── drivers
│ │ │ ├── index.html
│ │ │ ├── oci8
│ │ │ ├── index.html
│ │ │ └── oci8_utility.php
│ │ │ ├── odbc
│ │ │ ├── index.html
│ │ │ ├── odbc_utility.php
│ │ │ └── odbc_forge.php
│ │ │ ├── pdo
│ │ │ ├── index.html
│ │ │ ├── subdrivers
│ │ │ │ ├── index.html
│ │ │ │ └── pdo_odbc_forge.php
│ │ │ ├── pdo_forge.php
│ │ │ └── pdo_utility.php
│ │ │ ├── cubrid
│ │ │ ├── index.html
│ │ │ └── cubrid_utility.php
│ │ │ ├── ibase
│ │ │ ├── index.html
│ │ │ └── ibase_utility.php
│ │ │ ├── mssql
│ │ │ ├── index.html
│ │ │ └── mssql_utility.php
│ │ │ ├── mysql
│ │ │ └── index.html
│ │ │ ├── mysqli
│ │ │ └── index.html
│ │ │ ├── postgre
│ │ │ ├── index.html
│ │ │ └── postgre_utility.php
│ │ │ ├── sqlite
│ │ │ ├── index.html
│ │ │ └── sqlite_utility.php
│ │ │ ├── sqlite3
│ │ │ ├── index.html
│ │ │ └── sqlite3_utility.php
│ │ │ └── sqlsrv
│ │ │ ├── index.html
│ │ │ └── sqlsrv_utility.php
│ ├── helpers
│ │ ├── index.html
│ │ ├── language_helper.php
│ │ ├── email_helper.php
│ │ ├── path_helper.php
│ │ ├── xml_helper.php
│ │ └── number_helper.php
│ ├── language
│ │ ├── index.html
│ │ └── english
│ │ │ ├── index.html
│ │ │ ├── number_lang.php
│ │ │ ├── pagination_lang.php
│ │ │ ├── migration_lang.php
│ │ │ ├── unit_test_lang.php
│ │ │ ├── profiler_lang.php
│ │ │ ├── ftp_lang.php
│ │ │ ├── calendar_lang.php
│ │ │ └── upload_lang.php
│ └── libraries
│ │ ├── index.html
│ │ ├── Cache
│ │ ├── index.html
│ │ └── drivers
│ │ │ └── index.html
│ │ ├── Javascript
│ │ └── index.html
│ │ └── Session
│ │ ├── index.html
│ │ ├── drivers
│ │ └── index.html
│ │ └── SessionHandlerInterface.php
├── application
│ ├── .htaccess
│ ├── cache
│ │ ├── .htaccess
│ │ └── index.html
│ ├── views
│ │ ├── errors
│ │ │ ├── cli
│ │ │ │ ├── error_404.php
│ │ │ │ ├── error_db.php
│ │ │ │ ├── error_general.php
│ │ │ │ ├── index.html
│ │ │ │ ├── error_php.php
│ │ │ │ └── error_exception.php
│ │ │ ├── index.html
│ │ │ └── html
│ │ │ │ ├── index.html
│ │ │ │ ├── error_php.php
│ │ │ │ ├── error_exception.php
│ │ │ │ ├── error_db.php
│ │ │ │ ├── error_general.php
│ │ │ │ └── error_404.php
│ │ ├── index.html
│ │ └── welcome_message.php
│ ├── index.html
│ ├── config
│ │ ├── index.html
│ │ ├── hooks.php
│ │ ├── profiler.php
│ │ ├── memcached.php
│ │ ├── doctypes.php
│ │ ├── routes.php
│ │ ├── foreign_chars.php
│ │ ├── migration.php
│ │ └── smileys.php
│ ├── core
│ │ └── index.html
│ ├── hooks
│ │ └── index.html
│ ├── logs
│ │ └── index.html
│ ├── models
│ │ ├── index.html
│ │ ├── Model_api.php
│ │ └── Model_gambar.php
│ ├── controllers
│ │ ├── index.html
│ │ ├── api
│ │ │ └── index.html
│ │ ├── Rest_server.php
│ │ ├── Welcome.php
│ │ ├── Gas.php
│ │ └── Saklar.php
│ ├── helpers
│ │ └── index.html
│ ├── language
│ │ ├── index.html
│ │ ├── dutch
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── english
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── french
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── german
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── spanish
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── turkish
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── bulgarian
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── romanian
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── serbian_cyr
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── serbian_lat
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── portuguese-brazilian
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── simplified-chinese
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ ├── traditional-chinese
│ │ │ ├── index.html
│ │ │ └── rest_controller_lang.php
│ │ └── greek
│ │ │ └── rest_controller_lang.php
│ ├── libraries
│ │ └── index.html
│ └── third_party
│ │ └── index.html
├── .htaccess
└── readme.rst
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── README.md
├── gradle.properties
├── gradlew.bat
└── db_saklar.sql
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | L SaklaR
3 |
4 |
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/.idea/dictionaries/gandhi.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/saklar/system/fonts/texb.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/saklar/system/fonts/texb.ttf
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable/great.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/drawable/great.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/saklar/system/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | Deny from all
6 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/saklar/application/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | Deny from all
6 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/saklar/application/cache/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | Deny from all
6 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_hot_tub_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_hot_tub_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_hot_tub_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_hot_tub_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_highlight_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_highlight_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_whatshot_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_whatshot_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_highlight_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_highlight_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_whatshot_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_whatshot_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_highlight_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_highlight_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_hot_tub_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_hot_tub_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_whatshot_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_whatshot_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_hot_tub_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_hot_tub_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_whatshot_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_whatshot_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_hot_tub_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_hot_tub_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_highlight_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_highlight_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_highlight_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_highlight_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_whatshot_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_whatshot_white_24dp.png
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_format_color_fill_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_format_color_fill_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_lightbulb_outline_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_lightbulb_outline_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_local_gas_station_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_local_gas_station_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_format_color_fill_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_format_color_fill_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_lightbulb_outline_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_lightbulb_outline_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_local_gas_station_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_local_gas_station_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_power_settings_new_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-hdpi/ic_power_settings_new_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_power_settings_new_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-mdpi/ic_power_settings_new_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_format_color_fill_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_format_color_fill_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_lightbulb_outline_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_lightbulb_outline_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_local_gas_station_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_local_gas_station_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_power_settings_new_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xhdpi/ic_power_settings_new_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_format_color_fill_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_format_color_fill_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_lightbulb_outline_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_lightbulb_outline_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_local_gas_station_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_local_gas_station_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_power_settings_new_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxhdpi/ic_power_settings_new_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_format_color_fill_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_format_color_fill_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_lightbulb_outline_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_lightbulb_outline_white_24dp.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_local_gas_station_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gandhi-wibowo/IoT-Kontrol-By-Android/master/app/src/main/res/mipmap-xxxhdpi/ic_local_gas_station_white_24dp.png
--------------------------------------------------------------------------------
/saklar/application/views/errors/cli/error_404.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/core/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/fonts/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/cache/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/config/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/core/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/hooks/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/logs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/models/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/views/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/core/compat/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/helpers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/language/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/libraries/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/controllers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/helpers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/libraries/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/third_party/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/language/english/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/libraries/Cache/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/controllers/api/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/dutch/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/english/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/french/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/german/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/spanish/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/turkish/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/cli/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/oci8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/odbc/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/pdo/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/libraries/Javascript/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/libraries/Session/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/bulgarian/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/romanian/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/serbian_cyr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/serbian_lat/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/html/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/cubrid/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/ibase/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/mssql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/mysql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/mysqli/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/postgre/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/sqlite/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/sqlite3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/sqlsrv/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/libraries/Cache/drivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/libraries/Session/drivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/pdo/subdrivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/portuguese-brazilian/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/simplified-chinese/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/saklar/application/language/traditional-chinese/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/saklar/application/controllers/Rest_server.php:
--------------------------------------------------------------------------------
1 | load->helper('url');
10 |
11 | $this->load->view('rest_server');
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/list_row_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/list_row_bg_hover.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_main.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 264dp
6 | 16dp
7 | 14sp
8 | 72dp
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/list_row_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/saklar/application/config/hooks.php:
--------------------------------------------------------------------------------
1 | $id,
6 | 'nama_user'=>$nama,
7 | 'hp_user'=>$hp,
8 | 'password_user'=>$password,
9 | 'alamat_user'=>$alamat
10 | );
11 | $exe = $this->db->insert('tb_users',$data);
12 | if($exe){
13 | return TRUE;
14 | }
15 | else{
16 | return FALSE;
17 | }
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/app/src/main/java/com/skripsi/saklarnyagandhi/Constant.java:
--------------------------------------------------------------------------------
1 | package com.skripsi.saklarnyagandhi;
2 |
3 | /**
4 | * Created by gandhi on 11/20/16.
5 | */
6 |
7 | public class Constant {
8 | public static final String url_base = "http://kuliketik.id/galoeng/";
9 | public static final String url_saklar = url_base + "Saklar/" ;
10 | public static final String url_gas = url_base + "Gas/" ;
11 | public static final String url_cek = url_base + "Welcom/" ;
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/saklar/application/controllers/Welcome.php:
--------------------------------------------------------------------------------
1 | response($data,501);
12 | }
13 | function index_post(){
14 | $this->response(array("status"=>"ok"),201);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/app/src/test/java/com/skripsi/saklarnyagandhi/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.skripsi.saklarnyagandhi;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
8 | #d9d9d9
9 | #ffffff
10 | #ffffff
11 | #ebeef0
12 | #ebeef0
13 |
14 |
--------------------------------------------------------------------------------
/saklar/application/config/profiler.php:
--------------------------------------------------------------------------------
1 | array(
15 | 'hostname' => '127.0.0.1',
16 | 'port' => '11211',
17 | 'weight' => '1',
18 | ),
19 | );
20 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # IoT-Kontrol-By-Android
2 |
3 | Terdiri dari 3 buah program
4 |
5 | 1. Program yang dimasukkan ke dalam Modul ESP
6 | program dibuat untuk membuat modul ESP supaya bisa terhubung dengan wifi yang sudah ditentukan, kemudian Modul di program supaya bisa menarik data dari API yang dibuat yang kemudian di jadikan sebagai patokan dari kondisi
7 |
8 | 2. Program API
9 | program dibuat sebagai penyedia data untuk modul ESP dan juga sebagai media penyimpan ke dalam database berdasarkan data yang dikirim dari aplikasi android
10 |
11 | 3. Program Android
12 | program dibuat sebagai pengirim data ke API yang di kendalikan oleh pengguna dari smartphone android
13 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/gandhi/Android/Sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/saklar/application/models/Model_gambar.php:
--------------------------------------------------------------------------------
1 | $foto_id,
7 | 'id_content'=>$content,
8 | 'nama_foto'=>$namaFoto
9 | );
10 | $exe = $this->db->insert('tb_foto',$data);
11 | if($exe){
12 | return TRUE;
13 | }
14 | else{
15 | return FALSE;
16 | }
17 | }
18 |
19 | function UpdateFoto($id,$namaFoto){
20 | $data = array(
21 | 'nama_foto'=>$namaFoto
22 | );
23 | $this->db->where('id_foto',$id);
24 | if($this->db->update('tb_foto',$data)){
25 | return TRUE;
26 | }
27 | else{
28 | return FALSE;
29 | }
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/cli/error_php.php:
--------------------------------------------------------------------------------
1 |
4 |
5 | A PHP Error was encountered
6 |
7 | Severity:
8 | Message:
9 | Filename:
10 | Line Number:
11 |
12 |
13 |
14 | Backtrace:
15 |
16 |
17 |
18 | File:
19 | Line:
20 | Function:
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/torch_fragment.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
19 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/cli/error_exception.php:
--------------------------------------------------------------------------------
1 |
4 |
5 | An uncaught Exception was encountered
6 |
7 | Type:
8 | Message:
9 | Filename: getFile(); ?>
10 | Line Number: getLine(); ?>
11 |
12 |
13 |
14 | Backtrace:
15 | getTrace() as $error): ?>
16 |
17 |
18 | File:
19 | Line:
20 | Function:
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/saklar/application/language/simplified-chinese/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 | Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.skripsi.saklarnyagandhi", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/saklar/.htaccess:
--------------------------------------------------------------------------------
1 | RewriteEngine On
2 | RewriteCond %{REQUEST_URI} ^/system.*
3 | RewriteRule ^(.*)$ index.php?/$1 [L]
4 | RewriteCond %{REQUEST_FILENAME} !-f
5 | RewriteCond %{REQUEST_FILENAME} !-d
6 | RewriteRule ^(.+)$ index.php?/$1 [L]
7 |
8 | RewriteCond $1 !^(index\.php|images|js|css|favicon\.png)
9 | RewriteCond %{REQUEST_FILENAME} !-f
10 | RewriteCond %{REQUEST_FILENAME} !-d
11 | RewriteRule ^(.*)$ ./index.php?/$1 [L]
12 |
13 |
14 |
15 | RewriteEngine On
16 |
17 | RewriteCond %{REQUEST_URI} ^system.*
18 | RewriteRule ^(.*)$ /index.php?/$1 [L]
19 |
20 | RewriteCond %{REQUEST_URI} ^application.*
21 | RewriteRule ^(.*)$ /index.php?/$1 [L]
22 |
23 | RewriteCond %{REQUEST_URI} ^asset.*
24 | RewriteRule ^(.*)$ /index.php?/$1 [L]
25 |
26 | RewriteCond %{REQUEST_FILENAME} !-f
27 | RewriteCond %{REQUEST_FILENAME} !-d
28 | RewriteRule ^(.*)$ index.php/$1 [L]
29 |
30 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/html/error_php.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
A PHP Error was encountered
8 |
9 |
Severity:
10 |
Message:
11 |
Filename:
12 |
Line Number:
13 |
14 |
15 |
16 |
Backtrace:
17 |
18 |
19 |
20 |
21 |
22 | File:
23 | Line:
24 | Function:
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/saklar/application/language/english/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 | -
11 |
12 |
13 |
14 |
15 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/saklar/application/language/romanian/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 | -
11 |
12 |
13 |
14 |
15 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_matikan.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 | -
11 |
12 |
13 |
14 |
15 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/html/error_exception.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
An uncaught Exception was encountered
8 |
9 |
Type:
10 |
Message:
11 |
Filename: getFile(); ?>
12 |
Line Number: getLine(); ?>
13 |
14 |
15 |
16 |
Backtrace:
17 | getTrace() as $error): ?>
18 |
19 |
20 |
21 |
22 | File:
23 | Line:
24 | Function:
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/saklar/application/language/spanish/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
15 |
16 |
26 |
--------------------------------------------------------------------------------
/saklar/application/language/french/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
20 |
21 |
28 |
29 |
--------------------------------------------------------------------------------
/saklar/application/language/serbian_lat/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
20 |
21 |
28 |
29 |
--------------------------------------------------------------------------------
/saklar/application/language/greek/rest_controller_lang.php:
--------------------------------------------------------------------------------
1 | void addToRequestQueue(Request req, String tag) {
38 | req.setTag(TextUtils.isEmpty(tag) ? TAG : tag);
39 | getRequestQueue().add(req);
40 | }
41 |
42 | public void addToRequestQueue(Request req) {
43 | req.setTag(TAG);
44 | getRequestQueue().add(req);
45 | }
46 |
47 | public void cancelPendingRequests(Object tag) {
48 | if (mRequestQueue != null) {
49 | mRequestQueue.cancelAll(tag);
50 | }
51 | }
52 | }
--------------------------------------------------------------------------------
/saklar/application/views/errors/html/error_db.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | Database Error
8 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/html/error_general.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | Error
8 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/saklar/application/views/errors/html/error_404.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | 404 Page Not Found
8 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
29 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
20 |
21 |
27 |
28 |
29 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_rename_saklar.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
19 |
20 |
21 |
22 |
27 |
28 |
34 |
35 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/saklar/system/language/english/number_lang.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/sqlite/sqlite_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/pdo/pdo_forge.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/pdo/pdo_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/saklar/system/libraries/Session/SessionHandlerInterface.php:
--------------------------------------------------------------------------------
1 | '',
6 | 'xhtml1-strict' => '',
7 | 'xhtml1-trans' => '',
8 | 'xhtml1-frame' => '',
9 | 'xhtml-basic11' => '',
10 | 'html5' => '',
11 | 'html4-strict' => '',
12 | 'html4-trans' => '',
13 | 'html4-frame' => '',
14 | 'mathml1' => '',
15 | 'mathml2' => '',
16 | 'svg10' => '',
17 | 'svg11' => '',
18 | 'svg11-basic' => '',
19 | 'svg11-tiny' => '',
20 | 'xhtml-math-svg-xh' => '',
21 | 'xhtml-math-svg-sh' => '',
22 | 'xhtml-rdfa-1' => '',
23 | 'xhtml-rdfa-2' => ''
24 | );
25 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
14 |
15 |
27 |
28 |
29 |
41 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/saklar/readme.rst:
--------------------------------------------------------------------------------
1 | ###################
2 | What is CodeIgniter
3 | ###################
4 |
5 | CodeIgniter is an Application Development Framework - a toolkit - for people
6 | who build web sites using PHP. Its goal is to enable you to develop projects
7 | much faster than you could if you were writing code from scratch, by providing
8 | a rich set of libraries for commonly needed tasks, as well as a simple
9 | interface and logical structure to access these libraries. CodeIgniter lets
10 | you creatively focus on your project by minimizing the amount of code needed
11 | for a given task.
12 |
13 | *******************
14 | Release Information
15 | *******************
16 |
17 | This repo contains in-development code for future releases. To download the
18 | latest stable release please visit the `CodeIgniter Downloads
19 | `_ page.
20 |
21 | **************************
22 | Changelog and New Features
23 | **************************
24 |
25 | You can find a list of all changes for each release in the `user
26 | guide change log `_.
27 |
28 | *******************
29 | Server Requirements
30 | *******************
31 |
32 | PHP version 5.4 or newer is recommended.
33 |
34 | It should work on 5.2.4 as well, but we strongly advise you NOT to run
35 | such old versions of PHP, because of potential security and performance
36 | issues, as well as missing features.
37 |
38 | ************
39 | Installation
40 | ************
41 |
42 | Please see the `installation section `_
43 | of the CodeIgniter User Guide.
44 |
45 | *******
46 | License
47 | *******
48 |
49 | Please see the `license
50 | agreement `_.
51 |
52 | *********
53 | Resources
54 | *********
55 |
56 | - `User Guide `_
57 | - `Language File Translations `_
58 | - `Community Forums `_
59 | - `Community Wiki `_
60 | - `Community IRC `_
61 |
62 | Report security issues to our `Security Panel `_, thank you.
63 |
64 | ***************
65 | Acknowledgement
66 | ***************
67 |
68 | The CodeIgniter team would like to thank EllisLab, all the
69 | contributors to the CodeIgniter project and you, the CodeIgniter user.
--------------------------------------------------------------------------------
/app/src/main/res/layout/list_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
22 |
23 |
37 |
38 |
50 |
51 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/saklar/application/config/routes.php:
--------------------------------------------------------------------------------
1 | my_controller/index
50 | | my-controller/my-method -> my_controller/my_method
51 | */
52 | $route['default_controller'] = 'welcome';
53 | $route['404_override'] = '';
54 | $route['translate_uri_dashes'] = TRUE;
55 |
56 | /*
57 | | -------------------------------------------------------------------------
58 | | Sample REST API Routes
59 | | -------------------------------------------------------------------------
60 | */
61 | $route['api/example/users/(:num)'] = 'api/example/users/id/$1'; // Example 4
62 | $route['api/example/users/(:num)(\.)([a-zA-Z0-9_-]+)(.*)'] = 'api/example/users/id/$1/format/$3$4'; // Example 8
63 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/oci8/oci8_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/pdo/subdrivers/pdo_odbc_forge.php:
--------------------------------------------------------------------------------
1 | db->hostname, $this->db->username, $this->db->password))
58 | {
59 | $res = ibase_backup($service, $this->db->database, $filename.'.fbk');
60 |
61 | // Close the service connection
62 | ibase_service_detach($service);
63 | return $res;
64 | }
65 |
66 | return FALSE;
67 | }
68 |
69 | }
70 |
--------------------------------------------------------------------------------
/saklar/system/language/english/unit_test_lang.php:
--------------------------------------------------------------------------------
1 | NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/mssql/mssql_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/saklar/application/controllers/Gas.php:
--------------------------------------------------------------------------------
1 | db->query($query);
15 | if ($update) {
16 | $ini->response($update, 200);
17 | } else {
18 | $ini->response(array('status' => 'fail', 502));
19 | }
20 |
21 | }
22 | function One($id,$status){
23 | $ini =& get_instance();
24 | $data = array(
25 | 'status_gas' => $status
26 | );
27 | $ini->db->where('id_gas', $id);
28 | $update = $ini->db->update('tb_gas', $data);
29 | if ($update) {
30 | $ini->response($data, 200);
31 | } else {
32 | $ini->response(array('status' => 'fail', 502));
33 | }
34 | }
35 | function renameSaklar($id,$value){
36 | $ini =& get_instance();
37 | $data = array(
38 | 'nama_gas' => $value
39 | );
40 | $ini->db->where('id_gas', $id);
41 | $update = $ini->db->update('tb_gas', $data);
42 | if ($update) {
43 | $ini->response($data, 200);
44 | } else {
45 | $ini->response(array('status' => 'fail', 502));
46 | }
47 | }
48 | function Eksekusi($id,$value){
49 | $ini =& get_instance();
50 | if($value == "hidup"){
51 | One($id,$value);
52 | }
53 | else if($value == "mati"){
54 | One($id,$value);
55 | }
56 | else{
57 | $ini->response(array("status"=>"fail"),501);
58 | }
59 | }
60 |
61 | $OnAll = $this->input->post('OnAll'); // hidupkan semua
62 | $OffAll = $this->input->post('OffAll'); // matikan semua
63 | $rename = $this->input->post('nama_gas');
64 | $id = $this->input->post('id_gas');
65 | $status = $this->input->post('status_gas');
66 | if(!empty($OnAll)){
67 | All("hidup");
68 | }
69 | else if(!empty($OffAll)){
70 | All("mati");
71 | }
72 | else if(!empty($id) && !empty($status)){
73 | if($status == "hidup"){
74 | Eksekusi($id,"hidup");
75 | }
76 | else if($status == "mati"){
77 | Eksekusi($id,"mati");
78 | }
79 | else{
80 | $this->response(array("status"=>"fail"), 501);
81 | }
82 | }
83 | else if(!empty($rename)){
84 | renameSaklar($id,$rename);
85 | }
86 | else{
87 | $this->response(array("status"=>"fail"), 501);
88 | }
89 | }
90 | function index_get() {
91 | $data = $this->db->get('tb_gas')->result();
92 | $this->response($data, 200);
93 | }
94 | function index_put() {
95 | }
96 |
97 | function index_delete() {
98 | }
99 |
100 | }
101 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/sqlsrv/sqlsrv_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/postgre/postgre_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/saklar/application/controllers/Saklar.php:
--------------------------------------------------------------------------------
1 | db->query($query);
15 | if ($update) {
16 | $ini->response($update, 200);
17 | } else {
18 | $ini->response(array('status' => 'fail', 502));
19 | }
20 |
21 | }
22 | function One($id,$status){
23 | $ini =& get_instance();
24 | $data = array(
25 | 'status_saklar' => $status
26 | );
27 | $ini->db->where('id_saklar', $id);
28 | $update = $ini->db->update('tb_saklar', $data);
29 | if ($update) {
30 | $ini->response($data, 200);
31 | } else {
32 | $ini->response(array('status' => 'fail', 502));
33 | }
34 | }
35 | function renameSaklar($id,$value){
36 | $ini =& get_instance();
37 | $data = array(
38 | 'nama_saklar' => $value
39 | );
40 | $ini->db->where('id_saklar', $id);
41 | $update = $ini->db->update('tb_saklar', $data);
42 | if ($update) {
43 | $ini->response($data, 200);
44 | } else {
45 | $ini->response(array('status' => 'fail', 502));
46 | }
47 | }
48 | function Eksekusi($id,$value){
49 | $ini =& get_instance();
50 | if($value == "hidup"){
51 | One($id,$value);
52 | }
53 | else if($value == "mati"){
54 | One($id,$value);
55 | }
56 | else{
57 | $ini->response(array("status"=>"fail"),501);
58 | }
59 | }
60 |
61 | $OnAll = $this->input->post('OnAll'); // hidupkan semua
62 | $OffAll = $this->input->post('OffAll'); // matikan semua
63 | $rename = $this->input->post('nama_saklar');
64 | $id = $this->input->post('id_saklar');
65 | $status = $this->input->post('status_saklar');
66 | if(!empty($OnAll)){
67 | All("hidup");
68 | }
69 | else if(!empty($OffAll)){
70 | All("mati");
71 | }
72 | else if(!empty($id) && !empty($status)){
73 | if($status == "hidup"){
74 | Eksekusi($id,"hidup");
75 | }
76 | else if($status == "mati"){
77 | Eksekusi($id,"mati");
78 | }
79 | else{
80 | $this->response(array("status"=>"fail"), 501);
81 | }
82 | }
83 | else if(!empty($rename)){
84 | renameSaklar($id,$rename);
85 | }
86 | else{
87 | $this->response(array("status"=>"fail"), 501);
88 | }
89 | }
90 | function index_get() {
91 | $data = $this->db->get('tb_saklar')->result();
92 | $this->response($data, 200);
93 | }
94 | function index_put() {
95 | }
96 |
97 | function index_delete() {
98 | }
99 |
100 | }
101 |
--------------------------------------------------------------------------------
/saklar/system/core/Model.php:
--------------------------------------------------------------------------------
1 | $key;
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/saklar/system/helpers/language_helper.php:
--------------------------------------------------------------------------------
1 | lang->line($line);
67 |
68 | if ($for !== '')
69 | {
70 | $line = '';
71 | }
72 |
73 | return $line;
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/saklar/system/database/drivers/odbc/odbc_forge.php:
--------------------------------------------------------------------------------
1 | db->data_cache['db_names']))
57 | {
58 | return $this->db->data_cache['db_names'];
59 | }
60 |
61 | return $this->db->data_cache['db_names'] = cubrid_list_dbs($this->db->conn_id);
62 | }
63 |
64 | // --------------------------------------------------------------------
65 |
66 | /**
67 | * CUBRID Export
68 | *
69 | * @param array Preferences
70 | * @return mixed
71 | */
72 | protected function _backup($params = array())
73 | {
74 | // No SQL based support in CUBRID as of version 8.4.0. Database or
75 | // table backup can be performed using CUBRID Manager
76 | // database administration tool.
77 | return $this->db->display_error('db_unsupported_feature');
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/saklar/application/config/foreign_chars.php:
--------------------------------------------------------------------------------
1 | 'ae',
14 | '/ö|œ/' => 'oe',
15 | '/ü/' => 'ue',
16 | '/Ä/' => 'Ae',
17 | '/Ü/' => 'Ue',
18 | '/Ö/' => 'Oe',
19 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
20 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
21 | '/Б/' => 'B',
22 | '/б/' => 'b',
23 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
24 | '/ç|ć|ĉ|ċ|č/' => 'c',
25 | '/Д/' => 'D',
26 | '/д/' => 'd',
27 | '/Ð|Ď|Đ|Δ/' => 'Dj',
28 | '/ð|ď|đ|δ/' => 'dj',
29 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
30 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
31 | '/Ф/' => 'F',
32 | '/ф/' => 'f',
33 | '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
34 | '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
35 | '/Ĥ|Ħ/' => 'H',
36 | '/ĥ|ħ/' => 'h',
37 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
38 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
39 | '/Ĵ/' => 'J',
40 | '/ĵ/' => 'j',
41 | '/Ķ|Κ|К/' => 'K',
42 | '/ķ|κ|к/' => 'k',
43 | '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
44 | '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
45 | '/М/' => 'M',
46 | '/м/' => 'm',
47 | '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
48 | '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
49 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
50 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
51 | '/П/' => 'P',
52 | '/п/' => 'p',
53 | '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
54 | '/ŕ|ŗ|ř|ρ|р/' => 'r',
55 | '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
56 | '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
57 | '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
58 | '/ț|ţ|ť|ŧ|т/' => 't',
59 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
60 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
61 | '/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
62 | '/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
63 | '/В/' => 'V',
64 | '/в/' => 'v',
65 | '/Ŵ/' => 'W',
66 | '/ŵ/' => 'w',
67 | '/Ź|Ż|Ž|Ζ|З/' => 'Z',
68 | '/ź|ż|ž|ζ|з/' => 'z',
69 | '/Æ|Ǽ/' => 'AE',
70 | '/ß/' => 'ss',
71 | '/IJ/' => 'IJ',
72 | '/ij/' => 'ij',
73 | '/Œ/' => 'OE',
74 | '/ƒ/' => 'f',
75 | '/ξ/' => 'ks',
76 | '/π/' => 'p',
77 | '/β/' => 'v',
78 | '/μ/' => 'm',
79 | '/ψ/' => 'ps',
80 | '/Ё/' => 'Yo',
81 | '/ё/' => 'yo',
82 | '/Є/' => 'Ye',
83 | '/є/' => 'ye',
84 | '/Ї/' => 'Yi',
85 | '/Ж/' => 'Zh',
86 | '/ж/' => 'zh',
87 | '/Х/' => 'Kh',
88 | '/х/' => 'kh',
89 | '/Ц/' => 'Ts',
90 | '/ц/' => 'ts',
91 | '/Ч/' => 'Ch',
92 | '/ч/' => 'ch',
93 | '/Ш/' => 'Sh',
94 | '/ш/' => 'sh',
95 | '/Щ/' => 'Shch',
96 | '/щ/' => 'shch',
97 | '/Ъ|ъ|Ь|ь/' => '',
98 | '/Ю/' => 'Yu',
99 | '/ю/' => 'yu',
100 | '/Я/' => 'Ya',
101 | '/я/' => 'ya'
102 | );
103 |
--------------------------------------------------------------------------------
/saklar/system/language/english/profiler_lang.php:
--------------------------------------------------------------------------------
1 | ', '"', "'", '-'),
76 | array('&', '<', '>', '"', ''', '-'),
77 | $str
78 | );
79 |
80 | // Decode the temp markers back to entities
81 | $str = preg_replace('/'.$temp.'(\d+);/', '\\1;', $str);
82 |
83 | if ($protect_all === TRUE)
84 | {
85 | return preg_replace('/'.$temp.'(\w+);/', '&\\1;', $str);
86 | }
87 |
88 | return $str;
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/saklar/system/core/Controller.php:
--------------------------------------------------------------------------------
1 | $class)
74 | {
75 | $this->$var =& load_class($class);
76 | }
77 |
78 | $this->load =& load_class('Loader', 'core');
79 | $this->load->initialize();
80 | log_message('info', 'Controller Class Initialized');
81 | }
82 |
83 | // --------------------------------------------------------------------
84 |
85 | /**
86 | * Get the CI singleton
87 | *
88 | * @static
89 | * @return object
90 | */
91 | public static function &get_instance()
92 | {
93 | return self::$instance;
94 | }
95 |
96 | }
97 |
--------------------------------------------------------------------------------
/saklar/application/config/migration.php:
--------------------------------------------------------------------------------
1 | migration->current() this is the version that schema will
69 | | be upgraded / downgraded to.
70 | |
71 | */
72 | $config['migration_version'] = 0;
73 |
74 | /*
75 | |--------------------------------------------------------------------------
76 | | Migrations Path
77 | |--------------------------------------------------------------------------
78 | |
79 | | Path to your migrations folder.
80 | | Typically, it will be within your application path.
81 | | Also, writing permission is required within the migrations path.
82 | |
83 | */
84 | $config['migration_path'] = APPPATH.'migrations/';
85 |
--------------------------------------------------------------------------------
/saklar/application/views/welcome_message.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 | Welcome to CodeIgniter
10 |
11 |
70 |
71 |
72 |
73 |
74 |
Welcome to CodeIgniter!
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
The page you are looking at is being generated dynamically by CodeIgniter.
85 |
86 |
If you would like to edit this page you'll find it located at:
87 |
application/views/welcome_message.php
88 |
89 |
The corresponding controller for this page is found at:
90 |
application/controllers/Welcome.php
91 |
92 |
93 |
If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/saklar/system/language/english/calendar_lang.php:
--------------------------------------------------------------------------------
1 | lang->load('number');
65 |
66 | if ($num >= 1000000000000)
67 | {
68 | $num = round($num / 1099511627776, $precision);
69 | $unit = $CI->lang->line('terabyte_abbr');
70 | }
71 | elseif ($num >= 1000000000)
72 | {
73 | $num = round($num / 1073741824, $precision);
74 | $unit = $CI->lang->line('gigabyte_abbr');
75 | }
76 | elseif ($num >= 1000000)
77 | {
78 | $num = round($num / 1048576, $precision);
79 | $unit = $CI->lang->line('megabyte_abbr');
80 | }
81 | elseif ($num >= 1000)
82 | {
83 | $num = round($num / 1024, $precision);
84 | $unit = $CI->lang->line('kilobyte_abbr');
85 | }
86 | else
87 | {
88 | $unit = $CI->lang->line('bytes');
89 | return number_format($num).' '.$unit;
90 | }
91 |
92 | return number_format($num, $precision).' '.$unit;
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/saklar/application/config/smileys.php:
--------------------------------------------------------------------------------
1 | array('grin.gif', '19', '19', 'grin'),
22 | ':lol:' => array('lol.gif', '19', '19', 'LOL'),
23 | ':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
24 | ':)' => array('smile.gif', '19', '19', 'smile'),
25 | ';-)' => array('wink.gif', '19', '19', 'wink'),
26 | ';)' => array('wink.gif', '19', '19', 'wink'),
27 | ':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
28 | ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
29 | ':-S' => array('confused.gif', '19', '19', 'confused'),
30 | ':wow:' => array('surprise.gif', '19', '19', 'surprised'),
31 | ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
32 | ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
33 | '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
34 | ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
35 | ':P' => array('raspberry.gif', '19', '19', 'raspberry'),
36 | ':blank:' => array('blank.gif', '19', '19', 'blank stare'),
37 | ':long:' => array('longface.gif', '19', '19', 'long face'),
38 | ':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
39 | ':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
40 | ':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
41 | '8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
42 | ':down:' => array('downer.gif', '19', '19', 'downer'),
43 | ':red:' => array('embarrassed.gif', '19', '19', 'red face'),
44 | ':sick:' => array('sick.gif', '19', '19', 'sick'),
45 | ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
46 | ':-/' => array('hmm.gif', '19', '19', 'hmmm'),
47 | '>:(' => array('mad.gif', '19', '19', 'mad'),
48 | ':mad:' => array('mad.gif', '19', '19', 'mad'),
49 | '>:-(' => array('angry.gif', '19', '19', 'angry'),
50 | ':angry:' => array('angry.gif', '19', '19', 'angry'),
51 | ':zip:' => array('zip.gif', '19', '19', 'zipper'),
52 | ':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
53 | ':ahhh:' => array('shock.gif', '19', '19', 'shock'),
54 | ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
55 | ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
56 | ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
57 | ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
58 | ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
59 | ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
60 | ':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
61 | ':snake:' => array('snake.gif', '19', '19', 'snake'),
62 | ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
63 | ':question:' => array('question.gif', '19', '19', 'question')
64 |
65 | );
66 |
--------------------------------------------------------------------------------
/saklar/system/language/english/upload_lang.php:
--------------------------------------------------------------------------------
1 | () {
43 | @Override
44 | public void onResponse(String response) {
45 | Intent intent = new Intent(getApplicationContext(),MainActivity.class);
46 | startActivity(intent);
47 | }
48 | },
49 | new Response.ErrorListener() {
50 | @Override
51 | public void onErrorResponse(VolleyError error) {
52 | Intent intent = new Intent(getApplicationContext(),MainActivity.class);
53 | startActivity(intent);
54 | }
55 | }
56 | ) {
57 | @Override
58 | public String getBodyContentType() {
59 | return "application/x-www-form-urlencoded";
60 | }
61 |
62 | protected Map getParams() {
63 | String namaSaklar = editSaklar.getText().toString();
64 | Map params = new HashMap();
65 | params.put("id_gas",idSaklar);
66 | params.put("nama_gas", namaSaklar);
67 | return params;
68 | }
69 | };
70 | RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
71 | requestQueue.add(stringRequest);
72 | }
73 | });
74 |
75 |
76 | }
77 | @Override
78 | public boolean onCreateOptionsMenu(Menu menu) {
79 | getMenuInflater().inflate(R.menu.menu_main,menu);
80 | return super.onCreateOptionsMenu(menu);
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/app/src/main/java/com/skripsi/saklarnyagandhi/RenameSaklar.java:
--------------------------------------------------------------------------------
1 | package com.skripsi.saklarnyagandhi;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.view.Menu;
7 | import android.view.View;
8 | import android.widget.Button;
9 | import android.widget.EditText;
10 |
11 | import com.android.volley.Request;
12 | import com.android.volley.RequestQueue;
13 | import com.android.volley.Response;
14 | import com.android.volley.VolleyError;
15 | import com.android.volley.toolbox.StringRequest;
16 | import com.android.volley.toolbox.Volley;
17 |
18 | import java.util.HashMap;
19 | import java.util.Map;
20 |
21 | public class RenameSaklar extends AppCompatActivity {
22 |
23 | String idSaklar,namaSaklar;
24 | EditText editSaklar;
25 | Button confirm;
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 | setContentView(R.layout.activity_rename_saklar);
30 | Bundle b = getIntent().getExtras();
31 | idSaklar = b.getString("id_saklar");
32 | namaSaklar = b.getString("nama_saklar");
33 |
34 | editSaklar = (EditText) findViewById(R.id.editSaklar);
35 | confirm = (Button) findViewById(R.id.confirm);
36 | editSaklar.setText(namaSaklar);
37 |
38 | confirm.setOnClickListener(new View.OnClickListener() {
39 | @Override
40 | public void onClick(View v) {
41 | StringRequest stringRequest = new StringRequest(Request.Method.POST, Constant.url_saklar,
42 | new Response.Listener() {
43 | @Override
44 | public void onResponse(String response) {
45 | Intent intent = new Intent(getApplicationContext(),MainActivity.class);
46 | startActivity(intent);
47 | }
48 | },
49 | new Response.ErrorListener() {
50 | @Override
51 | public void onErrorResponse(VolleyError error) {
52 | Intent intent = new Intent(getApplicationContext(),MainActivity.class);
53 | startActivity(intent);
54 | }
55 | }
56 | ) {
57 | @Override
58 | public String getBodyContentType() {
59 | return "application/x-www-form-urlencoded";
60 | }
61 |
62 | protected Map getParams() {
63 | String namaSaklar = editSaklar.getText().toString();
64 | Map params = new HashMap();
65 | params.put("id_saklar",idSaklar);
66 | params.put("nama_saklar", namaSaklar);
67 | return params;
68 | }
69 | };
70 | RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
71 | requestQueue.add(stringRequest);
72 | }
73 | });
74 |
75 |
76 | }
77 | @Override
78 | public boolean onCreateOptionsMenu(Menu menu) {
79 | getMenuInflater().inflate(R.menu.menu_main,menu);
80 | return super.onCreateOptionsMenu(menu);
81 | }
82 | }
83 |
--------------------------------------------------------------------------------