Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package de.mal; import; import; import; import; import; import; import; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.CookieStore; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicHeader; import org.apache.http.message.BasicNameValuePair; import org.apache.http.protocol.HTTP; import; import; import android.database.Cursor; import android.os.Bundle; import android.util.Log; import de.mal.Db.DbAdapter; public class Update3 extends Activity { private DbAdapter mDbHelper; private CookieStore cookies; private boolean isAuthenticated; private ArrayList pairs; private DefaultHttpClient httpclient; private HttpPost httppost, httppost2; private InputStream content, content2; private String user, pass, returnStream, returnStream2; ProgressDialog myProgressDialog = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myProgressDialog =, "Please wait...", "Exporting Changes...", true); new Thread() { public void run() { try{ // Do some Fake-Work sleep(5000); } catch (Exception e) { } // Dismiss the Dialog myProgressDialog.dismiss(); } }.start(); mDbHelper = new DbAdapter(this);; setContentView(R.layout.main); try{ FileInputStream fIn = openFileInput("user.txt"); DataInputStream in = new DataInputStream(fIn); BufferedReader br = new BufferedReader(new InputStreamReader(in)); // Read file with UTF-8 user = br.readLine(); FileInputStream fIn2 = openFileInput("pass.txt"); DataInputStream in2 = new DataInputStream(fIn2); BufferedReader br2 = new BufferedReader(new InputStreamReader(in2)); pass = br2.readLine(); } catch (IOException ioe) { ioe.printStackTrace(); } Map vars = new HashMap(); vars.put("username", user); vars.put("password", pass); parametersHttp("", vars); go(); } public void parametersHttp(String url, Map variables) { this.httpclient = new DefaultHttpClient(); this.httppost = new HttpPost(url); this.pairs = new ArrayList(); if(variables != null){ Set keys = variables.keySet(); for(Iterator i = keys.iterator(); i.hasNext();) { String key = (String); pairs.add(new BasicNameValuePair(key, variables.get(key))); } } } public String go(){ try { Cursor all_anime = mDbHelper.fetchAllUpdatedEntries(); startManagingCursor(all_anime); //String[] row_id = new String[]{mDbHelper.KEY_ROWID}; all_anime.moveToFirst(); int id_Column = all_anime.getColumnIndex("_id"); int my_id_Column = all_anime.getColumnIndex("my_id"); int series_animedb_id_Column = all_anime.getColumnIndex("series_animedb_id"); int series_title_Column = all_anime.getColumnIndex("series_title"); int series_episodes_Column = all_anime.getColumnIndex("series_episodes"); int series_status_Column = all_anime.getColumnIndex("series_status"); int my_status_Column = all_anime.getColumnIndex("my_status"); int my_watched_episodes_Column = all_anime.getColumnIndex("my_watched_episodes"); int my_score_Column = all_anime.getColumnIndex("my_score"); if(all_anime.isFirst()){ do{ String id_Column_String = all_anime.getString(id_Column); String my_id_Column_String = all_anime.getString(my_id_Column); String series_animedb_id_Column_String = all_anime.getString(series_animedb_id_Column); String series_episodes_Column_String = all_anime.getString(series_episodes_Column); String series_status_Column_String = all_anime.getString(series_status_Column); String series_title_String = all_anime.getString(series_title_Column); String my_status_Column_String = all_anime.getString(my_status_Column); String my_watched_episodes_Column_String = all_anime.getString(my_watched_episodes_Column); String my_score_Column_String = all_anime.getString(my_score_Column); UrlEncodedFormEntity p_entity = new UrlEncodedFormEntity(pairs, "ISO-8859-1"); /** Assign the POST data to the entity */ httppost.setEntity(p_entity); /** Perform the actual HTTP POST */ HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); content = entity.getContent(); this.returnStream = convertStreamToString(content); int status_code = response.getStatusLine().getStatusCode(); this.cookies = httpclient.getCookieStore(); Log.d("httpPost", "Post logon cookies:" + cookies.toString()); if (status_code >= 300) { this.isAuthenticated = false; } else { this.isAuthenticated = true; List nvps = new ArrayList (); nvps.add(new BasicNameValuePair("series_id", my_id_Column_String)); //6422692 nvps.add(new BasicNameValuePair("anime_db_series_id", series_animedb_id_Column_String)); nvps.add(new BasicNameValuePair("aeps", series_episodes_Column_String)); nvps.add(new BasicNameValuePair("astatus", series_status_Column_String)); nvps.add(new BasicNameValuePair("close_on_update", "true")); nvps.add(new BasicNameValuePair("series_title", series_animedb_id_Column_String)); nvps.add(new BasicNameValuePair("status", my_status_Column_String)); nvps.add(new BasicNameValuePair("completed_eps", my_watched_episodes_Column_String)); nvps.add(new BasicNameValuePair("score", my_score_Column_String)); nvps.add(new BasicNameValuePair("submitIt", "2")); httpclient.getCookieStore(); this.httppost2 = new HttpPost(""); httppost2.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); Header[] headers = new BasicHeader[2]; headers[0] = new BasicHeader("Accept","application/xml"); headers[1] = new BasicHeader("Content-type", "application/x-www-form-urlencoded"); httppost2.addHeader(headers[0]); httppost2.addHeader(headers[1]); HttpResponse response2 = httpclient.execute(httppost2); HttpEntity entity2 = response2.getEntity(); content2 = entity2.getContent(); this.returnStream2 = convertStreamToString(content2); int rowId = Integer.parseInt(id_Column_String); mDbHelper.setUpdated(rowId); } }while(all_anime.moveToNext()); } } catch (UnsupportedEncodingException uee) { // Woops } catch (IOException ioe) { // Woops } catch(IllegalStateException ise) { // woops } return returnStream2; } public String convertStreamToString(InputStream is) { BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line = null; try { while ((line = reader.readLine()) != null) { sb.append(line + "n"); } } catch (IOException e) { e.printStackTrace(); } finally { try { is.close(); } catch (IOException e) { e.printStackTrace(); } } return sb.toString(); } public boolean isAuthenticated() { return isAuthenticated; } }